summaryrefslogtreecommitdiff
path: root/extra/bftpd/PKGBUILD
blob: fb9c4aa1a182b1c811322e0b806f06e59e97ff31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# $Id: PKGBUILD 95186 2010-10-16 23:03:07Z thomas $
# Maintainer: Thomas Baechler <thomas@archlinux.org>

pkgname=bftpd
pkgver=3.1
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)
source=(http://downloads.sourceforge.net/sourceforge/bftpd/bftpd-$pkgver.tar.gz
        bftpd.rc bftpd.logrotate bftpd.pam)
md5sums=('1aeda6f3da2b10dcf5dca1b1d8466c48'
         '56a1bf7738a6db2b2cff89e611f4f11a'
         '853680dad0df39d0b4d2fb43d4be430a'
         '96f82c38f3f540b53f3e5144900acf17')

build() {
  cd ${srcdir}/$pkgname
  ./configure --prefix=/usr --enable-pam --mandir=/usr/share/man
  make || return 1
}

package() {
  cd ${srcdir}/$pkgname
  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
}