|
|
automake || die "automake" | automake || die "automake" |
eend $? | eend $? |
| |
|
if [[ ${USERLAND} != "GNU" ]]; then |
|
myconf="${myconf} --program-prefix=g" |
|
else |
|
myconf="${myconf} --bindir=/bin" |
|
fi |
|
|
econf \ | econf \ |
--bindir=/bin \ |
|
--enable-largefile \ | --enable-largefile \ |
$(use_enable nls) \ | $(use_enable nls) \ |
$(use_enable selinux) \ | $(use_enable selinux) \ |
|
${myconf} \ |
|| die "econf" | || die "econf" |
| |
use static && append-ldflags -static | use static && append-ldflags -static |
|
|
insinto /etc | insinto /etc |
doins ${FILESDIR}/DIR_COLORS | doins ${FILESDIR}/DIR_COLORS |
| |
# move non-critical packages into /usr |
# not needed for non-GNU userland as it installs everything on /usr/bin |
cd "${D}" |
if [[ ${USERLAND} == "GNU" ]]; then |
dodir /usr/bin |
# move non-critical packages into /usr |
mv bin/{csplit,expand,factor,fmt,fold,join,md5sum,nl,od} usr/bin |
cd "${D}" |
mv bin/{paste,pathchk,pinky,pr,printf,sha1sum,shred,sum,tac} usr/bin |
dodir /usr/bin |
mv bin/{tail,test,[,tsort,unexpand,users} usr/bin |
mv bin/{csplit,expand,factor,fmt,fold,join,md5sum,nl,od} usr/bin |
cd bin |
mv bin/{paste,pathchk,pinky,pr,printf,sha1sum,shred,sum,tac} usr/bin |
local x |
mv bin/{tail,test,[,tsort,unexpand,users} usr/bin |
for x in * ; do |
cd bin |
dosym /bin/${x} /usr/bin/${x} |
local x |
done |
for x in * ; do |
|
dosym /bin/${x} /usr/bin/${x} |
|
done |
|
fi |
| |
if ! use build ; then | if ! use build ; then |
cd ${S} | cd ${S} |
|
|
else | else |
rm -r "${D}"/usr/share | rm -r "${D}"/usr/share |
fi | fi |
|
|
|
rm -f ${D}/usr/lib/charset.alias |
} | } |
| |
pkg_postinst() { | pkg_postinst() { |
# hostname does not get removed as it is included with older stage1 |
if [[ ${USERLAND} == "GNU" ]]; then |
# tarballs, and net-tools installs to /bin |
# hostname does not get removed as it is included with older stage1 |
if [ -e ${ROOT}/usr/bin/hostname ] && [ ! -L ${ROOT}/usr/bin/hostname ] |
# tarballs, and net-tools installs to /bin |
then |
if [ -e ${ROOT}/usr/bin/hostname ] && [ ! -L ${ROOT}/usr/bin/hostname ] |
rm -f ${ROOT}/usr/bin/hostname |
then |
|
rm -f ${ROOT}/usr/bin/hostname |
|
fi |
fi | fi |
} | } |