mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
- Update to 20140812
- Stage
This commit is contained in:
parent
0e59a83b2e
commit
faf0e0c64b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364768
@ -1,7 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= gentoo-stage3
|
||||
PORTVERSION= 20121213
|
||||
PORTVERSION= 20140812
|
||||
CATEGORIES= emulators linux
|
||||
MASTER_SITES= ${MASTER_SITE_GENTOO}
|
||||
MASTER_SITE_SUBDIR= releases/x86/autobuilds/current-stage3$-{GENTOO_OPTIMIZED}
|
||||
@ -9,6 +9,9 @@ MASTER_SITE_SUBDIR= releases/x86/autobuilds/current-stage3$-{GENTOO_OPTIMIZED}
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Files from Gentoo distribution, for Linux compatibility
|
||||
|
||||
LICENSE= GPLv2 GPLv3
|
||||
LICENSE_COMB= multi
|
||||
|
||||
RESTRICTED= binaries licensed under GNU GPL without accompanying source
|
||||
|
||||
USES= tar:bzip2
|
||||
@ -17,7 +20,7 @@ NO_BUILD= YES
|
||||
ONLY_FOR_ARCHS= i386 amd64
|
||||
GENTOO_OPTIMIZED?= i486
|
||||
SUB_FILES+= pkg-message pkg-install pkg-deinstall
|
||||
SUB_LIST+= PREFIX_SUBDIR="${PREFIX_SUBDIR}"
|
||||
SUB_LIST+= PREFIX_SUBDIR="${PREFIX_SUBDIR}" STAGEDIR="${STAGEDIR}"
|
||||
PLIST_SUB+= PREFIX_SUBDIR="${PREFIX_SUBDIR}"
|
||||
PLIST= ${PKGDIR}/pkg-plist.${GENTOO_OPTIMIZED}
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
@ -37,7 +40,6 @@ PKGNAMEPREFIX= linux_dist-
|
||||
PREFIX_SUBDIR= ${PORTNAME}/
|
||||
.endif
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if !defined(PACKAGE_BUILDING) || (defined(PACKAGE_BUILDING) && !defined(LINUX_OSRELEASE) )
|
||||
@ -93,28 +95,28 @@ pre-fetch:
|
||||
@${ECHO_MSG} ""
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${PREFIX}/${PREFIX_SUBDIR}
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/${PREFIX_SUBDIR}
|
||||
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
||||
@${TAR} --exclude=./dev -xpy --exclude=./proc --exclude=./lib/udev \
|
||||
--exclude=./lib/udev-state \
|
||||
-C ${PREFIX}/${PREFIX_SUBDIR} \
|
||||
-C ${STAGEDIR}${PREFIX}/${PREFIX_SUBDIR} \
|
||||
-f ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES}
|
||||
@${CP} -p /etc/resolv.conf ${PREFIX}/${PREFIX_SUBDIR}/etc/
|
||||
@${FIND} ${PREFIX}/${PREFIX_SUBDIR}bin ${PREFIX}/${PREFIX_SUBDIR}sbin/ \
|
||||
${PREFIX}/${PREFIX_SUBDIR}usr/bin ${PREFIX}/${PREFIX_SUBDIR}/usr/sbin \
|
||||
@${CP} -p /etc/resolv.conf ${STAGEDIR}${PREFIX}/${PREFIX_SUBDIR}/etc/
|
||||
@${FIND} ${STAGEDIR}${PREFIX}/${PREFIX_SUBDIR}bin ${STAGEDIR}${PREFIX}/${PREFIX_SUBDIR}sbin/ \
|
||||
${STAGEDIR}${PREFIX}/${PREFIX_SUBDIR}usr/bin ${STAGEDIR}${PREFIX}/${PREFIX_SUBDIR}/usr/sbin \
|
||||
-type f -print0 | ${XARGS} -0 ${FILE} \
|
||||
| ${GREP} ELF | ${CUT} -d : -f 1 | ${XARGS} ${BRANDELF} -t Linux
|
||||
@${BRANDELF} -t Linux ${PREFIX}/${PREFIX_SUBDIR}/lib/ld-*.so
|
||||
@${BRANDELF} -t Linux ${STAGEDIR}${PREFIX}/${PREFIX_SUBDIR}/lib/ld-*.so
|
||||
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
plist:
|
||||
${TOUCH} pkg-plist.new
|
||||
${FIND} /usr/local/gentoo-stage3 -type f -o -type l | ${SORT} | \
|
||||
${SED} 's|/usr/local/gentoo-stage3/|%%PREFIX_SUBDIR%%|g' >>pkg-plist.new
|
||||
${FIND} /usr/local/gentoo-stage3 -type d | ${SORT} -r | \
|
||||
${SED} 's|/usr/local/gentoo-stage3/|@dirrm %%PREFIX_SUBDIR%%|g' | \
|
||||
${GREP} -v '^/usr/local/gentoo-stage3$$' >>pkg-plist.new
|
||||
${FIND} ${PREFIX}/${PREFIX_SUBDIR} -type f -o -type l | ${SORT} | \
|
||||
${SED} 's|${PREFIX}/${PREFIX_SUBDIR}|%%PREFIX_SUBDIR%%|g' >>pkg-plist.new
|
||||
${FIND} ${PREFIX}/${PREFIX_SUBDIR} -type d | ${SORT} -r | \
|
||||
${SED} 's|${PREFIX}/${PREFIX_SUBDIR}|@dirrm %%PREFIX_SUBDIR%%|g' | \
|
||||
${GREP} -v '^${PREFIX}/${PREFIX_SUBDIR}$$' >>pkg-plist.new
|
||||
${ECHO_CMD} "@dirrmtry %%PREFIX_SUBDIR%%" >>pkg-plist.new
|
||||
|
||||
update-port:
|
||||
|
@ -4,11 +4,11 @@
|
||||
case "$2" in
|
||||
DEINSTALL)
|
||||
if [ -n "`mount | grep ^linproc`" ] || \
|
||||
[ -d %%PREFIX%%/%%PREFIX_SUBDIR%%proc ]; then
|
||||
[ -d %%STAGEDIR%%%%PREFIX%%/%%PREFIX_SUBDIR%%proc ]; then
|
||||
echo ""
|
||||
echo "You may need to do by hands:"
|
||||
echo " o unmount linprocfs;"
|
||||
echo " o delete %%PREFIX%%/%%PREFIX_SUBDIR%%proc;"
|
||||
echo " o delete %%STAGEDIR%%%%PREFIX%%/%%PREFIX_SUBDIR%%proc;"
|
||||
echo " o remove the description of linprocfs from /etc/fstab."
|
||||
echo ""
|
||||
fi
|
||||
|
@ -25,7 +25,7 @@ POST-INSTALL)
|
||||
fi
|
||||
echo ''
|
||||
echo 'Running linux ldconfig...'
|
||||
%%PREFIX%%/%%PREFIX_SUBDIR%%sbin/ldconfig -r %%PREFIX%%/%%PREFIX_SUBDIR%%
|
||||
%%STAGEDIR%%%%PREFIX%%/%%PREFIX_SUBDIR%%sbin/ldconfig -r %%STAGEDIR%%%%PREFIX%%/%%PREFIX_SUBDIR%%
|
||||
;;
|
||||
esac
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
#
|
||||
cd ${GENTOODIR}
|
||||
wget -q ftp://ftp.dei.uc.pt/pub/linux/gentoo/releases/x86/autobuilds/current-stage3-i486/ >/dev/null
|
||||
NEWVER=$(grep -o '\".*current-stage3.*"' index.html | grep 'stage3-i486-.*bz2"' | sed -e "s|.*/||g" | grep -o "2013[0-9]*")
|
||||
NEWVER=$(grep -o '\".*current-stage3.*"' index.html | grep 'stage3-i486-.*bz2"' | sed -e "s|.*/||g" | grep -o "2014[0-9]*")
|
||||
OLDVER=$(make -V PORTVERSION)
|
||||
#rm index.html
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
This port installs the stage3 distribution of Gentoo Linux.
|
||||
|
||||
WWW: http://www.gentoo.org/
|
||||
WWW: http://www.gentoo.org/
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user