Commit | Line | Data |
---|---|---|
6dca1d21 JB |
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 | |
b751b192 | 4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
6dca1d21 JB |
5 | # Depends on: ncurses |
6 | ||
7 | name=inetutils | |
be983784 VM |
8 | version=1.9.4 |
9 | release=3 | |
6dca1d21 | 10 | source=(http://ftp.gnu.org/gnu/inetutils/inetutils-$version.tar.gz \ |
c2eed42a | 11 | inetd.conf inetd $name-$version-pathprocnet.patch) |
6dca1d21 JB |
12 | |
13 | build() { | |
14 | cd inetutils-$version | |
75c30319 | 15 | |
c2eed42a VM |
16 | # Fix for PATH_PROC_NET undefined error |
17 | patch -p1 -i $SRC/$name-$version-pathprocnet.patch | |
18 | ||
6dca1d21 JB |
19 | ./configure --build=$CHOST \ |
20 | --host=$CTARGET \ | |
21 | --prefix=/usr \ | |
22 | --libexecdir=/usr/sbin \ | |
6dca1d21 JB |
23 | --localstatedir=/var \ |
24 | --sysconfdir=/etc \ | |
25 | --disable-{servers,clients} \ | |
be983784 | 26 | --enable-{hostname,ifconfig,inetd,ftp,telnet,traceroute} |
75c30319 | 27 | |
6dca1d21 | 28 | make |
75558a00 | 29 | make DESTDIR=$PKG install |
75c30319 | 30 | |
be983784 VM |
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 | |
c2eed42a | 35 | |
6dca1d21 JB |
36 | install -m 644 $SRC/inetd.conf $PKG/etc |
37 | install -m 755 $SRC/inetd $PKG/etc/rc.d | |
75c30319 | 38 | |
be983784 | 39 | rm -r $PKG/usr/share/info |
6dca1d21 | 40 | } |