summaryrefslogtreecommitdiff
path: root/extra/bftpd
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-03-18 13:39:32 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2012-03-18 13:39:32 +0100
commit7e6a790c47fb44426cdda8ea0aca8c247a524c5e (patch)
treea120e55f735660c1ab1e7fa6174fe28fb3108d1f /extra/bftpd
parente5592a9039761a22a117469303c77a4215ad5048 (diff)
parentd14a25fc4f65ae3d6e62f4668e9cb88d74834255 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/gpsmanshp/PKGBUILD community/parrot/PKGBUILD extra/kdeadmin/PKGBUILD extra/kdebindings-python/PKGBUILD extra/kdegames/PKGBUILD extra/kdesdk/PKGBUILD extra/libmtp/PKGBUILD extra/libreoffice/PKGBUILD extra/samba/PKGBUILD multilib/lib32-libx11/PKGBUILD testing/xf86-video-mga/PKGBUILD testing/xf86-video-mga/git-fixes.patch
Diffstat (limited to 'extra/bftpd')
-rw-r--r--extra/bftpd/PKGBUILD22
1 files changed, 14 insertions, 8 deletions
diff --git a/extra/bftpd/PKGBUILD b/extra/bftpd/PKGBUILD
index 664c29d51..1d87ba410 100644
--- a/extra/bftpd/PKGBUILD
+++ b/extra/bftpd/PKGBUILD
@@ -1,8 +1,8 @@
-# $Id: PKGBUILD 135462 2011-08-13 23:06:44Z thomas $
-# Maintainer: Thomas Baechler <thomas@archlinux.org>
+# $Id: PKGBUILD 153626 2012-03-16 18:21:58Z thomas $
+# Maintainer: Thomas Bächler <thomas@archlinux.org>
pkgname=bftpd
-pkgver=3.6
+pkgver=3.7
pkgrel=1
pkgdesc="Small, easy-to-configure FTP server"
arch=(i686 x86_64 'mips64el')
@@ -19,7 +19,7 @@ source=(http://downloads.sourceforge.net/sourceforge/bftpd/bftpd-$pkgver.tar.gz
bftpd.logrotate
bftpd.pam
bftpd.xinetd)
-md5sums=('7c45b158646e3b266530bf46778fc2d0'
+md5sums=('6614e25ef1864ad80d92724d03832407'
'56a1bf7738a6db2b2cff89e611f4f11a'
'853680dad0df39d0b4d2fb43d4be430a'
'96f82c38f3f540b53f3e5144900acf17'
@@ -29,25 +29,31 @@ 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
+ ./configure --prefix=/usr \
+ --enable-pam \
+ --mandir=/usr/share/man \
+ --sysconfdir=/etc
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,}
+ # 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
}