blob: b40076d8e01d277c6403e25b3d21de5ecb05a366 (
plain)
1 # Description: Small, easy-to-configure FTP server.
2 # URL: http://bftpd.sourceforge.net/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4
5 name=bftpd
6 version=4.8
7 release=1
8 source=(https://downloads.sourceforge.net/project/$name/$name/$name-$version/$name-$version.tar.gz
9 ftpd)
10
11 build() {
12 cd $name
13
14 ./configure \
15 --prefix=/usr \
16 --sysconfdir=/etc \
17 --mandir=/usr/share/man \
18 --localstatedir=/var \
19 --enable-libz
20
21 make
22 install -d $PKG/usr/sbin $PKG/usr/man/man8 $PKG/etc $PKG/etc/rc.d
23 make DESTDIR=$PKG install
24
25 # bftpd version 3.7 moved these directories and --sysconfdir
26 # --localstatedir does not work currently
27 mv $PKG/usr/etc/bftpd.conf $PKG/etc/
28 mv $PKG/usr/var $PKG/var/
29 rmdir $PKG/usr/etc
30
31 install -D -m 0755 $SRC/ftpd $PKG/etc/rc.d/ftpd
32 chmod 0600 $PKG/etc/bftpd.conf
33 ln -sf bftpd $PKG/usr/sbin/in.ftpd
34 }
|