2013-02-19 23:51:50 +01:00
|
|
|
# Template file for 'procps-ng'
|
|
|
|
pkgname=procps-ng
|
2013-05-29 08:14:46 +02:00
|
|
|
version=3.3.8
|
2013-03-28 05:33:18 +01:00
|
|
|
revision=1
|
2013-02-19 23:51:50 +01: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"
|
|
|
|
|
2013-03-28 05:33:18 +01:00
|
|
|
nofetch=yes
|
|
|
|
noextract=yes
|
|
|
|
|
2013-03-26 09:34:21 +01:00
|
|
|
hostmakedepends="libtool automake gettext-devel pkg-config"
|
2013-03-24 10:21:58 +01:00
|
|
|
makedepends="ncurses-devel"
|
2013-02-19 23:51:50 +01:00
|
|
|
|
2013-03-28 05:33:18 +01:00
|
|
|
do_fetch() {
|
|
|
|
git clone git://gitorious.org/procps/procps.git \
|
|
|
|
-b v${version} ${pkgname}-${version}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_configure() {
|
2013-02-19 23:51:50 +01:00
|
|
|
echo ${version} > .tarball-version
|
|
|
|
./autogen.sh
|
2013-03-28 05:33:18 +01:00
|
|
|
|
2013-05-26 10:41:55 +02:00
|
|
|
./configure ${configure_args} --exec-prefix=/ \
|
2013-03-28 05:40:47 +01:00
|
|
|
--prefix=/usr --libdir=/usr/lib --disable-static \
|
|
|
|
ac_cv_func_malloc_0_nonnull=yes \
|
|
|
|
ac_cv_func_realloc_0_nonnull=yes \
|
|
|
|
ac_cv_func_strtod=yes ac_cv_func_mmap_fixed_mapped=yes
|
2013-02-19 23:51:50 +01:00
|
|
|
}
|
|
|
|
|
2013-03-28 05:33:18 +01:00
|
|
|
do_build() {
|
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
make DESTDIR=${DESTDIR} install
|
|
|
|
|
2013-02-19 23:51:50 +01:00
|
|
|
vinstall ${FILESDIR}/sysctl.conf 644 etc
|
|
|
|
|
2013-02-20 11:59:05 +01:00
|
|
|
# provided by util-linux
|
2013-02-20 00:25:11 +01:00
|
|
|
rm ${DESTDIR}/bin/kill
|
2013-02-20 11:59:05 +01:00
|
|
|
rm ${DESTDIR}/usr/share/man/man1/kill.1
|
2013-02-19 23:51:50 +01:00
|
|
|
|
2013-04-18 17:47:02 +02:00
|
|
|
vmkdir usr/bin
|
2013-02-20 00:05:29 +01:00
|
|
|
vmkdir usr/sbin
|
2013-04-18 17:47:02 +02:00
|
|
|
mv ${DESTDIR}/bin/* ${DESTDIR}/usr/bin
|
|
|
|
mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/sbin
|
2013-02-20 00:05:29 +01:00
|
|
|
|
2013-02-19 23:51:50 +01: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
|
|
|
|
|
|
|
|
}
|
2013-04-14 11:13:30 +02:00
|
|
|
|
|
|
|
procps-ng_package() {
|
|
|
|
conf_files="/etc/sysctl.conf"
|
|
|
|
replaces="procps>=0"
|
|
|
|
provides="procps-${version}"
|
|
|
|
conflicts="coreutils<8.21_3"
|
|
|
|
pkg_install() {
|
2013-05-29 08:14:46 +02:00
|
|
|
vmove all
|
2013-04-14 11:13:30 +02:00
|
|
|
}
|
|
|
|
}
|