[arch-commits] Commit in bftpd/repos (20 files)
Thomas Bächler
thomas at archlinux.org
Wed Aug 29 23:50:48 UTC 2012
Date: Wednesday, August 29, 2012 @ 19:50:48
Author: thomas
Revision: 165788
archrelease: copy trunk to testing-i686, testing-x86_64
Added:
bftpd/repos/testing-i686/
bftpd/repos/testing-i686/PKGBUILD
(from rev 165787, bftpd/trunk/PKGBUILD)
bftpd/repos/testing-i686/bftpd.install
(from rev 165787, bftpd/trunk/bftpd.install)
bftpd/repos/testing-i686/bftpd.logrotate
(from rev 165787, bftpd/trunk/bftpd.logrotate)
bftpd/repos/testing-i686/bftpd.pam
(from rev 165787, bftpd/trunk/bftpd.pam)
bftpd/repos/testing-i686/bftpd.rc
(from rev 165787, bftpd/trunk/bftpd.rc)
bftpd/repos/testing-i686/bftpd.service
(from rev 165787, bftpd/trunk/bftpd.service)
bftpd/repos/testing-i686/bftpd.socket
(from rev 165787, bftpd/trunk/bftpd.socket)
bftpd/repos/testing-i686/bftpd.xinetd
(from rev 165787, bftpd/trunk/bftpd.xinetd)
bftpd/repos/testing-i686/bftpd_AT.service
(from rev 165787, bftpd/trunk/bftpd_AT.service)
bftpd/repos/testing-x86_64/
bftpd/repos/testing-x86_64/PKGBUILD
(from rev 165787, bftpd/trunk/PKGBUILD)
bftpd/repos/testing-x86_64/bftpd.install
(from rev 165787, bftpd/trunk/bftpd.install)
bftpd/repos/testing-x86_64/bftpd.logrotate
(from rev 165787, bftpd/trunk/bftpd.logrotate)
bftpd/repos/testing-x86_64/bftpd.pam
(from rev 165787, bftpd/trunk/bftpd.pam)
bftpd/repos/testing-x86_64/bftpd.rc
(from rev 165787, bftpd/trunk/bftpd.rc)
bftpd/repos/testing-x86_64/bftpd.service
(from rev 165787, bftpd/trunk/bftpd.service)
bftpd/repos/testing-x86_64/bftpd.socket
(from rev 165787, bftpd/trunk/bftpd.socket)
bftpd/repos/testing-x86_64/bftpd.xinetd
(from rev 165787, bftpd/trunk/bftpd.xinetd)
bftpd/repos/testing-x86_64/bftpd_AT.service
(from rev 165787, bftpd/trunk/bftpd_AT.service)
---------------------------------+
testing-i686/PKGBUILD | 70 ++++++++++++++++++++++++++++++++++++++
testing-i686/bftpd.install | 11 +++++
testing-i686/bftpd.logrotate | 5 ++
testing-i686/bftpd.pam | 3 +
testing-i686/bftpd.rc | 44 +++++++++++++++++++++++
testing-i686/bftpd.service | 10 +++++
testing-i686/bftpd.socket | 10 +++++
testing-i686/bftpd.xinetd | 11 +++++
testing-i686/bftpd_AT.service | 8 ++++
testing-x86_64/PKGBUILD | 70 ++++++++++++++++++++++++++++++++++++++
testing-x86_64/bftpd.install | 11 +++++
testing-x86_64/bftpd.logrotate | 5 ++
testing-x86_64/bftpd.pam | 3 +
testing-x86_64/bftpd.rc | 44 +++++++++++++++++++++++
testing-x86_64/bftpd.service | 10 +++++
testing-x86_64/bftpd.socket | 10 +++++
testing-x86_64/bftpd.xinetd | 11 +++++
testing-x86_64/bftpd_AT.service | 8 ++++
18 files changed, 344 insertions(+)
Copied: bftpd/repos/testing-i686/PKGBUILD (from rev 165787, bftpd/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD (rev 0)
+++ testing-i686/PKGBUILD 2012-08-29 23:50:48 UTC (rev 165788)
@@ -0,0 +1,70 @@
+# $Id$
+# Maintainer: Thomas Bächler <thomas at archlinux.org>
+
+pkgname=bftpd
+pkgver=3.8
+pkgrel=2
+pkgdesc="Small, easy-to-configure FTP server"
+arch=(i686 x86_64)
+url="http://bftpd.sourceforge.net/"
+license=('GPL')
+depends=('glibc' 'pam')
+install=bftpd.install
+backup=(etc/bftpd.conf
+ etc/logrotate.d/bftpd
+ etc/pam.d/bftpd
+ etc/xinetd.d/bftpd)
+source=(http://downloads.sourceforge.net/sourceforge/bftpd/bftpd-$pkgver.tar.gz
+ bftpd.rc
+ bftpd.logrotate
+ bftpd.pam
+ bftpd.xinetd
+ bftpd.service
+ bftpd.socket
+ bftpd_AT.service)
+md5sums=('880c1274e623ddd1e3e37f9f0cf09d70'
+ '2419d7293000813f9d01bd357181445c'
+ '853680dad0df39d0b4d2fb43d4be430a'
+ '96f82c38f3f540b53f3e5144900acf17'
+ '23feb84e8ecbae5df320b49e01821d9a'
+ '94b483f7c7b65580a30ebc6a8fe80d1b'
+ '93509ee83148160f60c009a2192a6774'
+ 'cb6a3334a7c8b5b8b559a643a65928c4')
+
+build() {
+ cd "${srcdir}"/$pkgname
+ # The bftpd author keeps screwing up the release tarballs
+ rm -f config.{cache,status}
+ sed 's|$(prefix)/sbin|$(prefix)/bin|g' -i Makefile.in
+ ./configure --prefix=/usr \
+ --enable-pam \
+ --mandir=/usr/share/man \
+ --sysconfdir=/etc \
+ make
+}
+
+package() {
+ cd "${srcdir}"/$pkgname
+ install -d -m755 "${pkgdir}"/usr/{bin,share/man/man8}
+ install -D -m644 "${srcdir}"/bftpd.logrotate "${pkgdir}"/etc/logrotate.d/bftpd
+ install -D -m755 "${srcdir}"/bftpd.rc "${pkgdir}"/etc/rc.d/bftpd
+ make DESTDIR="${pkgdir}" install
+ # Remove log file and /var/run from the package
+ # This guy keeps messing up his Makefile, /usr/var, wtf?
+ rm -f "${pkgdir}"/usr/var/log/bftpd.log
+ rmdir "${pkgdir}"/usr/var/{run/bftpd,run,log,}
+ # Install PAM file
+ mkdir -p "${pkgdir}"/etc/pam.d
+ cp "${srcdir}"/bftpd.pam "${pkgdir}"/etc/pam.d/bftpd
+ # Install xinetd file
+ install -D -m644 "${srcdir}"/bftpd.xinetd "${pkgdir}"/etc/xinetd.d/bftpd
+ # Did I mention this guy keeps messing up his Makefiles?
+ mv "${pkgdir}"/usr/etc/bftpd.conf "${pkgdir}"/etc/
+ rmdir "${pkgdir}"/usr/etc
+ # 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 "${pkgdir}"/etc/bftpd.conf
+ # Install systemd files
+ install -D -m644 "${srcdir}"/bftpd.service "${pkgdir}"/usr/lib/systemd/system/bftpd.service
+ install -D -m644 "${srcdir}"/bftpd_AT.service "${pkgdir}"/usr/lib/systemd/system/bftpd at .service
+ install -D -m644 "${srcdir}"/bftpd.socket "${pkgdir}"/usr/lib/systemd/system/bftpd.socket
+}
Copied: bftpd/repos/testing-i686/bftpd.install (from rev 165787, bftpd/trunk/bftpd.install)
===================================================================
--- testing-i686/bftpd.install (rev 0)
+++ testing-i686/bftpd.install 2012-08-29 23:50:48 UTC (rev 165788)
@@ -0,0 +1,11 @@
+# arg 1: the new package version
+# arg 2: the old package version
+
+post_install () {
+ [ ! -f /var/log/bftpd.log ] && touch /var/log/bftpd.log
+ true
+}
+
+post_upgrade() {
+ post_install $1
+}
Copied: bftpd/repos/testing-i686/bftpd.logrotate (from rev 165787, bftpd/trunk/bftpd.logrotate)
===================================================================
--- testing-i686/bftpd.logrotate (rev 0)
+++ testing-i686/bftpd.logrotate 2012-08-29 23:50:48 UTC (rev 165788)
@@ -0,0 +1,5 @@
+/var/log/bftpd.log {
+ missingok
+ notifempty
+ delaycompress
+}
Copied: bftpd/repos/testing-i686/bftpd.pam (from rev 165787, bftpd/trunk/bftpd.pam)
===================================================================
--- testing-i686/bftpd.pam (rev 0)
+++ testing-i686/bftpd.pam 2012-08-29 23:50:48 UTC (rev 165788)
@@ -0,0 +1,3 @@
+auth required pam_unix.so
+account required pam_unix.so
+session required pam_unix.so
Copied: bftpd/repos/testing-i686/bftpd.rc (from rev 165787, bftpd/trunk/bftpd.rc)
===================================================================
--- testing-i686/bftpd.rc (rev 0)
+++ testing-i686/bftpd.rc 2012-08-29 23:50:48 UTC (rev 165788)
@@ -0,0 +1,44 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+PIDFILE="/var/run/bftpd.pid"
+
+case "$1" in
+ start)
+ stat_busy "Starting bftpd Server"
+ PID="$(pidof -o %PPID /usr/bin/bftpd)"
+ if [ -z "$PID" ]; then
+ /usr/bin/bftpd -d
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ # wait until it forks
+ sleep 2
+ echo $(pidof -o %PPID /usr/bin/bftpd) > $PIDFILE
+ add_daemon bftpd
+ stat_done
+ fi
+ else
+ stat_fail
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping bftpd Server"
+ if [ -f $PIDFILE ] && kill -0 $(cat $PIDFILE); then
+ kill -15 $(cat $PIDFILE)
+ rm $PIDFILE
+ stat_done
+ else
+ stat_fail
+ fi
+ ;;
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+esac
Copied: bftpd/repos/testing-i686/bftpd.service (from rev 165787, bftpd/trunk/bftpd.service)
===================================================================
--- testing-i686/bftpd.service (rev 0)
+++ testing-i686/bftpd.service 2012-08-29 23:50:48 UTC (rev 165788)
@@ -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-i686/bftpd.socket (from rev 165787, bftpd/trunk/bftpd.socket)
===================================================================
--- testing-i686/bftpd.socket (rev 0)
+++ testing-i686/bftpd.socket 2012-08-29 23:50:48 UTC (rev 165788)
@@ -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-i686/bftpd.xinetd (from rev 165787, bftpd/trunk/bftpd.xinetd)
===================================================================
--- testing-i686/bftpd.xinetd (rev 0)
+++ testing-i686/bftpd.xinetd 2012-08-29 23:50:48 UTC (rev 165788)
@@ -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-i686/bftpd_AT.service (from rev 165787, bftpd/trunk/bftpd_AT.service)
===================================================================
--- testing-i686/bftpd_AT.service (rev 0)
+++ testing-i686/bftpd_AT.service 2012-08-29 23:50:48 UTC (rev 165788)
@@ -0,0 +1,8 @@
+[Unit]
+Description=bftpd daemon
+
+[Service]
+ExecStart=/usr/bin/bftpd -i
+StandardInput=socket
+StandardOutput=socket
+StandardError=socket
Copied: bftpd/repos/testing-x86_64/PKGBUILD (from rev 165787, bftpd/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2012-08-29 23:50:48 UTC (rev 165788)
@@ -0,0 +1,70 @@
+# $Id$
+# Maintainer: Thomas Bächler <thomas at archlinux.org>
+
+pkgname=bftpd
+pkgver=3.8
+pkgrel=2
+pkgdesc="Small, easy-to-configure FTP server"
+arch=(i686 x86_64)
+url="http://bftpd.sourceforge.net/"
+license=('GPL')
+depends=('glibc' 'pam')
+install=bftpd.install
+backup=(etc/bftpd.conf
+ etc/logrotate.d/bftpd
+ etc/pam.d/bftpd
+ etc/xinetd.d/bftpd)
+source=(http://downloads.sourceforge.net/sourceforge/bftpd/bftpd-$pkgver.tar.gz
+ bftpd.rc
+ bftpd.logrotate
+ bftpd.pam
+ bftpd.xinetd
+ bftpd.service
+ bftpd.socket
+ bftpd_AT.service)
+md5sums=('880c1274e623ddd1e3e37f9f0cf09d70'
+ '2419d7293000813f9d01bd357181445c'
+ '853680dad0df39d0b4d2fb43d4be430a'
+ '96f82c38f3f540b53f3e5144900acf17'
+ '23feb84e8ecbae5df320b49e01821d9a'
+ '94b483f7c7b65580a30ebc6a8fe80d1b'
+ '93509ee83148160f60c009a2192a6774'
+ 'cb6a3334a7c8b5b8b559a643a65928c4')
+
+build() {
+ cd "${srcdir}"/$pkgname
+ # The bftpd author keeps screwing up the release tarballs
+ rm -f config.{cache,status}
+ sed 's|$(prefix)/sbin|$(prefix)/bin|g' -i Makefile.in
+ ./configure --prefix=/usr \
+ --enable-pam \
+ --mandir=/usr/share/man \
+ --sysconfdir=/etc \
+ make
+}
+
+package() {
+ cd "${srcdir}"/$pkgname
+ install -d -m755 "${pkgdir}"/usr/{bin,share/man/man8}
+ install -D -m644 "${srcdir}"/bftpd.logrotate "${pkgdir}"/etc/logrotate.d/bftpd
+ install -D -m755 "${srcdir}"/bftpd.rc "${pkgdir}"/etc/rc.d/bftpd
+ make DESTDIR="${pkgdir}" install
+ # Remove log file and /var/run from the package
+ # This guy keeps messing up his Makefile, /usr/var, wtf?
+ rm -f "${pkgdir}"/usr/var/log/bftpd.log
+ rmdir "${pkgdir}"/usr/var/{run/bftpd,run,log,}
+ # Install PAM file
+ mkdir -p "${pkgdir}"/etc/pam.d
+ cp "${srcdir}"/bftpd.pam "${pkgdir}"/etc/pam.d/bftpd
+ # Install xinetd file
+ install -D -m644 "${srcdir}"/bftpd.xinetd "${pkgdir}"/etc/xinetd.d/bftpd
+ # Did I mention this guy keeps messing up his Makefiles?
+ mv "${pkgdir}"/usr/etc/bftpd.conf "${pkgdir}"/etc/
+ rmdir "${pkgdir}"/usr/etc
+ # 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 "${pkgdir}"/etc/bftpd.conf
+ # Install systemd files
+ install -D -m644 "${srcdir}"/bftpd.service "${pkgdir}"/usr/lib/systemd/system/bftpd.service
+ install -D -m644 "${srcdir}"/bftpd_AT.service "${pkgdir}"/usr/lib/systemd/system/bftpd at .service
+ install -D -m644 "${srcdir}"/bftpd.socket "${pkgdir}"/usr/lib/systemd/system/bftpd.socket
+}
Copied: bftpd/repos/testing-x86_64/bftpd.install (from rev 165787, bftpd/trunk/bftpd.install)
===================================================================
--- testing-x86_64/bftpd.install (rev 0)
+++ testing-x86_64/bftpd.install 2012-08-29 23:50:48 UTC (rev 165788)
@@ -0,0 +1,11 @@
+# arg 1: the new package version
+# arg 2: the old package version
+
+post_install () {
+ [ ! -f /var/log/bftpd.log ] && touch /var/log/bftpd.log
+ true
+}
+
+post_upgrade() {
+ post_install $1
+}
Copied: bftpd/repos/testing-x86_64/bftpd.logrotate (from rev 165787, bftpd/trunk/bftpd.logrotate)
===================================================================
--- testing-x86_64/bftpd.logrotate (rev 0)
+++ testing-x86_64/bftpd.logrotate 2012-08-29 23:50:48 UTC (rev 165788)
@@ -0,0 +1,5 @@
+/var/log/bftpd.log {
+ missingok
+ notifempty
+ delaycompress
+}
Copied: bftpd/repos/testing-x86_64/bftpd.pam (from rev 165787, bftpd/trunk/bftpd.pam)
===================================================================
--- testing-x86_64/bftpd.pam (rev 0)
+++ testing-x86_64/bftpd.pam 2012-08-29 23:50:48 UTC (rev 165788)
@@ -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.rc (from rev 165787, bftpd/trunk/bftpd.rc)
===================================================================
--- testing-x86_64/bftpd.rc (rev 0)
+++ testing-x86_64/bftpd.rc 2012-08-29 23:50:48 UTC (rev 165788)
@@ -0,0 +1,44 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+PIDFILE="/var/run/bftpd.pid"
+
+case "$1" in
+ start)
+ stat_busy "Starting bftpd Server"
+ PID="$(pidof -o %PPID /usr/bin/bftpd)"
+ if [ -z "$PID" ]; then
+ /usr/bin/bftpd -d
+ if [ $? -gt 0 ]; then
+ stat_fail
+ else
+ # wait until it forks
+ sleep 2
+ echo $(pidof -o %PPID /usr/bin/bftpd) > $PIDFILE
+ add_daemon bftpd
+ stat_done
+ fi
+ else
+ stat_fail
+ fi
+ ;;
+ stop)
+ stat_busy "Stopping bftpd Server"
+ if [ -f $PIDFILE ] && kill -0 $(cat $PIDFILE); then
+ kill -15 $(cat $PIDFILE)
+ rm $PIDFILE
+ stat_done
+ else
+ stat_fail
+ fi
+ ;;
+ restart)
+ $0 stop
+ sleep 1
+ $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|restart}"
+esac
Copied: bftpd/repos/testing-x86_64/bftpd.service (from rev 165787, bftpd/trunk/bftpd.service)
===================================================================
--- testing-x86_64/bftpd.service (rev 0)
+++ testing-x86_64/bftpd.service 2012-08-29 23:50:48 UTC (rev 165788)
@@ -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 165787, bftpd/trunk/bftpd.socket)
===================================================================
--- testing-x86_64/bftpd.socket (rev 0)
+++ testing-x86_64/bftpd.socket 2012-08-29 23:50:48 UTC (rev 165788)
@@ -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.xinetd (from rev 165787, bftpd/trunk/bftpd.xinetd)
===================================================================
--- testing-x86_64/bftpd.xinetd (rev 0)
+++ testing-x86_64/bftpd.xinetd 2012-08-29 23:50:48 UTC (rev 165788)
@@ -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 165787, bftpd/trunk/bftpd_AT.service)
===================================================================
--- testing-x86_64/bftpd_AT.service (rev 0)
+++ testing-x86_64/bftpd_AT.service 2012-08-29 23:50:48 UTC (rev 165788)
@@ -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