wok-current rev 1215

Add perdition (pop3/imap proxy)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 09 21:05:27 2008 +0000 (2008-08-09)
parents 662bf9da5ad7
children 47c6a0342f00
files perdition-dev/receipt perdition/receipt perdition/stuff/etc/init.d/perdition perdition/stuff/etc/perdition/perdition.imap4.conf perdition/stuff/etc/perdition/perdition.imap4s.conf perdition/stuff/etc/perdition/perdition.imaps.conf perdition/stuff/etc/perdition/perdition.pop3.conf perdition/stuff/etc/perdition/perdition.pop3s.conf vanessa_adt-dev/receipt vanessa_adt/receipt vanessa_logger-dev/receipt vanessa_logger/receipt vanessa_socket-dev/receipt vanessa_socket/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/perdition-dev/receipt	Sat Aug 09 21:05:27 2008 +0000
     1.3 @@ -0,0 +1,17 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="perdition-dev"
     1.7 +VERSION="1.17.1"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="IMAP/POP proxy development files."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +WEB_SITE="http://www.vergenet.net/linux/$PACKAGE"
    1.12 +WANTED="perdition"
    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
    1.18 +	cp -a $_pkg/usr/lib/*a $fs/usr/lib
    1.19 +}
    1.20 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/perdition/receipt	Sat Aug 09 21:05:27 2008 +0000
     2.3 @@ -0,0 +1,61 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="perdition"
     2.7 +VERSION="1.17.1"
     2.8 +CATEGORY="network"
     2.9 +SHORT_DESC="IMAP/POP proxy."
    2.10 +MAINTAINER="pascal.bellard@slitaz.org"
    2.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.12 +WEB_SITE="http://www.vergenet.net/linux/$PACKAGE"
    2.13 +WGET_URL="$WEB_SITE/download/$VERSION/$TARBALL"
    2.14 +BUILD_DEPENDS="vanessa_logger-dev vanessa_logger vanessa_adt-dev vanessa_adt vanessa_socket-dev vanessa_socket openldap-dev"
    2.15 +DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap"
    2.16 +CONFIG_FILES="/etc/perdition"
    2.17 +
    2.18 +# Rules to configure and make the package.
    2.19 +compile_rules()
    2.20 +{
    2.21 +	cd $src
    2.22 +	./configure --prefix=/usr --infodir=/usr/share/info \
    2.23 +	--enable-openldap --disable-ldap-doc --disable-nis \
    2.24 +	--disable-odbc --disable-mysql --disable-pg --disable-bdb \
    2.25 +	--sysconfdir=/etc --localstatedir=/var \
    2.26 +	--mandir=/usr/share/man $CONFIGURE_ARGS
    2.27 +	make
    2.28 +	make DESTDIR=$PWD/_pkg install
    2.29 +}
    2.30 +
    2.31 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.32 +genpkg_rules()
    2.33 +{
    2.34 +	mkdir -p $fs/usr/lib
    2.35 +	cp -a $_pkg/etc $fs
    2.36 +	rm -f $fs/etc/perdition/perdition.conf
    2.37 +	cp -a stuff/etc $fs
    2.38 +	cp -a $_pkg/usr/sbin $fs/usr
    2.39 +	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    2.40 +	for i in pop3 pop3s imap4 imap4s imaps; do
    2.41 +		mkdir -p $fs/var/run/perdition.$i
    2.42 +	done
    2.43 +	for i in $(cd $WOK; ls -d perdition-*)
    2.44 +	do
    2.45 +		tazwok cook $i
    2.46 +	done
    2.47 +}
    2.48 +
    2.49 +# Pre and post install commands for Tazpkg.
    2.50 +post_install()
    2.51 +{
    2.52 +	( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
    2.53 +		$1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
    2.54 +$(cd $1/ ; find etc/perdition -type f)
    2.55 +EOT
    2.56 +	for i in pop3 pop3s imap4 imap4s imaps; do
    2.57 +		chown nobody.nogroup $1/var/run/perdition.$i
    2.58 +	done
    2.59 +}
    2.60 +
    2.61 +repack_cleanup()
    2.62 +{
    2.63 +        zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
    2.64 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/perdition/stuff/etc/init.d/perdition	Sat Aug 09 21:05:27 2008 +0000
     3.3 @@ -0,0 +1,76 @@
     3.4 +#!/bin/sh
     3.5 +# /etc/init.d/perdition : Start, stop and restart IMAP/POP3 proxy server
     3.6 +# on SliTaz, at boot time or with the command line.
     3.7 +#
     3.8 +# To start IMAP/POP3 proxy server at boot time, just put perdition in the
     3.9 +# $RUN_DAEMONS variable of /etc/rcS.conf and configure options with
    3.10 +# /etc/daemons.conf
    3.11 +#
    3.12 +. /etc/init.d/rc.functions
    3.13 +. /etc/daemons.conf
    3.14 +
    3.15 +NAME=Perdition
    3.16 +DESC="IMAP/POP3 proxy server"
    3.17 +DAEMON=/usr/sbin/perdition
    3.18 +OPTIONS=$PERDITION_OPTIONS
    3.19 +PIDFILE=/var/run/perdition
    3.20 +PROTOCOLS="pop3 pop3s imap4 imap4s imaps"
    3.21 +[ -n "$OPTIONS" ] || OPTIONS="--group=nogroup"
    3.22 +
    3.23 +case "$1" in
    3.24 +  start)
    3.25 +    for i in $PROTOCOLS; do
    3.26 +      [ -s /etc/perdition/perdition.$i.conf ] || continue
    3.27 +      if [ -f $PIDFILE.$i/perdition.$i.pid ] ; then
    3.28 +        echo "$NAME ($i) already running."
    3.29 +        exit 1
    3.30 +      fi
    3.31 +      echo -n "Starting $DESC: $NAME ($i)... "
    3.32 +      $DAEMON.$i -f /etc/perdition/perdition.$i.conf $OPTIONS \
    3.33 +		--pid_file $PIDFILE.$i/perdition.$i.pid
    3.34 +      status
    3.35 +    done
    3.36 +    ;;
    3.37 +  stop)
    3.38 +    for i in $PROTOCOLS; do
    3.39 +      [ -s /etc/perdition/perdition.$i.conf ] || continue
    3.40 +      if [ -f $PIDFILE.$i/perdition.$i.pid ] ; then
    3.41 +        echo "$NAME ($i) is not running."
    3.42 +        exit 1
    3.43 +      fi
    3.44 +      echo -n "Stopping $DESC: $NAME ($i)... "
    3.45 +      kill `cat $PIDFILE.$i.pid`
    3.46 +      status
    3.47 +    done
    3.48 +    ;;
    3.49 +  restart)
    3.50 +    for i in $PROTOCOLS; do
    3.51 +      [ -s /etc/perdition/perdition.$i.conf ] || continue
    3.52 +      if [ -f $PIDFILE.$i/perdition.$i.pid ] ; then
    3.53 +        echo "$NAME ($i) is not running."
    3.54 +        exit 1
    3.55 +      fi
    3.56 +      echo -n "Restarting $DESC: $NAME ($i)... "
    3.57 +      kill `cat $PIDFILE.$i.pid`
    3.58 +      sleep 2
    3.59 +      $DAEMON.$i -f /etc/perdition/perdition.$i.conf $OPTIONS \
    3.60 +		--pid_file $PIDFILE.$i/perdition.$i.pid
    3.61 +      status
    3.62 +    done
    3.63 +    ;;
    3.64 +  reload)
    3.65 +    for i in $PROTOCOLS; do
    3.66 +      [ -s /etc/perdition/perdition.$i.conf ] || continue
    3.67 +      [ -f $PIDFILE.$i/perdition.$i.pid ] && kill -1 `cat $PIDFILE.$i.pid`
    3.68 +      status
    3.69 +    done
    3.70 +    ;;
    3.71 +  *)
    3.72 +    echo ""
    3.73 +    echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart|reload]"
    3.74 +    echo ""
    3.75 +    exit 1
    3.76 +    ;;
    3.77 +esac
    3.78 +
    3.79 +exit 0
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/perdition/stuff/etc/perdition/perdition.imap4.conf	Sat Aug 09 21:05:27 2008 +0000
     4.3 @@ -0,0 +1,6 @@
     4.4 +outgoing_server 127.0.0.1
     4.5 +outgoing_port 50143
     4.6 +map_library /usr/lib/libperditiondb_daemon.so.0
     4.7 +server_resp_line
     4.8 +username_from_database
     4.9 +capability "CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE LOGINDISABLED"
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/vanessa_adt-dev/receipt	Sat Aug 09 21:05:27 2008 +0000
     5.3 @@ -0,0 +1,18 @@
     5.4 +# SliTaz package receipt.
     5.5 +
     5.6 +PACKAGE="vanessa_adt-dev"
     5.7 +VERSION="0.0.6"
     5.8 +CATEGORY="development"
     5.9 +SHORT_DESC="Abstract Data Types development files."
    5.10 +MAINTAINER="pascal.bellard@slitaz.org"
    5.11 +WEB_SITE="http://www.vergenet.net/linux/vanessa"
    5.12 +WANTED="vanessa_adt"
    5.13 +
    5.14 +# Rules to gen a SliTaz package suitable for Tazpkg.
    5.15 +genpkg_rules()
    5.16 +{
    5.17 +	mkdir -p $fs/usr/lib
    5.18 +	cp -a $_pkg/usr/include $fs/usr
    5.19 +	cp -a $_pkg/usr/lib/*a $fs/usr/lib
    5.20 +}
    5.21 +
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/vanessa_adt/receipt	Sat Aug 09 21:05:27 2008 +0000
     6.3 @@ -0,0 +1,37 @@
     6.4 +# SliTaz package receipt.
     6.5 +
     6.6 +PACKED_SIZE="2.8M"
     6.7 +UNPACKED_SIZE="2.8M"
     6.8 +PACKAGE="vanessa_adt"
     6.9 +VERSION="0.0.6"
    6.10 +CATEGORY="network"
    6.11 +SHORT_DESC="Abstract Data Types."
    6.12 +MAINTAINER="pascal.bellard@slitaz.org"
    6.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    6.14 +WEB_SITE="http://www.vergenet.net/linux/vanessa"
    6.15 +WGET_URL="$WEB_SITE/download/$PACKAGE/$VERSION/$TARBALL"
    6.16 +DEPENDS="vanessa_logger"
    6.17 +BUILD_DEPENDS="vanessa_logger-dev vanessa_logger"
    6.18 +
    6.19 +# Rules to configure and make the package.
    6.20 +compile_rules()
    6.21 +{
    6.22 +	cd $src
    6.23 +	./configure --prefix=/usr --infodir=/usr/share/info \
    6.24 +	--mandir=/usr/share/man $CONFIGURE_ARGS
    6.25 +	make
    6.26 +	make DESTDIR=$PWD/_pkg install
    6.27 +}
    6.28 +
    6.29 +# Rules to gen a SliTaz package suitable for Tazpkg.
    6.30 +genpkg_rules()
    6.31 +{
    6.32 +	mkdir -p $fs/usr/lib
    6.33 +	cp -a $_pkg/usr/bin $fs/usr
    6.34 +	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    6.35 +	for i in $(cd $WOK; ls -d vanessa_adt-*)
    6.36 +	do
    6.37 +		tazwok cook $i
    6.38 +	done
    6.39 +}
    6.40 +
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/vanessa_logger-dev/receipt	Sat Aug 09 21:05:27 2008 +0000
     7.3 @@ -0,0 +1,18 @@
     7.4 +# SliTaz package receipt.
     7.5 +
     7.6 +PACKAGE="vanessa_logger-dev"
     7.7 +VERSION="0.0.7"
     7.8 +CATEGORY="development"
     7.9 +SHORT_DESC="generic logging layer development files."
    7.10 +MAINTAINER="pascal.bellard@slitaz.org"
    7.11 +WEB_SITE="http://www.vergenet.net/linux/vanessa"
    7.12 +WANTED="vanessa_logger"
    7.13 +
    7.14 +# Rules to gen a SliTaz package suitable for Tazpkg.
    7.15 +genpkg_rules()
    7.16 +{
    7.17 +	mkdir -p $fs/usr/lib
    7.18 +	cp -a $_pkg/usr/include $fs/usr
    7.19 +	cp -a $_pkg/usr/lib/*a $fs/usr/lib
    7.20 +}
    7.21 +
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/vanessa_logger/receipt	Sat Aug 09 21:05:27 2008 +0000
     8.3 @@ -0,0 +1,33 @@
     8.4 +# SliTaz package receipt.
     8.5 +
     8.6 +PACKAGE="vanessa_logger"
     8.7 +VERSION="0.0.7"
     8.8 +CATEGORY="network"
     8.9 +SHORT_DESC="generic logging layer."
    8.10 +MAINTAINER="pascal.bellard@slitaz.org"
    8.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    8.12 +WEB_SITE="http://www.vergenet.net/linux/vanessa"
    8.13 +WGET_URL="$WEB_SITE/download/$PACKAGE/$VERSION/$TARBALL"
    8.14 +
    8.15 +# Rules to configure and make the package.
    8.16 +compile_rules()
    8.17 +{
    8.18 +	cd $src
    8.19 +	./configure --prefix=/usr --infodir=/usr/share/info \
    8.20 +	--mandir=/usr/share/man $CONFIGURE_ARGS
    8.21 +	make
    8.22 +	make DESTDIR=$PWD/_pkg install
    8.23 +}
    8.24 +
    8.25 +# Rules to gen a SliTaz package suitable for Tazpkg.
    8.26 +genpkg_rules()
    8.27 +{
    8.28 +	mkdir -p $fs/usr/lib
    8.29 +	cp -a $_pkg/usr/bin $fs/usr
    8.30 +	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    8.31 +	for i in $(cd $WOK; ls -d vanessa_logger-*)
    8.32 +	do
    8.33 +		tazwok cook $i
    8.34 +	done
    8.35 +}
    8.36 +
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/vanessa_socket-dev/receipt	Sat Aug 09 21:05:27 2008 +0000
     9.3 @@ -0,0 +1,18 @@
     9.4 +# SliTaz package receipt.
     9.5 +
     9.6 +PACKAGE="vanessa_socket-dev"
     9.7 +VERSION="0.0.7"
     9.8 +CATEGORY="development"
     9.9 +SHORT_DESC="Simplifies TCP/IP socket operations, development files."
    9.10 +MAINTAINER="pascal.bellard@slitaz.org"
    9.11 +WEB_SITE="http://www.vergenet.net/linux/vanessa"
    9.12 +WANTED="vanessa_socket"
    9.13 +
    9.14 +# Rules to gen a SliTaz package suitable for Tazpkg.
    9.15 +genpkg_rules()
    9.16 +{
    9.17 +	mkdir -p $fs/usr/lib
    9.18 +	cp -a $_pkg/usr/include $fs/usr
    9.19 +	cp -a $_pkg/usr/lib/*a $fs/usr/lib
    9.20 +}
    9.21 +
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/vanessa_socket/receipt	Sat Aug 09 21:05:27 2008 +0000
    10.3 @@ -0,0 +1,35 @@
    10.4 +# SliTaz package receipt.
    10.5 +
    10.6 +PACKAGE="vanessa_socket"
    10.7 +VERSION="0.0.7"
    10.8 +CATEGORY="network"
    10.9 +SHORT_DESC="Simplifies TCP/IP socket operations."
   10.10 +MAINTAINER="pascal.bellard@slitaz.org"
   10.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
   10.12 +WEB_SITE="http://www.vergenet.net/linux/vanessa"
   10.13 +WGET_URL="$WEB_SITE/download/$PACKAGE/$VERSION/$TARBALL"
   10.14 +DEPENDS="vanessa_logger popt"
   10.15 +BUILD_DEPENDS="vanessa_logger-dev vanessa_logger popt-dev"
   10.16 +
   10.17 +# Rules to configure and make the package.
   10.18 +compile_rules()
   10.19 +{
   10.20 +	cd $src
   10.21 +	./configure --prefix=/usr --infodir=/usr/share/info \
   10.22 +	--mandir=/usr/share/man $CONFIGURE_ARGS
   10.23 +	make
   10.24 +	make DESTDIR=$PWD/_pkg install
   10.25 +}
   10.26 +
   10.27 +# Rules to gen a SliTaz package suitable for Tazpkg.
   10.28 +genpkg_rules()
   10.29 +{
   10.30 +	mkdir -p $fs/usr/lib
   10.31 +	cp -a $_pkg/usr/bin $fs/usr
   10.32 +	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
   10.33 +	for i in $(cd $WOK; ls -d vanessa_socket-*)
   10.34 +	do
   10.35 +		tazwok cook $i
   10.36 +	done
   10.37 +}
   10.38 +