# HG changeset patch # User Pascal Bellard # Date 1234172393 0 # Node ID 74b05c130986edd979b6b004441e2baf25d1d237 # Parent de4bec8b35fc3a30beff40cfb694e53b3a5daf82 Add cyrus-sasl-pam diff -r de4bec8b35fc -r 74b05c130986 cyrus-sasl-pam/cyrus-sasl/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cyrus-sasl-pam/cyrus-sasl/receipt Mon Feb 09 09:39:53 2009 +0000 @@ -0,0 +1,37 @@ +# SliTaz package receipt. + +PACKAGE="cyrus-sasl" +VERSION="2.1.22" +CATEGORY="network" +SHORT_DESC="SASL authentication server." +MAINTAINER="pascal.bellard@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://cyrusimap.web.cmu.edu/" +WGET_URL="ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/$TARBALL" +DEPENDS="libldap" +BUILD_DEPENDS="openldap-dev" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure --prefix=/usr --infodir=/usr/share/info \ + --with-ldap=/usr --with-devrandom=/dev/urandom \ + --mandir=/usr/share/man $CONFIGURE_ARGS + make + make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib/sasl2 $fs/var/state/saslauthd + cp -a $_pkg/usr/sbin $fs/usr + cp -a $_pkg/usr/lib/*.so* $fs/usr/lib + cp -a $_pkg/usr/lib/sasl2/*.so* $fs/usr/lib/sasl2 + cp -a stuff/etc $fs + for i in $(cd $WOK; ls -d cyrus-sasl-*) + do + tazwok cook $i + done +} diff -r de4bec8b35fc -r 74b05c130986 cyrus-sasl-pam/cyrus-sasl/stuff/etc/init.d/cyrus-sasl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cyrus-sasl-pam/cyrus-sasl/stuff/etc/init.d/cyrus-sasl Mon Feb 09 09:39:53 2009 +0000 @@ -0,0 +1,56 @@ +#!/bin/sh +# /etc/init.d/cyrus-sasl : Start, stop and restart SASL server on SliTaz, at +# boot time or with the command line. +# +# To start SASL server at boot time, just put cyrus-sasl 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=cyrus-sasl +DESC="SASL server" +DAEMON=/usr/sbin/saslauthd +OPTIONS=$CYRUS_OPTIONS +PIDFILE=/var/state/saslauthd/saslauthd.pid +[ -n "$OPTIONS" ] || OPTIONS="-a shadow" + +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 de4bec8b35fc -r 74b05c130986 cyrus-sasl-pam/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cyrus-sasl-pam/receipt Mon Feb 09 09:39:53 2009 +0000 @@ -0,0 +1,35 @@ +# SliTaz package receipt. + +PACKAGE="cyrus-sasl-pam" +VERSION="2.1.22" +CATEGORY="network" +SHORT_DESC="SASL authentication server using PAM." +MAINTAINER="pascal.bellard@slitaz.org" +SOURCE="cyrus-sasl" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="http://cyrusimap.web.cmu.edu/" +WGET_URL="ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/$TARBALL" +DEPENDS="libldap pam" +BUILD_DEPENDS="openldap-dev pam pam-dev" +PROVIDE="cyrus-sasl:pam" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure --prefix=/usr --infodir=/usr/share/info \ + --with-ldap=/usr --with-pam=/usr --with-devrandom=/dev/urandom \ + --mandir=/usr/share/man $CONFIGURE_ARGS && + make && + make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib/sasl2 $fs/var/state/saslauthd + cp -a $_pkg/usr/sbin $fs/usr + cp -a $_pkg/usr/lib/*.so* $fs/usr/lib + cp -a $_pkg/usr/lib/sasl2/*.so* $fs/usr/lib/sasl2 + cp -a stuff/etc $fs +} diff -r de4bec8b35fc -r 74b05c130986 cyrus-sasl-pam/stuff/etc/init.d/cyrus-sasl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cyrus-sasl-pam/stuff/etc/init.d/cyrus-sasl Mon Feb 09 09:39:53 2009 +0000 @@ -0,0 +1,56 @@ +#!/bin/sh +# /etc/init.d/cyrus-sasl : Start, stop and restart SASL server on SliTaz, at +# boot time or with the command line. +# +# To start SASL server at boot time, just put cyrus-sasl 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=cyrus-sasl +DESC="SASL server" +DAEMON=/usr/sbin/saslauthd +OPTIONS=$CYRUS_OPTIONS +PIDFILE=/var/state/saslauthd/saslauthd.pid +[ -n "$OPTIONS" ] || OPTIONS="-a shadow" + +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 de4bec8b35fc -r 74b05c130986 cyrus-sasl/receipt --- a/cyrus-sasl/receipt Sun Feb 08 22:45:35 2009 +0100 +++ b/cyrus-sasl/receipt Mon Feb 09 09:39:53 2009 +0000 @@ -16,7 +16,7 @@ { cd $src ./configure --prefix=/usr --infodir=/usr/share/info \ - --with-ldap=/usr --with-devrandom=/dev/urandom \ + --with-ldap=/usr --without-pam --with-devrandom=/dev/urandom \ --mandir=/usr/share/man $CONFIGURE_ARGS make make DESTDIR=$PWD/_pkg install