# $Id: util-linux-2.16.1-r2.smage2 3631 2009-10-27 22:33:50Z niro $ PNAME="util-linux" PVER="2.18" PBUILD="r1" PCATEGORIE="sys-apps" STATE="unstable" DESCRIPTION="Various useful Linux utilities." HOMEPAGE="http://www.kernel.org/pub/linux/utils/util-linux-ng/" DEPEND=">= virtual/glibc >= sys-libs/ncurses-5.7 >= sys-fs/e2fsprogs-1.41" SDEPEND=">= virtual/kernel-headers >= sys-apps/sed-4 >= sys-dev/gettext-0.18" SRCFILE="${PNAME}-ng-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-ng-${PVER}" sminclude mtools multilib mcore SRC_URI=( http://www.kernel.org/pub/linux/utils/${PNAME}-ng/v${PVER/%.?/}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-slang.patch mirror://${PNAME}/${PNAME}-${PVER}-ncursesw.patch mirror://${PNAME}/${PNAME}-${PVER}-cfdisk-string-len.patch mirror://${PNAME}/${PNAME}-${PVER}-fix-findmnt.patch mirror://${PNAME}/${PNAME}-${PVER}-mount-loopdev.patch ) UP2DATE="updatecmd \"${HOMEPAGE}/v$(updatecmd ${HOMEPAGE} | grep v.*/ | sed -n 's/.*v\(.*\)\/.*/\1/;$ p')/?C=M;O=A\" | grep -v 'rc' | lasttarball" src_prepare() { munpack ${SRCFILE} || die # fixes slang issues mpatch ${PNAME}-${PVER}-slang.patch || die # handle non-wide ncurses as well mpatch ${PNAME}-${PVER}-ncursesw.patch || die # fixes get_string() not calculating correct limits mpatch ${PNAME}-${PVER}-cfdisk-string-len.patch || die # fixes some mount issues mpatch ${PNAME}-${PVER}-fix-findmnt.patch || die # iso images listed in fstab are mounted twice at boot mpatch ${PNAME}-${PVER}-mount-loopdev.patch || die # fhs compatibility all-abis sed -i 's:etc/adjtime:var/lib/hwclock/adjtime:' hwclock/hwclock.c || die # regen configure autoreconf --verbose --install --force || die } src_compile() { # we are using blkid from util linux now (--with-fsprobe=built --enable-fsck) # which merges the old blkid from e2fsprogs and udevs libvolume # see: http://lists.freedesktop.org/archives/hal-commit/2009-May/004936.html mconfigure \ --without-pam \ --with-fsprobe=builtin \ --enable-nls \ --enable-agetty \ --enable-cramfs \ --enable-partx \ --enable-raw \ --enable-rdev \ --enable-rename \ --enable-schedutils \ --enable-write \ --disable-reset \ --disable-login-utils \ --disable-init \ --disable-kill \ --disable-last \ --disable-mesg \ --disable-wall \ --enable-fsck \ --disable-silent-rules \ || die mmake || die } src_install() { # needed directories mkeepdir /var/lib/hwclock || die mmake DESTDIR=${BINDIR} install || die minstalldocs HISTORY MAINTAINER README VERSION || die }