# HG changeset patch # User Pascal Bellard # Date 1234173481 0 # Node ID 93807258554637aada961e0c0423cf3ba3720476 # Parent d06bc1bc7ba277574403a971625091c7a7980dad Add pure-ftpd-pam diff -r d06bc1bc7ba2 -r 938072585546 pure-ftpd-pam/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pure-ftpd-pam/receipt Mon Feb 09 09:58:01 2009 +0000 @@ -0,0 +1,44 @@ +# SliTaz package receipt. + +PACKAGE="pure-ftpd-pam" +VERSION="1.0.21" +CATEGORY="network" +SHORT_DESC="A secure FTP daemon using PAM" +MAINTAINER="erjo@slitaz.org" +DEPENDS="pam" +BUILD_DEPENDS="pam pam-dev" +SOURCE="pure-ftpd" +TARBALL="$SOURCE-$VERSION.tar.bz2" +WEB_SITE="http://www.pureftpd.org/project/pure-ftpd" +WGET_URL="http://download.pureftpd.org/pub/pure-ftpd/releases/$TARBALL" +PROVIDE="pure-ftpd:pam" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure --prefix=/usr --with-pam $CONFIGURE_ARGS && + make && + make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr $fs/etc/init.d + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/sbin $fs/usr + install -g root -o root -m 0755 stuff/pure-ftpd $fs/etc/init.d +} + +post_install() +{ + echo "" + echo -e "\nTo starts $PACKAGE server you can run :\n" + echo "/etc/init.d/$PACKAGE start" + echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n" + echo "" + echo "You may install pure-ftpd-extras package to get pure-config.pl " + echo " pure-config.py facilities." + +} diff -r d06bc1bc7ba2 -r 938072585546 pure-ftpd-pam/stuff/pure-ftpd --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pure-ftpd-pam/stuff/pure-ftpd Mon Feb 09 09:58:01 2009 +0000 @@ -0,0 +1,62 @@ +#!/bin/sh +# /etc/init.d/pure-ftpd : Start, stop and restart pure-FTPd daemon on SliTaz, at +# boot time or with the command line. +# +# To start pure-FTPd server at boot time, just put pure-ftpd in the $RUN_DAEMONS +# variable of /etc/rcS.conf and configure options with /etc/daemons.conf +# +. /etc/init.d/rc.functions +. /etc/daemons.conf + +NAME=pure-ftpd +DESC="pure-FTPd Server Daemon" +DAEMON=/usr/sbin/$NAME + +PIDFILE=/var/run/$NAME.pid + +# Options: +# -4 IPV4 Only +# -H Don't resolve +# -A Chroot Everyone +# -B Daemonize +OPTIONS="-4 -H -A -B" + +case "$1" in + start) + if [ -f $PIDFILE ] ; then + echo "$NAME already running." + exit 1 + fi + echo -n "Starting $DESC: $NAME... " + $DAEMON $OPTIONS + status + ;; + stop) + if [ ! -f $PIDFILE ] ; then + echo "$NAME is not running." + exit 1 + fi + echo -n "Stopping $DESC: $NAME... " + kill `cat $PIDFILE` + status + ;; + restart) + if [ ! -f $PIDFILE ] ; then + echo "$NAME is not running." + exit 1 + fi + echo -n "Restarting $DESC: $NAME... " + kill `cat $PIDFILE` + sleep 2 + $DAEMON $OPTIONS + status + ;; + *) + echo "" + echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]" + echo "" + exit 1 + ;; +esac + +exit 0 diff -r d06bc1bc7ba2 -r 938072585546 pure-ftpd/receipt --- a/pure-ftpd/receipt Mon Feb 09 09:51:37 2009 +0000 +++ b/pure-ftpd/receipt Mon Feb 09 09:58:01 2009 +0000 @@ -14,8 +14,8 @@ compile_rules() { cd $src - ./configure --prefix=/usr $CONFIGURE_ARGS - make + ./configure --prefix=/usr --without-pam $CONFIGURE_ARGS && + make && make DESTDIR=$PWD/_pkg install }