2010-05-16 23:08:55 +08:00
|
|
|
# $Id: PKGBUILD 77841 2010-04-18 13:06:59Z allan $
|
2010-03-13 23:25:19 +08:00
|
|
|
# Maintainer: Eric Belanger <eric@archlinux.org>
|
|
|
|
# Contributor: Eric Belanger <eric@archlinux.org>
|
|
|
|
|
|
|
|
pkgname=inetutils
|
|
|
|
pkgver=1.7
|
2010-05-16 23:08:55 +08:00
|
|
|
pkgrel=3
|
2010-03-13 23:25:19 +08:00
|
|
|
pkgdesc="A collection of common network programs"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://www.gnu.org/software/inetutils/"
|
|
|
|
license=('GPL')
|
|
|
|
depends=('readline' 'ncurses' 'pam' 'tcp_wrappers')
|
|
|
|
provides=('netkit-ftp' 'netkit-rsh' 'netkit-telnet' 'netkit-ntalk')
|
|
|
|
conflicts=('netkit-ftp' 'netkit-rsh' 'netkit-telnet' 'netkit-ntalk')
|
|
|
|
replaces=('netkit-ftp' 'netkit-rsh' 'netkit-telnet' 'netkit-ntalk')
|
|
|
|
backup=('etc/conf.d/ftpd' 'etc/xinetd.d/telnet' 'etc/xinetd.d/talk' \
|
|
|
|
'etc/xinetd.d/rexec' 'etc/xinetd.d/rlogin' 'etc/xinetd.d/rsh')
|
|
|
|
options=('!emptydirs')
|
|
|
|
install=inetutils.install
|
|
|
|
source=(http://ftp.gnu.org/gnu/inetutils/${pkgname}-${pkgver}.tar.gz \
|
|
|
|
ftpd.rc ftpd.conf telnet.xinetd talk.xinetd rexec.xinetd rlogin.xinetd rsh.xinetd)
|
|
|
|
md5sums=('a1d5a01b0ab8a7e596ac4cff0cce7129' 'c167200f6faeb64659e69ced2a9d672a'\
|
|
|
|
'e6e6e5990a2e8159a276fef8fbf54c04' '8596208d119045543c5fb644e1d713d5'\
|
|
|
|
'2c3655985cf122591d71d031af84ff90' 'c490ea36751ac5f1d61d2c014959a3d1'\
|
|
|
|
'c25d8382a994de84d9c6962d804f689b' 'c3aa508a9d1293a787341108cd49c1b7')
|
|
|
|
sha1sums=('d5fdee9855a06663ca7c0a8150c09439ef520206' '84dc802b5e57b5e04c847572225a3b9612017155'\
|
|
|
|
'68a590083b45997dfdb80e666b2de762f494ba74' 'bfad98a4a62f1fff8779f076c6019ed07f9111af'\
|
|
|
|
'27d99b910eec0fc26bd79ccc2c1de26608330298' '87aa4f38ebee9dac5dcaa04cbc3f2f0906bec605'\
|
|
|
|
'81f10b3b688e3952f793b35bcef63b5bf257a92b' '81f4a8da823cf0bb14284fc71ee6108849691eda')
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
./configure --prefix=/usr --libexec=/usr/sbin --localstatedir=/var \
|
|
|
|
--mandir=/usr/share/man --infodir=/usr/share/info \
|
|
|
|
--with-wrap --with-pam \
|
|
|
|
--enable-ftp --enable-ftpd \
|
|
|
|
--enable-telnet --enable-telnetd \
|
|
|
|
--enable-talk --enable-talkd \
|
|
|
|
--enable-rlogin --enable-rlogind \
|
|
|
|
--enable-rsh --enable-rshd \
|
|
|
|
--enable-rexec --enable-rexecd \
|
|
|
|
--enable-rcp \
|
|
|
|
--disable-tftp --disable-tftpd \
|
|
|
|
--disable-ping --disable-ping6 \
|
|
|
|
--disable-logger --disable-syslogd \
|
|
|
|
--disable-inetd --disable-whois \
|
|
|
|
--disable-uucpd --disable-hostname \
|
|
|
|
--disable-ifconfig --disable-traceroute || return 1
|
|
|
|
make || return 1
|
2010-05-16 23:08:55 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
2010-03-13 23:25:19 +08:00
|
|
|
make DESTDIR="${pkgdir}" install || return 1
|
|
|
|
|
|
|
|
install -D -m755 "${srcdir}/ftpd.rc" "${pkgdir}/etc/rc.d/ftpd" || return 1
|
|
|
|
install -D -m644 "${srcdir}/ftpd.conf" "${pkgdir}/etc/conf.d/ftpd" || return 1
|
|
|
|
install -D -m644 "${srcdir}/telnet.xinetd" "${pkgdir}/etc/xinetd.d/telnet" || return 1
|
|
|
|
install -D -m644 "${srcdir}/talk.xinetd" "${pkgdir}/etc/xinetd.d/talk" || return 1
|
|
|
|
install -D -m644 "${srcdir}/rexec.xinetd" "${pkgdir}/etc/xinetd.d/rexec" || return 1
|
|
|
|
install -D -m644 "${srcdir}/rlogin.xinetd" "${pkgdir}/etc/xinetd.d/rlogin" || return 1
|
|
|
|
install -D -m644 "${srcdir}/rsh.xinetd" "${pkgdir}/etc/xinetd.d/rsh" || return 1
|
|
|
|
}
|