wok view perdition-pam/receipt @ rev 22686
Up pssh (2.3.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jan 19 16:24:05 2020 +0100 (2020-01-19) |
parents | c7a23f0fad68 |
children | 2a0479881723 |
line source
1 # SliTaz package receipt.
3 PACKAGE="perdition-pam"
4 VERSION="2.2"
5 CATEGORY="network"
6 SHORT_DESC="Fully featured POP3 and IMAP4 proxy server."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.vergenet.net/linux/perdition"
11 SOURCE="perdition"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="$WEB_SITE/download/$VERSION/$TARBALL"
15 PROVIDE="perdition:pam"
16 DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap openssl cyrus-sasl \
17 pam glibc-base libkrb5 libcomerr3 gdbm"
18 BUILD_DEPENDS="vanessa_logger-dev vanessa_adt-dev vanessa_socket-dev \
19 openldap-dev pam pam-dev popt-dev cyrus-sasl-dev openssl-dev libidn-dev"
20 CONFIG_FILES="/etc/perdition"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 ./configure \
26 --prefix=/usr \
27 --infodir=/usr/share/info \
28 --disable-ldap-doc \
29 --disable-nis \
30 --disable-odbc \
31 --disable-mysql \
32 --disable-pg \
33 --disable-bdb \
34 --disable-cdb \
35 --disable-gdbm \
36 --sysconfdir=/etc \
37 --localstatedir=/var \
38 --mandir=/usr/share/man \
39 $CONFIGURE_ARGS &&
40 make &&
41 make DESTDIR=$DESTDIR install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/lib
48 mkdir -p $fs/etc/openldap/schema
50 cp -a $install/etc $fs
51 rm -f $fs/etc/perdition/perdition.conf
53 cp -a ../$SOURCE/stuff/etc $fs
54 cp -a $install/usr/sbin $fs/usr
55 cp -a $install/usr/lib/*.so* $fs/usr/lib
57 for i in pop3 pop3s imap4 imap4s imaps; do
58 mkdir -p $fs/var/run/perdition.$i
59 done
60 cp $src/perdition/db/ldap/perdition.schema \
61 $fs/etc/openldap/schema
62 }
64 # Pre and post install commands for Tazpkg.
65 post_install()
66 {
67 for i in pop3 pop3s imap4 imap4s imaps; do
68 chown nobody.nogroup "$1/var/run/perdition.$i"
69 done
70 cat <<EOF
71 ----
72 Perdition will forward to the 127.0.0.1:50143 imap server.
73 Can you change listen="imap" to listen="50143" in /etc/cyrus.conf
74 and restart cyrus-imap, or modify files in /etc/perdition.
75 To start $SOURCE server you can run :
77 /etc/init.d/$SOURCE start
79 Or add $SOURCE to RUN_DAEMONS in /etc/rcS.conf
80 ----
81 EOF
82 }