wok-next diff perdition/receipt @ rev 20534
Clean default configure options when site script used.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 30 19:31:50 2018 +0300 (2018-03-30) |
parents | d3adbeea3a9f |
children | 10df65db91ad |
line diff
1.1 --- a/perdition/receipt Wed Nov 08 19:39:57 2017 +0200 1.2 +++ b/perdition/receipt Fri Mar 30 19:31:50 2018 +0300 1.3 @@ -3,111 +3,105 @@ 1.4 PACKAGE="perdition" 1.5 VERSION="2.1" 1.6 CATEGORY="network" 1.7 -SHORT_DESC="IMAP/POP proxy." 1.8 +SHORT_DESC="IMAP/POP proxy" 1.9 MAINTAINER="pascal.bellard@slitaz.org" 1.10 LICENSE="GPL2" 1.11 +WEB_SITE="http://www.vergenet.net/linux/$PACKAGE" 1.12 + 1.13 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.14 -WEB_SITE="http://www.vergenet.net/linux/$PACKAGE" 1.15 WGET_URL="$WEB_SITE/download/$VERSION/$TARBALL" 1.16 -CONFIG_FILES="/etc/perdition" 1.17 -BUGS="Very slow: more than 10 seconds for login with squirrelmail, why ?" 1.18 1.19 BUILD_DEPENDS="vanessa_logger-dev vanessa_adt-dev vanessa_socket-dev \ 1.20 openldap-dev popt-dev cyrus-sasl-dev openssl-dev libidn-dev pam-dev" 1.21 -SPLIT="perdition perdition-pam perdition-dev" 1.22 +SPLIT="perdition perdition-dev perdition-pam:pam" 1.23 1.24 -# Rules to configure and make the package. 1.25 -compile_rules() 1.26 -{ 1.27 - cp -a $src $src-pam 1.28 - ./configure --prefix=/usr --infodir=/usr/share/info \ 1.29 - --disable-ldap-doc --disable-nis \ 1.30 - --disable-odbc --disable-mysql --disable-pg --disable-bdb \ 1.31 - --disable-cdb --disable-gdbm --disable-pam \ 1.32 - --sysconfdir=/etc --localstatedir=/var \ 1.33 - --mandir=/usr/share/man $CONFIGURE_ARGS && 1.34 +BUGS="Very slow: more than 10 seconds for login with squirrelmail, why?" 1.35 + 1.36 +compile_rules() { 1.37 + case $SET in 1.38 + '') SET_ARGS='--disable-pam';; 1.39 + pam) SET_ARGS='';; 1.40 + esac 1.41 + 1.42 + ./configure \ 1.43 + --disable-ldap-doc \ 1.44 + --disable-nis \ 1.45 + --disable-odbc \ 1.46 + --disable-mysql \ 1.47 + --disable-pg \ 1.48 + --disable-bdb \ 1.49 + --disable-cdb \ 1.50 + --disable-gdbm \ 1.51 + $SET_ARGS \ 1.52 + $CONFIGURE_ARGS && 1.53 make && 1.54 - make DESTDIR=$DESTDIR install || return 1 1.55 - 1.56 - cd $src-pam 1.57 - ./configure --prefix=/usr --infodir=/usr/share/info \ 1.58 - --disable-ldap-doc --disable-nis \ 1.59 - --disable-odbc --disable-mysql --disable-pg --disable-bdb \ 1.60 - --disable-cdb --disable-gdbm \ 1.61 - --sysconfdir=/etc --localstatedir=/var \ 1.62 - --mandir=/usr/share/man $CONFIGURE_ARGS && 1.63 - make && 1.64 - make DESTDIR=$DESTDIR-pam install 1.65 + make DESTDIR=$DESTDIR install 1.66 } 1.67 1.68 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.69 -genpkg_rules() 1.70 -{ 1.71 +genpkg_rules() { 1.72 case $PACKAGE in 1.73 - perdition|perdition-pam) 1.74 - DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap \ 1.75 + perdition|perdition-pam) 1.76 + DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap \ 1.77 openssl cyrus-sasl glibc-base libkrb5 libcomerr3 gdbm" 1.78 - if [ $PACKAGE == 'perdition-pam' ]; then 1.79 - CAT="network|with PAM support" 1.80 - DEPENDS="$DEPENDS pam" 1.81 - PROVIDE="perdition:pam" 1.82 - install=$install-pam 1.83 - fi 1.84 - mkdir -p $fs/usr/lib $fs/etc/openldap/schema 1.85 - cp -a $install/etc $fs 1.86 - rm -f $fs/etc/perdition/perdition.conf 1.87 - cp -a $stuff/etc $fs 1.88 - cp -a $install/usr/sbin $fs/usr 1.89 - cp -a $install/usr/lib/*.so* $fs/usr/lib 1.90 - for i in pop3 pop3s imap4 imap4s imaps; do 1.91 - mkdir -p $fs/var/run/perdition.$i 1.92 - done 1.93 - cp $src/perdition/db/ldap/perdition.schema $fs/etc/openldap/schema 1.94 - ;; 1.95 - perdition-dev) 1.96 - DEPENDS="perdition" 1.97 - mkdir -p $fs/usr/lib 1.98 - cp -a $install/usr/lib/*.a $fs/usr/lib 1.99 - ;; 1.100 + if [ $PACKAGE == 'perdition-pam' ]; then 1.101 + CAT="network|with PAM support" 1.102 + DEPENDS="$DEPENDS pam" 1.103 + PROVIDE="perdition:pam" 1.104 + fi 1.105 + mkdir -p $fs/usr/lib $fs/etc/openldap/schema 1.106 + cp -a $install/etc $fs 1.107 + rm -f $fs/etc/perdition/perdition.conf 1.108 + cp -a $stuff/etc $fs 1.109 + cp -a $install/usr/sbin $fs/usr 1.110 + cp -a $install/usr/lib/*.so* $fs/usr/lib 1.111 + for i in pop3 pop3s imap4 imap4s imaps; do 1.112 + mkdir -p $fs/var/run/perdition.$i 1.113 + done 1.114 + cp $src/perdition/db/ldap/perdition.schema $fs/etc/openldap/schema 1.115 + CONFIG_FILES="/etc/perdition" 1.116 + ;; 1.117 + perdition-dev) 1.118 + copy @dev 1.119 + DEPENDS="perdition" 1.120 + ;; 1.121 esac 1.122 } 1.123 1.124 -# Pre and post install commands for Tazpkg. 1.125 -post_install_perdition() 1.126 -{ 1.127 +post_install_perdition() { 1.128 for i in pop3 pop3s imap4 imap4s imaps; do 1.129 chown nobody.nogroup "$1/var/run/perdition.$i" 1.130 done 1.131 - cat <<EOF 1.132 ----- 1.133 -Perdition will forward to the 127.0.0.1:50143 imap server. 1.134 -Can you change listen="imap" to listen="50143" in /etc/cyrus.conf 1.135 -and restart cyrus-imap, or modify files in /etc/perdition. 1.136 -To start perdition server you can run : 1.137 1.138 - /etc/init.d/perdition start 1.139 - 1.140 -Or add perdition to RUN_DAEMONS in /etc/rcS.conf 1.141 ----- 1.142 + [ -n "$quiet " ] || cat <<EOF 1.143 + 1.144 + .-------------------------------------------------------------------. 1.145 + | Perdition will forward to the 127.0.0.1:50143 imap server. | 1.146 + | Can you change listen="imap" to listen="50143" in /etc/cyrus.conf | 1.147 + | and restart cyrus-imap, or modify files in /etc/perdition. | 1.148 + | | 1.149 + | To start perdition server you can run: | 1.150 + | /etc/init.d/perdition start | 1.151 + | | 1.152 + | Or add perdition to RUN_DAEMONS in /etc/rcS.conf | 1.153 + '-------------------------------------------------------------------' 1.154 EOF 1.155 } 1.156 1.157 -# Pre and post install commands for Tazpkg. 1.158 -post_install_perdition_pam() 1.159 -{ 1.160 +post_install_perdition_pam() { 1.161 for i in pop3 pop3s imap4 imap4s imaps; do 1.162 chown nobody.nogroup "$1/var/run/perdition.$i" 1.163 done 1.164 - cat <<EOF 1.165 ----- 1.166 -Perdition will forward to the 127.0.0.1:50143 imap server. 1.167 -Can you change listen="imap" to listen="50143" in /etc/cyrus.conf 1.168 -and restart cyrus-imap, or modify files in /etc/perdition. 1.169 -To start perdition server you can run : 1.170 + [ -n "$quiet" ] || cat <<EOF 1.171 1.172 - /etc/init.d/perdition start 1.173 - 1.174 -Or add perdition to RUN_DAEMONS in /etc/rcS.conf 1.175 ----- 1.176 + .-------------------------------------------------------------------. 1.177 + | Perdition will forward to the 127.0.0.1:50143 imap server. | 1.178 + | Can you change listen="imap" to listen="50143" in /etc/cyrus.conf | 1.179 + | and restart cyrus-imap, or modify files in /etc/perdition. | 1.180 + | | 1.181 + | To start perdition server you can run: | 1.182 + | /etc/init.d/perdition start | 1.183 + | | 1.184 + | Or add perdition to RUN_DAEMONS in /etc/rcS.conf | 1.185 + '-------------------------------------------------------------------' 1.186 EOF 1.187 }