wok annotate perdition-pam/receipt @ rev 25106
linux-libre: update wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 22 14:39:56 2022 +0000 (2022-06-22) |
parents | 113d38a1e4e9 |
children |
rev | line source |
---|---|
pascal@2217 | 1 # SliTaz package receipt. |
pascal@2217 | 2 |
pascal@2217 | 3 PACKAGE="perdition-pam" |
Hans-G?nter@21674 | 4 VERSION="2.2" |
pascal@2217 | 5 CATEGORY="network" |
Hans-G?nter@21674 | 6 SHORT_DESC="Fully featured POP3 and IMAP4 proxy server." |
pascal@2217 | 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@2217 | 11 SOURCE="perdition" |
pascal@2217 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@2217 | 13 WGET_URL="$WEB_SITE/download/$VERSION/$TARBALL" |
Hans-G?nter@21674 | 14 |
Hans-G?nter@21674 | 15 PROVIDE="perdition:pam" |
Hans-G?nter@21674 | 16 DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap openssl cyrus-sasl \ |
Hans-G?nter@21674 | 17 pam glibc-base libkrb5 libcomerr3 gdbm" |
Hans-G?nter@21674 | 18 BUILD_DEPENDS="vanessa_logger-dev vanessa_adt-dev vanessa_socket-dev \ |
Hans-G?nter@21674 | 19 openldap-dev pam pam-dev popt-dev cyrus-sasl-dev openssl-dev libidn-dev" |
pascal@18806 | 20 CONFIG_FILES="/etc/perdition" |
pascal@2217 | 21 |
pascal@24436 | 22 # What is the latest version available today? |
pascal@24436 | 23 current_version() |
pascal@24436 | 24 { |
pascal@24436 | 25 wget -O - ${WGET_URL%/*/*} 2>/dev/null | \ |
pascal@24436 | 26 sed '/href="[0-9]/!d;s|.*href="||;s|/.*||' | sort -Vr | sed q |
pascal@24436 | 27 } |
pascal@24436 | 28 |
pascal@2217 | 29 # Rules to configure and make the package. |
pascal@2217 | 30 compile_rules() |
pascal@2217 | 31 { |
Hans-G?nter@21674 | 32 ./configure \ |
Hans-G?nter@21674 | 33 --prefix=/usr \ |
Hans-G?nter@21674 | 34 --infodir=/usr/share/info \ |
Hans-G?nter@21674 | 35 --disable-ldap-doc \ |
Hans-G?nter@21674 | 36 --disable-nis \ |
Hans-G?nter@21674 | 37 --disable-odbc \ |
Hans-G?nter@21674 | 38 --disable-mysql \ |
Hans-G?nter@21674 | 39 --disable-pg \ |
Hans-G?nter@21674 | 40 --disable-bdb \ |
Hans-G?nter@21674 | 41 --disable-cdb \ |
Hans-G?nter@21674 | 42 --disable-gdbm \ |
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@2217 | 49 } |
pascal@2217 | 50 |
pascal@2217 | 51 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2217 | 52 genpkg_rules() |
pascal@2217 | 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@2217 | 58 rm -f $fs/etc/perdition/perdition.conf |
Hans-G?nter@21674 | 59 |
Hans-G?nter@21674 | 60 cp -a ../$SOURCE/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 |
Hans-G?nter@21674 | 63 |
pascal@2217 | 64 for i in pop3 pop3s imap4 imap4s imaps; do |
pascal@2217 | 65 mkdir -p $fs/var/run/perdition.$i |
pascal@2217 | 66 done |
Hans-G?nter@21674 | 67 cp $src/perdition/db/ldap/perdition.schema \ |
Hans-G?nter@21674 | 68 $fs/etc/openldap/schema |
pascal@2217 | 69 } |
pascal@2217 | 70 |
pascal@2217 | 71 # Pre and post install commands for Tazpkg. |
pascal@2217 | 72 post_install() |
pascal@2217 | 73 { |
pascal@2217 | 74 for i in pop3 pop3s imap4 imap4s imaps; do |
pascal@18730 | 75 chown nobody.nogroup "$1/var/run/perdition.$i" |
pascal@2217 | 76 done |
pascal@2217 | 77 cat <<EOF |
pascal@2217 | 78 ---- |
pascal@2217 | 79 Perdition will forward to the 127.0.0.1:50143 imap server. |
pascal@2217 | 80 Can you change listen="imap" to listen="50143" in /etc/cyrus.conf |
pascal@2217 | 81 and restart cyrus-imap, or modify files in /etc/perdition. |
pascal@2217 | 82 To start $SOURCE server you can run : |
pascal@2217 | 83 |
pascal@2217 | 84 /etc/init.d/$SOURCE start |
pascal@2217 | 85 |
pascal@2217 | 86 Or add $SOURCE to RUN_DAEMONS in /etc/rcS.conf |
pascal@2217 | 87 ---- |
pascal@2217 | 88 EOF |
pascal@2217 | 89 } |