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

Evangelos Foutras foutrelis at archlinux.org
Tue May 19 09:57:24 UTC 2020


    Date: Tuesday, May 19, 2020 @ 09:57:23
  Author: foutrelis
Revision: 386616

archrelease: copy trunk to staging-x86_64

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

--------------------------+
 PKGBUILD                 |   69 +++++++++++++++++++++++++++++++++++++++++++++
 bftpd-4.9-Makefile.patch |   64 +++++++++++++++++++++++++++++++++++++++++
 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, 181 insertions(+)

Copied: bftpd/repos/staging-x86_64/PKGBUILD (from rev 386615, bftpd/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-05-19 09:57:23 UTC (rev 386616)
@@ -0,0 +1,69 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Thomas Bächler <thomas at archlinux.org>
+
+pkgname=bftpd
+pkgver=5.2
+pkgrel=2
+pkgdesc='Small, easy-to-configure FTP server'
+url='http://bftpd.sourceforge.net/'
+arch=('x86_64')
+license=('GPL')
+depends=('pam' 'zlib' 'glibc')
+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=('2f0575e84ad198854d6457357bbddb8132276730431fcb4e2ef13d06f478bb2b100af6ef190ad9fb7b36898f14eeaf5884c8bd9f4cfff3c00af10247f7573f42'
+            '50faec3cf93a4702945bb8aee5b2e9b227183ec098fe93c729ca14d02c9432ccf4b25bc86f9b4b1ae40c9a9820b6b5a9e83a1dde78085a36a2c84b69690262b6'
+            '1e6183ab0eb812b3ef687ac2c26ce78f7cb30540f606d20023669ac00ba04075487fb72e4dc89cc05dab0269ff6aca98fc1167cc75669c225b88b592482fbf67'
+            '98d7679faffd497f0cc2faa6129b010f0a47092e1caebc82582e362e3eb107c09cf17496b10bbc4fc406ebfea7f75a70d119c071721099d169765f53ce89b51a'
+            '1433b8b1a2eea07b095e41eb83e8819fcb22c63b632fe73ec87e1f0490a5f84f836cc65ea1ca2f8fa9ab901122350a45f781593748df04fa211168b5f08546b8'
+            'd37b9e6f69d781ecf8ddf63072a0e00c1cb27959ac622b5ba19fc7db0021f2da83fb427ee13f310c52565e5cbc8a5016bf28e63e9fb95e2fd0a568f5028f0056'
+            'b1a9f01f974b72a40d072c75a3962f5354eeb23f7383643f20cf3809ffc2d6217c450d0564be223b99552ebc55e26c0e4f1362a2ede24280e865a3f63ceca4a5'
+            '92650582747a34a29631b1755d2eb14d124a9632888c39cf2dbe5c2834f5b4c5f6506588ef0106cc643397587ffbe9a2240787030452bf29b17b7aacf1632cc1'
+            'abc918f7f322bfc5ccc814ae66a4955f5ddd3387db06b6f38e0b63bb1050bbe641dbe6ab69056d725da4565cec9642f070779377afd0e85c467ce5dd3aed6ab5')
+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/staging-x86_64/bftpd-4.9-Makefile.patch (from rev 386615, bftpd/trunk/bftpd-4.9-Makefile.patch)
===================================================================
--- staging-x86_64/bftpd-4.9-Makefile.patch	                        (rev 0)
+++ staging-x86_64/bftpd-4.9-Makefile.patch	2020-05-19 09:57:23 UTC (rev 386616)
@@ -0,0 +1,64 @@
+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
+@@ -2,7 +2,7 @@ VERSION=4.9
+ 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/staging-x86_64/bftpd.logrotate (from rev 386615, bftpd/trunk/bftpd.logrotate)
===================================================================
--- staging-x86_64/bftpd.logrotate	                        (rev 0)
+++ staging-x86_64/bftpd.logrotate	2020-05-19 09:57:23 UTC (rev 386616)
@@ -0,0 +1,5 @@
+/var/log/bftpd.log {
+	copytruncate
+	missingok
+	notifempty
+}

Copied: bftpd/repos/staging-x86_64/bftpd.pam (from rev 386615, bftpd/trunk/bftpd.pam)
===================================================================
--- staging-x86_64/bftpd.pam	                        (rev 0)
+++ staging-x86_64/bftpd.pam	2020-05-19 09:57:23 UTC (rev 386616)
@@ -0,0 +1,3 @@
+auth		required	pam_unix.so
+account		required	pam_unix.so
+session		required	pam_unix.so

Copied: bftpd/repos/staging-x86_64/bftpd.service (from rev 386615, bftpd/trunk/bftpd.service)
===================================================================
--- staging-x86_64/bftpd.service	                        (rev 0)
+++ staging-x86_64/bftpd.service	2020-05-19 09:57:23 UTC (rev 386616)
@@ -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/staging-x86_64/bftpd.socket (from rev 386615, bftpd/trunk/bftpd.socket)
===================================================================
--- staging-x86_64/bftpd.socket	                        (rev 0)
+++ staging-x86_64/bftpd.socket	2020-05-19 09:57:23 UTC (rev 386616)
@@ -0,0 +1,10 @@
+[Unit]
+Description=bftpd incoming socket
+Conflicts=bftpd.service
+
+[Socket]
+ListenStream=21
+Accept=yes
+
+[Install]
+WantedBy=sockets.target

Copied: bftpd/repos/staging-x86_64/bftpd.tmpfiles (from rev 386615, bftpd/trunk/bftpd.tmpfiles)
===================================================================
--- staging-x86_64/bftpd.tmpfiles	                        (rev 0)
+++ staging-x86_64/bftpd.tmpfiles	2020-05-19 09:57:23 UTC (rev 386616)
@@ -0,0 +1 @@
+f /var/log/bftpd.log

Copied: bftpd/repos/staging-x86_64/bftpd.xinetd (from rev 386615, bftpd/trunk/bftpd.xinetd)
===================================================================
--- staging-x86_64/bftpd.xinetd	                        (rev 0)
+++ staging-x86_64/bftpd.xinetd	2020-05-19 09:57:23 UTC (rev 386616)
@@ -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/staging-x86_64/bftpd_AT.service (from rev 386615, bftpd/trunk/bftpd_AT.service)
===================================================================
--- staging-x86_64/bftpd_AT.service	                        (rev 0)
+++ staging-x86_64/bftpd_AT.service	2020-05-19 09:57:23 UTC (rev 386616)
@@ -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