# HG changeset patch # User Pascal Bellard # Date 1236869653 0 # Node ID b1cb87e36ed43242b440cfa9f11f25278c2f8401 # Parent 5396b083ef0fb957287705ff750e6b2038078c27 cyrus-sasl-pam: use pam mechanism ! diff -r 5396b083ef0f -r b1cb87e36ed4 cyrus-sasl-pam/cyrus-sasl/receipt --- a/cyrus-sasl-pam/cyrus-sasl/receipt Wed Mar 11 20:36:35 2009 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,37 +0,0 @@ -# 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 5396b083ef0f -r b1cb87e36ed4 cyrus-sasl-pam/cyrus-sasl/stuff/etc/init.d/cyrus-sasl --- a/cyrus-sasl-pam/cyrus-sasl/stuff/etc/init.d/cyrus-sasl Wed Mar 11 20:36:35 2009 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,56 +0,0 @@ -#!/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 5396b083ef0f -r b1cb87e36ed4 cyrus-sasl-pam/receipt --- a/cyrus-sasl-pam/receipt Wed Mar 11 20:36:35 2009 +0000 +++ b/cyrus-sasl-pam/receipt Thu Mar 12 14:54:13 2009 +0000 @@ -32,4 +32,5 @@ cp -a $_pkg/usr/lib/*.so* $fs/usr/lib cp -a $_pkg/usr/lib/sasl2/*.so* $fs/usr/lib/sasl2 cp -a ../$SOURCE/stuff/etc $fs + sed -i 's/shadow/pam/' $fs/etc/init.d/cyrus-sasl }