wok-next annotate perdition/receipt @ rev 2093
slitaz-configs: up DEPENDS for 1.0 to 2.0 upgrade (new desktop)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Jan 28 18:57:20 2009 +0100 (2009-01-28) |
parents | 6f5051317527 |
children | 1e5ead21b647 |
rev | line source |
---|---|
pascal@1215 | 1 # SliTaz package receipt. |
pascal@1215 | 2 |
pascal@1215 | 3 PACKAGE="perdition" |
pascal@1215 | 4 VERSION="1.17.1" |
pascal@1215 | 5 CATEGORY="network" |
pascal@1215 | 6 SHORT_DESC="IMAP/POP proxy." |
pascal@1215 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@1215 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@1215 | 9 WEB_SITE="http://www.vergenet.net/linux/$PACKAGE" |
pascal@1215 | 10 WGET_URL="$WEB_SITE/download/$VERSION/$TARBALL" |
pascal@1215 | 11 BUILD_DEPENDS="vanessa_logger-dev vanessa_logger vanessa_adt-dev vanessa_adt vanessa_socket-dev vanessa_socket openldap-dev" |
pascal@1215 | 12 DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap" |
pascal@1215 | 13 CONFIG_FILES="/etc/perdition" |
pascal@1245 | 14 BUGS="Very slow: more than 10 seconds for login with squirrelmail, why ?" |
pascal@1215 | 15 |
pascal@1215 | 16 # Rules to configure and make the package. |
pascal@1215 | 17 compile_rules() |
pascal@1215 | 18 { |
pascal@1215 | 19 cd $src |
pascal@1215 | 20 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@1215 | 21 --enable-openldap --disable-ldap-doc --disable-nis \ |
pascal@1215 | 22 --disable-odbc --disable-mysql --disable-pg --disable-bdb \ |
pascal@1215 | 23 --sysconfdir=/etc --localstatedir=/var \ |
pascal@1215 | 24 --mandir=/usr/share/man $CONFIGURE_ARGS |
pascal@1215 | 25 make |
pascal@1215 | 26 make DESTDIR=$PWD/_pkg install |
pascal@1215 | 27 } |
pascal@1215 | 28 |
pascal@1215 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1215 | 30 genpkg_rules() |
pascal@1215 | 31 { |
pascal@1548 | 32 mkdir -p $fs/usr/lib $fs/etc/openldap/schema |
pascal@1215 | 33 cp -a $_pkg/etc $fs |
pascal@1215 | 34 rm -f $fs/etc/perdition/perdition.conf |
pascal@1215 | 35 cp -a stuff/etc $fs |
pascal@1215 | 36 cp -a $_pkg/usr/sbin $fs/usr |
pascal@1215 | 37 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pascal@1215 | 38 for i in pop3 pop3s imap4 imap4s imaps; do |
pascal@1215 | 39 mkdir -p $fs/var/run/perdition.$i |
pascal@1215 | 40 done |
pascal@1548 | 41 cp $src/perdition/db/ldap/perdition.schema $fs/etc/openldap/schema |
pascal@1215 | 42 for i in $(cd $WOK; ls -d perdition-*) |
pascal@1215 | 43 do |
pascal@1215 | 44 tazwok cook $i |
pascal@1215 | 45 done |
pascal@1215 | 46 } |
pascal@1215 | 47 |
pascal@1215 | 48 # Pre and post install commands for Tazpkg. |
pascal@1215 | 49 post_install() |
pascal@1215 | 50 { |
pascal@1215 | 51 for i in pop3 pop3s imap4 imap4s imaps; do |
pascal@1215 | 52 chown nobody.nogroup $1/var/run/perdition.$i |
pascal@1215 | 53 done |
pascal@1229 | 54 cat <<EOF |
pascal@1229 | 55 ---- |
pascal@1229 | 56 Perdition will forward to the 127.0.0.1:50143 imap server. |
pascal@1229 | 57 Can you change listen="imap" to listen="50143" in /etc/cyrus.conf |
pascal@1229 | 58 and restart cyrus-imap, or modify files in /etc/perdition. |
pascal@1229 | 59 To start $PACKAGE server you can run : |
pascal@1229 | 60 |
pascal@1229 | 61 /etc/init.d/$PACKAGE start |
pascal@1229 | 62 |
pascal@1229 | 63 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf |
pascal@1229 | 64 ---- |
pascal@1229 | 65 EOF |
pascal@1215 | 66 } |