# $Id$ PNAME="procps" PVER="3.3.12" PBUILD="r3" PCAT="sys-apps" DESCRIPTION="Standard informational utilities and process-handling tools -ps top tload snice vmstat." HOMEPAGE="http://gitorious.org/procps" DEPEND=">= sys-libs/ncurses-6.0 >= sys-libs/libsystemd-230" PROVIDE="virtual/procps" # using procps-ng SRCFILE="${PNAME}-ng-${PVER}.tar.xz" SRCDIR="${BUILDDIR}/${PNAME}-ng-${PVER}" sminclude multilib mbuild msetfeature "!check" # fixme SRC_URI=( sourceforge://${PNAME}-ng/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2TARBALL="${PNAME}-ng" UP2DATE="updatecmd_sourceforge ${PNAME}-ng Production xz" src_check() { all-abis "sed -i -r 's|(pmap_initname)\\\$|\1|' testsuite/pmap.test/pmap.exp" || die mmake -j1 -k check || die } src_compile() { # kill is provided by coreutils # horrible broken Makefile mconfigure \ --prefix=/ \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --includedir=/usr/include \ --docdir=/usr/share/doc/${PNAME}-${PVER} \ --disable-rpath \ --disable-w-from \ --disable-kill \ --with-systemd \ --enable-watch8bit \ || die mmake || die } preinstall() { if [[ ! -z $(magequery -n sysvinit-tools) ]] then echo -e ${COLRED} echo -e "Error: sys-apps/sysvinit-tools is installed!!" echo -e "sysvinit-tools are now provided by procps and util-linux and doesn't need an extra package anymore." echo -e "Please uninstall sys-apps/sysvinit-tools first!" echo -e ${COLDEFAULT} die "sys-apps/sysvinit-tools found!" fi }