OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 22-Oct-2006 17:42:42
Branch: OPENPKG_2_STABLE Handle: 200610221618411440
Added files: (Branch: OPENPKG_2_STABLE)
openpkg-src/postfix postfix.txt
Modified files: (Branch: OPENPKG_2_STABLE)
openpkg-src/postfix postfix.spec
Removed files: (Branch: OPENPKG_2_STABLE)
openpkg-src/postfix etc.tar
Log:
MFC: convert binary etc.tar into textual postfix.txt
Summary:
Revision Changes Path
1.25 BLOB openpkg-src/postfix/etc.tar
1.236.2.3 +14 -19 openpkg-src/postfix/postfix.spec
1.1.2.2 +343 -0 openpkg-src/postfix/postfix.txt
____________________________________________________________________________
rm -f openpkg-src/postfix/etc.tar <<'@@ .'
Index: openpkg-src/postfix/etc.tar
============================================================================
[NO CHANGE SUMMARY BECAUSE FILE AS A WHOLE IS JUST REMOVED]
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/postfix/postfix.spec
============================================================================
$ cvs diff -u -r1.236.2.2 -r1.236.2.3 postfix.spec
--- openpkg-src/postfix/postfix.spec 16 Oct 2006 14:54:56 -0000
1.236.2.2
+++ openpkg-src/postfix/postfix.spec 22 Oct 2006 15:42:41 -0000
1.236.2.3
@@ -38,7 +38,7 @@
Group: Mail
License: IPL
Version: %{V_postfix}
-Release: 2.20061018
+Release: 2.20061022
# package options
%option with_fsl yes
@@ -53,7 +53,7 @@
# list of sources
Source0:
ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-%{V_postfix}.tar.gz
Source1:
http://jimsun.linxnet.com/downloads/pflogsumm-%{V_pflogsumm}.tar.gz
-Source2: etc.tar
+Source2: postfix.txt
Source3: fsl.postfix
Source4: rc.postfix
Patch0: postfix.patch
@@ -138,7 +138,6 @@
# unpack distribution files
%setup -q
%setup -q -T -D -a 1
- %setup -q -T -D -a 2
# apply OpenPKG patches
%patch -p0
@@ -252,29 +251,25 @@
strip $RPM_BUILD_ROOT%{l_prefix}/libexec/postfix/* >/dev/null 2>&1 ||
true
# post-adjust configuration
- %{l_shtool} subst \
- -e "s;^\\(mail_owner[^=]*=\\).*;\\1 %{l_musr};" \
- $RPM_BUILD_ROOT%{l_prefix}/etc/postfix/main.cf
- rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/postfix/*.orig
- rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/postfix/*LICENSE
- rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/postfix/makedefs.out
+ for cfg in \
+ *LICENSE makedefs.out bounce.cf.default access aliases \
+ canonical header_checks relocated transport virtual \
+ main.cf master.cf main.cf.default; do
+ rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/postfix/$cfg
+ done
mv $RPM_BUILD_ROOT%{l_prefix}/etc/postfix/postfix-script \
$RPM_BUILD_ROOT%{l_prefix}/sbin/postfix-script
rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/postfix/postfix-script*
mv $RPM_BUILD_ROOT%{l_prefix}/etc/postfix/post-install \
$RPM_BUILD_ROOT%{l_prefix}/sbin/postfix-install
- ( cd $RPM_BUILD_ROOT%{l_prefix}/etc/postfix
- %{l_shtool} mkdir -f -p -m 755 sample
- for cfg in access aliases canonical header_checks \
- relocated transport virtual \
- main.cf master.cf main.cf.default; do
- mv $cfg sample/
- done
- ) || exit $?
# install default configuration
- %{l_shtool} install -c -m 644 %{l_value -s -a} \
- etc/* $RPM_BUILD_ROOT%{l_prefix}/etc/postfix/
+ for name in `grep "^<file" %{SOURCE postfix.txt} | sed -e
's;^.*name=";;' -e 's;".*$;;'`; do
+ (echo ""; cat %{SOURCE postfix.txt}; echo "") |\
+ sed -e "1,/^<file name=\"$name\">/d" -e "/<\/file>/,\$d" >$name
+ %{l_shtool} install -c -m 644 %{l_value -s -a} \
+ $name $RPM_BUILD_ROOT%{l_prefix}/etc/postfix/
+ done
# pre-create variable stuff
( cd $RPM_BUILD_ROOT%{l_prefix}/var/postfix
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/postfix/postfix.txt
============================================================================
$ cvs diff -u -r0 -r1.1.2.2 postfix.txt
--- /dev/null 2006-10-22 17:42:33 +0200
+++ postfix.txt 2006-10-22 17:42:42 +0200
@@ -0,0 +1,343 @@
+<file name="Makefile">
+##
+## @l_prefix@/etc/postfix/Makefile -- maintainance procedures
+##
+
+# path configuration
+PREFIX = @l_prefix@
+SBINDIR = $(PREFIX)/sbin
+ETCDIR = $(PREFIX)/etc
+
+# program configuration
+RC = $(ETCDIR)/rc
+POSTALIAS = $(SBINDIR)/postalias
+POSTMAP = $(SBINDIR)/postmap
+POSTFIX = $(SBINDIR)/postfix
+
+# table filename configuration
+T_ACCESS = access
+T_CANONICAL = canonical
+T_GENERIC = generic
+T_VIRTUAL = virtual
+T_RELOCATED = relocated
+T_TRANSPORT = transport
+T_ALIASES = aliases
+
+# dependency tracking
+TIMESTAMP = .up-to-date
+DEPENDENCIES = Makefile master.cf main.cf $(TABLES)
+
+# managed tables:
+# - use extension ".db" for hash tables ("hash")
+# - use no extension for regex tables ("pcre")
+TABLES = \
+ $(T_ACCESS).db \
+ $(T_CANONICAL).db \
+ $(T_GENERIC).db \
+ $(T_VIRTUAL).db \
+ $(T_RELOCATED).db \
+ $(T_TRANSPORT).db \
+ $(T_ALIASES).db
+
+# default target
+all: $(TABLES) $(TIMESTAMP)
+
+# implicit checking and reloading
+$(TIMESTAMP): $(DEPENDENCIES)
+ $(POSTFIX) check
+ $(POSTFIX) reload >/dev/null 2>&1 || true
+ touch $(TIMESTAMP) && chmod 600 $(TIMESTAMP)
+
+# explicit checking
+check:
+ $(POSTFIX) check
+
+# hash table update targets
+$(T_ACCESS).db: $(T_ACCESS) $(MAKEFILE)
+ $(POSTMAP) hash:$(T_ACCESS)
+$(T_CANONICAL).db: $(T_CANONICAL) $(MAKEFILE)
+ $(POSTMAP) hash:$(T_CANONICAL)
+$(T_GENERIC).db: $(T_GENERIC) $(MAKEFILE)
+ $(POSTMAP) hash:$(T_GENERIC)
+$(T_VIRTUAL).db: $(T_VIRTUAL) $(MAKEFILE)
+ $(POSTMAP) hash:$(T_VIRTUAL)
+$(T_RELOCATED).db: $(T_RELOCATED) $(MAKEFILE)
+ $(POSTMAP) hash:$(T_RELOCATED)
+$(T_TRANSPORT).db: $(T_TRANSPORT) $(MAKEFILE)
+ $(POSTMAP) hash:$(T_TRANSPORT)
+$(T_ALIASES).db: $(T_ALIASES) $(MAKEFILE)
+ $(POSTALIAS) hash:$(T_ALIASES)
+
+# cleanup target
+clean:
+ -rm -f $(TABLES)
+ -rm -f $(TIMESTAMP)
+
+# process management
+start:
+ $(RC) postfix start
+reload:
+ $(RC) postfix reload
+stop:
+ $(RC) postfix stop
+
+</file>
+<file name="master.cf">
+##
+## @l_prefix@/etc/postfix/master.cf -- Postfix master process table
+##
+# ==========================================================================
+# service type private unpriv chroot wakeup maxproc command + args
+# (yes) (yes) (yes) (never) (100)
+# ==========================================================================
+smtp inet n - n - - smtpd
+#628 inet n - n - - qmqpd
+pickup fifo n - n 60 1 pickup
+cleanup unix n - n - 0 cleanup
+qmgr fifo n - n 300 1 qmgr
+tlsmgr unix - - n 1000? 1 tlsmgr
+rewrite unix - - n - - trivial-rewrite
+bounce unix - - n - 0 bounce
+defer unix - - n - 0 bounce
+trace unix - - n - 0 bounce
+verify unix - - n - 1 verify
+flush unix n - n 1000? 0 flush
+proxymap unix - - n - - proxymap
+smtp unix - - n - - smtp
+relay unix - - n - - smtp -o
fallback_relay=
+showq unix n - n - - showq
+error unix - - n - - error
+local unix - n n - - local
+virtual unix - n n - - virtual
+lmtp unix - - n - - lmtp
+anvil unix - - n - 1 anvil
+scache unix - - n - 1 scache
+#maildrop unix - n n - - pipe flags=DRhu
user=vmail [EMAIL PROTECTED]@/bin/maildrop -d ${recipient}
+#cyrus unix - n n - - pipe user=cyrus
[EMAIL PROTECTED]@/bin/cyrdeliver -e -r ${sender} -m ${extension} ${user}
+#uucp unix - n n - - pipe flags=Fqhu
user=uucp [EMAIL PROTECTED]@/bin/uux -r -n -z -a$sender - $nexthop!rmail
($recipient)
+#ifmail unix - n n - - pipe flags=F
user=ftn [EMAIL PROTECTED]@/bin/ifmail -r $nexthop ($recipient)
+#bsmtp unix - n n - - pipe flags=Fq.
user=foo [EMAIL PROTECTED]@/bin/bsmtp -f $sender $nexthop $recipient
+</file>
+<file name="main.cf">
+##
+## @l_prefix@/etc/postfix/main.cf -- Postfix main configuration
+##
+## Run "@l_prefix@/sbin/postconf -n" to see all parameters overriding
+## defaults, run "@l_prefix@/sbin/postconf -d" to see all possible
+## parameters and their defaults and read the following manual
+## pages for description of each parameter: bounce(8), cleanup(8),
+## defer(8), error(8), flush(8), lmtp(8), local(8), master(8),
+## pickup(8), pipe(8), qmgr(8), showq(8), smtp(8), smtpd(8), spawn(8),
+## trivial-rewrite(8).
+##
+
+# paths
+command_directory = @l_prefix@/sbin
+daemon_directory = @l_prefix@/libexec/postfix
+queue_directory = @l_prefix@/var/postfix
+
+# users
+mail_owner = @l_musr@
+setgid_group = @l_rgrp@
+default_privs = @l_nusr@
+
+# local host
+myhostname = mail.example.com
+mydomain = example.com
+myorigin = $myhostname
+
+# smtp daemon
+#smtpd_banner = $myhostname ESMTP $mail_name
+inet_interfaces = 127.0.0.1
+
+# smtp client
+smtp_bind_address = 127.0.0.1
+
+# relaying
+mynetworks = 127.0.0.0/8
+#mydestination = $myhostname, localhost.$mydomain
+#relay_domains = $mydestination,
+# hash:@l_prefix@/etc/postfix/access
+#smtpd_recipient_restrictions = permit_mynetworks,
+# check_client_access
hash:@l_prefix@/etc/postfix/access,
+# reject_unauth_destination
+
+# maps
+#canonical_maps = hash:@l_prefix@/etc/postfix/canonical
+#smtp_generic_maps = hash:@l_prefix@/etc/postfix/generic
+#virtual_alias_maps = hash:@l_prefix@/etc/postfix/virtual
+#relocated_maps = hash:@l_prefix@/etc/postfix/relocated
+#transport_maps = hash:@l_prefix@/etc/postfix/transport
+alias_maps = hash:@l_prefix@/etc/postfix/aliases
+alias_database = hash:@l_prefix@/etc/postfix/aliases
+
+# local delivery
+#local_recipient_maps = unix:passwd.byname $alias_maps
+recipient_delimiter = +
+mailbox_command = @l_prefix@/bin/procmail -a "$EXTENSION"
+
+</file>
+<file name="access">
+##
+## @l_prefix@/etc/postfix/access -- access control for relaying
+##
+## Searched for both the client (hostname, parent domains, IP address,
+## networks obtained by stripping least significant octets from IP
+## address) and destination address (resolved destination address,
+## parent domain, or localpart@) in order to allow relaying. Rejects
+## the request if the result is REJECT or "[45]XX text". Permits the
+## request if the result is OK or RELAY or all-numerical.
+##
+
+# Syntax (see access(5)):
+# | [EMAIL PROTECTED] action
+# | domain action
+# | user@ action
+# | net.work.addr.ess action
+# | net.work.addr action
+# | net.work action
+# | net action
+# where "action" is one of:
+# "[45]NN text", "REJECT", "OK", "restriction..."
+#
+# Examples:
+# | mail.example.com OK
+# | example.com REJECT
+# | 192.168.0.1 OK
+# | 192.168 REJECT
+# | postmaster@ OK
+
+</file>
+<file name="virtual">
+##
+## @l_prefix@/etc/postfix/virtual -- virtual address translation
+##
+## Searched for virtual addresses [EMAIL PROTECTED], user and @domain
+## (in this order). It redirect mail for all recipients, local or
+## remote. The mapping affects only envelope recipients.
+##
+
+# Syntax (see virtual(5)):
+# | [EMAIL PROTECTED] address, address, ...
+# | user address, address, ...
+# | @domain address, address, ...
+#
+# Examples:
+# | example.com [EMAIL PROTECTED]
+# | [EMAIL PROTECTED] postmaster
+# | [EMAIL PROTECTED] john1
+# | [EMAIL PROTECTED] john2
+
+</file>
+<file name="aliases">
+##
+## @l_prefix@/etc/postfix/aliases -- local mailbox aliases
+##
+## Searched for virtual addresses [EMAIL PROTECTED], user and @domain
+## (in this order). It redirect mail for all recipients, local or
+## remote. The mapping affects only envelope recipients.
+##
+
+# Syntax (see aliases(5)):
+# | name: value, value, ...
+# where value is one of:
+# "address", "/file/name", "|command", ":include:/file/name"
+#
+# Examples:
+# | john.doe: john, doe
+# | robot: |/path/to/robot
+# | archive: /path/to/archive
+# | users: :include:/path/to/users.list
+# | owner-users: john.doe
+
+# standard mail targets
+nobody: /dev/null
+MAILER-DAEMON: postmaster
+
+# mailbox names for common services, roles and functions
+# (see RFC2142 for more details and expanded list of names)
+postmaster: root
+hostmaster: root
+security: root
+abuse: root
+
+# save unprivileged user storage of careless admins
+root: /dev/null
+
+</file>
+<file name="canonical">
+##
+## @l_prefix@/etc/postfix/canonical -- address canonification on mail
receiving
+##
+## Searched for canonical addresses for [EMAIL PROTECTED], user and @domain
+## (in this order).
+##
+
+# Syntax (see canonical(5)):
+# | [EMAIL PROTECTED] address
+# | user address
+# | @domain address
+#
+# Examples:
+# | [EMAIL PROTECTED] [EMAIL PROTECTED]
+# | john John.Doe
+# | @example.com @example.com
+
+</file>
+<file name="relocated">
+##
+## @l_prefix@/etc/postfix/relocated -- relocate obsolete addresses
+##
+## Searched for relocated addresses [EMAIL PROTECTED], user and @domain
+## (in this order). It bounces mail for all recipients.
+##
+
+# Syntax (see relocated(5)):
+# | [EMAIL PROTECTED] address
+# | user address
+# | @domain address
+#
+# Examples:
+# | [EMAIL PROTECTED] [EMAIL PROTECTED]
+# | john [EMAIL PROTECTED]
+# | @invalid [EMAIL PROTECTED]
+
+</file>
+<file name="generic">
+##
+## @l_prefix@/etc/postfix/generic -- address canonification on mail sending
+##
+## Searched for canonical addresses for [EMAIL PROTECTED], user and @domain
+## (in this order).
+##
+
+# Syntax (see generic(5)):
+# | [EMAIL PROTECTED] address
+# | user address
+# | @domain address
+#
+# Examples:
+# | [EMAIL PROTECTED] [EMAIL PROTECTED]
+# | john John.Doe
+# | @example.com @example.com
+
+</file>
+<file name="transport">
+##
+## @l_prefix@/etc/postfix/transport -- transport selection
+##
+## Searched for domain and .domain (in this order). It selects the
+## specified transport facility for delivery.
+##
+
+# Syntax (see transport(5)):
+# | domain transport:nexthop
+# | .domain transport:nexthop
+#
+# Examples:
+# | me.example.com local:
+# | you.example.com smtp:mail.example.com:2525
+# | example.com smtp:mail.example.com
+# | .example.com smtp:mail.example.com
+
+</file>
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]