wok annotate perdition/receipt @ rev 20603
Update iptraf & gcc3
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Dec 17 12:19:32 2018 +0100 (2018-12-17) |
parents | 9e01bc6321ea |
children | 113d38a1e4e9 |
rev | line source |
---|---|
pascal@1215 | 1 # SliTaz package receipt. |
pascal@1215 | 2 |
pascal@1215 | 3 PACKAGE="perdition" |
pascal@18806 | 4 VERSION="2.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@5005 | 15 DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap openssl cyrus-sasl \ |
pascal@5005 | 16 glibc-base libkrb5 libcomerr3 gdbm" |
pascal@18806 | 17 BUILD_DEPENDS="vanessa_logger-dev vanessa_adt-dev vanessa_socket-dev \ |
pascal@18806 | 18 openldap-dev popt-dev cyrus-sasl-dev openssl-dev libidn-dev" |
pascal@1215 | 19 |
pascal@1215 | 20 # Rules to configure and make the package. |
pascal@1215 | 21 compile_rules() |
pascal@1215 | 22 { |
pascal@1215 | 23 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@18806 | 24 --disable-ldap-doc --disable-nis \ |
pascal@18806 | 25 --disable-odbc --disable-mysql --disable-pg --disable-bdb \ |
pascal@18806 | 26 --disable-cdb --disable-gdbm --disable-pam \ |
pascal@18806 | 27 --sysconfdir=/etc --localstatedir=/var \ |
pascal@18806 | 28 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@2217 | 29 make && |
pascal@15000 | 30 make DESTDIR=$DESTDIR install |
pascal@1215 | 31 } |
pascal@1215 | 32 |
pascal@1215 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1215 | 34 genpkg_rules() |
pascal@1215 | 35 { |
pascal@1548 | 36 mkdir -p $fs/usr/lib $fs/etc/openldap/schema |
pascal@15000 | 37 cp -a $install/etc $fs |
pascal@1215 | 38 rm -f $fs/etc/perdition/perdition.conf |
pascal@18806 | 39 cp -a $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@1215 | 42 for i in pop3 pop3s imap4 imap4s imaps; do |
pascal@1215 | 43 mkdir -p $fs/var/run/perdition.$i |
pascal@1215 | 44 done |
pascal@1548 | 45 cp $src/perdition/db/ldap/perdition.schema $fs/etc/openldap/schema |
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@18730 | 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 } |