NAME=vsftpd
DESC="FTP Server"
ARGS=""
-FTPDIR=/var/tmp/ftp
+FTPDIR=/var/lib/ftp
test -f $DAEMON || exit 0
case "$1" in
start)
echo -n "* starting $DESC: $NAME... "
- if ! test -d $FTPDIR; then
- mkdir -p $FTPDIR/in
- chown ftp $FTPDIR -R
- chmod a-w $FTPDIR
- chmod u+w $FTPDIR/in
- fi
- start-stop-daemon -S -b -x $DAEMON -- $ARGS
- echo "done."
- ;;
+ if ! test -d $FTPDIR; then
+ mkdir -p $FTPDIR/in
+ chown ftp $FTPDIR -R
+ chmod a-w $FTPDIR
+ chmod u+w $FTPDIR/in
+ fi
+ start-stop-daemon -S -b -x $DAEMON -- $ARGS
+ echo "done."
+ ;;
stop)
echo -n "* stopping $DESC: $NAME... "
- start-stop-daemon -K -x $DAEMON
- echo "done."
- ;;
+ start-stop-daemon -K -x $DAEMON
+ echo "done."
+ ;;
restart)
echo "* restarting $DESC: $NAME... "
- $0 stop
- $0 start
- echo "done."
- ;;
+ $0 stop
+ $0 start
+ echo "done."
+ ;;
*)
- echo "Usage: $0 {start|stop|restart}"
- exit 1
- ;;
+ echo "Usage: $0 {start|stop|restart}"
+ exit 1
+ ;;
esac
exit 0
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
-anon_upload_enable=YES
+#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
-anon_mkdir_write_enable=YES
+#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
DESCRIPTION = "Secure ftp daemon"
SECTION = "console/network"
LICENSE = "GPL"
-PR = "r1"
+PR = "r2"
SRC_URI = "ftp://vsftpd.beasts.org/users/cevans/vsftpd-${PV}.tar.gz \
file://makefile.patch;patch=1 \
pkg_postinst() {
addgroup ftp
- adduser --system --home /var/tmp/ftp --no-create-home --ingroup ftp --disabled-password -s /bin/false ftp
+ adduser --system --home /var/lib/ftp --no-create-home --ingroup ftp --disabled-password -s /bin/false ftp
mkdir -p ${localstatedir}/share/empty
}