X-Git-Url: http://gitweb/?a=blobdiff_plain;f=procps%2FPkgfile;h=fc73dc708e9236e871ab9a9856f86e65f2fae962;hb=409d70d3a79af22e7342f5e34094a9584ac4f34e;hp=16088ff053dacd071a3095e4850a62d96e9f3e98;hpb=c94c4fb9a80531844a0b79e6ec5832ee5c7790a6;p=crossrootfs.git diff --git a/procps/Pkgfile b/procps/Pkgfile index 16088ff..fc73dc7 100644 --- a/procps/Pkgfile +++ b/procps/Pkgfile @@ -5,25 +5,38 @@ # Depends on: ncurses name=procps -version=3.2.8 -release=3 -source=(http://procps.sourceforge.net/$name-$version.tar.gz \ - sysctl.conf \ - $name-$version.patch \ - $name-$version-linux-ver-init.patch) +version=3.3.12 +release=1 +source=(http://downloads.sourceforge.net/project/procps-ng/Production/$name-ng-$version.tar.xz + sysctl.conf) build() { - cd $name-$version - patch -p1 -i $SRC/$name-$version.patch - patch -p0 -i $SRC/$name-$version-linux-ver-init.patch + cd $name-ng-$version + + cat > config.cache << EOF +ac_cv_func_malloc_0_nonnull=yes +ac_cv_func_realloc_0_nonnull=yes +EOF + + ./configure --build=$CHOST \ + --host=$CTARGET \ + --prefix=/usr \ + --sbindir=/sbin \ + --libdir=/usr/lib \ + --sysconfdir=/etc \ + --disable-nls \ + --disable-kill \ + --disable-modern-top \ + --cache-file=config.cache make - make DESTDIR=$PKG \ - ldconfig=true \ - man1=$PKG/usr/man/man1/ \ - man5=$PKG/usr/man/man5/ \ - man8=$PKG/usr/man/man8/ \ - install + make DESTDIR=$PKG install + + install -d $PKG/{bin,lib,etc} + mv $PKG/usr/bin/{ps,pidof} $PKG/bin/ + mv $PKG/usr/lib/libprocps.so.* $PKG/lib + ln -sf ../../lib/$(readlink $PKG/lib/libprocps.so.5) $PKG/usr/lib/libprocps.so + install -m 0644 $SRC/sysctl.conf $PKG/etc/sysctl.conf - install -D -m644 ../sysctl.conf $PKG/etc/sysctl.conf + rm -r $PKG/usr/share/doc }