diff options
Diffstat (limited to 'sys-fs/e2fsprogs/e2fsprogs-1.34.ebuild')
-rw-r--r-- | sys-fs/e2fsprogs/e2fsprogs-1.34.ebuild | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/sys-fs/e2fsprogs/e2fsprogs-1.34.ebuild b/sys-fs/e2fsprogs/e2fsprogs-1.34.ebuild new file mode 100644 index 000000000000..eaf12346068c --- /dev/null +++ b/sys-fs/e2fsprogs/e2fsprogs-1.34.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/e2fsprogs/e2fsprogs-1.34.ebuild,v 1.1 2003/09/15 17:46:24 seemant Exp $ + +inherit eutils + +DESCRIPTION="Standard EXT2 and EXT3 filesystem utilities" +HOMEPAGE="http://e2fsprogs.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +KEYWORDS="~x86 ~amd64 ~hppa ~ppc" +SLOT="0" +LICENSE="GPL-2" +IUSE="nls" + +#debianutils is for 'readlink' +DEPEND="${DEPEND} + virtual/glibc + nls? ( sys-devel/gettext ) + sys-apps/debianutils + sys-apps/texinfo" +RDEPEND="virtual/glibc" + +src_unpack() { + unpack ${A} + # Fix a cosmetic error in mk_cmds's help output. + cd ${S}; epatch ${FILESDIR}/e2fsprogs-1.32-mk_cmds-cosmetic.patch +} + +src_compile() { + econf \ + --enable-dynamic-e2fsck \ + --enable-elf-shlibs \ + `use_enable nls` \ + || die + + # Parallel make sometimes fails + MAKEOPTS="-j1" emake || die +} + +src_install() { + einstall libdir=zapme || die + #evil e2fsprogs makefile -- I'll get you! + rm -rf ${D}/zapme + + make DESTDIR=${D} install-libs || die + + #There is .po file b0rkage with 1.33; commenting this out (drobbins, 21 Apr 2003) + #if use nls; then + # make -C po DESTDIR=${D} install || die + #fi + + dodoc COPYING ChangeLog README RELEASE-NOTES SHLIBS + docinto e2fsck + dodoc e2fsck/ChangeLog e2fsck/CHANGES + + dodir /lib /bin /sbin + cd ${D}/usr/lib + mv * ../../lib + cd ${D}/lib + mv *.a ../usr/lib + local mylib="" + local x="" + #install ldscripts to fix bug #4411 + cd ${D}/usr/lib + for x in *.a + do + [ ! -f ${x} ] && continue + gen_usr_ldscript ${x/a}so + done + #normalize evil symlinks + cd ${D}/lib + for x in * + do + [ ! -L ${x} ] && continue + mylib="`readlink ${x}`" + mylib="`basename ${mylib}`" + ln -sf ${mylib} ${x} + done + + mv ${D}/usr/sbin/* ${D}/sbin + cd ${D}/usr/bin + mv lsattr chattr uuidgen ../../bin + cd ${D}/sbin + mv mklost+found ../usr/sbin + #time to convert hard links/duplicates to symbolic links + cd ${D}/sbin + rm fsck.* + ln -sf e2fsck fsck.ext2 + ln -sf e2fsck fsck.ext3 + rm mkfs.* + ln -sf mke2fs mkfs.ext2 + ln -sf mke2fs mkfs.ext3 + + # 03 Aug 2002 <raker@gentoo.org> + # There are awk files that don't get installed when doing + # a 'make install'. They are the template files for + # /bin/compile_et. + + cd ${S}/lib/et + insinto /usr/share/et + doins et_c.awk et_h.awk + cd ${S}/lib/ss + insinto /usr/share/ss + doins ct_c.awk +} |