X-Git-Url: http://gitweb/?a=blobdiff_plain;f=inetutils%2FPkgfile;h=1410f8d728e2221e0a12b4644a48622e5c1298cd;hb=c2eed42aa7c2e6566452d7aef9b612e738ade12a;hp=22ee644fdf4054dbb43eda9bef30973ab4040647;hpb=b751b192b8a9f558df99b4050babc1b84d45a372;p=crossrootfs.git diff --git a/inetutils/Pkgfile b/inetutils/Pkgfile index 22ee644..1410f8d 100644 --- a/inetutils/Pkgfile +++ b/inetutils/Pkgfile @@ -5,13 +5,20 @@ # Depends on: ncurses name=inetutils -version=1.7 -release=1 +version=1.9.1 +release=4 source=(http://ftp.gnu.org/gnu/inetutils/inetutils-$version.tar.gz \ - inetd.conf inetd) + inetd.conf inetd $name-$version-pathprocnet.patch) build() { cd inetutils-$version + + # fix for glibc 'gets' removal + sed -i -e '/gets is a/d' lib/stdio.in.h + + # Fix for PATH_PROC_NET undefined error + patch -p1 -i $SRC/$name-$version-pathprocnet.patch + ./configure --build=$CHOST \ --host=$CTARGET \ --prefix=/usr \ @@ -20,11 +27,18 @@ build() { --localstatedir=/var \ --sysconfdir=/etc \ --disable-{servers,clients} \ - --enable-{inetd,ftp,telnet} + --enable-{hostname,ifconfig,inetd,ftp,telnet,traceroute} + make make DESTDIR=$PKG install + install -d $PKG/etc/rc.d + + mv $PKG/usr/bin/hostname $PKG/bin + mv $PKG/usr/bin/ifconfig $PKG/sbin + install -m 644 $SRC/inetd.conf $PKG/etc install -m 755 $SRC/inetd $PKG/etc/rc.d + rm -r $PKG/usr/share }