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