wok-6.x annotate perdition/receipt @ rev 15707
linux: update aufs3 patch name
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Sun Dec 22 14:29:04 2013 +0000 (2013-12-22) |
parents | 068411ccd1e5 |
children | 9e01bc6321ea |
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@15000 | 8 LICENSE="GPL2" |
pascal@1215 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@1215 | 10 WEB_SITE="http://www.vergenet.net/linux/$PACKAGE" |
pascal@1215 | 11 WGET_URL="$WEB_SITE/download/$VERSION/$TARBALL" |
pascal@15000 | 12 CONFIG_FILES="/etc/perdition" |
pascal@15000 | 13 BUGS="Very slow: more than 10 seconds for login with squirrelmail, why ?" |
pascal@15000 | 14 |
pascal@2229 | 15 BUILD_DEPENDS="vanessa_logger-dev vanessa_logger vanessa_adt-dev vanessa_adt vanessa_socket-dev vanessa_socket openldap-dev popt-dev cyrus-sasl-dev" |
pascal@5005 | 16 DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap openssl cyrus-sasl \ |
pascal@5005 | 17 glibc-base libkrb5 libcomerr3 gdbm" |
pascal@1215 | 18 |
pascal@1215 | 19 # Rules to configure and make the package. |
pascal@1215 | 20 compile_rules() |
pascal@1215 | 21 { |
pascal@1215 | 22 cd $src |
pascal@2281 | 23 sed -i 's/pam=yes/pam=no/' configure |
pascal@1215 | 24 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@1215 | 25 --enable-openldap --disable-ldap-doc --disable-nis \ |
pascal@1215 | 26 --disable-odbc --disable-mysql --disable-pg --disable-bdb \ |
pascal@1215 | 27 --sysconfdir=/etc --localstatedir=/var \ |
pascal@2217 | 28 --mandir=/usr/share/man $CONFIGURE_ARGS || return 1 |
pascal@2217 | 29 sed -i 's/#define WITH_PAM_SUPPORT 1/#undef WITH_PAM_SUPPORT/' config.h |
pascal@2217 | 30 make && |
pascal@15000 | 31 make DESTDIR=$DESTDIR install |
pascal@1215 | 32 } |
pascal@1215 | 33 |
pascal@1215 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1215 | 35 genpkg_rules() |
pascal@1215 | 36 { |
pascal@1548 | 37 mkdir -p $fs/usr/lib $fs/etc/openldap/schema |
pascal@15000 | 38 cp -a $install/etc $fs |
pascal@1215 | 39 rm -f $fs/etc/perdition/perdition.conf |
pascal@1215 | 40 cp -a stuff/etc $fs |
pascal@15000 | 41 cp -a $install/usr/sbin $fs/usr |
pascal@15000 | 42 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@1215 | 43 for i in pop3 pop3s imap4 imap4s imaps; do |
pascal@1215 | 44 mkdir -p $fs/var/run/perdition.$i |
pascal@1215 | 45 done |
pascal@1548 | 46 cp $src/perdition/db/ldap/perdition.schema $fs/etc/openldap/schema |
pascal@1215 | 47 } |
pascal@1215 | 48 |
pascal@1215 | 49 # Pre and post install commands for Tazpkg. |
pascal@1215 | 50 post_install() |
pascal@1215 | 51 { |
pascal@1215 | 52 for i in pop3 pop3s imap4 imap4s imaps; do |
pascal@1215 | 53 chown nobody.nogroup $1/var/run/perdition.$i |
pascal@1215 | 54 done |
pascal@1229 | 55 cat <<EOF |
pascal@1229 | 56 ---- |
pascal@1229 | 57 Perdition will forward to the 127.0.0.1:50143 imap server. |
pascal@1229 | 58 Can you change listen="imap" to listen="50143" in /etc/cyrus.conf |
pascal@1229 | 59 and restart cyrus-imap, or modify files in /etc/perdition. |
pascal@1229 | 60 To start $PACKAGE server you can run : |
pascal@1229 | 61 |
pascal@1229 | 62 /etc/init.d/$PACKAGE start |
pascal@1229 | 63 |
pascal@1229 | 64 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf |
pascal@1229 | 65 ---- |
pascal@1229 | 66 EOF |
pascal@1215 | 67 } |