wok annotate perdition-pam/receipt @ rev 20032
Up hostapd (2.6)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 23 13:34:58 2017 +0200 (2017-08-23) |
parents | 9e01bc6321ea |
children | 113d38a1e4e9 |
rev | line source |
---|---|
pascal@2217 | 1 # SliTaz package receipt. |
pascal@2217 | 2 |
pascal@2217 | 3 PACKAGE="perdition-pam" |
pascal@18806 | 4 VERSION="2.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@18806 | 13 CONFIG_FILES="/etc/perdition" |
pascal@18806 | 14 PROVIDE="perdition:pam" |
pascal@18806 | 15 |
pascal@5005 | 16 DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap openssl cyrus-sasl \ |
pascal@5005 | 17 pam glibc-base libkrb5 libcomerr3 gdbm" |
pascal@18806 | 18 BUILD_DEPENDS="vanessa_logger-dev vanessa_adt-dev vanessa_socket-dev \ |
pascal@18806 | 19 openldap-dev pam pam-dev popt-dev cyrus-sasl-dev openssl-dev libidn-dev" |
pascal@2217 | 20 |
pascal@2217 | 21 # Rules to configure and make the package. |
pascal@2217 | 22 compile_rules() |
pascal@2217 | 23 { |
pascal@2217 | 24 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@18806 | 25 --disable-ldap-doc --disable-nis \ |
pascal@18806 | 26 --disable-odbc --disable-mysql --disable-pg --disable-bdb \ |
pascal@18806 | 27 --disable-cdb --disable-gdbm \ |
pascal@18806 | 28 --sysconfdir=/etc --localstatedir=/var \ |
pascal@18806 | 29 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@2217 | 30 make && |
pascal@15000 | 31 make DESTDIR=$DESTDIR install |
pascal@2217 | 32 } |
pascal@2217 | 33 |
pascal@2217 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2217 | 35 genpkg_rules() |
pascal@2217 | 36 { |
pascal@2217 | 37 mkdir -p $fs/usr/lib $fs/etc/openldap/schema |
pascal@15000 | 38 cp -a $install/etc $fs |
pascal@2217 | 39 rm -f $fs/etc/perdition/perdition.conf |
slaxemulator@9701 | 40 cp -a ../$SOURCE/stuff/etc $fs |
pascal@15000 | 41 cp -a $install/usr/sbin $fs/usr |
pascal@15000 | 42 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@2217 | 43 for i in pop3 pop3s imap4 imap4s imaps; do |
pascal@2217 | 44 mkdir -p $fs/var/run/perdition.$i |
pascal@2217 | 45 done |
pascal@2217 | 46 cp $src/perdition/db/ldap/perdition.schema $fs/etc/openldap/schema |
pascal@2217 | 47 } |
pascal@2217 | 48 |
pascal@2217 | 49 # Pre and post install commands for Tazpkg. |
pascal@2217 | 50 post_install() |
pascal@2217 | 51 { |
pascal@2217 | 52 for i in pop3 pop3s imap4 imap4s imaps; do |
pascal@18730 | 53 chown nobody.nogroup "$1/var/run/perdition.$i" |
pascal@2217 | 54 done |
pascal@2217 | 55 cat <<EOF |
pascal@2217 | 56 ---- |
pascal@2217 | 57 Perdition will forward to the 127.0.0.1:50143 imap server. |
pascal@2217 | 58 Can you change listen="imap" to listen="50143" in /etc/cyrus.conf |
pascal@2217 | 59 and restart cyrus-imap, or modify files in /etc/perdition. |
pascal@2217 | 60 To start $SOURCE server you can run : |
pascal@2217 | 61 |
pascal@2217 | 62 /etc/init.d/$SOURCE start |
pascal@2217 | 63 |
pascal@2217 | 64 Or add $SOURCE to RUN_DAEMONS in /etc/rcS.conf |
pascal@2217 | 65 ---- |
pascal@2217 | 66 EOF |
pascal@2217 | 67 } |