wok-next rev 1205
Add cyrus-sasl
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Aug 08 19:36:05 2008 +0000 (2008-08-08) |
parents | abf5a1cc455a |
children | 189b54af540e |
files | cyrus-sasl-dev/receipt cyrus-sasl/receipt cyrus-sasl/stuff/etc/init.d/cyrus-sasl |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/cyrus-sasl-dev/receipt Fri Aug 08 19:36:05 2008 +0000 1.3 @@ -0,0 +1,19 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="cyrus-sasl-dev" 1.7 +VERSION="2.1.22" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="SASL authentication server development files" 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +WEB_SITE="http://cyrusimap.web.cmu.edu//" 1.12 +WANTED="cyrus-sasl" 1.13 + 1.14 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.15 +genpkg_rules() 1.16 +{ 1.17 + mkdir -p $fs/usr/lib/sasl2 1.18 + cp -a $_pkg/usr/include $fs/usr 1.19 + cp -a $_pkg/usr/lib/*a $fs/usr/lib 1.20 + cp -a $_pkg/usr/lib/sasl2/*a $fs/usr/lib/sasl2 1.21 +} 1.22 +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/cyrus-sasl/receipt Fri Aug 08 19:36:05 2008 +0000 2.3 @@ -0,0 +1,37 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="cyrus-sasl" 2.7 +VERSION="2.1.22" 2.8 +CATEGORY="network" 2.9 +SHORT_DESC="SASL authentication server." 2.10 +MAINTAINER="pascal.bellard@slitaz.org" 2.11 +TARBALL="$PACKAGE-$VERSION.tar.gz" 2.12 +WEB_SITE="http://cyrusimap.web.cmu.edu//" 2.13 +WGET_URL="ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/$TARBALL" 2.14 +DEPENDS="libldap" 2.15 +BUILD_DEPENDS="openldap-dev" 2.16 + 2.17 +# Rules to configure and make the package. 2.18 +compile_rules() 2.19 +{ 2.20 + cd $src 2.21 + ./configure --prefix=/usr --infodir=/usr/share/info \ 2.22 + --with-ldap=/usr --with-devrandom=/dev/urandom \ 2.23 + --mandir=/usr/share/man $CONFIGURE_ARGS 2.24 + make 2.25 + make DESTDIR=$PWD/_pkg install 2.26 +} 2.27 + 2.28 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.29 +genpkg_rules() 2.30 +{ 2.31 + mkdir -p $fs/usr/lib/sasl2 $fs/var/state/saslauthd 2.32 + cp -a $_pkg/usr/sbin $fs/usr 2.33 + cp -a $_pkg/usr/lib/*.so* $fs/usr/lib 2.34 + cp -a $_pkg/usr/lib/sasl2/*.so* $fs/usr/lib/sasl2 2.35 + cp -a stuff/etc $fs 2.36 + for i in $(cd $WOK; ls -d cyrus-sasl-*) 2.37 + do 2.38 + tazwok cook $i 2.39 + done 2.40 +}
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/cyrus-sasl/stuff/etc/init.d/cyrus-sasl Fri Aug 08 19:36:05 2008 +0000 3.3 @@ -0,0 +1,56 @@ 3.4 +#!/bin/sh 3.5 +# /etc/init.d/cyrus-sasl : Start, stop and restart SASL server on SliTaz, at 3.6 +# boot time or with the command line. 3.7 +# 3.8 +# To start SASL server at boot time, just put cyrus-sasl in the $RUN_DAEMONS 3.9 +# variable of /etc/rcS.conf and configure options with /etc/daemons.conf 3.10 +# 3.11 +. /etc/init.d/rc.functions 3.12 +. /etc/daemons.conf 3.13 + 3.14 +NAME=cyrus-sasl 3.15 +DESC="SASL server" 3.16 +DAEMON=/usr/sbin/saslauthd 3.17 +OPTIONS=$CYRUS_OPTIONS 3.18 +PIDFILE=/var/state/saslauthd/saslauthd.pid 3.19 +[ -n "$OPTIONS" ] || OPTIONS="-a shadow" 3.20 + 3.21 +case "$1" in 3.22 + start) 3.23 + if [ -f $PIDFILE ] ; then 3.24 + echo "$NAME already running." 3.25 + exit 1 3.26 + fi 3.27 + echo -n "Starting $DESC: $NAME... " 3.28 + $DAEMON $OPTIONS 3.29 + status 3.30 + ;; 3.31 + stop) 3.32 + if [ ! -f $PIDFILE ] ; then 3.33 + echo "$NAME is not running." 3.34 + exit 1 3.35 + fi 3.36 + echo -n "Stopping $DESC: $NAME... " 3.37 + kill `cat $PIDFILE` 3.38 + status 3.39 + ;; 3.40 + restart) 3.41 + if [ ! -f $PIDFILE ] ; then 3.42 + echo "$NAME is not running." 3.43 + exit 1 3.44 + fi 3.45 + echo -n "Restarting $DESC: $NAME... " 3.46 + kill `cat $PIDFILE` 3.47 + sleep 2 3.48 + $DAEMON $OPTIONS 3.49 + status 3.50 + ;; 3.51 + *) 3.52 + echo "" 3.53 + echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]" 3.54 + echo "" 3.55 + exit 1 3.56 + ;; 3.57 +esac 3.58 + 3.59 +exit 0