CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
inetutils: updated to 1.9.1
[crossrootfs.git] / inetutils / Pkgfile
... / ...
CommitLineData
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
7name=inetutils
8version=1.9.1
9release=4
10source=(http://ftp.gnu.org/gnu/inetutils/inetutils-$version.tar.gz \
11 inetd.conf inetd $name-$version-pathprocnet.patch)
12
13build() {
14 cd inetutils-$version
15
16 # fix for glibc 'gets' removal
17 sed -i -e '/gets is a/d' lib/stdio.in.h
18
19 # Fix for PATH_PROC_NET undefined error
20 patch -p1 -i $SRC/$name-$version-pathprocnet.patch
21
22 ./configure --build=$CHOST \
23 --host=$CTARGET \
24 --prefix=/usr \
25 --libexecdir=/usr/sbin \
26 --mandir=/usr/man \
27 --localstatedir=/var \
28 --sysconfdir=/etc \
29 --disable-{servers,clients} \
30 --enable-{hostname,ifconfig,inetd,ftp,telnet,traceroute}
31
32 make
33 make DESTDIR=$PKG install
34
35 install -d $PKG/etc/rc.d
36
37 mv $PKG/usr/bin/hostname $PKG/bin
38 mv $PKG/usr/bin/ifconfig $PKG/sbin
39
40 install -m 644 $SRC/inetd.conf $PKG/etc
41 install -m 755 $SRC/inetd $PKG/etc/rc.d
42
43 rm -r $PKG/usr/share
44}