# HG changeset patch # User Pascal Bellard # Date 1342734895 -7200 # Node ID dc79b649a4b905827965bbc3294f3dd2c47d54ad # Parent a53953f4078ed2b959eefc7313af86919416391f fix ftp-config diff -r a53953f4078e -r dc79b649a4b9 ftp-config/receipt --- a/ftp-config/receipt Thu Jul 19 23:03:09 2012 +0200 +++ b/ftp-config/receipt Thu Jul 19 23:54:55 2012 +0200 @@ -3,19 +3,31 @@ PACKAGE="ftp-config" VERSION="1.0" CATEGORY="configuration" -SHORT_DESC="File transport protocol configuration" +SHORT_DESC="File transport protocol server configuration" MAINTAINER="pascal.bellard@slitaz.org" WEB_SITE="http://tiny.slitaz.org/" DEPENDS="base-tiny" -post_install() -{ - grep -q ftpd $1/etc/rcS.conf || - sed -i 's/^RUN_DAEMONS="/&ftpd /' $1/etc/rcS.conf -} - # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/etc } + +config_form() +{ + cat < +allow upload +EOT +} + +post_install() +{ + [ -n "$UPLOAD" ] && ROOT="-w $ROOT" + grep -q inetd $1/etc/rcS.conf || + sed -i 's/^RUN_DAEMONS="/&inetd /' $1/etc/rcS.conf + cat >> $1/etc/inetd.conf <> $1/etc/inetd.conf for dev in $DEVICES; do - mknod -m 660 $fs$dev c 6 ${dev#*lp} + mknod -m 660 $1$dev c 6 ${dev#*lp} done }