2013-02-19 22:51:50 +00:00
|
|
|
# Template file for 'procps-ng'
|
|
|
|
pkgname=procps-ng
|
|
|
|
version=3.3.5
|
2013-02-20 10:59:05 +00:00
|
|
|
revision=4
|
2013-02-19 22:51:50 +00:00
|
|
|
wrksrc="procps-procps"
|
|
|
|
build_style=gnu-configure
|
2013-02-19 23:05:29 +00:00
|
|
|
configure_args="--exec-prefix=/ --prefix=/usr --libdir=/usr/lib --disable-static"
|
2013-02-19 22:51:50 +00:00
|
|
|
short_desc="Utilities for monitoring your system and its processes"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="GPL-2, LGPL-2.1"
|
|
|
|
homepage="http://gitorious.org/procps"
|
|
|
|
distfiles="http://xbps.nopcode.org/distfiles/${pkgname}-${version}.tar.gz"
|
|
|
|
checksum=d3ac6611af888ef8e4f32f4b60718af77d32d8e3abe07f63d985b3abca332d53
|
|
|
|
|
|
|
|
conf_files="/etc/sysctl.conf"
|
|
|
|
replaces="procps>=0"
|
2013-02-20 10:59:05 +00:00
|
|
|
provides="procps-${version}"
|
|
|
|
conflicts="coreutils<8.21_3"
|
|
|
|
|
2013-03-24 09:21:58 +00:00
|
|
|
hostmakedepends="automake gettext-devel pkg-config"
|
|
|
|
makedepends="ncurses-devel"
|
2013-02-19 22:51:50 +00:00
|
|
|
|
2013-03-24 09:21:58 +00:00
|
|
|
if [ "$XBPS_CROSS_BUILD" ]; then
|
2013-02-19 23:05:29 +00:00
|
|
|
configure_args="${configure_args} ac_cv_func_malloc_0_nonnull=yes
|
|
|
|
ac_cv_func_realloc_0_nonnull=yes"
|
|
|
|
fi
|
|
|
|
|
2013-02-19 22:51:50 +00:00
|
|
|
pre_configure() {
|
|
|
|
echo ${version} > .tarball-version
|
|
|
|
./autogen.sh
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vinstall ${FILESDIR}/sysctl.conf 644 etc
|
|
|
|
|
2013-02-20 10:59:05 +00:00
|
|
|
# provided by util-linux
|
2013-02-19 23:25:11 +00:00
|
|
|
rm ${DESTDIR}/bin/kill
|
2013-02-20 10:59:05 +00:00
|
|
|
rm ${DESTDIR}/usr/share/man/man1/kill.1
|
2013-02-19 22:51:50 +00:00
|
|
|
|
2013-02-19 23:05:29 +00:00
|
|
|
vmove "bin/*" usr/bin
|
|
|
|
vmkdir usr/sbin
|
|
|
|
vmove "sbin/*" usr/sbin
|
|
|
|
|
2013-02-19 22:51:50 +00:00
|
|
|
# Create pidof symlink.
|
|
|
|
ln -sfr ${DESTDIR}/usr/bin/pgrep ${DESTDIR}/usr/bin/pidof
|
|
|
|
|
|
|
|
# Remove devel and docs.
|
|
|
|
rm -rf ${DESTDIR}/usr/share/doc \
|
|
|
|
${DESTDIR}/usr/include ${DESTDIR}/usr/lib/pkgconfig
|
|
|
|
|
|
|
|
}
|