# $Id: debianutils-2.30-r2.smage2 3406 2009-10-21 16:12:40Z niro $ PNAME="debianutils" PVER="2.30" PBUILD="r4" PCATEGORIE="sys-apps" STATE="unstable" DESCRIPTION="Miscellaneous utilities specific to Debian." HOMEPAGE="http://packages.debian.org/unstable/utils/debianutils" DEPEND=">= virtual/glibc >= app-arch/bzip2-1.0.5 >= sys-apps/coreutils-8" SDEPEND=">= sys-dev/automake-4 >= sys-dev/autoconf-5" SRCFILE="${PNAME}_${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild mtools SRC_URI=( http://ftp.debian.org/debian/pool/main/d/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-2.11.2-mkboot-vmlinuz.patch mirror://${PNAME}/${PNAME}-2.28.3-savelog-bzip2.patch mirror://${PNAME}/${PNAME}-2.28.3-no-bs-namespace.patch ) UP2DATE="updatecmd http://ftp.debian.org/debian/pool/main/d/${PNAME} | grep .tar.gz | sed -n 's/.*_\(.*\).t.*/\1/;$ p'" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} mpatch ${PNAME}-2.11.2-mkboot-vmlinuz.patch || die mpatch ${PNAME}-2.28.3-savelog-bzip2.patch || die # allows dots in filenames mpatch ${PNAME}-2.28.3-no-bs-namespace.patch || die } src_install() { cd ${SRCDIR} # needed directories minstalldir /bin || die minstalldir /usr/sbin || die # bins minstallexec run-parts /bin || die minstallexec tempfile /bin || die minstallexec savelog /usr/sbin || die minstallexec mkboot /usr/sbin || die # do no install, already provided by sys-apps/mkinitrd #minstallexec installkernel /sbin || die # man-pages minstallman tempfile.1 || die minstallman {run-parts,savelog,mkboot}.8 || die # docs minstalldocs debian/{changelog,copyright} || die }