[arch-commits] Commit in atftp/repos (10 files)
Christian Hesse
eworm at archlinux.org
Wed Oct 11 08:37:07 UTC 2017
Date: Wednesday, October 11, 2017 @ 08:37:05
Author: eworm
Revision: 262328
archrelease: copy trunk to community-testing-i686, community-testing-x86_64
Added:
atftp/repos/community-testing-i686/
atftp/repos/community-testing-i686/PKGBUILD
(from rev 262327, atftp/trunk/PKGBUILD)
atftp/repos/community-testing-i686/atftp-0.7-cflags.patch
(from rev 262327, atftp/trunk/atftp-0.7-cflags.patch)
atftp/repos/community-testing-i686/atftpd.conf
(from rev 262327, atftp/trunk/atftpd.conf)
atftp/repos/community-testing-i686/atftpd.service
(from rev 262327, atftp/trunk/atftpd.service)
atftp/repos/community-testing-x86_64/
atftp/repos/community-testing-x86_64/PKGBUILD
(from rev 262327, atftp/trunk/PKGBUILD)
atftp/repos/community-testing-x86_64/atftp-0.7-cflags.patch
(from rev 262327, atftp/trunk/atftp-0.7-cflags.patch)
atftp/repos/community-testing-x86_64/atftpd.conf
(from rev 262327, atftp/trunk/atftpd.conf)
atftp/repos/community-testing-x86_64/atftpd.service
(from rev 262327, atftp/trunk/atftpd.service)
-------------------------------------------------+
community-testing-i686/PKGBUILD | 48 ++++++++++++++++++++++
community-testing-i686/atftp-0.7-cflags.patch | 32 ++++++++++++++
community-testing-i686/atftpd.conf | 3 +
community-testing-i686/atftpd.service | 14 ++++++
community-testing-x86_64/PKGBUILD | 48 ++++++++++++++++++++++
community-testing-x86_64/atftp-0.7-cflags.patch | 32 ++++++++++++++
community-testing-x86_64/atftpd.conf | 3 +
community-testing-x86_64/atftpd.service | 14 ++++++
8 files changed, 194 insertions(+)
Copied: atftp/repos/community-testing-i686/PKGBUILD (from rev 262327, atftp/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2017-10-11 08:37:05 UTC (rev 262328)
@@ -0,0 +1,48 @@
+# Maintainer: Benjamin Bukowski <benjamin.bukowski at gmail.com>
+# Contributor: Johannes Löthberg <demizide at gmail.com>
+
+pkgname=atftp
+pkgver=0.7.1
+pkgrel=4
+pkgdesc='Client/server implementation of the TFTP protocol that implements RFCs 1350, 2090, 2347, 2348, and 2349'
+arch=(i686 x86_64)
+url='http://sourceforge.net/projects/atftp/'
+license=(GPL)
+depends=(pcre readline)
+backup=(etc/conf.d/atftpd)
+source=("https://downloads.sf.net/sourceforge/atftp/atftp-$pkgver.tar.gz"
+ 'atftp-0.7-cflags.patch'
+ 'atftpd.service'
+ 'atftpd.conf')
+sha256sums=('ae4c6f09cadb8d2150c3ce32d88f19036a54e8211f22d723e97864bb5e18f92d'
+ '56a9bdf1c4f9452db041fce1bc4c994e84ce44c6093ef48588f8d8bc93adaf24'
+ 'c7f115241777155265cae9760bbadd7299e49630e5be69d0d1d349e2bd4062bf'
+ 'b9942e43206ddd4337454d6ed27a97976c0b84b6218b09a1a6549eec6b3023e6')
+
+prepare() {
+ cd atftp-$pkgver
+ # Respect our CFLAGS; needed below for building with -std=gnu89
+ patch -Np1 -i ../atftp-0.7-cflags.patch
+ autoreconf -vi
+}
+
+build() {
+ cd atftp-$pkgver
+ CFLAGS+=' -std=gnu89'
+ ./configure --prefix=/usr --mandir=/usr/share/man --sbindir=/usr/bin \
+ --enable-libreadline --disable-libwrap
+ make
+}
+
+package() {
+ cd atftp-$pkgver
+ make DESTDIR="$pkgdir" install
+
+ install -Dm644 ../atftpd.service "$pkgdir"/usr/lib/systemd/system/atftpd.service
+ install -Dm644 ../atftpd.conf "$pkgdir"/etc/conf.d/atftpd
+ install -dm775 --group=nobody "$pkgdir"/srv/atftp
+
+ # remove in.tftpd link as it conflicts with extra/tftp-hpa
+ rm "${pkgdir}/usr/share/man/man8/in.tftpd.8"
+ rm "${pkgdir}/usr/bin/in.tftpd"
+}
Copied: atftp/repos/community-testing-i686/atftp-0.7-cflags.patch (from rev 262327, atftp/trunk/atftp-0.7-cflags.patch)
===================================================================
--- community-testing-i686/atftp-0.7-cflags.patch (rev 0)
+++ community-testing-i686/atftp-0.7-cflags.patch 2017-10-11 08:37:05 UTC (rev 262328)
@@ -0,0 +1,32 @@
+--- atftp-0.7/configure.ac
++++ atftp-0.7/configure.ac
+@@ -66,29 +66,6 @@
+ dnl Check for AIX
+ AC_AIX
+
+-CFLAGS="-g -Wall -D_REENTRANT"
+-
+-if test x$debug = xtrue; then
+- CFLAGS="$CFLAGS -O0 -DDEBUG"
+-else
+- if test -n "$auto_cflags"; then
+- if test -n "$GCC"; then
+- CFLAGS="$CFLAGS -g -O2 -Wall -Wno-implicit"
+- else
+- case "$host_os" in
+- *hpux*) CFLAGS="$CFLAGS +O3"
+- ;;
+- *ultrix* | *osf*) CFLAGS="$CFLAGS -O -Olimit 2000"
+- ;;
+- *) CFLAGS="$CFLAGS -O2"
+- ;;
+- esac
+- fi
+- else
+- CFLAGS="$CFLAGS -O2"
+- fi
+-fi
+-
+ AC_PROG_MAKE_SET
+ AC_PROG_INSTALL
+
Copied: atftp/repos/community-testing-i686/atftpd.conf (from rev 262327, atftp/trunk/atftpd.conf)
===================================================================
--- community-testing-i686/atftpd.conf (rev 0)
+++ community-testing-i686/atftpd.conf 2017-10-11 08:37:05 UTC (rev 262328)
@@ -0,0 +1,3 @@
+# Parameters to be passed to ATFTPD
+ATFTPD_ARGS="--no-multicast --maxthread 20 --verbose=6 --group nobody /srv/atftp"
+
Copied: atftp/repos/community-testing-i686/atftpd.service (from rev 262327, atftp/trunk/atftpd.service)
===================================================================
--- community-testing-i686/atftpd.service (rev 0)
+++ community-testing-i686/atftpd.service 2017-10-11 08:37:05 UTC (rev 262328)
@@ -0,0 +1,14 @@
+[Unit]
+Description=Advanced TFTP Daemon
+After=network.target
+
+[Service]
+EnvironmentFile=/etc/conf.d/atftpd
+ExecStart=/usr/bin/atftpd --daemon --no-fork $ATFTPD_ARGS
+ProtectSystem=full
+ProtectHome=on
+PrivateDevices=on
+NoNewPrivileges=on
+
+[Install]
+WantedBy=multi-user.target
Copied: atftp/repos/community-testing-x86_64/PKGBUILD (from rev 262327, atftp/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2017-10-11 08:37:05 UTC (rev 262328)
@@ -0,0 +1,48 @@
+# Maintainer: Benjamin Bukowski <benjamin.bukowski at gmail.com>
+# Contributor: Johannes Löthberg <demizide at gmail.com>
+
+pkgname=atftp
+pkgver=0.7.1
+pkgrel=4
+pkgdesc='Client/server implementation of the TFTP protocol that implements RFCs 1350, 2090, 2347, 2348, and 2349'
+arch=(i686 x86_64)
+url='http://sourceforge.net/projects/atftp/'
+license=(GPL)
+depends=(pcre readline)
+backup=(etc/conf.d/atftpd)
+source=("https://downloads.sf.net/sourceforge/atftp/atftp-$pkgver.tar.gz"
+ 'atftp-0.7-cflags.patch'
+ 'atftpd.service'
+ 'atftpd.conf')
+sha256sums=('ae4c6f09cadb8d2150c3ce32d88f19036a54e8211f22d723e97864bb5e18f92d'
+ '56a9bdf1c4f9452db041fce1bc4c994e84ce44c6093ef48588f8d8bc93adaf24'
+ 'c7f115241777155265cae9760bbadd7299e49630e5be69d0d1d349e2bd4062bf'
+ 'b9942e43206ddd4337454d6ed27a97976c0b84b6218b09a1a6549eec6b3023e6')
+
+prepare() {
+ cd atftp-$pkgver
+ # Respect our CFLAGS; needed below for building with -std=gnu89
+ patch -Np1 -i ../atftp-0.7-cflags.patch
+ autoreconf -vi
+}
+
+build() {
+ cd atftp-$pkgver
+ CFLAGS+=' -std=gnu89'
+ ./configure --prefix=/usr --mandir=/usr/share/man --sbindir=/usr/bin \
+ --enable-libreadline --disable-libwrap
+ make
+}
+
+package() {
+ cd atftp-$pkgver
+ make DESTDIR="$pkgdir" install
+
+ install -Dm644 ../atftpd.service "$pkgdir"/usr/lib/systemd/system/atftpd.service
+ install -Dm644 ../atftpd.conf "$pkgdir"/etc/conf.d/atftpd
+ install -dm775 --group=nobody "$pkgdir"/srv/atftp
+
+ # remove in.tftpd link as it conflicts with extra/tftp-hpa
+ rm "${pkgdir}/usr/share/man/man8/in.tftpd.8"
+ rm "${pkgdir}/usr/bin/in.tftpd"
+}
Copied: atftp/repos/community-testing-x86_64/atftp-0.7-cflags.patch (from rev 262327, atftp/trunk/atftp-0.7-cflags.patch)
===================================================================
--- community-testing-x86_64/atftp-0.7-cflags.patch (rev 0)
+++ community-testing-x86_64/atftp-0.7-cflags.patch 2017-10-11 08:37:05 UTC (rev 262328)
@@ -0,0 +1,32 @@
+--- atftp-0.7/configure.ac
++++ atftp-0.7/configure.ac
+@@ -66,29 +66,6 @@
+ dnl Check for AIX
+ AC_AIX
+
+-CFLAGS="-g -Wall -D_REENTRANT"
+-
+-if test x$debug = xtrue; then
+- CFLAGS="$CFLAGS -O0 -DDEBUG"
+-else
+- if test -n "$auto_cflags"; then
+- if test -n "$GCC"; then
+- CFLAGS="$CFLAGS -g -O2 -Wall -Wno-implicit"
+- else
+- case "$host_os" in
+- *hpux*) CFLAGS="$CFLAGS +O3"
+- ;;
+- *ultrix* | *osf*) CFLAGS="$CFLAGS -O -Olimit 2000"
+- ;;
+- *) CFLAGS="$CFLAGS -O2"
+- ;;
+- esac
+- fi
+- else
+- CFLAGS="$CFLAGS -O2"
+- fi
+-fi
+-
+ AC_PROG_MAKE_SET
+ AC_PROG_INSTALL
+
Copied: atftp/repos/community-testing-x86_64/atftpd.conf (from rev 262327, atftp/trunk/atftpd.conf)
===================================================================
--- community-testing-x86_64/atftpd.conf (rev 0)
+++ community-testing-x86_64/atftpd.conf 2017-10-11 08:37:05 UTC (rev 262328)
@@ -0,0 +1,3 @@
+# Parameters to be passed to ATFTPD
+ATFTPD_ARGS="--no-multicast --maxthread 20 --verbose=6 --group nobody /srv/atftp"
+
Copied: atftp/repos/community-testing-x86_64/atftpd.service (from rev 262327, atftp/trunk/atftpd.service)
===================================================================
--- community-testing-x86_64/atftpd.service (rev 0)
+++ community-testing-x86_64/atftpd.service 2017-10-11 08:37:05 UTC (rev 262328)
@@ -0,0 +1,14 @@
+[Unit]
+Description=Advanced TFTP Daemon
+After=network.target
+
+[Service]
+EnvironmentFile=/etc/conf.d/atftpd
+ExecStart=/usr/bin/atftpd --daemon --no-fork $ATFTPD_ARGS
+ProtectSystem=full
+ProtectHome=on
+PrivateDevices=on
+NoNewPrivileges=on
+
+[Install]
+WantedBy=multi-user.target
More information about the arch-commits
mailing list