SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "perdition"

# SliTaz package receipt.

PACKAGE="perdition"
VERSION="2.2"
CATEGORY="network"
SHORT_DESC="Fully featured POP3 and IMAP4 proxy server."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://projects.horms.net/projects/perdition"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$WEB_SITE/download/$VERSION/$TARBALL"

DEPENDS="vanessa_logger vanessa_adt vanessa_socket libldap openssl cyrus-sasl \
    glibc-base libkrb5 libcomerr3 gdbm"
BUILD_DEPENDS="vanessa_logger-dev vanessa_adt-dev vanessa_socket-dev \
    openldap-dev popt-dev cyrus-sasl-dev openssl-dev libidn-dev"
CONFIG_FILES="/etc/perdition"
BUGS="Very slow: more than 10 seconds for login with squirrelmail, why ?"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*/*} 2>/dev/null | \
    sed '/href="[0-9]/!d;s|.*href="||;s|/.*||' | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure                \
        --prefix=/usr            \
        --infodir=/usr/share/info    \
        --disable-ldap-doc        \
        --disable-nis            \
        --disable-odbc            \
        --disable-mysql            \
        --disable-pg            \
        --disable-bdb            \
        --disable-cdb            \
        --disable-gdbm            \
        --disable-pam            \
        --sysconfdir=/etc        \
        --localstatedir=/var        \
        --mandir=/usr/share/man        \
        $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    mkdir -p $fs/etc/openldap/schema

    cp -a $install/etc        $fs
    rm -f $fs/etc/perdition/perdition.conf

    cp -a $stuff/etc        $fs
    cp -a $install/usr/sbin        $fs/usr
    cp -a $install/usr/lib/*.so*    $fs/usr/lib
    for i in pop3 pop3s imap4 imap4s imaps; do
        mkdir -p $fs/var/run/perdition.$i
    done
    cp $src/perdition/db/ldap/perdition.schema \
        $fs/etc/openldap/schema
}

# Pre and post install commands for Tazpkg.
post_install()
{
    for i in pop3 pop3s imap4 imap4s imaps; do
        chown nobody.nogroup "$1/var/run/perdition.$i"
    done
    cat <<EOF
----
Perdition will forward to the 127.0.0.1:50143 imap server.
Can you change listen="imap" to listen="50143" in /etc/cyrus.conf
and restart cyrus-imap, or modify files in /etc/perdition.
To start $PACKAGE server you can run :

    /etc/init.d/$PACKAGE start
    
Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
----
EOF
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)