wok-4.x rev 2189
Add pure-ftpd-pam
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 09 09:58:01 2009 +0000 (2009-02-09) |
parents | d06bc1bc7ba2 |
children | 89fb9e5371cd |
files | pure-ftpd-pam/receipt pure-ftpd-pam/stuff/pure-ftpd pure-ftpd/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/pure-ftpd-pam/receipt Mon Feb 09 09:58:01 2009 +0000 1.3 @@ -0,0 +1,44 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="pure-ftpd-pam" 1.7 +VERSION="1.0.21" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="A secure FTP daemon using PAM" 1.10 +MAINTAINER="erjo@slitaz.org" 1.11 +DEPENDS="pam" 1.12 +BUILD_DEPENDS="pam pam-dev" 1.13 +SOURCE="pure-ftpd" 1.14 +TARBALL="$SOURCE-$VERSION.tar.bz2" 1.15 +WEB_SITE="http://www.pureftpd.org/project/pure-ftpd" 1.16 +WGET_URL="http://download.pureftpd.org/pub/pure-ftpd/releases/$TARBALL" 1.17 +PROVIDE="pure-ftpd:pam" 1.18 + 1.19 +# Rules to configure and make the package. 1.20 +compile_rules() 1.21 +{ 1.22 + cd $src 1.23 + ./configure --prefix=/usr --with-pam $CONFIGURE_ARGS && 1.24 + make && 1.25 + make DESTDIR=$PWD/_pkg install 1.26 +} 1.27 + 1.28 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.29 +genpkg_rules() 1.30 +{ 1.31 + mkdir -p $fs/usr $fs/etc/init.d 1.32 + cp -a $_pkg/usr/bin $fs/usr 1.33 + cp -a $_pkg/usr/sbin $fs/usr 1.34 + install -g root -o root -m 0755 stuff/pure-ftpd $fs/etc/init.d 1.35 +} 1.36 + 1.37 +post_install() 1.38 +{ 1.39 + echo "" 1.40 + echo -e "\nTo starts $PACKAGE server you can run :\n" 1.41 + echo "/etc/init.d/$PACKAGE start" 1.42 + echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n" 1.43 + echo "" 1.44 + echo "You may install pure-ftpd-extras package to get pure-config.pl " 1.45 + echo " pure-config.py facilities." 1.46 + 1.47 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/pure-ftpd-pam/stuff/pure-ftpd Mon Feb 09 09:58:01 2009 +0000 2.3 @@ -0,0 +1,62 @@ 2.4 +#!/bin/sh 2.5 +# /etc/init.d/pure-ftpd : Start, stop and restart pure-FTPd daemon on SliTaz, at 2.6 +# boot time or with the command line. 2.7 +# 2.8 +# To start pure-FTPd server at boot time, just put pure-ftpd in the $RUN_DAEMONS 2.9 +# variable of /etc/rcS.conf and configure options with /etc/daemons.conf 2.10 +# 2.11 +. /etc/init.d/rc.functions 2.12 +. /etc/daemons.conf 2.13 + 2.14 +NAME=pure-ftpd 2.15 +DESC="pure-FTPd Server Daemon" 2.16 +DAEMON=/usr/sbin/$NAME 2.17 + 2.18 +PIDFILE=/var/run/$NAME.pid 2.19 + 2.20 +# Options: 2.21 +# -4 IPV4 Only 2.22 +# -H Don't resolve 2.23 +# -A Chroot Everyone 2.24 +# -B Daemonize 2.25 +OPTIONS="-4 -H -A -B" 2.26 + 2.27 +case "$1" in 2.28 + start) 2.29 + if [ -f $PIDFILE ] ; then 2.30 + echo "$NAME already running." 2.31 + exit 1 2.32 + fi 2.33 + echo -n "Starting $DESC: $NAME... " 2.34 + $DAEMON $OPTIONS 2.35 + status 2.36 + ;; 2.37 + stop) 2.38 + if [ ! -f $PIDFILE ] ; then 2.39 + echo "$NAME is not running." 2.40 + exit 1 2.41 + fi 2.42 + echo -n "Stopping $DESC: $NAME... " 2.43 + kill `cat $PIDFILE` 2.44 + status 2.45 + ;; 2.46 + restart) 2.47 + if [ ! -f $PIDFILE ] ; then 2.48 + echo "$NAME is not running." 2.49 + exit 1 2.50 + fi 2.51 + echo -n "Restarting $DESC: $NAME... " 2.52 + kill `cat $PIDFILE` 2.53 + sleep 2 2.54 + $DAEMON $OPTIONS 2.55 + status 2.56 + ;; 2.57 + *) 2.58 + echo "" 2.59 + echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]" 2.60 + echo "" 2.61 + exit 1 2.62 + ;; 2.63 +esac 2.64 + 2.65 +exit 0
3.1 --- a/pure-ftpd/receipt Mon Feb 09 09:51:37 2009 +0000 3.2 +++ b/pure-ftpd/receipt Mon Feb 09 09:58:01 2009 +0000 3.3 @@ -14,8 +14,8 @@ 3.4 compile_rules() 3.5 { 3.6 cd $src 3.7 - ./configure --prefix=/usr $CONFIGURE_ARGS 3.8 - make 3.9 + ./configure --prefix=/usr --without-pam $CONFIGURE_ARGS && 3.10 + make && 3.11 make DESTDIR=$PWD/_pkg install 3.12 } 3.13