wok-next rev 20285
remove perdition-dev, perdition-pam
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 08 15:39:43 2017 +0100 (2017-11-08) |
parents | c6b8c8e476d9 |
children | 9d04ac35b45f |
files | cyrus-sasl/receipt perdition-dev/receipt perdition-pam/receipt perdition/receipt |
line diff
1.1 --- a/cyrus-sasl/receipt Wed Nov 08 15:23:11 2017 +0100 1.2 +++ b/cyrus-sasl/receipt Wed Nov 08 15:39:43 2017 +0100 1.3 @@ -20,6 +20,7 @@ 1.4 { 1.5 autoreconf -fi && 1.6 1.7 + mkdir -p $src/saslauthd/cmulocal 1.8 cp -a $src $src-pam 1.9 cp -a $src $src-without-ldap 1.10 1.11 @@ -33,7 +34,6 @@ 1.12 --with-ldap \ 1.13 --with-openssl \ 1.14 $CONFIGURE_ARGS && 1.15 - mkdir -p saslauthd/cmulocal && 1.16 make && make install && 1.17 1.18 cd $src-pam 1.19 @@ -47,7 +47,6 @@ 1.20 --with-ldap \ 1.21 --with-openssl \ 1.22 $CONFIGURE_ARGS && 1.23 - mkdir -p saslauthd/cmulocal && 1.24 make && make DESTDIR=$DESTDIR-pam install && 1.25 1.26 for inst in $install $install-pam; do
2.1 --- a/perdition-dev/receipt Wed Nov 08 15:23:11 2017 +0100 2.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 2.3 @@ -1,19 +0,0 @@ 2.4 -# SliTaz package receipt. 2.5 - 2.6 -PACKAGE="perdition-dev" 2.7 -VERSION="2.1" 2.8 -CATEGORY="development" 2.9 -SHORT_DESC="IMAP/POP proxy development files." 2.10 -MAINTAINER="pascal.bellard@slitaz.org" 2.11 -LICENSE="GPL2" 2.12 -WEB_SITE="http://www.vergenet.net/linux/perdition" 2.13 -WANTED="perdition" 2.14 - 2.15 -DEPENDS="perdition" 2.16 - 2.17 -# Rules to gen a SliTaz package suitable for Tazpkg. 2.18 -genpkg_rules() 2.19 -{ 2.20 - mkdir -p $fs/usr/lib 2.21 - cp -a $install/usr/lib/*.a $fs/usr/lib 2.22 -}
3.1 --- a/perdition-pam/receipt Wed Nov 08 15:23:11 2017 +0100 3.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 3.3 @@ -1,67 +0,0 @@ 3.4 -# SliTaz package receipt. 3.5 - 3.6 -PACKAGE="perdition-pam" 3.7 -VERSION="2.1" 3.8 -CATEGORY="network" 3.9 -SHORT_DESC="IMAP/POP proxy." 3.10 -MAINTAINER="pascal.bellard@slitaz.org" 3.11 -LICENSE="GPL2" 3.12 -SOURCE="perdition" 3.13 -TARBALL="$SOURCE-$VERSION.tar.gz" 3.14 -WEB_SITE="http://www.vergenet.net/linux/$SOURCE" 3.15 -WGET_URL="$WEB_SITE/download/$VERSION/$TARBALL" 3.16 -CONFIG_FILES="/etc/perdition" 3.17 -PROVIDE="perdition:pam" 3.18 - 3.19 -DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap openssl cyrus-sasl \ 3.20 -pam glibc-base libkrb5 libcomerr3 gdbm" 3.21 -BUILD_DEPENDS="vanessa_logger-dev vanessa_adt-dev vanessa_socket-dev \ 3.22 -openldap-dev pam pam-dev popt-dev cyrus-sasl-dev openssl-dev libidn-dev" 3.23 - 3.24 -# Rules to configure and make the package. 3.25 -compile_rules() 3.26 -{ 3.27 - ./configure --prefix=/usr --infodir=/usr/share/info \ 3.28 - --disable-ldap-doc --disable-nis \ 3.29 - --disable-odbc --disable-mysql --disable-pg --disable-bdb \ 3.30 - --disable-cdb --disable-gdbm \ 3.31 - --sysconfdir=/etc --localstatedir=/var \ 3.32 - --mandir=/usr/share/man $CONFIGURE_ARGS && 3.33 - make && 3.34 - make DESTDIR=$DESTDIR install 3.35 -} 3.36 - 3.37 -# Rules to gen a SliTaz package suitable for Tazpkg. 3.38 -genpkg_rules() 3.39 -{ 3.40 - mkdir -p $fs/usr/lib $fs/etc/openldap/schema 3.41 - cp -a $install/etc $fs 3.42 - rm -f $fs/etc/perdition/perdition.conf 3.43 - cp -a ../$SOURCE/stuff/etc $fs 3.44 - cp -a $install/usr/sbin $fs/usr 3.45 - cp -a $install/usr/lib/*.so* $fs/usr/lib 3.46 - for i in pop3 pop3s imap4 imap4s imaps; do 3.47 - mkdir -p $fs/var/run/perdition.$i 3.48 - done 3.49 - cp $src/perdition/db/ldap/perdition.schema $fs/etc/openldap/schema 3.50 -} 3.51 - 3.52 -# Pre and post install commands for Tazpkg. 3.53 -post_install() 3.54 -{ 3.55 - for i in pop3 pop3s imap4 imap4s imaps; do 3.56 - chown nobody.nogroup "$1/var/run/perdition.$i" 3.57 - done 3.58 - cat <<EOF 3.59 ----- 3.60 -Perdition will forward to the 127.0.0.1:50143 imap server. 3.61 -Can you change listen="imap" to listen="50143" in /etc/cyrus.conf 3.62 -and restart cyrus-imap, or modify files in /etc/perdition. 3.63 -To start $SOURCE server you can run : 3.64 - 3.65 - /etc/init.d/$SOURCE start 3.66 - 3.67 -Or add $SOURCE to RUN_DAEMONS in /etc/rcS.conf 3.68 ----- 3.69 -EOF 3.70 -}
4.1 --- a/perdition/receipt Wed Nov 08 15:23:11 2017 +0100 4.2 +++ b/perdition/receipt Wed Nov 08 15:39:43 2017 +0100 4.3 @@ -1,4 +1,4 @@ 4.4 -# SliTaz package receipt. 4.5 +# SliTaz package receipt v2. 4.6 4.7 PACKAGE="perdition" 4.8 VERSION="2.1" 4.9 @@ -12,14 +12,14 @@ 4.10 CONFIG_FILES="/etc/perdition" 4.11 BUGS="Very slow: more than 10 seconds for login with squirrelmail, why ?" 4.12 4.13 -DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap openssl cyrus-sasl \ 4.14 - glibc-base libkrb5 libcomerr3 gdbm" 4.15 BUILD_DEPENDS="vanessa_logger-dev vanessa_adt-dev vanessa_socket-dev \ 4.16 -openldap-dev popt-dev cyrus-sasl-dev openssl-dev libidn-dev" 4.17 +openldap-dev popt-dev cyrus-sasl-dev openssl-dev libidn-dev pam-dev" 4.18 +SPLIT="perdition perdition-pam perdition-dev" 4.19 4.20 # Rules to configure and make the package. 4.21 compile_rules() 4.22 { 4.23 + cp -a $src $src-pam 4.24 ./configure --prefix=/usr --infodir=/usr/share/info \ 4.25 --disable-ldap-doc --disable-nis \ 4.26 --disable-odbc --disable-mysql --disable-pg --disable-bdb \ 4.27 @@ -28,25 +28,49 @@ 4.28 --mandir=/usr/share/man $CONFIGURE_ARGS && 4.29 make && 4.30 make DESTDIR=$DESTDIR install 4.31 + 4.32 + cd $src-pam 4.33 + ./configure --prefix=/usr --infodir=/usr/share/info \ 4.34 + --disable-ldap-doc --disable-nis \ 4.35 + --disable-odbc --disable-mysql --disable-pg --disable-bdb \ 4.36 + --disable-cdb --disable-gdbm \ 4.37 + --sysconfdir=/etc --localstatedir=/var \ 4.38 + --mandir=/usr/share/man $CONFIGURE_ARGS && 4.39 + make && 4.40 + make DESTDIR=$DESTDIR-pam install 4.41 } 4.42 4.43 # Rules to gen a SliTaz package suitable for Tazpkg. 4.44 genpkg_rules() 4.45 { 4.46 - mkdir -p $fs/usr/lib $fs/etc/openldap/schema 4.47 - cp -a $install/etc $fs 4.48 - rm -f $fs/etc/perdition/perdition.conf 4.49 - cp -a $stuff/etc $fs 4.50 - cp -a $install/usr/sbin $fs/usr 4.51 - cp -a $install/usr/lib/*.so* $fs/usr/lib 4.52 - for i in pop3 pop3s imap4 imap4s imaps; do 4.53 - mkdir -p $fs/var/run/perdition.$i 4.54 - done 4.55 - cp $src/perdition/db/ldap/perdition.schema $fs/etc/openldap/schema 4.56 + case $PACKAGE in 4.57 + perdition|perdition-pam) 4.58 + DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap \ 4.59 + openssl cyrus-sasl glibc-base libkrb5 libcomerr3 gdbm" 4.60 + [ $PACKAGE == perdition-pam ] && DEPENDS="$DEPENDS pam" && 4.61 + PROVIDE="perdition:pam" && install=$install-pam 4.62 + mkdir -p $fs/usr/lib $fs/etc/openldap/schema 4.63 + cp -a $install/etc $fs 4.64 + rm -f $fs/etc/perdition/perdition.conf 4.65 + cp -a $stuff/etc $fs 4.66 + cp -a $install/usr/sbin $fs/usr 4.67 + cp -a $install/usr/lib/*.so* $fs/usr/lib 4.68 + for i in pop3 pop3s imap4 imap4s imaps; do 4.69 + mkdir -p $fs/var/run/perdition.$i 4.70 + done 4.71 + cp $src/perdition/db/ldap/perdition.schema $fs/etc/openldap/schema 4.72 + ;; 4.73 + perdition-dev) 4.74 + CAT="development|development files" 4.75 + DEPENDS="perdition" 4.76 + mkdir -p $fs/usr/lib 4.77 + cp -a $install/usr/lib/*.a $fs/usr/lib 4.78 + ;; 4.79 + esac 4.80 } 4.81 4.82 # Pre and post install commands for Tazpkg. 4.83 -post_install() 4.84 +post_install_perdition() 4.85 { 4.86 for i in pop3 pop3s imap4 imap4s imaps; do 4.87 chown nobody.nogroup "$1/var/run/perdition.$i" 4.88 @@ -56,11 +80,31 @@ 4.89 Perdition will forward to the 127.0.0.1:50143 imap server. 4.90 Can you change listen="imap" to listen="50143" in /etc/cyrus.conf 4.91 and restart cyrus-imap, or modify files in /etc/perdition. 4.92 -To start $PACKAGE server you can run : 4.93 +To start perdition server you can run : 4.94 4.95 - /etc/init.d/$PACKAGE start 4.96 + /etc/init.d/perdition start 4.97 4.98 -Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf 4.99 +Or add perdition to RUN_DAEMONS in /etc/rcS.conf 4.100 ---- 4.101 EOF 4.102 } 4.103 + 4.104 +# Pre and post install commands for Tazpkg. 4.105 +post_install_perdition_pam() 4.106 +{ 4.107 + for i in pop3 pop3s imap4 imap4s imaps; do 4.108 + chown nobody.nogroup "$1/var/run/perdition.$i" 4.109 + done 4.110 + cat <<EOF 4.111 +---- 4.112 +Perdition will forward to the 127.0.0.1:50143 imap server. 4.113 +Can you change listen="imap" to listen="50143" in /etc/cyrus.conf 4.114 +and restart cyrus-imap, or modify files in /etc/perdition. 4.115 +To start perdition server you can run : 4.116 + 4.117 + /etc/init.d/perdition start 4.118 + 4.119 +Or add perdition to RUN_DAEMONS in /etc/rcS.conf 4.120 +---- 4.121 +EOF 4.122 +}