[arch-commits] Commit in bftpd/repos (10 files)

Johannes Löthberg demize at gemini.archlinux.org
Sat Aug 14 09:45:07 UTC 2021


    Date: Saturday, August 14, 2021 @ 09:45:07
  Author: demize
Revision: 422115

archrelease: copy trunk to testing-x86_64

Added:
  bftpd/repos/testing-x86_64/
  bftpd/repos/testing-x86_64/PKGBUILD
    (from rev 422114, bftpd/trunk/PKGBUILD)
  bftpd/repos/testing-x86_64/bftpd-4.9-Makefile.patch
    (from rev 422114, bftpd/trunk/bftpd-4.9-Makefile.patch)
  bftpd/repos/testing-x86_64/bftpd.logrotate
    (from rev 422114, bftpd/trunk/bftpd.logrotate)
  bftpd/repos/testing-x86_64/bftpd.pam
    (from rev 422114, bftpd/trunk/bftpd.pam)
  bftpd/repos/testing-x86_64/bftpd.service
    (from rev 422114, bftpd/trunk/bftpd.service)
  bftpd/repos/testing-x86_64/bftpd.socket
    (from rev 422114, bftpd/trunk/bftpd.socket)
  bftpd/repos/testing-x86_64/bftpd.tmpfiles
    (from rev 422114, bftpd/trunk/bftpd.tmpfiles)
  bftpd/repos/testing-x86_64/bftpd.xinetd
    (from rev 422114, bftpd/trunk/bftpd.xinetd)
  bftpd/repos/testing-x86_64/bftpd_AT.service
    (from rev 422114, bftpd/trunk/bftpd_AT.service)

--------------------------+
 PKGBUILD                 |   69 +++++++++++++++++++++++++++++++++++++++++++++
 bftpd-4.9-Makefile.patch |   63 +++++++++++++++++++++++++++++++++++++++++
 bftpd.logrotate          |    5 +++
 bftpd.pam                |    3 +
 bftpd.service            |   10 ++++++
 bftpd.socket             |   10 ++++++
 bftpd.tmpfiles           |    1 
 bftpd.xinetd             |   11 +++++++
 bftpd_AT.service         |    8 +++++
 9 files changed, 180 insertions(+)

Copied: bftpd/repos/testing-x86_64/PKGBUILD (from rev 422114, bftpd/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2021-08-14 09:45:07 UTC (rev 422115)
@@ -0,0 +1,69 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Thomas Bächler <thomas at archlinux.org>
+
+pkgname=bftpd
+pkgver=6.0
+pkgrel=1
+pkgdesc='Small, easy-to-configure FTP server'
+url='http://bftpd.sourceforge.net/'
+arch=('x86_64')
+license=('GPL')
+depends=('pam' 'zlib' 'glibc' 'libxcrypt' 'libcrypt.so')
+backup=(etc/bftpd.conf
+        etc/logrotate.d/bftpd
+        etc/pam.d/bftpd
+        etc/xinetd.d/bftpd)
+source=(https://downloads.sourceforge.net/sourceforge/bftpd/bftpd-${pkgver}.tar.gz
+        bftpd.logrotate
+        bftpd.pam
+        bftpd.xinetd
+        bftpd.service
+        bftpd.socket
+        bftpd_AT.service
+        bftpd.tmpfiles
+        bftpd-4.9-Makefile.patch)
+sha512sums=('26e5ef3729e0a46737617b2e48dee4c462e5633807206eff8f14df8368b6be758688eca167c3b49c324397761da16c817c022b19cf35966408d9e8c207bc7350'
+            '50faec3cf93a4702945bb8aee5b2e9b227183ec098fe93c729ca14d02c9432ccf4b25bc86f9b4b1ae40c9a9820b6b5a9e83a1dde78085a36a2c84b69690262b6'
+            '1e6183ab0eb812b3ef687ac2c26ce78f7cb30540f606d20023669ac00ba04075487fb72e4dc89cc05dab0269ff6aca98fc1167cc75669c225b88b592482fbf67'
+            '98d7679faffd497f0cc2faa6129b010f0a47092e1caebc82582e362e3eb107c09cf17496b10bbc4fc406ebfea7f75a70d119c071721099d169765f53ce89b51a'
+            '1433b8b1a2eea07b095e41eb83e8819fcb22c63b632fe73ec87e1f0490a5f84f836cc65ea1ca2f8fa9ab901122350a45f781593748df04fa211168b5f08546b8'
+            'd37b9e6f69d781ecf8ddf63072a0e00c1cb27959ac622b5ba19fc7db0021f2da83fb427ee13f310c52565e5cbc8a5016bf28e63e9fb95e2fd0a568f5028f0056'
+            'b1a9f01f974b72a40d072c75a3962f5354eeb23f7383643f20cf3809ffc2d6217c450d0564be223b99552ebc55e26c0e4f1362a2ede24280e865a3f63ceca4a5'
+            '92650582747a34a29631b1755d2eb14d124a9632888c39cf2dbe5c2834f5b4c5f6506588ef0106cc643397587ffbe9a2240787030452bf29b17b7aacf1632cc1'
+            'b6e7e455b94b6c6b442a57416b285f870e7a99546f9aa26c67d381ec1e62a1e1d2492d144cf075b6f1ecaa42bf1f9c3e0390a45d0edab456de8cb7fe5d24ede7')
+prepare() {
+  cd ${pkgname}
+  patch -Np1 < ../bftpd-4.9-Makefile.patch
+  # Fix default in config file
+  sed 's|#ROOTDIR="/path/for/anonymous/user"|# bftpd interprets ROOTDIR="%h" (the default), as ROOTDIR="/" for the anonymous user, override it\n  ROOTDIR="/srv/ftp"|' -i bftpd.conf
+  rm -f config.{cache,status}
+  autoreconf -fiv
+}
+
+build() {
+  cd ${pkgname}
+  CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
+  ./configure \
+    --prefix=/usr \
+    --enable-pam \
+    --enable-libz \
+    --mandir=/usr/share/man \
+    --sysconfdir=/etc \
+    --sbindir=/usr/bin
+  make
+}
+
+package() {
+  cd ${pkgname}
+  make DESTDIR="${pkgdir}" install
+  rm -rf "${pkgdir}/usr/var"
+  install -Dm 644 ../bftpd.service "${pkgdir}/usr/lib/systemd/system/bftpd.service"
+  install -Dm 644 ../bftpd_AT.service "${pkgdir}/usr/lib/systemd/system/bftpd at .service"
+  install -Dm 644 ../bftpd.socket "${pkgdir}/usr/lib/systemd/system/bftpd.socket"
+  install -Dm 644 ../bftpd.tmpfiles "${pkgdir}/usr/lib/tmpfiles.d/bftpd.conf"
+  install -Dm 644 ../bftpd.logrotate "${pkgdir}/etc/logrotate.d/bftpd"
+  install -Dm 644 ../bftpd.pam "${pkgdir}/etc/pam.d/bftpd"
+  install -Dm 644 ../bftpd.xinetd "${pkgdir}/etc/xinetd.d/bftpd"
+}
+
+# vim: ts=2 sw=2 et:

Copied: bftpd/repos/testing-x86_64/bftpd-4.9-Makefile.patch (from rev 422114, bftpd/trunk/bftpd-4.9-Makefile.patch)
===================================================================
--- testing-x86_64/bftpd-4.9-Makefile.patch	                        (rev 0)
+++ testing-x86_64/bftpd-4.9-Makefile.patch	2021-08-14 09:45:07 UTC (rev 422115)
@@ -0,0 +1,63 @@
+From 5301e7349ba4d1c3f3808829947dab8ee2ac73b0 Mon Sep 17 00:00:00 2001
+From: anthraxx <levente at leventepolyak.net>
+Date: Wed, 21 Mar 2018 02:12:52 +0100
+Subject: [PATCH] make: unfuck paths, flags and modes
+
+---
+ Makefile.in | 18 +++++++++---------
+ 1 file changed, 9 insertions(+), 9 deletions(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index 6d6ee03..e931934 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -3,6 +3,6 @@ CC?=@CC@
+ INSTALL=@INSTALL@
+ prefix=@prefix@
+-CFLAGS=@CFLAGS@ @DEFS@ -Wall -I. -DVERSION=\"$(VERSION)\" -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPREFIX=\"$(prefix)\" @DEBUG@
++CFLAGS=@CFLAGS@ @CPPFLAGS@ @DEFS@ -Wall -I. -DVERSION=\"$(VERSION)\" -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPREFIX=\"$(prefix)\" @DEBUG@
+ LIBS=@LIBS@
+ mandir=@mandir@
+ sbindir=@sbindir@
+@@ -15,7 +15,7 @@ OBJS=bftpdutmp.o commands.o commands_admin.o cwd.o dirlist.o list.o login.o logg
+ SRCS=bftpdutmp.c commands.c commands_admin.c cwd.c dirlist.c list.c login.c logging.c main.c mystring.c options.c md5.c
+ 
+ OBJS2LINK=$(OBJS) $(PAX)
+-LDFLAGS=
++LDFLAGS?=@LDFLAGS@
+ 
+ all: bftpd
+ 
+@@ -26,13 +26,13 @@ bftpd: $(OBJS)
+ $(OBJS): $(HEADERS) Makefile
+ 
+ install: all
+-	mkdir -p $(DESTDIR)/$(prefix)/sbin
+-	$(INSTALL) -g 0 -m 700 -o 0 bftpd $(DESTDIR)/$(prefix)/sbin
++	mkdir -p $(DESTDIR)/$(sbindir)
++	$(INSTALL) -g 0 -m 755 -o 0 bftpd $(DESTDIR)/$(sbindir)
+ 	mkdir -p $(DESTDIR)/$(mandir)/man8
+ 	$(INSTALL) -g 0 -m 644 -o 0 bftpd.8 $(DESTDIR)/$(mandir)/man8
+-	mkdir -p $(DESTDIR)/$(prefix)/etc
+-	[ -f $(DESTDIR)/$(prefix)/etc/bftpd.conf ] || \
+-		$(INSTALL) -g 0 -m 600 -o 0 bftpd.conf $(DESTDIR)/$(prefix)/etc
++	mkdir -p $(DESTDIR)/etc
++	[ -f $(DESTDIR)/etc/bftpd.conf ] || \
++		$(INSTALL) -g 0 -m 600 -o 0 bftpd.conf $(DESTDIR)/etc
+ 	mkdir -p $(DESTDIR)/$(prefix)/var/log
+ 	touch $(DESTDIR)/$(prefix)/var/log/bftpd.log
+ 	chmod 644 $(DESTDIR)/$(prefix)/var/log/bftpd.log
+@@ -49,8 +49,8 @@ newversion: clean
+ 	./configure --enable-pax=pax --enable-libz --enable-pam
+ 
+ uninstall:
+-	rm -f $(DESTDIR)/$(prefix)/sbin/bftpd $(DESTDIR)/$(mandir)/man8/bftpd.8 \
+-		$(DESTDIR)/$(prefix)/etc/bftpd.conf
++	rm -f $(DESTDIR)/$(sbindir)/bftpd $(DESTDIR)/$(mandir)/man8/bftpd.8 \
++		$(DESTDIR)/etc/bftpd.conf
+ 
+ distribute: install
+ 	rm -rf dist
+-- 
+2.16.2
+

Copied: bftpd/repos/testing-x86_64/bftpd.logrotate (from rev 422114, bftpd/trunk/bftpd.logrotate)
===================================================================
--- testing-x86_64/bftpd.logrotate	                        (rev 0)
+++ testing-x86_64/bftpd.logrotate	2021-08-14 09:45:07 UTC (rev 422115)
@@ -0,0 +1,5 @@
+/var/log/bftpd.log {
+	copytruncate
+	missingok
+	notifempty
+}

Copied: bftpd/repos/testing-x86_64/bftpd.pam (from rev 422114, bftpd/trunk/bftpd.pam)
===================================================================
--- testing-x86_64/bftpd.pam	                        (rev 0)
+++ testing-x86_64/bftpd.pam	2021-08-14 09:45:07 UTC (rev 422115)
@@ -0,0 +1,3 @@
+auth		required	pam_unix.so
+account		required	pam_unix.so
+session		required	pam_unix.so

Copied: bftpd/repos/testing-x86_64/bftpd.service (from rev 422114, bftpd/trunk/bftpd.service)
===================================================================
--- testing-x86_64/bftpd.service	                        (rev 0)
+++ testing-x86_64/bftpd.service	2021-08-14 09:45:07 UTC (rev 422115)
@@ -0,0 +1,10 @@
+[Unit]
+Description=bftpd daemon
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/bftpd -d
+GuessMainPID=yes
+
+[Install]
+WantedBy=multi-user.target

Copied: bftpd/repos/testing-x86_64/bftpd.socket (from rev 422114, bftpd/trunk/bftpd.socket)
===================================================================
--- testing-x86_64/bftpd.socket	                        (rev 0)
+++ testing-x86_64/bftpd.socket	2021-08-14 09:45:07 UTC (rev 422115)
@@ -0,0 +1,10 @@
+[Unit]
+Description=bftpd incoming socket
+Conflicts=bftpd.service
+
+[Socket]
+ListenStream=21
+Accept=yes
+
+[Install]
+WantedBy=sockets.target

Copied: bftpd/repos/testing-x86_64/bftpd.tmpfiles (from rev 422114, bftpd/trunk/bftpd.tmpfiles)
===================================================================
--- testing-x86_64/bftpd.tmpfiles	                        (rev 0)
+++ testing-x86_64/bftpd.tmpfiles	2021-08-14 09:45:07 UTC (rev 422115)
@@ -0,0 +1 @@
+f /var/log/bftpd.log

Copied: bftpd/repos/testing-x86_64/bftpd.xinetd (from rev 422114, bftpd/trunk/bftpd.xinetd)
===================================================================
--- testing-x86_64/bftpd.xinetd	                        (rev 0)
+++ testing-x86_64/bftpd.xinetd	2021-08-14 09:45:07 UTC (rev 422115)
@@ -0,0 +1,11 @@
+service ftp
+{
+        socket_type             = stream
+        wait                    = no
+        user                    = root
+        server                  = /usr/bin/bftpd
+        server_args             = -i
+        log_on_success         += HOST DURATION
+        log_on_failure         += HOST
+        disable                 = yes
+}

Copied: bftpd/repos/testing-x86_64/bftpd_AT.service (from rev 422114, bftpd/trunk/bftpd_AT.service)
===================================================================
--- testing-x86_64/bftpd_AT.service	                        (rev 0)
+++ testing-x86_64/bftpd_AT.service	2021-08-14 09:45:07 UTC (rev 422115)
@@ -0,0 +1,8 @@
+[Unit]
+Description=bftpd daemon
+
+[Service]
+ExecStart=/usr/bin/bftpd -i
+StandardInput=socket
+StandardOutput=socket
+StandardError=socket



More information about the arch-commits mailing list