[arch-commits] Commit in atftp/repos (7 files)
Christian Hesse
eworm at archlinux.org
Fri Mar 9 08:27:45 UTC 2018
Date: Friday, March 9, 2018 @ 08:27:43
Author: eworm
Revision: 305107
archrelease: copy trunk to community-testing-x86_64
Added:
atftp/repos/community-testing-x86_64/
atftp/repos/community-testing-x86_64/PKGBUILD
(from rev 305105, atftp/trunk/PKGBUILD)
atftp/repos/community-testing-x86_64/atftp-0.7-cflags.patch
(from rev 305105, atftp/trunk/atftp-0.7-cflags.patch)
atftp/repos/community-testing-x86_64/atftpd.conf
(from rev 305105, atftp/trunk/atftpd.conf)
atftp/repos/community-testing-x86_64/atftpd.service
(from rev 305105, atftp/trunk/atftpd.service)
atftp/repos/community-testing-x86_64/sysusers.conf
(from rev 305106, atftp/trunk/sysusers.conf)
atftp/repos/community-testing-x86_64/tmpfiles.conf
(from rev 305106, atftp/trunk/tmpfiles.conf)
------------------------+
PKGBUILD | 63 +++++++++++++++++++++++++++++++++++++++++++++++
atftp-0.7-cflags.patch | 32 +++++++++++++++++++++++
atftpd.conf | 3 ++
atftpd.service | 16 +++++++++++
sysusers.conf | 1
tmpfiles.conf | 1
6 files changed, 116 insertions(+)
Copied: atftp/repos/community-testing-x86_64/PKGBUILD (from rev 305105, atftp/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2018-03-09 08:27:43 UTC (rev 305107)
@@ -0,0 +1,63 @@
+# $Id$
+# Maintainer: Benjamin Bukowski <benjamin.bukowski at gmail.com>
+# Contributor: Johannes Löthberg <demizide at gmail.com>
+
+pkgname=atftp
+pkgver=0.7.1
+pkgrel=5
+pkgdesc='Client/server implementation of the TFTP protocol that implements RFCs 1350, 2090, 2347, 2348, and 2349'
+arch=('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'
+ 'sysusers.conf'
+ 'tmpfiles.conf')
+sha256sums=('ae4c6f09cadb8d2150c3ce32d88f19036a54e8211f22d723e97864bb5e18f92d'
+ '56a9bdf1c4f9452db041fce1bc4c994e84ce44c6093ef48588f8d8bc93adaf24'
+ '74a030f0fb48e97470d59d767039e44d28cbd6c4722621207684220210b8fa65'
+ '0b28125099ffdd6869c6fbcb3167e93ccd71a0c6e465b1b62c7dedf9f628dd4e'
+ 'e56f601bcdf0d64bf98813cd4a1be323541e33921c7d4f350168f62b56e66d11'
+ '2096272445c736ba05529af628cc2d46d0236c8f1ecbd50bb1db6dc6c4a972c5')
+
+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 -D -m0644 ../atftpd.service "$pkgdir"/usr/lib/systemd/system/atftpd.service
+ install -D -m0644 ../atftpd.conf "$pkgdir"/etc/conf.d/atftpd
+ install -D -m0644 ../sysusers.conf "$pkgdir"/usr/lib/sysusers.d/atftp.conf
+ install -D -m0644 ../tmpfiles.conf "$pkgdir"/usr/lib/tmpfiles.d/atftp.conf
+
+ # 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 305105, 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 2018-03-09 08:27:43 UTC (rev 305107)
@@ -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 305105, atftp/trunk/atftpd.conf)
===================================================================
--- community-testing-x86_64/atftpd.conf (rev 0)
+++ community-testing-x86_64/atftpd.conf 2018-03-09 08:27:43 UTC (rev 305107)
@@ -0,0 +1,3 @@
+# Parameters to be passed to ATFTPD
+ATFTPD_ARGS="--no-multicast --maxthread 20 --verbose=6 /srv/atftp"
+
Copied: atftp/repos/community-testing-x86_64/atftpd.service (from rev 305105, atftp/trunk/atftpd.service)
===================================================================
--- community-testing-x86_64/atftpd.service (rev 0)
+++ community-testing-x86_64/atftpd.service 2018-03-09 08:27:43 UTC (rev 305107)
@@ -0,0 +1,16 @@
+[Unit]
+Description=Advanced TFTP Daemon
+After=network.target
+
+[Service]
+EnvironmentFile=/etc/conf.d/atftpd
+ExecStart=/usr/bin/atftpd --user=atftp.atftp --daemon --no-fork $ATFTPD_ARGS
+User=atftp
+AmbientCapabilities=CAP_NET_BIND_SERVICE
+ProtectSystem=full
+ProtectHome=on
+PrivateDevices=on
+NoNewPrivileges=on
+
+[Install]
+WantedBy=multi-user.target
Copied: atftp/repos/community-testing-x86_64/sysusers.conf (from rev 305106, atftp/trunk/sysusers.conf)
===================================================================
--- community-testing-x86_64/sysusers.conf (rev 0)
+++ community-testing-x86_64/sysusers.conf 2018-03-09 08:27:43 UTC (rev 305107)
@@ -0,0 +1 @@
+u atftp - "Advanced tftp daemon" /srv/atftp
Copied: atftp/repos/community-testing-x86_64/tmpfiles.conf (from rev 305106, atftp/trunk/tmpfiles.conf)
===================================================================
--- community-testing-x86_64/tmpfiles.conf (rev 0)
+++ community-testing-x86_64/tmpfiles.conf 2018-03-09 08:27:43 UTC (rev 305107)
@@ -0,0 +1 @@
+d /srv/atftp 0755 atftp atftp -
More information about the arch-commits
mailing list