diff options
author | Johannes Jost Meixner <xmj@FreeBSD.org> | 2014-10-27 13:11:21 +0000 |
---|---|---|
committer | Johannes Jost Meixner <xmj@FreeBSD.org> | 2014-10-27 13:11:21 +0000 |
commit | cfba3b02d5bba61dd7a31f05c28e5e14688f743c (patch) | |
tree | 57345d5c3d372030eac845e6e619ebe2e82b2f73 /emulators | |
parent | 5040e8d8b8b3f36fa653d41ea0521e58fccd54b9 (diff) | |
download | ports-cfba3b02d5bba61dd7a31f05c28e5e14688f743c.tar.gz ports-cfba3b02d5bba61dd7a31f05c28e5e14688f743c.zip |
Notes
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/linux_base-c6/Makefile | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/emulators/linux_base-c6/Makefile b/emulators/linux_base-c6/Makefile index 0a600a7d776f..e6fab83a1bbf 100644 --- a/emulators/linux_base-c6/Makefile +++ b/emulators/linux_base-c6/Makefile @@ -3,12 +3,12 @@ PORTNAME= c6 PORTVERSION= 6.5 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= emulators linux MASTER_SITES= http://mirror.centos.org/centos/6/os/i386/Packages/ \ http://mirror.centos.org/centos/6/updates/i386/Packages/ PKGNAMEPREFIX= linux_base- -DISTFILES= ${BIN_DISTFILES} ${SRC_DISTFILES} +DISTFILES= ${PRE_BIN_DISTFILES} ${BIN_DISTFILES} ${SRC_DISTFILES} EXTRACT_ONLY= ${BIN_DISTFILES} MAINTAINER= emulation@FreeBSD.org @@ -18,6 +18,11 @@ LINUX_DIST= centos LINUX_DIST_VER=6.5 DIST_SUBDIR= rpm/${LINUX_RPM_ARCH}/${LINUX_DIST}/${LINUX_DIST_VER} +# these get extracted from pre-extract, then some directory permissions +# get fixed up +PRE_BIN_DISTFILES= filesystem-2.4.30-3.el6.${LINUX_RPM_ARCH}.rpm \ + setup-2.8.14-20.el6_4.1.noarch.rpm + BIN_DISTFILES= basesystem-10.0-4.el6.noarch.rpm \ bash-4.1.2-15.el6_5.2.${LINUX_RPM_ARCH}.rpm \ bzip2-1.0.5-7.el6_0.${LINUX_RPM_ARCH}.rpm \ @@ -31,7 +36,6 @@ BIN_DISTFILES= basesystem-10.0-4.el6.noarch.rpm \ e2fsprogs-libs-1.41.12-18.el6.${LINUX_RPM_ARCH}.rpm \ elfutils-0.152-1.el6.${LINUX_RPM_ARCH}.rpm \ centos-release-6-5.el6.centos.11.1.${LINUX_RPM_ARCH}.rpm \ - filesystem-2.4.30-3.el6.${LINUX_RPM_ARCH}.rpm \ findutils-4.4.2-6.el6.${LINUX_RPM_ARCH}.rpm \ freetype-2.3.11-14.el6_3.1.${LINUX_RPM_ARCH}.rpm \ gamin-0.1.10-9.el6.${LINUX_RPM_ARCH}.rpm \ @@ -63,7 +67,6 @@ BIN_DISTFILES= basesystem-10.0-4.el6.noarch.rpm \ redhat-lsb-core-4.0-7.el6.centos.${LINUX_RPM_ARCH}.rpm \ sed-4.2.1-10.el6.${LINUX_RPM_ARCH}.rpm \ setserial-2.17-25.el6.${LINUX_RPM_ARCH}.rpm \ - setup-2.8.14-20.el6_4.1.noarch.rpm \ slang-2.2.1-1.el6.${LINUX_RPM_ARCH}.rpm \ util-linux-ng-2.17.2-12.14.el6.${LINUX_RPM_ARCH}.rpm \ which-2.19-6.el6.${LINUX_RPM_ARCH}.rpm \ @@ -174,6 +177,17 @@ LATEST_LINK:= ${PKGBASE:C/linux/linux32/} ARCH= i386 .endif +pre-extract: + @for file in ${PRE_BIN_DISTFILES}; do \ + if ! (cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/$$file ${EXTRACT_AFTER_ARGS});\ + then \ + exit 1; \ + fi; \ + done + # now fix up broken permissions + @${CHMOD} -R u+rwX ${WRKDIR}/bin ${WRKDIR}/lib ${WRKDIR}/sbin ${WRKDIR}/usr/bin ${WRKDIR}/usr/lib ${WRKDIR}/usr/sbin + @${CHMOD} 400 ${WRKDIR}/etc/*shadow + do-build: @for D in ${REMOVE_DIRS}; do \ ${RM} -rf ${WRKSRC}/$$D; \ |