1
0
forked from ports/contrib
contrib-tek/bftpd/Pkgfile

36 lines
842 B
Plaintext
Raw Normal View History

2009-01-12 02:06:36 +11:00
# Description: Small, easy-to-configure FTP server.
# URL: http://bftpd.sourceforge.net/
2014-11-10 23:28:07 +11:00
# Maintainer: Danny Rawlins, crux at romster dot me
2009-01-12 02:06:36 +11:00
name=bftpd
2022-02-05 18:19:12 +01:00
version=6.1
2009-01-12 02:06:36 +11:00
release=1
2020-08-13 22:03:33 +10:00
source=(https://downloads.sourceforge.net/project/$name/$name/$name-$version/$name-$version.tar.gz
2010-06-19 18:57:49 +10:00
ftpd)
2009-01-12 02:06:36 +11:00
2012-06-09 12:28:38 +10:00
build() {
2009-01-12 02:06:36 +11:00
cd $name
2010-06-19 18:57:49 +10:00
2021-05-16 17:20:14 +10:00
CFLAGS+=' -fcommon'
2010-06-19 18:57:49 +10:00
./configure \
--prefix=/usr \
2012-02-21 12:54:21 +11:00
--sysconfdir=/etc \
2018-02-21 22:34:50 +11:00
--mandir=/usr/share/man \
2012-02-21 12:54:21 +11:00
--localstatedir=/var \
2010-06-19 18:57:49 +10:00
--enable-libz
2009-01-12 02:06:36 +11:00
make
2020-01-21 12:02:57 +01:00
install -d $PKG/usr/sbin $PKG/etc $PKG/etc/rc.d
2009-01-12 02:06:36 +11:00
make DESTDIR=$PKG install
2012-02-21 12:54:21 +11:00
# bftpd version 3.7 moved these directories and --sysconfdir
# --localstatedir does not work currently
mv $PKG/usr/etc/bftpd.conf $PKG/etc/
mv $PKG/usr/var $PKG/var/
rmdir $PKG/usr/etc
2010-06-19 18:57:49 +10:00
install -D -m 0755 $SRC/ftpd $PKG/etc/rc.d/ftpd
chmod 0600 $PKG/etc/bftpd.conf
2009-01-12 02:06:36 +11:00
ln -sf bftpd $PKG/usr/sbin/in.ftpd
}