wok-current view dovecot/receipt @ rev 12052
jssame: remvoed extension in desktop file, added icon
author | Samuel Trassare <samuel_trassare@yahoo.com> |
---|---|
date | Wed Mar 07 17:42:29 2012 -0800 (2012-03-07) |
parents | b7319995b37e |
children | f7d5cfb17be3 |
line source
1 # SliTaz package receipt.
3 PACKAGE="dovecot"
4 VERSION="1.2.17"
5 CATEGORY="network"
6 SHORT_DESC="Dovecot IMAP and POP3 Server."
7 MAINTAINER="l.lemarinel@gmail.com"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="www.dovecot.org"
10 WGET_URL="http://www.dovecot.org/releases/1.2/$TARBALL"
11 BUILD_DEPENDS="openssl-dev libcap-dev openldap-dev \
12 libmysqlclient mysql-dev sqlite-dev pam-dev postgresql-dev"
13 DEPENDS="libssl libcap"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure --prefix=/usr \
21 --sysconfdir=/etc/dovecot \
22 --libexecdir=/usr/lib/$PACKAGE \
23 --with-ssl=openssl \
24 --with-ldap=plugin \
25 --with-sql=plugin \
26 --with-mysql \
27 --with-pgsql \
28 --with-sqlite \
29 $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib \
39 $fs/var/log/dovecot \
40 $fs/var/run/dovecot
43 cp -a $install/usr/sbin $fs/usr
44 cp -a $install/usr/lib $fs/usr
45 cp -a $install/etc $fs/
47 cp -pa $stuff/init.d $fs/etc
49 cp -pa $fs/etc/dovecot/dovecot-example.conf $fs/etc/dovecot/dovecot.conf
51 # Remove archive file *.*a
52 find $fs -name "*.*a" -exec rm -f {} \;
54 }
56 #nd post install commands for Tazpkg.
57 post_install()
58 {
59 local user
60 local group
62 user=dovecot
63 group=dovecot
65 if ! grep -q $user $1/etc/passwd; then
66 echo -n "Adding user/group $user..."
67 chroot $1/ addgroup -S $group
68 chroot $1/ adduser -S -D -H -G $group $user
69 status
70 fi
73 # Set perms for files and directories
74 chroot $1/ chown -R ${user}.${group} /var/log/${user} \
75 /var/run/${user}
77 cat <<EOF
78 ----
79 To start $PACKAGE server you can run :
81 /etc/init.d/$PACKAGE start
83 Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf
84 ----
85 EOF
86 }
89 post_remove()
90 {
91 echo "Removing stalled files..."
92 test -d /var/log/dovecot && rm -rf /var/log/dovecot
93 test -d /var/run/dovecot && rm -rf /var/run/dovecot
95 echo "Removing user/group daemon"
96 deluser dovecot
97 }