From dfad88784f3d2ad4519cd99ac4a0da6310ed1ad9 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 26 Apr 2014 10:21:59 +0200 Subject: [PATCH] procps-ng: add systemd build option (disabled by default). --- srcpkgs/procps-ng/template | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/srcpkgs/procps-ng/template b/srcpkgs/procps-ng/template index a3a32355b4..e742b91537 100644 --- a/srcpkgs/procps-ng/template +++ b/srcpkgs/procps-ng/template @@ -1,12 +1,12 @@ # Template file for 'procps-ng' pkgname=procps-ng version=3.3.9 -revision=1 +revision=2 build_style=gnu-configure configure_args="--exec-prefix=/ --bindir=/usr/bin --sbindir=/usr/sbin - --libdir=/usr/lib --disable-static --with-systemd" + --libdir=/usr/lib --disable-static" hostmakedepends="pkg-config" -makedepends="ncurses-devel systemd-devel" +makedepends="ncurses-devel" conflicts="coreutils<8.21_3" short_desc="Utilities for monitoring your system and its processes" maintainer="Juan RP " @@ -15,6 +15,17 @@ homepage="http://gitorious.org/procps" distfiles="${SOURCEFORGE_SITE}/${pkgname}/Production/${pkgname}-${version}.tar.xz" checksum=00f0cb0fadf968ddf605b0ef119846af07386629244d4f3da711a2cecf4e8663 +# Package build options +build_options="systemd" +desc_option_systemd="Enable support for systemd login" + +if [ "$build_option_systemd" ]; then + configure_args+=" --with-systemd" + makedepends+=" systemd-devel" +else + configure_args+=" --without-systemd" +fi + post_install() { # provided by util-linux rm ${DESTDIR}/usr/bin/kill