wok-current view perdition-pam/receipt @ rev 25038

make cups-filters compile with qpdf-dev-10.6.1
author Hans-G?nter Theisgen
date Thu May 26 10:57:02 2022 +0100 (2022-05-26)
parents 113d38a1e4e9
children
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="https://projects.horms.net/projects/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 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - ${WGET_URL%/*/*} 2>/dev/null | \
26 sed '/href="[0-9]/!d;s|.*href="||;s|/.*||' | sort -Vr | sed q
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 ./configure \
33 --prefix=/usr \
34 --infodir=/usr/share/info \
35 --disable-ldap-doc \
36 --disable-nis \
37 --disable-odbc \
38 --disable-mysql \
39 --disable-pg \
40 --disable-bdb \
41 --disable-cdb \
42 --disable-gdbm \
43 --sysconfdir=/etc \
44 --localstatedir=/var \
45 --mandir=/usr/share/man \
46 $CONFIGURE_ARGS &&
47 make &&
48 make DESTDIR=$DESTDIR install
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 mkdir -p $fs/usr/lib
55 mkdir -p $fs/etc/openldap/schema
57 cp -a $install/etc $fs
58 rm -f $fs/etc/perdition/perdition.conf
60 cp -a ../$SOURCE/stuff/etc $fs
61 cp -a $install/usr/sbin $fs/usr
62 cp -a $install/usr/lib/*.so* $fs/usr/lib
64 for i in pop3 pop3s imap4 imap4s imaps; do
65 mkdir -p $fs/var/run/perdition.$i
66 done
67 cp $src/perdition/db/ldap/perdition.schema \
68 $fs/etc/openldap/schema
69 }
71 # Pre and post install commands for Tazpkg.
72 post_install()
73 {
74 for i in pop3 pop3s imap4 imap4s imaps; do
75 chown nobody.nogroup "$1/var/run/perdition.$i"
76 done
77 cat <<EOF
78 ----
79 Perdition will forward to the 127.0.0.1:50143 imap server.
80 Can you change listen="imap" to listen="50143" in /etc/cyrus.conf
81 and restart cyrus-imap, or modify files in /etc/perdition.
82 To start $SOURCE server you can run :
84 /etc/init.d/$SOURCE start
86 Or add $SOURCE to RUN_DAEMONS in /etc/rcS.conf
87 ----
88 EOF
89 }