summaryrefslogtreecommitdiffstats
path: root/extra/postfix/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'extra/postfix/Pkgfile')
-rw-r--r--extra/postfix/Pkgfile44
1 files changed, 44 insertions, 0 deletions
diff --git a/extra/postfix/Pkgfile b/extra/postfix/Pkgfile
new file mode 100644
index 000000000..aa6f35369
--- /dev/null
+++ b/extra/postfix/Pkgfile
@@ -0,0 +1,44 @@
+# Description: Agent de service de messagerie electronique
+# URL: http://www.postfix.org/
+# Maintainer: Cobex4
+# Packager: cobex4 at gmail dot com
+# Depends on: cyrus-sasl, libmysql, libpostgresql
+
+name=postfix
+version=2.7.1
+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
+}