2009-01-11 16:06:36 +01:00
|
|
|
# Description: Small, easy-to-configure FTP server.
|
|
|
|
# URL: http://bftpd.sourceforge.net/
|
2023-03-03 03:22:33 +01:00
|
|
|
# Maintainer: John McQuah, jmcquah at disroot dot org
|
2009-01-11 16:06:36 +01:00
|
|
|
|
|
|
|
name=bftpd
|
2023-11-15 13:23:23 +01:00
|
|
|
version=6.2
|
|
|
|
release=1
|
2020-08-13 14:03:33 +02:00
|
|
|
source=(https://downloads.sourceforge.net/project/$name/$name/$name-$version/$name-$version.tar.gz
|
2023-09-20 14:35:06 +02:00
|
|
|
ftpd)
|
2009-01-11 16:06:36 +01:00
|
|
|
|
2012-06-09 04:28:38 +02:00
|
|
|
build() {
|
2023-09-20 14:35:06 +02:00
|
|
|
cd $name
|
2010-06-19 10:57:49 +02:00
|
|
|
|
2023-09-20 14:35:06 +02: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 10:57:49 +02:00
|
|
|
|
2023-09-20 14:35:06 +02:00
|
|
|
make
|
|
|
|
install -d $PKG/usr/sbin $PKG/etc $PKG/etc/rc.d
|
|
|
|
make DESTDIR=$PKG install
|
2012-02-21 02:54:21 +01:00
|
|
|
|
2023-09-20 14:35:06 +02: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-11 16:06:36 +01:00
|
|
|
}
|