Date: Saturday, August 13, 2011 @ 19:06:44 Author: thomas Revision: 135462
archrelease: copy trunk to extra-x86_64 Added: bftpd/repos/extra-x86_64/PKGBUILD (from rev 135461, bftpd/trunk/PKGBUILD) bftpd/repos/extra-x86_64/bftpd.install (from rev 135461, bftpd/trunk/bftpd.install) bftpd/repos/extra-x86_64/bftpd.logrotate (from rev 135461, bftpd/trunk/bftpd.logrotate) bftpd/repos/extra-x86_64/bftpd.pam (from rev 135461, bftpd/trunk/bftpd.pam) bftpd/repos/extra-x86_64/bftpd.rc (from rev 135461, bftpd/trunk/bftpd.rc) bftpd/repos/extra-x86_64/bftpd.xinetd (from rev 135461, bftpd/trunk/bftpd.xinetd) Deleted: bftpd/repos/extra-x86_64/PKGBUILD bftpd/repos/extra-x86_64/bftpd.install bftpd/repos/extra-x86_64/bftpd.logrotate bftpd/repos/extra-x86_64/bftpd.pam bftpd/repos/extra-x86_64/bftpd.rc bftpd/repos/extra-x86_64/bftpd.xinetd -----------------+ PKGBUILD | 106 +++++++++++++++++++++++++++--------------------------- bftpd.install | 22 +++++------ bftpd.logrotate | 10 ++--- bftpd.pam | 6 +-- bftpd.rc | 88 ++++++++++++++++++++++---------------------- bftpd.xinetd | 22 +++++------ 6 files changed, 127 insertions(+), 127 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2011-08-13 23:06:07 UTC (rev 135461) +++ PKGBUILD 2011-08-13 23:06:44 UTC (rev 135462) @@ -1,53 +0,0 @@ -# $Id$ -# Maintainer: Thomas Baechler <tho...@archlinux.org> - -pkgname=bftpd -pkgver=3.4 -pkgrel=1 -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) -md5sums=('dcee04b5fad8c918e86c49712424fcdd' - '56a1bf7738a6db2b2cff89e611f4f11a' - '853680dad0df39d0b4d2fb43d4be430a' - '96f82c38f3f540b53f3e5144900acf17' - 'ff70fd962666f4d74749a1c68167a966') - -build() { - cd "${srcdir}"/$pkgname - # The bftpd author keeps screwing up the release tarballs - rm -f config.{cache,status} - ./configure --prefix=/usr --enable-pam --mandir=/usr/share/man - make -} - -package() { - cd "${srcdir}"/$pkgname - install -d -m755 "${pkgdir}"/usr/{sbin,share/man/man8} - install -d -m755 "${pkgdir}"/var/log - 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 - rm -f "${pkgdir}"/var/log/bftpd.log - rmdir "${pkgdir}"/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 - # 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 -} Copied: bftpd/repos/extra-x86_64/PKGBUILD (from rev 135461, bftpd/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2011-08-13 23:06:44 UTC (rev 135462) @@ -0,0 +1,53 @@ +# $Id$ +# Maintainer: Thomas Baechler <tho...@archlinux.org> + +pkgname=bftpd +pkgver=3.6 +pkgrel=1 +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) +md5sums=('7c45b158646e3b266530bf46778fc2d0' + '56a1bf7738a6db2b2cff89e611f4f11a' + '853680dad0df39d0b4d2fb43d4be430a' + '96f82c38f3f540b53f3e5144900acf17' + 'ff70fd962666f4d74749a1c68167a966') + +build() { + cd "${srcdir}"/$pkgname + # The bftpd author keeps screwing up the release tarballs + rm -f config.{cache,status} + ./configure --prefix=/usr --enable-pam --mandir=/usr/share/man + make +} + +package() { + cd "${srcdir}"/$pkgname + install -d -m755 "${pkgdir}"/usr/{sbin,share/man/man8} + install -d -m755 "${pkgdir}"/var/log + 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 + rm -f "${pkgdir}"/var/log/bftpd.log + rmdir "${pkgdir}"/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 + # 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 +} Deleted: bftpd.install =================================================================== --- bftpd.install 2011-08-13 23:06:07 UTC (rev 135461) +++ bftpd.install 2011-08-13 23:06:44 UTC (rev 135462) @@ -1,11 +0,0 @@ -# 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/extra-x86_64/bftpd.install (from rev 135461, bftpd/trunk/bftpd.install) =================================================================== --- bftpd.install (rev 0) +++ bftpd.install 2011-08-13 23:06:44 UTC (rev 135462) @@ -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 +} Deleted: bftpd.logrotate =================================================================== --- bftpd.logrotate 2011-08-13 23:06:07 UTC (rev 135461) +++ bftpd.logrotate 2011-08-13 23:06:44 UTC (rev 135462) @@ -1,5 +0,0 @@ -/var/log/bftpd.log { - missingok - notifempty - delaycompress -} Copied: bftpd/repos/extra-x86_64/bftpd.logrotate (from rev 135461, bftpd/trunk/bftpd.logrotate) =================================================================== --- bftpd.logrotate (rev 0) +++ bftpd.logrotate 2011-08-13 23:06:44 UTC (rev 135462) @@ -0,0 +1,5 @@ +/var/log/bftpd.log { + missingok + notifempty + delaycompress +} Deleted: bftpd.pam =================================================================== --- bftpd.pam 2011-08-13 23:06:07 UTC (rev 135461) +++ bftpd.pam 2011-08-13 23:06:44 UTC (rev 135462) @@ -1,3 +0,0 @@ -auth required pam_unix.so -account required pam_unix.so -session required pam_unix.so Copied: bftpd/repos/extra-x86_64/bftpd.pam (from rev 135461, bftpd/trunk/bftpd.pam) =================================================================== --- bftpd.pam (rev 0) +++ bftpd.pam 2011-08-13 23:06:44 UTC (rev 135462) @@ -0,0 +1,3 @@ +auth required pam_unix.so +account required pam_unix.so +session required pam_unix.so Deleted: bftpd.rc =================================================================== --- bftpd.rc 2011-08-13 23:06:07 UTC (rev 135461) +++ bftpd.rc 2011-08-13 23:06:44 UTC (rev 135462) @@ -1,44 +0,0 @@ -#!/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/sbin/bftpd)" - if [ -z "$PID" ]; then - /usr/sbin/bftpd -d - if [ $? -gt 0 ]; then - stat_fail - else - # wait until it forks - sleep 2 - echo $(pidof -o %PPID /usr/sbin/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/extra-x86_64/bftpd.rc (from rev 135461, bftpd/trunk/bftpd.rc) =================================================================== --- bftpd.rc (rev 0) +++ bftpd.rc 2011-08-13 23:06:44 UTC (rev 135462) @@ -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/sbin/bftpd)" + if [ -z "$PID" ]; then + /usr/sbin/bftpd -d + if [ $? -gt 0 ]; then + stat_fail + else + # wait until it forks + sleep 2 + echo $(pidof -o %PPID /usr/sbin/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 Deleted: bftpd.xinetd =================================================================== --- bftpd.xinetd 2011-08-13 23:06:07 UTC (rev 135461) +++ bftpd.xinetd 2011-08-13 23:06:44 UTC (rev 135462) @@ -1,11 +0,0 @@ -service ftp -{ - socket_type = stream - wait = no - user = root - server = /usr/sbin/bftpd - server_args = -i - log_on_success += HOST DURATION - log_on_failure += HOST - disable = yes -} Copied: bftpd/repos/extra-x86_64/bftpd.xinetd (from rev 135461, bftpd/trunk/bftpd.xinetd) =================================================================== --- bftpd.xinetd (rev 0) +++ bftpd.xinetd 2011-08-13 23:06:44 UTC (rev 135462) @@ -0,0 +1,11 @@ +service ftp +{ + socket_type = stream + wait = no + user = root + server = /usr/sbin/bftpd + server_args = -i + log_on_success += HOST DURATION + log_on_failure += HOST + disable = yes +}