OCaml 4.14.0 rebuild
[arch-packages.git] / bftpd / trunk / PKGBUILD
bloba20a03e059a1d9142020289cccaf23c9148e26f0
1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor: Thomas Bächler <thomas@archlinux.org>
4 pkgname=bftpd
5 pkgver=6.1
6 pkgrel=1
7 pkgdesc='Small, easy-to-configure FTP server'
8 url='http://bftpd.sourceforge.net/'
9 arch=('x86_64')
10 license=('GPL')
11 depends=('pam' 'zlib' 'glibc' 'libxcrypt' 'libcrypt.so')
12 backup=(etc/bftpd.conf
13         etc/logrotate.d/bftpd
14         etc/pam.d/bftpd
15         etc/xinetd.d/bftpd)
16 source=(https://downloads.sourceforge.net/sourceforge/bftpd/bftpd-${pkgver}.tar.gz
17         bftpd.logrotate
18         bftpd.pam
19         bftpd.xinetd
20         bftpd.service
21         bftpd.socket
22         bftpd_AT.service
23         bftpd.tmpfiles
24         bftpd-4.9-Makefile.patch)
25 sha512sums=('12af9be4c8995988c9fccfe0d26d928faa551b0b3a58a433a42453a768e28e7fd2711228c8944242483368b5bf4ec6e3adea293e1118b9afeb612d03e4863b42'
26             '50faec3cf93a4702945bb8aee5b2e9b227183ec098fe93c729ca14d02c9432ccf4b25bc86f9b4b1ae40c9a9820b6b5a9e83a1dde78085a36a2c84b69690262b6'
27             '1e6183ab0eb812b3ef687ac2c26ce78f7cb30540f606d20023669ac00ba04075487fb72e4dc89cc05dab0269ff6aca98fc1167cc75669c225b88b592482fbf67'
28             '98d7679faffd497f0cc2faa6129b010f0a47092e1caebc82582e362e3eb107c09cf17496b10bbc4fc406ebfea7f75a70d119c071721099d169765f53ce89b51a'
29             '1433b8b1a2eea07b095e41eb83e8819fcb22c63b632fe73ec87e1f0490a5f84f836cc65ea1ca2f8fa9ab901122350a45f781593748df04fa211168b5f08546b8'
30             'd37b9e6f69d781ecf8ddf63072a0e00c1cb27959ac622b5ba19fc7db0021f2da83fb427ee13f310c52565e5cbc8a5016bf28e63e9fb95e2fd0a568f5028f0056'
31             'b1a9f01f974b72a40d072c75a3962f5354eeb23f7383643f20cf3809ffc2d6217c450d0564be223b99552ebc55e26c0e4f1362a2ede24280e865a3f63ceca4a5'
32             '92650582747a34a29631b1755d2eb14d124a9632888c39cf2dbe5c2834f5b4c5f6506588ef0106cc643397587ffbe9a2240787030452bf29b17b7aacf1632cc1'
33             'b6e7e455b94b6c6b442a57416b285f870e7a99546f9aa26c67d381ec1e62a1e1d2492d144cf075b6f1ecaa42bf1f9c3e0390a45d0edab456de8cb7fe5d24ede7')
34 prepare() {
35   cd ${pkgname}
36   patch -Np1 < ../bftpd-4.9-Makefile.patch
37   # Fix default in config file
38   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 bftpd.conf
39   rm -f config.{cache,status}
40   autoreconf -fiv
43 build() {
44   cd ${pkgname}
45   CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
46   ./configure \
47     --prefix=/usr \
48     --enable-pam \
49     --enable-libz \
50     --mandir=/usr/share/man \
51     --sysconfdir=/etc \
52     --sbindir=/usr/bin
53   make
56 package() {
57   cd ${pkgname}
58   make DESTDIR="${pkgdir}" install
59   rm -rf "${pkgdir}/usr/var"
60   install -Dm 644 ../bftpd.service "${pkgdir}/usr/lib/systemd/system/bftpd.service"
61   install -Dm 644 ../bftpd_AT.service "${pkgdir}/usr/lib/systemd/system/bftpd@.service"
62   install -Dm 644 ../bftpd.socket "${pkgdir}/usr/lib/systemd/system/bftpd.socket"
63   install -Dm 644 ../bftpd.tmpfiles "${pkgdir}/usr/lib/tmpfiles.d/bftpd.conf"
64   install -Dm 644 ../bftpd.logrotate "${pkgdir}/etc/logrotate.d/bftpd"
65   install -Dm 644 ../bftpd.pam "${pkgdir}/etc/pam.d/bftpd"
66   install -Dm 644 ../bftpd.xinetd "${pkgdir}/etc/xinetd.d/bftpd"
69 # vim: ts=2 sw=2 et: