summaryrefslogtreecommitdiffstats
path: root/abs/core/inetutils/PKGBUILD
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-07 02:43:18 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-07 02:43:18 (GMT)
commit3ded958a19234dad3af29f01617fdc89d8f83d93 (patch)
treed93b69899cebe4c5b913f9a33b4c5172f21f0ca8 /abs/core/inetutils/PKGBUILD
parent519105f05aca841e6cf4a837738badd8803607ac (diff)
downloadlinhes_pkgbuild-3ded958a19234dad3af29f01617fdc89d8f83d93.zip
linhes_pkgbuild-3ded958a19234dad3af29f01617fdc89d8f83d93.tar.gz
linhes_pkgbuild-3ded958a19234dad3af29f01617fdc89d8f83d93.tar.bz2
inetutils 1.9.1
-glibc patch
Diffstat (limited to 'abs/core/inetutils/PKGBUILD')
-rw-r--r--abs/core/inetutils/PKGBUILD71
1 files changed, 71 insertions, 0 deletions
diff --git a/abs/core/inetutils/PKGBUILD b/abs/core/inetutils/PKGBUILD
new file mode 100644
index 0000000..aeea05d
--- /dev/null
+++ b/abs/core/inetutils/PKGBUILD
@@ -0,0 +1,71 @@
+# $Id: PKGBUILD 157926 2012-04-30 06:14:42Z eric $
+# Maintainer: Eric BĂ©langer <eric@archlinux.org>
+
+pkgname=inetutils
+pkgver=1.9.1
+pkgrel=2
+pkgdesc="A collection of common network programs"
+arch=('i686' 'x86_64')
+url="http://www.gnu.org/software/inetutils/"
+license=('GPL3')
+groups=('base')
+depends=('readline' 'ncurses' 'pam')
+backup=('etc/conf.d/ftpd' 'etc/xinetd.d/telnet' 'etc/xinetd.d/talk' \
+ 'etc/xinetd.d/rlogin' 'etc/xinetd.d/rsh')
+options=('!emptydirs')
+install=inetutils.install
+source=(http://ftp.gnu.org/gnu/inetutils/${pkgname}-${pkgver}.tar.gz{,.sig} \
+ ftpd.rc ftpd.conf telnet.xinetd talk.xinetd rlogin.xinetd rsh.xinetd \
+ dnsdomainname)
+sha1sums=('86b7eb11cfdaefb1d4e9bfc10620beaf8f09bc90'
+ 'ff0aad9946a38915580b094dadf67e790e8a2f87'
+ '84dc802b5e57b5e04c847572225a3b9612017155'
+ '68a590083b45997dfdb80e666b2de762f494ba74'
+ 'bfad98a4a62f1fff8779f076c6019ed07f9111af'
+ '27d99b910eec0fc26bd79ccc2c1de26608330298'
+ '81f10b3b688e3952f793b35bcef63b5bf257a92b'
+ '81f4a8da823cf0bb14284fc71ee6108849691eda'
+ 'eb952b0b9c3e3d429d8e21b110249e495f0e0e63')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ sed -i '/gets is a security hole/d' lib/stdio.in.h
+
+ ./configure --prefix=/usr --libexec=/usr/sbin --localstatedir=/var \
+ --sysconfdir=/etc --mandir=/usr/share/man --infodir=/usr/share/info \
+ --without-wrap --with-pam \
+ --enable-ftp --enable-ftpd \
+ --enable-telnet --enable-telnetd \
+ --enable-talk --enable-talkd \
+ --enable-rlogin --enable-rlogind \
+ --enable-rsh --enable-rshd \
+ --enable-rcp --enable-hostname \
+ --disable-rexec --disable-rexecd \
+ --disable-tftp --disable-tftpd \
+ --disable-ping --disable-ping6 \
+ --disable-logger --disable-syslogd \
+ --disable-inetd --disable-whois \
+ --disable-uucpd --disable-ifconfig --disable-traceroute
+ make
+}
+
+check() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make check
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ install -d "${pkgdir}/bin"
+ ln -s /usr/bin/hostname "${pkgdir}/bin/hostname"
+ install -D -m755 "${srcdir}/dnsdomainname" "${pkgdir}/bin/dnsdomainname"
+ echo ".so man1/hostname.1" > "${pkgdir}/usr/share/man/man1/dnsdomainname.1"
+ install -D -m755 "${srcdir}/ftpd.rc" "${pkgdir}/etc/rc.d/ftpd"
+ install -D -m644 "${srcdir}/ftpd.conf" "${pkgdir}/etc/conf.d/ftpd"
+ install -D -m644 "${srcdir}/telnet.xinetd" "${pkgdir}/etc/xinetd.d/telnet"
+ install -D -m644 "${srcdir}/talk.xinetd" "${pkgdir}/etc/xinetd.d/talk"
+ install -D -m644 "${srcdir}/rlogin.xinetd" "${pkgdir}/etc/xinetd.d/rlogin"
+ install -D -m644 "${srcdir}/rsh.xinetd" "${pkgdir}/etc/xinetd.d/rsh"
+}