| 1 | # Description: Inetd daemon, FTP and telnet client |
| 2 | # URL: http://www.gnu.org/software/inetutils/inetutils.html |
| 3 | # Maintainer: CRUX System Team, core-ports at crux dot nu |
| 4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
| 5 | # Depends on: ncurses |
| 6 | |
| 7 | name=inetutils |
| 8 | version=1.9.4 |
| 9 | release=3 |
| 10 | source=(http://ftp.gnu.org/gnu/inetutils/inetutils-$version.tar.gz \ |
| 11 | inetd.conf inetd $name-$version-pathprocnet.patch) |
| 12 | |
| 13 | build() { |
| 14 | cd inetutils-$version |
| 15 | |
| 16 | # Fix for PATH_PROC_NET undefined error |
| 17 | patch -p1 -i $SRC/$name-$version-pathprocnet.patch |
| 18 | |
| 19 | ./configure --build=$CHOST \ |
| 20 | --host=$CTARGET \ |
| 21 | --prefix=/usr \ |
| 22 | --libexecdir=/usr/sbin \ |
| 23 | --localstatedir=/var \ |
| 24 | --sysconfdir=/etc \ |
| 25 | --disable-{servers,clients} \ |
| 26 | --enable-{hostname,ifconfig,inetd,ftp,telnet,traceroute} |
| 27 | |
| 28 | make |
| 29 | make DESTDIR=$PKG install |
| 30 | |
| 31 | install -d $PKG/{bin,sbin,etc/rc.d} |
| 32 | |
| 33 | mv $PKG/usr/bin/hostname $PKG/bin |
| 34 | mv $PKG/usr/bin/ifconfig $PKG/sbin |
| 35 | |
| 36 | install -m 644 $SRC/inetd.conf $PKG/etc |
| 37 | install -m 755 $SRC/inetd $PKG/etc/rc.d |
| 38 | |
| 39 | rm -r $PKG/usr/share/info |
| 40 | } |