# HG changeset patch # User Pascal Bellard # Date 1218224165 0 # Node ID 25993750a8d7cc7b42c13185af0bb174b25c774e # Parent abf5a1cc455a86b5cb665a4d5c197bcab6f3564a Add cyrus-sasl diff -r abf5a1cc455a -r 25993750a8d7 cyrus-sasl-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cyrus-sasl-dev/receipt Fri Aug 08 19:36:05 2008 +0000 @@ -0,0 +1,19 @@ +# SliTaz package receipt. + +PACKAGE="cyrus-sasl-dev" +VERSION="2.1.22" +CATEGORY="network" +SHORT_DESC="SASL authentication server development files" +MAINTAINER="pascal.bellard@slitaz.org" +WEB_SITE="http://cyrusimap.web.cmu.edu//" +WANTED="cyrus-sasl" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib/sasl2 + cp -a $_pkg/usr/include $fs/usr + cp -a $_pkg/usr/lib/*a $fs/usr/lib + cp -a $_pkg/usr/lib/sasl2/*a $fs/usr/lib/sasl2 +} + diff -r abf5a1cc455a -r 25993750a8d7 cyrus-sasl/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cyrus-sasl/receipt Fri Aug 08 19:36:05 2008 +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 abf5a1cc455a -r 25993750a8d7 cyrus-sasl/stuff/etc/init.d/cyrus-sasl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cyrus-sasl/stuff/etc/init.d/cyrus-sasl Fri Aug 08 19:36:05 2008 +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