blob: d5fd832a2fb95bb2ae6095b4d96980a311cb7879 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Description: Agent de service de messagerie electronique
# URL: http://www.postfix.org/
# Maintainer: NuTyX packager team
# Packager: cobex4 at gmail dot com
# Depends on: cyrus-sasl, libmysql, libpostgresql
# Run on:
name=postfix
version=2.8.0
release=1
source=(ftp://ftp.porcupine.org/mirrors/postfix-release/official/$name-$version.tar.gz\
$name.patch)
build() {
cd $name-$version
make makefiles \
CCARGS="-DUSE_SASL_AUTH -I/usr/include/sasl \
-DUSE_CYRUS_SASL \
-DHAS_LDAP \
-DUSE_TLS \
-DHAS_MYSQL -I/usr/include/mysql \
-DHAS_PGSQL -I/usr/include/postgresql" \
AUXLIBS="-lsasl2 -lssl -lcrypto -lldap -llber -lmysqlclient -lz -lm -lpq"
make OPT="$CFLAGS" || return 1
sh postfix-install -non-interactive \
install_root="$PKG" \
daemon_directory="/usr/lib/$name" \
sample_directory="/etc/$name/sample" \
manpage_directory="/usr/share/man"
cd $PKG
cat $SRC/$name.patch |patch -Np0 || return 1
rm -f etc/$name/main.cf~
#controle du service
mkdir -v -p $PKG/etc/rc.d/rc{0,1,3,4,5,6}.d
ln -svf ../init.d/postfix $PKG/etc/rc.d/rc3.d/S90postfix
ln -svf ../init.d/postfix $PKG/etc/rc.d/rc5.d/S90postfix
ln -svf ../init.d/postfix $PKG/etc/rc.d/rc4.d/S90postfix
ln -svf ../init.d/postfix $PKG/etc/rc.d/rc0.d/K10postfix
ln -svf ../init.d/postfix $PKG/etc/rc.d/rc1.d/K10postfix
ln -svf ../init.d/postfix $PKG/etc/rc.d/rc6.d/K10postfix
}
|