CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
procps: updated tp 3.3.14
[crossrootfs.git] / procps / Pkgfile
CommitLineData
6dca1d21
JB
1# Description: The /proc file system utilities
2# URL: http://procps.sourceforge.net/
3# Maintainer: CRUX System Team, core-ports at crux dot nu
b751b192 4# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
6dca1d21
JB
5# Depends on: ncurses
6
7name=procps
0b1077e0 8version=3.3.14
81572d23 9release=1
3b058de9 10source=(http://downloads.sourceforge.net/project/procps-ng/Production/$name-ng-$version.tar.xz
0cd0473e 11 sysctl.conf)
6dca1d21
JB
12
13build() {
0cd0473e
VM
14 cd $name-ng-$version
15
16 cat > config.cache << EOF
17ac_cv_func_malloc_0_nonnull=yes
18ac_cv_func_realloc_0_nonnull=yes
19EOF
20
21 ./configure --build=$CHOST \
22 --host=$CTARGET \
23 --prefix=/usr \
81572d23 24 --sbindir=/sbin \
0cd0473e
VM
25 --libdir=/usr/lib \
26 --sysconfdir=/etc \
81572d23 27 --disable-nls \
0cd0473e 28 --disable-kill \
81572d23 29 --disable-modern-top \
0cd0473e 30 --cache-file=config.cache
995a0fc2 31
2b65c71b 32 make
0cd0473e
VM
33 make DESTDIR=$PKG install
34
81572d23
VM
35 install -d $PKG/{bin,lib,etc}
36 mv $PKG/usr/bin/{ps,pidof} $PKG/bin/
0cd0473e 37 mv $PKG/usr/lib/libprocps.so.* $PKG/lib
81572d23 38 ln -sf ../../lib/$(readlink $PKG/lib/libprocps.so.5) $PKG/usr/lib/libprocps.so
0cd0473e 39 install -m 0644 $SRC/sysctl.conf $PKG/etc/sysctl.conf
81572d23
VM
40
41 rm -r $PKG/usr/share/doc
6dca1d21 42}