summaryrefslogtreecommitdiff
path: root/extra/tftp-hpa
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-07-22 23:13:01 +0000
committerroot <root@rshg047.dnsready.net>2011-07-22 23:13:01 +0000
commitb57c1def9a907b81a49aa91eeb39c9321763c276 (patch)
tree1d056a9ceb1c5ab57a9344548d8ab2a273f09910 /extra/tftp-hpa
parent34b339c5913a55cb5bac8a502696fcd3f54aac0f (diff)
Fri Jul 22 23:13:01 UTC 2011
Diffstat (limited to 'extra/tftp-hpa')
-rw-r--r--extra/tftp-hpa/PKGBUILD28
-rwxr-xr-xextra/tftp-hpa/tftpd.rc4
2 files changed, 19 insertions, 13 deletions
diff --git a/extra/tftp-hpa/PKGBUILD b/extra/tftp-hpa/PKGBUILD
index 33d44dae7..72034141e 100644
--- a/extra/tftp-hpa/PKGBUILD
+++ b/extra/tftp-hpa/PKGBUILD
@@ -1,29 +1,35 @@
-# $Id: PKGBUILD 42756 2009-06-18 19:44:52Z tpowa $
+# $Id: PKGBUILD 131856 2011-07-16 06:36:05Z tpowa $
# Maintainer: dorphell <dorphell@archlinux.org>
# Contributor: Jose Javier <jojapa@terra.es>
pkgname=tftp-hpa
-pkgver=5.0
-pkgrel=3
+pkgver=5.1
+pkgrel=1
pkgdesc="Official tftp server"
arch=('i686' 'x86_64')
url="http://www.kernel.org/pub/software/network/tftp/"
license=('BSD')
-depends=('tcp_wrappers' 'readline>=6.0.00')
+depends=('readline>=6.0.00')
conflicts=('netkit-tftp')
backup=('etc/conf.d/tftpd')
source=(http://www.kernel.org/pub/software/network/tftp/$pkgname-$pkgver.tar.gz tftpd.rc tftpd.conf LICENSE)
-md5sums=('1ae813a94670f0d8c294aafa9f5ecf65' 'a974d02526f19222146c8e3d3b598871'\
- '414a79dc891bced056d99a9bb790fc9e' '6ce21e27b6fdc1a1adf85c81e42aeecf')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
- ./configure --prefix=/usr --mandir=/usr/share/man || return 1
- make || return 1
- make INSTALLROOT="${pkgdir}" install || return 1
+ ./configure --prefix=/usr --mandir=/usr/share/man --without-tcpwrappers
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make INSTALLROOT="${pkgdir}" install
install -d "${pkgdir}/etc/rc.d"
install -d "${pkgdir}/var/tftpboot"
- install -m755 "${srcdir}/tftpd.rc" "${pkgdir}/etc/rc.d/tftpd" || return 1
- install -D -m644 "${srcdir}/tftpd.conf" "${pkgdir}/etc/conf.d/tftpd" || return 1
+ install -m755 "${srcdir}/tftpd.rc" "${pkgdir}/etc/rc.d/tftpd"
+ install -D -m644 "${srcdir}/tftpd.conf" "${pkgdir}/etc/conf.d/tftpd"
rm "${pkgdir}/usr/share/man/man8/tftpd.8"
install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
+md5sums=('d086b1bd6e5ed6375ad407e273afccdf'
+ '83fbb6f52205d95951a3c059e5351ca2'
+ '414a79dc891bced056d99a9bb790fc9e'
+ '6ce21e27b6fdc1a1adf85c81e42aeecf')
diff --git a/extra/tftp-hpa/tftpd.rc b/extra/tftp-hpa/tftpd.rc
index b21f87f5c..0222d1693 100755
--- a/extra/tftp-hpa/tftpd.rc
+++ b/extra/tftp-hpa/tftpd.rc
@@ -14,7 +14,7 @@ case "$1" in
if [ $? -gt 0 ]; then
stat_fail
else
- add_daemon in.tftpd
+ add_daemon tftpd
stat_done
fi
;;
@@ -24,7 +24,7 @@ case "$1" in
if [ $? -gt 0 ]; then
stat_fail
else
- rm_daemon in.tftpd
+ rm_daemon tftpd
stat_done
fi
;;