wok rev 2185
Add cyrus-sasl-pam
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 09 09:39:53 2009 +0000 (2009-02-09) |
parents | de4bec8b35fc |
children | ebf2041fbd1f |
files | cyrus-sasl-pam/cyrus-sasl/receipt cyrus-sasl-pam/cyrus-sasl/stuff/etc/init.d/cyrus-sasl cyrus-sasl-pam/receipt cyrus-sasl-pam/stuff/etc/init.d/cyrus-sasl cyrus-sasl/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/cyrus-sasl-pam/cyrus-sasl/receipt Mon Feb 09 09:39:53 2009 +0000 1.3 @@ -0,0 +1,37 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="cyrus-sasl" 1.7 +VERSION="2.1.22" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="SASL authentication server." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.12 +WEB_SITE="http://cyrusimap.web.cmu.edu/" 1.13 +WGET_URL="ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/$TARBALL" 1.14 +DEPENDS="libldap" 1.15 +BUILD_DEPENDS="openldap-dev" 1.16 + 1.17 +# Rules to configure and make the package. 1.18 +compile_rules() 1.19 +{ 1.20 + cd $src 1.21 + ./configure --prefix=/usr --infodir=/usr/share/info \ 1.22 + --with-ldap=/usr --with-devrandom=/dev/urandom \ 1.23 + --mandir=/usr/share/man $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/lib/sasl2 $fs/var/state/saslauthd 1.32 + cp -a $_pkg/usr/sbin $fs/usr 1.33 + cp -a $_pkg/usr/lib/*.so* $fs/usr/lib 1.34 + cp -a $_pkg/usr/lib/sasl2/*.so* $fs/usr/lib/sasl2 1.35 + cp -a stuff/etc $fs 1.36 + for i in $(cd $WOK; ls -d cyrus-sasl-*) 1.37 + do 1.38 + tazwok cook $i 1.39 + done 1.40 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/cyrus-sasl-pam/cyrus-sasl/stuff/etc/init.d/cyrus-sasl Mon Feb 09 09:39:53 2009 +0000 2.3 @@ -0,0 +1,56 @@ 2.4 +#!/bin/sh 2.5 +# /etc/init.d/cyrus-sasl : Start, stop and restart SASL server on SliTaz, at 2.6 +# boot time or with the command line. 2.7 +# 2.8 +# To start SASL server at boot time, just put cyrus-sasl 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=cyrus-sasl 2.15 +DESC="SASL server" 2.16 +DAEMON=/usr/sbin/saslauthd 2.17 +OPTIONS=$CYRUS_OPTIONS 2.18 +PIDFILE=/var/state/saslauthd/saslauthd.pid 2.19 +[ -n "$OPTIONS" ] || OPTIONS="-a shadow" 2.20 + 2.21 +case "$1" in 2.22 + start) 2.23 + if [ -f $PIDFILE ] ; then 2.24 + echo "$NAME already running." 2.25 + exit 1 2.26 + fi 2.27 + echo -n "Starting $DESC: $NAME... " 2.28 + $DAEMON $OPTIONS 2.29 + status 2.30 + ;; 2.31 + stop) 2.32 + if [ ! -f $PIDFILE ] ; then 2.33 + echo "$NAME is not running." 2.34 + exit 1 2.35 + fi 2.36 + echo -n "Stopping $DESC: $NAME... " 2.37 + kill `cat $PIDFILE` 2.38 + status 2.39 + ;; 2.40 + restart) 2.41 + if [ ! -f $PIDFILE ] ; then 2.42 + echo "$NAME is not running." 2.43 + exit 1 2.44 + fi 2.45 + echo -n "Restarting $DESC: $NAME... " 2.46 + kill `cat $PIDFILE` 2.47 + sleep 2 2.48 + $DAEMON $OPTIONS 2.49 + status 2.50 + ;; 2.51 + *) 2.52 + echo "" 2.53 + echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]" 2.54 + echo "" 2.55 + exit 1 2.56 + ;; 2.57 +esac 2.58 + 2.59 +exit 0
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/cyrus-sasl-pam/receipt Mon Feb 09 09:39:53 2009 +0000 3.3 @@ -0,0 +1,35 @@ 3.4 +# SliTaz package receipt. 3.5 + 3.6 +PACKAGE="cyrus-sasl-pam" 3.7 +VERSION="2.1.22" 3.8 +CATEGORY="network" 3.9 +SHORT_DESC="SASL authentication server using PAM." 3.10 +MAINTAINER="pascal.bellard@slitaz.org" 3.11 +SOURCE="cyrus-sasl" 3.12 +TARBALL="$SOURCE-$VERSION.tar.gz" 3.13 +WEB_SITE="http://cyrusimap.web.cmu.edu/" 3.14 +WGET_URL="ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/$TARBALL" 3.15 +DEPENDS="libldap pam" 3.16 +BUILD_DEPENDS="openldap-dev pam pam-dev" 3.17 +PROVIDE="cyrus-sasl:pam" 3.18 + 3.19 +# Rules to configure and make the package. 3.20 +compile_rules() 3.21 +{ 3.22 + cd $src 3.23 + ./configure --prefix=/usr --infodir=/usr/share/info \ 3.24 + --with-ldap=/usr --with-pam=/usr --with-devrandom=/dev/urandom \ 3.25 + --mandir=/usr/share/man $CONFIGURE_ARGS && 3.26 + make && 3.27 + make DESTDIR=$PWD/_pkg install 3.28 +} 3.29 + 3.30 +# Rules to gen a SliTaz package suitable for Tazpkg. 3.31 +genpkg_rules() 3.32 +{ 3.33 + mkdir -p $fs/usr/lib/sasl2 $fs/var/state/saslauthd 3.34 + cp -a $_pkg/usr/sbin $fs/usr 3.35 + cp -a $_pkg/usr/lib/*.so* $fs/usr/lib 3.36 + cp -a $_pkg/usr/lib/sasl2/*.so* $fs/usr/lib/sasl2 3.37 + cp -a stuff/etc $fs 3.38 +}
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/cyrus-sasl-pam/stuff/etc/init.d/cyrus-sasl Mon Feb 09 09:39:53 2009 +0000 4.3 @@ -0,0 +1,56 @@ 4.4 +#!/bin/sh 4.5 +# /etc/init.d/cyrus-sasl : Start, stop and restart SASL server on SliTaz, at 4.6 +# boot time or with the command line. 4.7 +# 4.8 +# To start SASL server at boot time, just put cyrus-sasl in the $RUN_DAEMONS 4.9 +# variable of /etc/rcS.conf and configure options with /etc/daemons.conf 4.10 +# 4.11 +. /etc/init.d/rc.functions 4.12 +. /etc/daemons.conf 4.13 + 4.14 +NAME=cyrus-sasl 4.15 +DESC="SASL server" 4.16 +DAEMON=/usr/sbin/saslauthd 4.17 +OPTIONS=$CYRUS_OPTIONS 4.18 +PIDFILE=/var/state/saslauthd/saslauthd.pid 4.19 +[ -n "$OPTIONS" ] || OPTIONS="-a shadow" 4.20 + 4.21 +case "$1" in 4.22 + start) 4.23 + if [ -f $PIDFILE ] ; then 4.24 + echo "$NAME already running." 4.25 + exit 1 4.26 + fi 4.27 + echo -n "Starting $DESC: $NAME... " 4.28 + $DAEMON $OPTIONS 4.29 + status 4.30 + ;; 4.31 + stop) 4.32 + if [ ! -f $PIDFILE ] ; then 4.33 + echo "$NAME is not running." 4.34 + exit 1 4.35 + fi 4.36 + echo -n "Stopping $DESC: $NAME... " 4.37 + kill `cat $PIDFILE` 4.38 + status 4.39 + ;; 4.40 + restart) 4.41 + if [ ! -f $PIDFILE ] ; then 4.42 + echo "$NAME is not running." 4.43 + exit 1 4.44 + fi 4.45 + echo -n "Restarting $DESC: $NAME... " 4.46 + kill `cat $PIDFILE` 4.47 + sleep 2 4.48 + $DAEMON $OPTIONS 4.49 + status 4.50 + ;; 4.51 + *) 4.52 + echo "" 4.53 + echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]" 4.54 + echo "" 4.55 + exit 1 4.56 + ;; 4.57 +esac 4.58 + 4.59 +exit 0
5.1 --- a/cyrus-sasl/receipt Sun Feb 08 22:45:35 2009 +0100 5.2 +++ b/cyrus-sasl/receipt Mon Feb 09 09:39:53 2009 +0000 5.3 @@ -16,7 +16,7 @@ 5.4 { 5.5 cd $src 5.6 ./configure --prefix=/usr --infodir=/usr/share/info \ 5.7 - --with-ldap=/usr --with-devrandom=/dev/urandom \ 5.8 + --with-ldap=/usr --without-pam --with-devrandom=/dev/urandom \ 5.9 --mandir=/usr/share/man $CONFIGURE_ARGS 5.10 make 5.11 make DESTDIR=$PWD/_pkg install