wok-4.x annotate perdition/receipt @ rev 6398
Added build_depends needed for xorg-libXss to build in clean chroot. Fixed xorg-libXss-dev to have the files need to build gnome-mplayer.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Sep 24 18:38:31 2010 +0000 (2010-09-24) |
parents | a4af2b62bb67 |
children | 068411ccd1e5 |
rev | line source |
---|---|
pascal@1215 | 1 # SliTaz package receipt. |
pascal@1215 | 2 |
pascal@1215 | 3 PACKAGE="perdition" |
pascal@1215 | 4 VERSION="1.17.1" |
pascal@1215 | 5 CATEGORY="network" |
pascal@1215 | 6 SHORT_DESC="IMAP/POP proxy." |
pascal@1215 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@1215 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@1215 | 9 WEB_SITE="http://www.vergenet.net/linux/$PACKAGE" |
pascal@1215 | 10 WGET_URL="$WEB_SITE/download/$VERSION/$TARBALL" |
pascal@2229 | 11 BUILD_DEPENDS="vanessa_logger-dev vanessa_logger vanessa_adt-dev vanessa_adt vanessa_socket-dev vanessa_socket openldap-dev popt-dev cyrus-sasl-dev" |
pascal@5005 | 12 DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap openssl cyrus-sasl \ |
pascal@5005 | 13 glibc-base libkrb5 libcomerr3 gdbm" |
pascal@1215 | 14 CONFIG_FILES="/etc/perdition" |
pascal@1245 | 15 BUGS="Very slow: more than 10 seconds for login with squirrelmail, why ?" |
pascal@1215 | 16 |
pascal@1215 | 17 # Rules to configure and make the package. |
pascal@1215 | 18 compile_rules() |
pascal@1215 | 19 { |
pascal@1215 | 20 cd $src |
pascal@2281 | 21 sed -i 's/pam=yes/pam=no/' configure |
pascal@1215 | 22 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@1215 | 23 --enable-openldap --disable-ldap-doc --disable-nis \ |
pascal@1215 | 24 --disable-odbc --disable-mysql --disable-pg --disable-bdb \ |
pascal@1215 | 25 --sysconfdir=/etc --localstatedir=/var \ |
pascal@2217 | 26 --mandir=/usr/share/man $CONFIGURE_ARGS || return 1 |
pascal@2217 | 27 sed -i 's/#define WITH_PAM_SUPPORT 1/#undef WITH_PAM_SUPPORT/' config.h |
pascal@2217 | 28 make && |
pascal@1215 | 29 make DESTDIR=$PWD/_pkg install |
pascal@1215 | 30 } |
pascal@1215 | 31 |
pascal@1215 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1215 | 33 genpkg_rules() |
pascal@1215 | 34 { |
pascal@1548 | 35 mkdir -p $fs/usr/lib $fs/etc/openldap/schema |
pascal@1215 | 36 cp -a $_pkg/etc $fs |
pascal@1215 | 37 rm -f $fs/etc/perdition/perdition.conf |
pascal@1215 | 38 cp -a stuff/etc $fs |
pascal@1215 | 39 cp -a $_pkg/usr/sbin $fs/usr |
pascal@1215 | 40 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pascal@1215 | 41 for i in pop3 pop3s imap4 imap4s imaps; do |
pascal@1215 | 42 mkdir -p $fs/var/run/perdition.$i |
pascal@1215 | 43 done |
pascal@1548 | 44 cp $src/perdition/db/ldap/perdition.schema $fs/etc/openldap/schema |
pascal@1215 | 45 for i in $(cd $WOK; ls -d perdition-*) |
pascal@1215 | 46 do |
pascal@1215 | 47 tazwok cook $i |
pascal@1215 | 48 done |
pascal@1215 | 49 } |
pascal@1215 | 50 |
pascal@1215 | 51 # Pre and post install commands for Tazpkg. |
pascal@1215 | 52 post_install() |
pascal@1215 | 53 { |
pascal@1215 | 54 for i in pop3 pop3s imap4 imap4s imaps; do |
pascal@1215 | 55 chown nobody.nogroup $1/var/run/perdition.$i |
pascal@1215 | 56 done |
pascal@1229 | 57 cat <<EOF |
pascal@1229 | 58 ---- |
pascal@1229 | 59 Perdition will forward to the 127.0.0.1:50143 imap server. |
pascal@1229 | 60 Can you change listen="imap" to listen="50143" in /etc/cyrus.conf |
pascal@1229 | 61 and restart cyrus-imap, or modify files in /etc/perdition. |
pascal@1229 | 62 To start $PACKAGE server you can run : |
pascal@1229 | 63 |
pascal@1229 | 64 /etc/init.d/$PACKAGE start |
pascal@1229 | 65 |
pascal@1229 | 66 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf |
pascal@1229 | 67 ---- |
pascal@1229 | 68 EOF |
pascal@1215 | 69 } |