wok-current annotate perdition/receipt @ rev 25535
updated imlib2 and imlib2-dev 1.8.0 -> 1.10.0
author | Hans-G?nter Theisgen |
---|---|
date | Thu Mar 02 09:40:16 2023 +0100 (22 months ago) |
parents | 113d38a1e4e9 |
children |
rev | line source |
---|---|
pascal@1215 | 1 # SliTaz package receipt. |
pascal@1215 | 2 |
pascal@1215 | 3 PACKAGE="perdition" |
Hans-G?nter@21674 | 4 VERSION="2.2" |
pascal@1215 | 5 CATEGORY="network" |
Hans-G?nter@21674 | 6 SHORT_DESC="Fully featured POP3 and IMAP4 proxy server." |
pascal@1215 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pascal@24436 | 9 WEB_SITE="https://projects.horms.net/projects/perdition" |
Hans-G?nter@21674 | 10 |
pascal@1215 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@1215 | 12 WGET_URL="$WEB_SITE/download/$VERSION/$TARBALL" |
Hans-G?nter@21674 | 13 |
Hans-G?nter@21674 | 14 DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap openssl cyrus-sasl \ |
Hans-G?nter@21674 | 15 glibc-base libkrb5 libcomerr3 gdbm" |
Hans-G?nter@21674 | 16 BUILD_DEPENDS="vanessa_logger-dev vanessa_adt-dev vanessa_socket-dev \ |
Hans-G?nter@21674 | 17 openldap-dev popt-dev cyrus-sasl-dev openssl-dev libidn-dev" |
pascal@15000 | 18 CONFIG_FILES="/etc/perdition" |
pascal@15000 | 19 BUGS="Very slow: more than 10 seconds for login with squirrelmail, why ?" |
pascal@15000 | 20 |
pascal@24436 | 21 # What is the latest version available today? |
pascal@24436 | 22 current_version() |
pascal@24436 | 23 { |
pascal@24436 | 24 wget -O - ${WGET_URL%/*/*} 2>/dev/null | \ |
pascal@24436 | 25 sed '/href="[0-9]/!d;s|.*href="||;s|/.*||' | sort -Vr | sed q |
pascal@24436 | 26 } |
pascal@24436 | 27 |
pascal@1215 | 28 # Rules to configure and make the package. |
pascal@1215 | 29 compile_rules() |
pascal@1215 | 30 { |
Hans-G?nter@21674 | 31 ./configure \ |
Hans-G?nter@21674 | 32 --prefix=/usr \ |
Hans-G?nter@21674 | 33 --infodir=/usr/share/info \ |
Hans-G?nter@21674 | 34 --disable-ldap-doc \ |
Hans-G?nter@21674 | 35 --disable-nis \ |
Hans-G?nter@21674 | 36 --disable-odbc \ |
Hans-G?nter@21674 | 37 --disable-mysql \ |
Hans-G?nter@21674 | 38 --disable-pg \ |
Hans-G?nter@21674 | 39 --disable-bdb \ |
Hans-G?nter@21674 | 40 --disable-cdb \ |
Hans-G?nter@21674 | 41 --disable-gdbm \ |
Hans-G?nter@21674 | 42 --disable-pam \ |
Hans-G?nter@21674 | 43 --sysconfdir=/etc \ |
Hans-G?nter@21674 | 44 --localstatedir=/var \ |
Hans-G?nter@21674 | 45 --mandir=/usr/share/man \ |
Hans-G?nter@21674 | 46 $CONFIGURE_ARGS && |
pascal@2217 | 47 make && |
pascal@15000 | 48 make DESTDIR=$DESTDIR install |
pascal@1215 | 49 } |
pascal@1215 | 50 |
pascal@1215 | 51 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1215 | 52 genpkg_rules() |
pascal@1215 | 53 { |
Hans-G?nter@21674 | 54 mkdir -p $fs/usr/lib |
Hans-G?nter@21674 | 55 mkdir -p $fs/etc/openldap/schema |
Hans-G?nter@21674 | 56 |
Hans-G?nter@21674 | 57 cp -a $install/etc $fs |
pascal@1215 | 58 rm -f $fs/etc/perdition/perdition.conf |
Hans-G?nter@21674 | 59 |
Hans-G?nter@21674 | 60 cp -a $stuff/etc $fs |
Hans-G?nter@21674 | 61 cp -a $install/usr/sbin $fs/usr |
Hans-G?nter@21674 | 62 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@1215 | 63 for i in pop3 pop3s imap4 imap4s imaps; do |
pascal@1215 | 64 mkdir -p $fs/var/run/perdition.$i |
pascal@1215 | 65 done |
Hans-G?nter@21674 | 66 cp $src/perdition/db/ldap/perdition.schema \ |
Hans-G?nter@21674 | 67 $fs/etc/openldap/schema |
pascal@1215 | 68 } |
pascal@1215 | 69 |
pascal@1215 | 70 # Pre and post install commands for Tazpkg. |
pascal@1215 | 71 post_install() |
pascal@1215 | 72 { |
pascal@1215 | 73 for i in pop3 pop3s imap4 imap4s imaps; do |
pascal@18730 | 74 chown nobody.nogroup "$1/var/run/perdition.$i" |
pascal@1215 | 75 done |
pascal@1229 | 76 cat <<EOF |
pascal@1229 | 77 ---- |
pascal@1229 | 78 Perdition will forward to the 127.0.0.1:50143 imap server. |
pascal@1229 | 79 Can you change listen="imap" to listen="50143" in /etc/cyrus.conf |
pascal@1229 | 80 and restart cyrus-imap, or modify files in /etc/perdition. |
pascal@1229 | 81 To start $PACKAGE server you can run : |
pascal@1229 | 82 |
pascal@1229 | 83 /etc/init.d/$PACKAGE start |
pascal@1229 | 84 |
pascal@1229 | 85 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf |
pascal@1229 | 86 ---- |
pascal@1229 | 87 EOF |
pascal@1215 | 88 } |