PKGBUILDs/extra/bftpd/PKGBUILD
2009-10-18 22:17:58 -05:00

38 lines
1.3 KiB
Bash

# Maintainer: Thomas Baechler <thomas@archlinux.org>
pkgname=bftpd
pkgver=2.3
pkgrel=1
pkgdesc="A very configurable (and secure) Linux FTP server"
arch=('arm')
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 var/log/bftpd.log)
source=(http://downloads.sourceforge.net/sourceforge/bftpd/bftpd-$pkgver.tar.gz
bftpd.rc
bftpd.logrotate
bftpd.pam)
md5sums=('4ab1eb33135fa5eaaf050e6d3dd0b319'
'56a1bf7738a6db2b2cff89e611f4f11a'
'853680dad0df39d0b4d2fb43d4be430a'
'96f82c38f3f540b53f3e5144900acf17')
build() {
cd ${srcdir}/$pkgname
# install fixes
sed -i -e 's| /var| $(DESTDIR)/var|g' Makefile.in
./configure --prefix=/usr --enable-pam --mandir=/usr/share/man
make || return 1
install -d -m755 ${pkgdir}/usr/{sbin,share/man/man8}
install -d -m755 ${pkgdir}/var/run/bftpd
install -d -m755 ${pkgdir}/var/log
install -D -m644 ${srcdir}/bftpd.logrotate ${pkgdir}/etc/logrotate.d/bftpd || return 1
install -D -m755 ${srcdir}/bftpd.rc ${pkgdir}/etc/rc.d/bftpd || return 1
make DESTDIR=${pkgdir} install || return 1
rm -f ${pkgdir}/var/log/bftpd.log
rmdir ${pkgdir}/var/log
mkdir -p ${pkgdir}/etc/pam.d
cp ${srcdir}/bftpd.pam ${pkgdir}/etc/pam.d/bftpd || return 1
}