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