2009-01-12 02:06:36 +11:00
|
|
|
# Description: Small, easy-to-configure FTP server.
|
|
|
|
# URL: http://bftpd.sourceforge.net/
|
2023-03-02 21:22:33 -05:00
|
|
|
# Maintainer: John McQuah, jmcquah at disroot dot org
|
2009-01-12 02:06:36 +11:00
|
|
|
|
|
|
|
name=bftpd
|
2022-02-05 18:19:12 +01:00
|
|
|
version=6.1
|
2023-09-20 12:35:06 +00:00
|
|
|
release=2
|
2020-08-13 22:03:33 +10:00
|
|
|
source=(https://downloads.sourceforge.net/project/$name/$name/$name-$version/$name-$version.tar.gz
|
2023-09-20 12:35:06 +00:00
|
|
|
ftpd)
|
2009-01-12 02:06:36 +11:00
|
|
|
|
2012-06-09 12:28:38 +10:00
|
|
|
build() {
|
2023-09-20 12:35:06 +00:00
|
|
|
cd $name
|
2010-06-19 18:57:49 +10:00
|
|
|
|
2023-09-20 12:35:06 +00:00
|
|
|
CFLAGS+=' -fcommon'
|
|
|
|
sed -e '/var\/run/d' \
|
|
|
|
-e '/^sbindir=/a sysconfdir=@sysconfdir@\nlocalstatedir=@localstatedir@' \
|
|
|
|
-e 's/$.prefix.\/etc/$(sysconfdir)/' \
|
|
|
|
-e 's/$.prefix.\/var/$(localstatedir)/' \
|
|
|
|
-i Makefile.in
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--enable-libz
|
2010-06-19 18:57:49 +10:00
|
|
|
|
2023-09-20 12:35:06 +00:00
|
|
|
make
|
|
|
|
install -d $PKG/usr/sbin $PKG/etc $PKG/etc/rc.d
|
|
|
|
make DESTDIR=$PKG install
|
2012-02-21 12:54:21 +11:00
|
|
|
|
2023-09-20 12:35:06 +00:00
|
|
|
install -D -m 0755 $SRC/ftpd $PKG/etc/rc.d/ftpd
|
|
|
|
chmod 0600 $PKG/etc/bftpd.conf
|
|
|
|
ln -sf bftpd $PKG/usr/sbin/in.ftpd
|
2009-01-12 02:06:36 +11:00
|
|
|
}
|