summaryrefslogtreecommitdiffstats
path: root/extra/postfix
diff options
context:
space:
mode:
Diffstat (limited to 'extra/postfix')
-rw-r--r--extra/postfix/.footprint168
-rw-r--r--extra/postfix/.md5sum2
-rw-r--r--extra/postfix/Pkgfile44
-rw-r--r--extra/postfix/postfix.install39
-rw-r--r--extra/postfix/postfix.patch18
5 files changed, 271 insertions, 0 deletions
diff --git a/extra/postfix/.footprint b/extra/postfix/.footprint
new file mode 100644
index 000000000..4c18f4494
--- /dev/null
+++ b/extra/postfix/.footprint
@@ -0,0 +1,168 @@
+drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/postfix/
+-rw-r--r-- root/root etc/postfix/LICENSE
+-rw-r--r-- root/root etc/postfix/TLS_LICENSE
+-rw-r--r-- root/root etc/postfix/access
+-rw-r--r-- root/root etc/postfix/aliases
+-rw-r--r-- root/root etc/postfix/bounce.cf.default
+-rw-r--r-- root/root etc/postfix/canonical
+-rw-r--r-- root/root etc/postfix/generic
+-rw-r--r-- root/root etc/postfix/header_checks
+-rw-r--r-- root/root etc/postfix/main.cf
+-rw-r--r-- root/root etc/postfix/main.cf.default
+-rw-r--r-- root/root etc/postfix/makedefs.out
+-rw-r--r-- root/root etc/postfix/master.cf
+-rw-r--r-- root/root etc/postfix/relocated
+-rw-r--r-- root/root etc/postfix/transport
+-rw-r--r-- root/root etc/postfix/virtual
+drwxr-xr-x root/root etc/rc.d/
+drwxr-xr-x root/root etc/rc.d/rc0.d/
+lrwxrwxrwx root/root etc/rc.d/rc0.d/K10postfix -> ../init.d/postfix
+drwxr-xr-x root/root etc/rc.d/rc1.d/
+lrwxrwxrwx root/root etc/rc.d/rc1.d/K10postfix -> ../init.d/postfix
+drwxr-xr-x root/root etc/rc.d/rc3.d/
+lrwxrwxrwx root/root etc/rc.d/rc3.d/S90postfix -> ../init.d/postfix
+drwxr-xr-x root/root etc/rc.d/rc4.d/
+lrwxrwxrwx root/root etc/rc.d/rc4.d/S90postfix -> ../init.d/postfix
+drwxr-xr-x root/root etc/rc.d/rc5.d/
+lrwxrwxrwx root/root etc/rc.d/rc5.d/S90postfix -> ../init.d/postfix
+drwxr-xr-x root/root etc/rc.d/rc6.d/
+lrwxrwxrwx root/root etc/rc.d/rc6.d/K10postfix -> ../init.d/postfix
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+lrwxrwxrwx root/root usr/bin/mailq -> ../../usr/sbin/sendmail
+lrwxrwxrwx root/root usr/bin/newaliases -> ../../usr/sbin/sendmail
+drwxr-xr-x root/root usr/lib/
+drwxr-xr-x root/root usr/lib/postfix/
+-rwxr-xr-x root/root usr/lib/postfix/anvil
+-rwxr-xr-x root/root usr/lib/postfix/bounce
+-rwxr-xr-x root/root usr/lib/postfix/cleanup
+-rwxr-xr-x root/root usr/lib/postfix/discard
+-rwxr-xr-x root/root usr/lib/postfix/error
+-rwxr-xr-x root/root usr/lib/postfix/flush
+-rwxr-xr-x root/root usr/lib/postfix/lmtp
+-rwxr-xr-x root/root usr/lib/postfix/local
+-rw-r--r-- root/root usr/lib/postfix/main.cf
+-rwxr-xr-x root/root usr/lib/postfix/master
+-rw-r--r-- root/root usr/lib/postfix/master.cf
+-rwxr-xr-x root/root usr/lib/postfix/nqmgr
+-rwxr-xr-x root/root usr/lib/postfix/oqmgr
+-rwxr-xr-x root/root usr/lib/postfix/pickup
+-rwxr-xr-x root/root usr/lib/postfix/pipe
+-rwxr-xr-x root/root usr/lib/postfix/post-install
+-rw-r--r-- root/root usr/lib/postfix/postfix-files
+-rwxr-xr-x root/root usr/lib/postfix/postfix-script
+-rwxr-xr-x root/root usr/lib/postfix/postfix-wrapper
+-rwxr-xr-x root/root usr/lib/postfix/postmulti-script
+-rwxr-xr-x root/root usr/lib/postfix/proxymap
+-rwxr-xr-x root/root usr/lib/postfix/qmgr
+-rwxr-xr-x root/root usr/lib/postfix/qmqpd
+-rwxr-xr-x root/root usr/lib/postfix/scache
+-rwxr-xr-x root/root usr/lib/postfix/showq
+-rwxr-xr-x root/root usr/lib/postfix/smtp
+-rwxr-xr-x root/root usr/lib/postfix/smtpd
+-rwxr-xr-x root/root usr/lib/postfix/spawn
+-rwxr-xr-x root/root usr/lib/postfix/tlsmgr
+-rwxr-xr-x root/root usr/lib/postfix/trivial-rewrite
+-rwxr-xr-x root/root usr/lib/postfix/verify
+-rwxr-xr-x root/root usr/lib/postfix/virtual
+drwxr-xr-x root/root usr/sbin/
+-rwxr-xr-x root/root usr/sbin/postalias
+-rwxr-xr-x root/root usr/sbin/postcat
+-rwxr-xr-x root/root usr/sbin/postconf
+-rwxr-xr-x root/root usr/sbin/postdrop
+-rwxr-xr-x root/root usr/sbin/postfix
+-rwxr-xr-x root/root usr/sbin/postkick
+-rwxr-xr-x root/root usr/sbin/postlock
+-rwxr-xr-x root/root usr/sbin/postlog
+-rwxr-xr-x root/root usr/sbin/postmap
+-rwxr-xr-x root/root usr/sbin/postmulti
+-rwxr-xr-x root/root usr/sbin/postqueue
+-rwxr-xr-x root/root usr/sbin/postsuper
+-rwxr-xr-x root/root usr/sbin/sendmail
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man1/
+-rw-r--r-- root/root usr/share/man/man1/mailq.1.gz
+-rw-r--r-- root/root usr/share/man/man1/newaliases.1.gz
+-rw-r--r-- root/root usr/share/man/man1/postalias.1.gz
+-rw-r--r-- root/root usr/share/man/man1/postcat.1.gz
+-rw-r--r-- root/root usr/share/man/man1/postconf.1.gz
+-rw-r--r-- root/root usr/share/man/man1/postdrop.1.gz
+-rw-r--r-- root/root usr/share/man/man1/postfix.1.gz
+-rw-r--r-- root/root usr/share/man/man1/postkick.1.gz
+-rw-r--r-- root/root usr/share/man/man1/postlock.1.gz
+-rw-r--r-- root/root usr/share/man/man1/postlog.1.gz
+-rw-r--r-- root/root usr/share/man/man1/postmap.1.gz
+-rw-r--r-- root/root usr/share/man/man1/postmulti.1.gz
+-rw-r--r-- root/root usr/share/man/man1/postqueue.1.gz
+-rw-r--r-- root/root usr/share/man/man1/postsuper.1.gz
+-rw-r--r-- root/root usr/share/man/man1/sendmail.1.gz
+drwxr-xr-x root/root usr/share/man/man5/
+-rw-r--r-- root/root usr/share/man/man5/access.5.gz
+-rw-r--r-- root/root usr/share/man/man5/aliases.5.gz
+-rw-r--r-- root/root usr/share/man/man5/body_checks.5.gz
+-rw-r--r-- root/root usr/share/man/man5/bounce.5.gz
+-rw-r--r-- root/root usr/share/man/man5/canonical.5.gz
+-rw-r--r-- root/root usr/share/man/man5/cidr_table.5.gz
+-rw-r--r-- root/root usr/share/man/man5/generic.5.gz
+-rw-r--r-- root/root usr/share/man/man5/header_checks.5.gz
+-rw-r--r-- root/root usr/share/man/man5/ldap_table.5.gz
+-rw-r--r-- root/root usr/share/man/man5/master.5.gz
+-rw-r--r-- root/root usr/share/man/man5/mysql_table.5.gz
+-rw-r--r-- root/root usr/share/man/man5/nisplus_table.5.gz
+-rw-r--r-- root/root usr/share/man/man5/pcre_table.5.gz
+-rw-r--r-- root/root usr/share/man/man5/pgsql_table.5.gz
+-rw-r--r-- root/root usr/share/man/man5/postconf.5.gz
+-rw-r--r-- root/root usr/share/man/man5/postfix-wrapper.5.gz
+-rw-r--r-- root/root usr/share/man/man5/regexp_table.5.gz
+-rw-r--r-- root/root usr/share/man/man5/relocated.5.gz
+-rw-r--r-- root/root usr/share/man/man5/tcp_table.5.gz
+-rw-r--r-- root/root usr/share/man/man5/transport.5.gz
+-rw-r--r-- root/root usr/share/man/man5/virtual.5.gz
+drwxr-xr-x root/root usr/share/man/man8/
+-rw-r--r-- root/root usr/share/man/man8/anvil.8.gz
+-rw-r--r-- root/root usr/share/man/man8/bounce.8.gz
+-rw-r--r-- root/root usr/share/man/man8/cleanup.8.gz
+-rw-r--r-- root/root usr/share/man/man8/defer.8.gz
+-rw-r--r-- root/root usr/share/man/man8/discard.8.gz
+-rw-r--r-- root/root usr/share/man/man8/error.8.gz
+-rw-r--r-- root/root usr/share/man/man8/flush.8.gz
+-rw-r--r-- root/root usr/share/man/man8/lmtp.8.gz
+-rw-r--r-- root/root usr/share/man/man8/local.8.gz
+-rw-r--r-- root/root usr/share/man/man8/master.8.gz
+-rw-r--r-- root/root usr/share/man/man8/oqmgr.8.gz
+-rw-r--r-- root/root usr/share/man/man8/pickup.8.gz
+-rw-r--r-- root/root usr/share/man/man8/pipe.8.gz
+-rw-r--r-- root/root usr/share/man/man8/proxymap.8.gz
+-rw-r--r-- root/root usr/share/man/man8/qmgr.8.gz
+-rw-r--r-- root/root usr/share/man/man8/qmqpd.8.gz
+-rw-r--r-- root/root usr/share/man/man8/scache.8.gz
+-rw-r--r-- root/root usr/share/man/man8/showq.8.gz
+-rw-r--r-- root/root usr/share/man/man8/smtp.8.gz
+-rw-r--r-- root/root usr/share/man/man8/smtpd.8.gz
+-rw-r--r-- root/root usr/share/man/man8/spawn.8.gz
+-rw-r--r-- root/root usr/share/man/man8/tlsmgr.8.gz
+-rw-r--r-- root/root usr/share/man/man8/trace.8.gz
+-rw-r--r-- root/root usr/share/man/man8/trivial-rewrite.8.gz
+-rw-r--r-- root/root usr/share/man/man8/verify.8.gz
+-rw-r--r-- root/root usr/share/man/man8/virtual.8.gz
+drwxr-xr-x root/root var/
+drwxr-xr-x root/root var/lib/
+drwx------ root/root var/lib/postfix/
+drwxr-xr-x root/root var/spool/
+drwxr-xr-x root/root var/spool/postfix/
+drwx------ root/root var/spool/postfix/active/
+drwx------ root/root var/spool/postfix/bounce/
+drwx------ root/root var/spool/postfix/corrupt/
+drwx------ root/root var/spool/postfix/defer/
+drwx------ root/root var/spool/postfix/deferred/
+drwx------ root/root var/spool/postfix/flush/
+drwx------ root/root var/spool/postfix/hold/
+drwx------ root/root var/spool/postfix/incoming/
+drwx-wx--- root/root var/spool/postfix/maildrop/
+drwxr-xr-x root/root var/spool/postfix/pid/
+drwx------ root/root var/spool/postfix/private/
+drwx--x--- root/root var/spool/postfix/public/
+drwx------ root/root var/spool/postfix/saved/
+drwx------ root/root var/spool/postfix/trace/
diff --git a/extra/postfix/.md5sum b/extra/postfix/.md5sum
new file mode 100644
index 000000000..e16d7a827
--- /dev/null
+++ b/extra/postfix/.md5sum
@@ -0,0 +1,2 @@
+b7a5c3ccd309156a65d6f8d2683d4fa1 postfix-2.7.1.tar.gz
+e0e114635155aa147363c1e74859d400 postfix.patch
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
+}
diff --git a/extra/postfix/postfix.install b/extra/postfix/postfix.install
new file mode 100644
index 000000000..6acbe3f41
--- /dev/null
+++ b/extra/postfix/postfix.install
@@ -0,0 +1,39 @@
+# arg 1: the new package version
+post_install() {
+ if [ -z "`grep '^postdrop::' /etc/group`" ]; then
+ groupadd -g 75 postdrop >& /dev/null
+ fi
+ if [ -z "`grep '^postfix::' /etc/group`" ]; then
+ groupadd -g 73 postfix >& /dev/null
+ fi
+ if [ -z "`grep '^postfix:' /etc/passwd`" ]; then
+ useradd -u 73 -d /var/spool/postfix -g postfix -s /bin/false postfix
+ else
+ # fix a packaging bug from before (postfix should have no shell)
+ usermod -s /bin/false postfix
+ fi
+
+ chown postfix var/spool/postfix/{active,bounce,corrupt,defer,deferred,\
+flush,hold,incoming,private,public,maildrop,trace,saved}
+ chown postfix var/lib/postfix
+ chgrp postdrop var/spool/postfix/{public,maildrop}
+ chgrp postdrop usr/sbin/postqueue
+ chgrp postdrop usr/sbin/postdrop
+ chmod g+s usr/sbin/{postqueue,postdrop}
+
+ newaliases
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ post_install $1
+}
+
+# arg 1: the old package version
+pre_remove() {
+ userdel postfix &> /dev/null
+ groupdel postfix &> /dev/null
+ groupdel postdrop &> /dev/null
+}
+
diff --git a/extra/postfix/postfix.patch b/extra/postfix/postfix.patch
new file mode 100644
index 000000000..656c40b9a
--- /dev/null
+++ b/extra/postfix/postfix.patch
@@ -0,0 +1,18 @@
+--- etc/postfix/main.cf.orig 2003-01-14 01:30:28.000000000 +0100
++++ etc/postfix/main.cf 2003-01-14 01:32:09.000000000 +0100
+@@ -367,6 +367,7 @@
+ #alias_maps = hash:/etc/aliases
+ #alias_maps = hash:/etc/aliases, nis:mail.aliases
+ #alias_maps = netinfo:/aliases
++alias_maps = hash:/etc/postfix/aliases
+
+ # The alias_database parameter specifies the alias database(s) that
+ # are built with "newaliases" or "sendmail -bi". This is a separate
+@@ -377,6 +378,7 @@
+ #alias_database = dbm:/etc/mail/aliases
+ #alias_database = hash:/etc/aliases
+ #alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases
++alias_database = $alias_maps
+
+ # ADDRESS EXTENSIONS (e.g., user+foo)
+ #