Date: Thursday, March 7, 2013 @ 21:06:11 Author: bpiotrowski Revision: 85859
archrelease: copy trunk to community-staging-i686, community-staging-x86_64 Added: proftpd/repos/community-staging-i686/ proftpd/repos/community-staging-i686/PKGBUILD (from rev 85858, proftpd/trunk/PKGBUILD) proftpd/repos/community-staging-i686/proftpd (from rev 85858, proftpd/trunk/proftpd) proftpd/repos/community-staging-i686/proftpd.conf.d (from rev 85858, proftpd/trunk/proftpd.conf.d) proftpd/repos/community-staging-i686/proftpd.install (from rev 85858, proftpd/trunk/proftpd.install) proftpd/repos/community-staging-i686/proftpd.logrotate (from rev 85858, proftpd/trunk/proftpd.logrotate) proftpd/repos/community-staging-i686/proftpd.service (from rev 85858, proftpd/trunk/proftpd.service) proftpd/repos/community-staging-i686/proftpd.tmpfiles (from rev 85858, proftpd/trunk/proftpd.tmpfiles) proftpd/repos/community-staging-x86_64/ proftpd/repos/community-staging-x86_64/PKGBUILD (from rev 85858, proftpd/trunk/PKGBUILD) proftpd/repos/community-staging-x86_64/proftpd (from rev 85858, proftpd/trunk/proftpd) proftpd/repos/community-staging-x86_64/proftpd.conf.d (from rev 85858, proftpd/trunk/proftpd.conf.d) proftpd/repos/community-staging-x86_64/proftpd.install (from rev 85858, proftpd/trunk/proftpd.install) proftpd/repos/community-staging-x86_64/proftpd.logrotate (from rev 85858, proftpd/trunk/proftpd.logrotate) proftpd/repos/community-staging-x86_64/proftpd.service (from rev 85858, proftpd/trunk/proftpd.service) proftpd/repos/community-staging-x86_64/proftpd.tmpfiles (from rev 85858, proftpd/trunk/proftpd.tmpfiles) --------------------------------------------+ community-staging-i686/PKGBUILD | 64 +++++++++++++++++++++++++++ community-staging-i686/proftpd | 41 +++++++++++++++++ community-staging-i686/proftpd.conf.d | 4 + community-staging-i686/proftpd.install | 3 + community-staging-i686/proftpd.logrotate | 5 ++ community-staging-i686/proftpd.service | 12 +++++ community-staging-i686/proftpd.tmpfiles | 1 community-staging-x86_64/PKGBUILD | 64 +++++++++++++++++++++++++++ community-staging-x86_64/proftpd | 41 +++++++++++++++++ community-staging-x86_64/proftpd.conf.d | 4 + community-staging-x86_64/proftpd.install | 3 + community-staging-x86_64/proftpd.logrotate | 5 ++ community-staging-x86_64/proftpd.service | 12 +++++ community-staging-x86_64/proftpd.tmpfiles | 1 14 files changed, 260 insertions(+) Copied: proftpd/repos/community-staging-i686/PKGBUILD (from rev 85858, proftpd/trunk/PKGBUILD) =================================================================== --- community-staging-i686/PKGBUILD (rev 0) +++ community-staging-i686/PKGBUILD 2013-03-07 20:06:11 UTC (rev 85859) @@ -0,0 +1,64 @@ +# $Id$ +# Maintainer: +# Contributor: Daniel J Griffiths <ghost1...@archlinux.us> + +pkgname=proftpd +pkgver=1.3.4c +pkgrel=2 +epoch=1 +pkgdesc="A high-performance, scalable FTP server" +arch=('i686' 'x86_64') +url="http://www.proftpd.org/" +license=('GPL') +depends=('libmariadbclient' 'postgresql-libs') +backup=('etc/proftpd.conf' 'etc/conf.d/proftpd') +install=${pkgname}.install +source=(ftp://ftp.proftpd.org/distrib/source/${pkgname}-${pkgver}.tar.gz{,.asc} + 'proftpd' 'proftpd.logrotate' 'proftpd.conf.d' 'proftpd.service' + 'proftpd.tmpfiles') +md5sums=('65f61e953bea249f8377e681594143a5' + '7f00fb7bf757b4bd795afdf0a3f5e556' + 'c439a0a1dbc21b604d8382da87aa021b' + 'ddb09eb13131becdf0e081eef413116b' + '71d5932b0461c318ed68c2c0c2660736' + '5709f27ebcbe906e52963ea75e4fde64' + '907b149a120b046f05647c73502e23c9') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + ./configure --prefix=/usr \ + --libexecdir=/usr/lib \ + --disable-pam \ + --with-modules=mod_quotatab:mod_quotatab_sql:mod_quotatab_file:mod_tls:mod_ldap:mod_sql:mod_sql_mysql:mod_sql_postgres \ + --sysconfdir=/etc \ + --localstatedir=/run/proftpd \ + --enable-ctrls \ + --enable-ipv6 \ + --with-includes=/usr/include/mysql:/usr/include/postgresql \ + --with-libraries=/usr/lib/mysql:/usr/lib/postgresql \ + --enable-nls \ + --with-systemd + + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + + make DESTDIR="${pkgdir}" install + sed -i 's|nogroup|nobody|g' "${pkgdir}/etc/proftpd.conf" + + install -Dm644 ../proftpd.logrotate "${pkgdir}/etc/logrotate.d/proftpd" + install -Dm644 ../proftpd.conf.d "${pkgdir}/etc/conf.d/proftpd" + install -Dm755 ../proftpd "${pkgdir}/etc/rc.d/proftpd" + install -Dm755 contrib/xferstats.holger-preiss "${pkgdir}/usr/bin/ftpstats" + + install -d "${pkgdir}/usr/lib/systemd/system/" + install -m644 "${srcdir}"/proftpd.service "${pkgdir}/usr/lib/systemd/system/" + install -Dm644 "${srcdir}"/proftpd.tmpfiles \ + "${pkgdir}"/usr/lib/tmpfiles.d/proftpd.conf + + # /run is tmpfs + rmdir "${pkgdir}"/run/{proftpd,} +} Copied: proftpd/repos/community-staging-i686/proftpd (from rev 85858, proftpd/trunk/proftpd) =================================================================== --- community-staging-i686/proftpd (rev 0) +++ community-staging-i686/proftpd 2013-03-07 20:06:11 UTC (rev 85859) @@ -0,0 +1,41 @@ +#!/bin/bash + +# source application-specific settings +PROFTPD_ARGS= +[ -f /etc/conf.d/proftpd ] && . /etc/conf.d/proftpd + +. /etc/rc.conf +. /etc/rc.d/functions + +case "$1" in + start) + stat_busy "Starting ProFTPd Server" + /usr/sbin/proftpd ${PROFTPD_ARGS} + if [ $? -gt 0 ]; then + stat_fail + else + add_daemon proftpd + stat_done + fi + ;; + stop) + stat_busy "Stopping ProFTPd Server" + [ -f /run/proftpd/proftpd.pid ] && kill $(cat /run/proftpd/proftpd.pid) &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm -f /run/proftpd/proftpd.pid + rm_daemon proftpd + stat_done + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 + Copied: proftpd/repos/community-staging-i686/proftpd.conf.d (from rev 85858, proftpd/trunk/proftpd.conf.d) =================================================================== --- community-staging-i686/proftpd.conf.d (rev 0) +++ community-staging-i686/proftpd.conf.d 2013-03-07 20:06:11 UTC (rev 85859) @@ -0,0 +1,4 @@ +# +# Parameters to be passed to proftpd +# +PROFTPD_ARGS="" Copied: proftpd/repos/community-staging-i686/proftpd.install (from rev 85858, proftpd/trunk/proftpd.install) =================================================================== --- community-staging-i686/proftpd.install (rev 0) +++ community-staging-i686/proftpd.install 2013-03-07 20:06:11 UTC (rev 85859) @@ -0,0 +1,3 @@ +post_install() { + systemd-tmpfiles --create proftpd.conf +} Copied: proftpd/repos/community-staging-i686/proftpd.logrotate (from rev 85858, proftpd/trunk/proftpd.logrotate) =================================================================== --- community-staging-i686/proftpd.logrotate (rev 0) +++ community-staging-i686/proftpd.logrotate 2013-03-07 20:06:11 UTC (rev 85859) @@ -0,0 +1,5 @@ +/var/log/xferlog { + postrotate + /bin/kill -HUP `cat /var/run/proftpd.pid 2>/dev/null` 2>/dev/null || true + endscript +} Copied: proftpd/repos/community-staging-i686/proftpd.service (from rev 85858, proftpd/trunk/proftpd.service) =================================================================== --- community-staging-i686/proftpd.service (rev 0) +++ community-staging-i686/proftpd.service 2013-03-07 20:06:11 UTC (rev 85859) @@ -0,0 +1,12 @@ +[Unit] +Description=ProFTPD FTP Server +After=network.target + +[Service] +Type=forking +PIDFile=/run/proftpd/proftpd.pid +ExecStart=/usr/sbin/proftpd +ExecReload=/bin/kill -HUP $MAINPID + +[Install] +WantedBy = multi-user.target Copied: proftpd/repos/community-staging-i686/proftpd.tmpfiles (from rev 85858, proftpd/trunk/proftpd.tmpfiles) =================================================================== --- community-staging-i686/proftpd.tmpfiles (rev 0) +++ community-staging-i686/proftpd.tmpfiles 2013-03-07 20:06:11 UTC (rev 85859) @@ -0,0 +1 @@ +d /run/proftpd 0755 root root Copied: proftpd/repos/community-staging-x86_64/PKGBUILD (from rev 85858, proftpd/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2013-03-07 20:06:11 UTC (rev 85859) @@ -0,0 +1,64 @@ +# $Id$ +# Maintainer: +# Contributor: Daniel J Griffiths <ghost1...@archlinux.us> + +pkgname=proftpd +pkgver=1.3.4c +pkgrel=2 +epoch=1 +pkgdesc="A high-performance, scalable FTP server" +arch=('i686' 'x86_64') +url="http://www.proftpd.org/" +license=('GPL') +depends=('libmariadbclient' 'postgresql-libs') +backup=('etc/proftpd.conf' 'etc/conf.d/proftpd') +install=${pkgname}.install +source=(ftp://ftp.proftpd.org/distrib/source/${pkgname}-${pkgver}.tar.gz{,.asc} + 'proftpd' 'proftpd.logrotate' 'proftpd.conf.d' 'proftpd.service' + 'proftpd.tmpfiles') +md5sums=('65f61e953bea249f8377e681594143a5' + '7f00fb7bf757b4bd795afdf0a3f5e556' + 'c439a0a1dbc21b604d8382da87aa021b' + 'ddb09eb13131becdf0e081eef413116b' + '71d5932b0461c318ed68c2c0c2660736' + '5709f27ebcbe906e52963ea75e4fde64' + '907b149a120b046f05647c73502e23c9') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + ./configure --prefix=/usr \ + --libexecdir=/usr/lib \ + --disable-pam \ + --with-modules=mod_quotatab:mod_quotatab_sql:mod_quotatab_file:mod_tls:mod_ldap:mod_sql:mod_sql_mysql:mod_sql_postgres \ + --sysconfdir=/etc \ + --localstatedir=/run/proftpd \ + --enable-ctrls \ + --enable-ipv6 \ + --with-includes=/usr/include/mysql:/usr/include/postgresql \ + --with-libraries=/usr/lib/mysql:/usr/lib/postgresql \ + --enable-nls \ + --with-systemd + + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + + make DESTDIR="${pkgdir}" install + sed -i 's|nogroup|nobody|g' "${pkgdir}/etc/proftpd.conf" + + install -Dm644 ../proftpd.logrotate "${pkgdir}/etc/logrotate.d/proftpd" + install -Dm644 ../proftpd.conf.d "${pkgdir}/etc/conf.d/proftpd" + install -Dm755 ../proftpd "${pkgdir}/etc/rc.d/proftpd" + install -Dm755 contrib/xferstats.holger-preiss "${pkgdir}/usr/bin/ftpstats" + + install -d "${pkgdir}/usr/lib/systemd/system/" + install -m644 "${srcdir}"/proftpd.service "${pkgdir}/usr/lib/systemd/system/" + install -Dm644 "${srcdir}"/proftpd.tmpfiles \ + "${pkgdir}"/usr/lib/tmpfiles.d/proftpd.conf + + # /run is tmpfs + rmdir "${pkgdir}"/run/{proftpd,} +} Copied: proftpd/repos/community-staging-x86_64/proftpd (from rev 85858, proftpd/trunk/proftpd) =================================================================== --- community-staging-x86_64/proftpd (rev 0) +++ community-staging-x86_64/proftpd 2013-03-07 20:06:11 UTC (rev 85859) @@ -0,0 +1,41 @@ +#!/bin/bash + +# source application-specific settings +PROFTPD_ARGS= +[ -f /etc/conf.d/proftpd ] && . /etc/conf.d/proftpd + +. /etc/rc.conf +. /etc/rc.d/functions + +case "$1" in + start) + stat_busy "Starting ProFTPd Server" + /usr/sbin/proftpd ${PROFTPD_ARGS} + if [ $? -gt 0 ]; then + stat_fail + else + add_daemon proftpd + stat_done + fi + ;; + stop) + stat_busy "Stopping ProFTPd Server" + [ -f /run/proftpd/proftpd.pid ] && kill $(cat /run/proftpd/proftpd.pid) &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm -f /run/proftpd/proftpd.pid + rm_daemon proftpd + stat_done + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 + Copied: proftpd/repos/community-staging-x86_64/proftpd.conf.d (from rev 85858, proftpd/trunk/proftpd.conf.d) =================================================================== --- community-staging-x86_64/proftpd.conf.d (rev 0) +++ community-staging-x86_64/proftpd.conf.d 2013-03-07 20:06:11 UTC (rev 85859) @@ -0,0 +1,4 @@ +# +# Parameters to be passed to proftpd +# +PROFTPD_ARGS="" Copied: proftpd/repos/community-staging-x86_64/proftpd.install (from rev 85858, proftpd/trunk/proftpd.install) =================================================================== --- community-staging-x86_64/proftpd.install (rev 0) +++ community-staging-x86_64/proftpd.install 2013-03-07 20:06:11 UTC (rev 85859) @@ -0,0 +1,3 @@ +post_install() { + systemd-tmpfiles --create proftpd.conf +} Copied: proftpd/repos/community-staging-x86_64/proftpd.logrotate (from rev 85858, proftpd/trunk/proftpd.logrotate) =================================================================== --- community-staging-x86_64/proftpd.logrotate (rev 0) +++ community-staging-x86_64/proftpd.logrotate 2013-03-07 20:06:11 UTC (rev 85859) @@ -0,0 +1,5 @@ +/var/log/xferlog { + postrotate + /bin/kill -HUP `cat /var/run/proftpd.pid 2>/dev/null` 2>/dev/null || true + endscript +} Copied: proftpd/repos/community-staging-x86_64/proftpd.service (from rev 85858, proftpd/trunk/proftpd.service) =================================================================== --- community-staging-x86_64/proftpd.service (rev 0) +++ community-staging-x86_64/proftpd.service 2013-03-07 20:06:11 UTC (rev 85859) @@ -0,0 +1,12 @@ +[Unit] +Description=ProFTPD FTP Server +After=network.target + +[Service] +Type=forking +PIDFile=/run/proftpd/proftpd.pid +ExecStart=/usr/sbin/proftpd +ExecReload=/bin/kill -HUP $MAINPID + +[Install] +WantedBy = multi-user.target Copied: proftpd/repos/community-staging-x86_64/proftpd.tmpfiles (from rev 85858, proftpd/trunk/proftpd.tmpfiles) =================================================================== --- community-staging-x86_64/proftpd.tmpfiles (rev 0) +++ community-staging-x86_64/proftpd.tmpfiles 2013-03-07 20:06:11 UTC (rev 85859) @@ -0,0 +1 @@ +d /run/proftpd 0755 root root