summaryrefslogtreecommitdiff
path: root/extra/tftp-hpa
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-09-26 18:59:42 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-09-26 18:59:42 -0300
commit959510fa239cdcdaf0d8d3875cd2aaf652d74241 (patch)
tree0afdc6c433cbf03de1656e5d2557838af7098214 /extra/tftp-hpa
parent37c6b66933676a18529b4e647d1a79a626900512 (diff)
parent483f8b3ac46ac2d40e8cc2f9c25365741bebc791 (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community-staging/happy/PKGBUILD community-staging/haskell-quickcheck/PKGBUILD community/mingw32-gcc-base/PKGBUILD core/mlocate/PKGBUILD core/procps-ng/PKGBUILD core/sysvinit/PKGBUILD elementary/gtk-engine-equinox/PKGBUILD extra/audacious/PKGBUILD extra/libsigc++/PKGBUILD extra/postgresql-old-upgrade/PKGBUILD extra/qt/PKGBUILD extra/tftp-hpa/PKGBUILD extra/transmission/PKGBUILD gnome-unstable/at-spi2-atk/PKGBUILD gnome-unstable/at-spi2-core/PKGBUILD gnome-unstable/atk/PKGBUILD gnome-unstable/clutter/PKGBUILD gnome-unstable/evolution-data-server/PKGBUILD gnome-unstable/evolution/PKGBUILD gnome-unstable/gjs/PKGBUILD gnome-unstable/glib-networking/PKGBUILD gnome-unstable/glib2/PKGBUILD gnome-unstable/gnome-desktop/PKGBUILD gnome-unstable/gnome-online-accounts/PKGBUILD gnome-unstable/gnome-settings-daemon/PKGBUILD gnome-unstable/gnome-themes-standard/PKGBUILD gnome-unstable/gobject-introspection/PKGBUILD gnome-unstable/gtk3/PKGBUILD gnome-unstable/gtkhtml4/PKGBUILD gnome-unstable/gvfs/PKGBUILD gnome-unstable/libsoup/PKGBUILD gnome-unstable/nautilus/PKGBUILD gnome-unstable/vala/PKGBUILD gnome-unstable/webkitgtk3/PKGBUILD libre/libretools/PKGBUILD multilib/lib32-gtk2/PKGBUILD multilib/lib32-qt/PKGBUILD multilib/lib32-util-linux/PKGBUILD testing/mlocate/PKGBUILD testing/openmpi/PKGBUILD testing/run-parts/PKGBUILD testing/systemd/PKGBUILD testing/transmission/PKGBUILD testing/transmission/transmission-cli.install testing/transmission/transmission.systemd
Diffstat (limited to 'extra/tftp-hpa')
-rw-r--r--extra/tftp-hpa/PKGBUILD27
-rw-r--r--extra/tftp-hpa/tftpd.conf2
-rw-r--r--extra/tftp-hpa/tftpd.service8
-rw-r--r--extra/tftp-hpa/tftpd.socket5
4 files changed, 31 insertions, 11 deletions
diff --git a/extra/tftp-hpa/PKGBUILD b/extra/tftp-hpa/PKGBUILD
index 64bba79c6..439ac4a14 100644
--- a/extra/tftp-hpa/PKGBUILD
+++ b/extra/tftp-hpa/PKGBUILD
@@ -1,12 +1,12 @@
-# $Id: PKGBUILD 151760 2012-03-02 09:20:56Z tpowa $
+# $Id: PKGBUILD 166932 2012-09-22 13:11:31Z thomas $
# Maintainer: dorphell <dorphell@archlinux.org>
# Contributor: Jose Javier <jojapa@terra.es>
pkgname=tftp-hpa
pkgver=5.2
-pkgrel=2
+pkgrel=3
pkgdesc="Official tftp server"
arch=('i686' 'x86_64' 'mips64el')
-url="http://www.kernel.org/pub/software/network/tftp/"
+url="http://www.kernel.org/pub/software/network/tftp/tftp-hpa/"
license=('BSD')
depends=('readline>=6.0.00')
conflicts=('netkit-tftp')
@@ -15,7 +15,16 @@ source=(http://www.kernel.org/pub/software/network/tftp/tftp-hpa/$pkgname-$pkgve
tftpd.rc
tftpd.conf
LICENSE
+ tftpd.service
+ tftpd.socket
tftp-hpa-0.49-fortify-strcpy-crash.patch)
+md5sums=('3de3038e7c2bf6fc5d496825893ac8e7'
+ '83fbb6f52205d95951a3c059e5351ca2'
+ 'f41f484f94e91175e9183e872a2bff3b'
+ '6ce21e27b6fdc1a1adf85c81e42aeecf'
+ '165b98f814f74568635a720e674d7f18'
+ 'a23369ea33be8b4a5427ec2cfc5373dd'
+ '22e8629ef19bc276a102c5d4d284c1bd')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
@@ -29,14 +38,12 @@ package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make INSTALLROOT="${pkgdir}" install
install -d "${pkgdir}/etc/rc.d"
- install -d "${pkgdir}/var/tftpboot"
+ install -d "${pkgdir}/srv/tftp"
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 -m655 "${srcdir}/tftpd.service" "${pkgdir}/usr/lib/systemd/system/tftpd.service"
+ install -D -m655 "${srcdir}/tftpd.socket" "${pkgdir}/usr/lib/systemd/system/tftpd.socket"
install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ # Remove conflict with iputils
+ rm "${pkgdir}/usr/share/man/man8/tftpd.8"
}
-md5sums=('3de3038e7c2bf6fc5d496825893ac8e7'
- '83fbb6f52205d95951a3c059e5351ca2'
- '414a79dc891bced056d99a9bb790fc9e'
- '6ce21e27b6fdc1a1adf85c81e42aeecf'
- '22e8629ef19bc276a102c5d4d284c1bd')
diff --git a/extra/tftp-hpa/tftpd.conf b/extra/tftp-hpa/tftpd.conf
index 4705cc3a9..a4329f608 100644
--- a/extra/tftp-hpa/tftpd.conf
+++ b/extra/tftp-hpa/tftpd.conf
@@ -1,4 +1,4 @@
#
# Parameters to be passed to TFTPD
#
-TFTPD_ARGS="-l -s /var/tftpboot"
+TFTPD_ARGS="-l -s /srv/tftp/"
diff --git a/extra/tftp-hpa/tftpd.service b/extra/tftp-hpa/tftpd.service
new file mode 100644
index 000000000..62562343d
--- /dev/null
+++ b/extra/tftp-hpa/tftpd.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=hpa's original TFTP daemon
+
+[Service]
+ExecStart=/usr/sbin/in.tftpd -s /srv/tftp/
+StandardInput=socket
+StandardOutput=inherit
+StandardError=journal
diff --git a/extra/tftp-hpa/tftpd.socket b/extra/tftp-hpa/tftpd.socket
new file mode 100644
index 000000000..0315ed608
--- /dev/null
+++ b/extra/tftp-hpa/tftpd.socket
@@ -0,0 +1,5 @@
+[Socket]
+ListenDatagram=69
+
+[Install]
+WantedBy=sockets.target