wok-current rev 2431
cyrus-sasl-pam: use pam mechanism !
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 12 14:54:13 2009 +0000 (2009-03-12) |
parents | 5396b083ef0f |
children | d0b4a9f7bd04 |
files | cyrus-sasl-pam/cyrus-sasl/receipt cyrus-sasl-pam/cyrus-sasl/stuff/etc/init.d/cyrus-sasl cyrus-sasl-pam/receipt |
line diff
1.1 --- a/cyrus-sasl-pam/cyrus-sasl/receipt Wed Mar 11 20:36:35 2009 +0000 1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 @@ -1,37 +0,0 @@ 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 --- a/cyrus-sasl-pam/cyrus-sasl/stuff/etc/init.d/cyrus-sasl Wed Mar 11 20:36:35 2009 +0000 2.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 2.3 @@ -1,56 +0,0 @@ 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 --- a/cyrus-sasl-pam/receipt Wed Mar 11 20:36:35 2009 +0000 3.2 +++ b/cyrus-sasl-pam/receipt Thu Mar 12 14:54:13 2009 +0000 3.3 @@ -32,4 +32,5 @@ 3.4 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib 3.5 cp -a $_pkg/usr/lib/sasl2/*.so* $fs/usr/lib/sasl2 3.6 cp -a ../$SOURCE/stuff/etc $fs 3.7 + sed -i 's/shadow/pam/' $fs/etc/init.d/cyrus-sasl 3.8 }