Index: 3.6.4/Makefile
===================================================================
--- 3.6.4/Makefile (nonexistent)
+++ 3.6.4/Makefile (revision 5)
@@ -0,0 +1,363 @@
+
+COMPONENT_TARGETS = $(HARDWARE_INTEL_PC32)
+COMPONENT_TARGETS += $(HARDWARE_INTEL_PC64)
+COMPONENT_TARGETS += $(HARDWARE_EBOX_3350DX2)
+COMPONENT_TARGETS += $(HARDWARE_CB1X)
+COMPONENT_TARGETS += $(HARDWARE_CB2X)
+COMPONENT_TARGETS += $(HARDWARE_CB3X)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PP2E)
+COMPONENT_TARGETS += $(HARDWARE_NANOPI_NEO)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PP)
+COMPONENT_TARGETS += $(HARDWARE_ORANGE_PL2)
+COMPONENT_TARGETS += $(HARDWARE_WECHIP_TX6)
+COMPONENT_TARGETS += $(HARDWARE_FFRK3288)
+COMPONENT_TARGETS += $(HARDWARE_POIN2)
+COMPONENT_TARGETS += $(HARDWARE_RK3328_CC)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_EDGE)
+COMPONENT_TARGETS += $(HARDWARE_LEEZ_P710)
+COMPONENT_TARGETS += $(HARDWARE_M201)
+COMPONENT_TARGETS += $(HARDWARE_MXV)
+COMPONENT_TARGETS += $(HARDWARE_P201)
+COMPONENT_TARGETS += $(HARDWARE_NEXBOX_A95X)
+COMPONENT_TARGETS += $(HARDWARE_ODROID_C2)
+COMPONENT_TARGETS += $(HARDWARE_P212)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_VIM)
+COMPONENT_TARGETS += $(HARDWARE_Q201)
+COMPONENT_TARGETS += $(HARDWARE_ENYBOX_X2)
+COMPONENT_TARGETS += $(HARDWARE_KHADAS_VIM2)
+COMPONENT_TARGETS += $(HARDWARE_NIT6Q)
+COMPONENT_TARGETS += $(HARDWARE_OKMX6DL_C)
+COMPONENT_TARGETS += $(HARDWARE_OKMX6Q_C)
+COMPONENT_TARGETS += $(HARDWARE_BONE_BLACK)
+COMPONENT_TARGETS += $(HARDWARE_OMAP5UEVM)
+COMPONENT_TARGETS += $(HARDWARE_DRA7XXEVM)
+COMPONENT_TARGETS += $(HARDWARE_CI20)
+COMPONENT_TARGETS += $(HARDWARE_BAIKAL_T1)
+COMPONENT_TARGETS += $(HARDWARE_BAIKAL_M1)
+COMPONENT_TARGETS += $(HARDWARE_S824L)
+COMPONENT_TARGETS += $(HARDWARE_VESNIN)
+COMPONENT_TARGETS += $(HARDWARE_S824L_LSB)
+COMPONENT_TARGETS += $(HARDWARE_VESNIN_LSB)
+COMPONENT_TARGETS += $(HARDWARE_TL2WK2)
+COMPONENT_TARGETS += $(HARDWARE_TL2SV2)
+COMPONENT_TARGETS += $(HARDWARE_TL2WK2_LSB)
+COMPONENT_TARGETS += $(HARDWARE_TL2SV2_LSB)
+COMPONENT_TARGETS += $(HARDWARE_SIFIVE_U740)
+
+
+NEED_ABS_PATH = true
+COMPONENT_IS_3PP = true
+
+
+include ../../../build-system/constants.mk
+
+
+SOURCE_REQUIRES = sources/packages/n/postfix
+
+REQUIRES = app/db/18.1.40
+REQUIRES += app/mariadb/10.6.5
+REQUIRES += app/postgresql/14.1
+REQUIRES += app/sqlite/3.39.4.0
+REQUIRES += dev/perl/5.36.0
+REQUIRES += libs/pcre/8.44
+REQUIRES += net/cyrus-sasl/2.1.27
+REQUIRES += net/openssl/1.1.1r
+REQUIRES += net/krb5/1.19.1
+REQUIRES += net/libnsl/1.3.0
+
+# ======= __END_OF_REQUIRES__ =======
+
+
+version = 3.6.4
+tar_gz_archive = $(SRC_PACKAGE_PATH)/packages/n/postfix/postfix-$(version).tar.gz
+SRC_ARCHIVE = $(tar_gz_archive)
+SRC_DIR = $(TARGET_BUILD_DIR)/postfix-$(version)
+src_dir_name = postfix-$(version)
+src_done = $(TARGET_BUILD_DIR)/.source_done
+
+PATCHES = PATCHES
+
+build_target = $(TARGET_BUILD_DIR)/.build_done
+install_target = $(TARGET_BUILD_DIR)/.install_done
+
+
+####### Targets
+
+PKG_GROUP = net
+
+#
+# *PKG_NAME & *PKG_VERSION shouldn't be a reference to value.
+#
+POSTFIX_PKG_NAME = postfix
+POSTFIX_PKG_VERSION = 3.6.4
+POSTFIX_PKG_ARCH = $(PKGARCH)
+POSTFIX_PKG_DISTRO_NAME = $(DISTRO_NAME)
+POSTFIX_PKG_DISTRO_VERSION = $(DISTRO_VERSION)
+POSTFIX_PKG_GROUP = $(PKG_GROUP)
+### |---handy-ruler-------------------------------|
+POSTFIX_PKG_SHORT_DESCRIPTION = mail transport and submission agent
+POSTFIX_PKG_URL = $(BUG_URL)
+POSTFIX_PKG_LICENSE = EPLv2.0
+POSTFIX_PKG_DESCRIPTION_FILE = $(TARGET_BUILD_DIR)/$(POSTFIX_PKG_NAME)-pkg-description
+POSTFIX_PKG_DESCRIPTION_FILE_IN = $(POSTFIX_PKG_NAME)-pkg-description.in
+POSTFIX_PKG_INSTALL_SCRIPT = $(POSTFIX_PKG_NAME)-pkg-install.sh
+
+POSTFIX_PKG = $(CURDIR)/$(TARGET_BUILD_DIR)/$(POSTFIX_PKG_NAME)-package
+
+pkg_basename = $(POSTFIX_PKG_NAME)-$(POSTFIX_PKG_VERSION)-$(POSTFIX_PKG_ARCH)-$(POSTFIX_PKG_DISTRO_NAME)-$(POSTFIX_PKG_DISTRO_VERSION)
+
+pkg_archive = $(TARGET_BUILD_DIR)/$(PKG_GROUP)/$(pkg_basename).$(pkg_arch_suffix)
+pkg_certificate = $(call cert-name,$(pkg_archive))
+pkg_signature = $(call sign-name,$(pkg_archive))
+pkg_description = $(call desc-name,$(pkg_archive))
+products = $(call pkg-files,$(pkg_archive))
+
+BUILD_TARGETS = $(build_target)
+BUILD_TARGETS += $(install_target)
+
+PRODUCT_TARGETS = $(products)
+
+ROOTFS_TARGETS = $(pkg_archive)
+
+
+include ../../../build-system/core.mk
+
+
+#
+# Build with SASL support:
+#
+SASLARGS = -DUSE_SASL_AUTH -I$(TARGET_DEST_DIR)/usr/include/sasl -DUSE_CYRUS_SASL
+SASLLIBS = -L$(TARGET_DEST_DIR)/usr/lib$(LIBSUFFIX)/sasl2 -lsasl2
+
+#
+# Build with TLS support, see TLS_README:
+#
+TLSARGS = -DUSE_TLS
+TLSLIBS = -lssl -lcrypto
+
+#
+# Build with LDAP client support, see LDAP_README:
+#
+LDAPARGS = -DHAS_LDAP
+
+#
+# MySQL database support, see MYSQL_README:
+#
+MYSQLARGS = $(shell $(TARGET_DEST_DIR)/usr/bin/$(TARGET)-mysql_config --include) -DHAS_MYSQL
+MYSQL_LIBS = $(shell $(TARGET_DEST_DIR)/usr/bin/$(TARGET)-mysql_config --libs)
+
+#
+# PostgreSQL database support, see PGSQL_README:
+#
+PGSQLARGS = -I$(TARGET_DEST_DIR)/usr/include -DHAS_PGSQL
+PGSQL_LDFLAGS = -L$(shell $(TARGET_DEST_DIR)/usr/bin/$(TARGET)-pg_config --libdir) $(shell $(TARGET_DEST_DIR)/usr/bin/$(TARGET)-pg_config --ldflags)
+PGSQL_LIBS = -lpq
+
+#
+# PCRE (perl-compatible regular expressions) support, see PCRE_README:
+#
+PCREARGS = -DHAS_PCRE $(shell $(TARGET_DEST_DIR)/usr/bin/pcre-config --prefix=$(TARGET_DEST_DIR)/usr --cflags )
+
+#
+# SQLite3 database support, see SQLITE_README:
+#
+SQLITEARGS = -DHAS_SQLITE
+
+#
+# Finally, DBARGS lumps it all together:
+#
+DBARGS = $(LDAPARGS) $(MYSQLARGS) $(PGSQLARGS) $(PCREARGS) $(SQLITEARGS)
+
+PATHARGS = -DDEF_HTML_DIR=\\\"/usr/share/doc/$(src_dir_name)/html\\\"
+PATHARGS += -DDEF_MANPAGE_DIR=\\\"/usr/share/man\\\"
+PATHARGS += -DDEF_README_DIR=\\\"/usr/share/doc/$(src_dir_name)/readme\\\"
+
+build-tools-dir = $(CURDIR)/$(TARGET_BUILD_DIR)/build-tools
+
+
+####### Dependencies
+
+$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
+ $(UNPACK_SRC_ARCHIVE)
+ $(APPLY_PATCHES)
+ @touch $@
+
+$(build_target): $(src_done)
+ @( cd $(SRC_DIR) ; \
+ CC='$(CCACHE)gcc' make \
+ makefiles dynamicmaps=yes pie=yes shared=yes \
+ shlib_directory=/usr/lib$(LIBSUFFIX)/postfix/3.6.4 \
+ CCARGS="-DHAS_CLOSEFROM $(PATHARGS)" \
+ DEBUG="" ; \
+ CC='$(CCACHE)gcc' make ; \
+ mkdir -p $(build-tools-dir)/{bin,lib} ; \
+ cp bin/postconf $(build-tools-dir)/bin/postconf ; \
+ cp lib/*.so $(build-tools-dir)/lib ; \
+ make tidy ; \
+ )
+ @( cd $(SRC_DIR) ; \
+ $(BUILD_ENVIRONMENT) $(MAKE) \
+ makefiles dynamicmaps=yes pie=yes shared=yes \
+ shlib_directory=/usr/lib$(LIBSUFFIX)/postfix/3.6.4 \
+ CCARGS="$(TLSARGS) $(SASLARGS) $(DBARGS) -DHAS_CLOSEFROM $(PATHARGS)" \
+ AUXLIBS="$(TLSLIBS) $(SASLLIBS)" \
+ AUXLIBS_LDAP="-lldap -llber" \
+ AUXLIBS_MYSQL="$(MYSQL_LIBS)" \
+ AUXLIBS_PGSQL="$(PGSQL_LDFLAGS) $(PGSQL_LIBS)" \
+ AUXLIBS_PCRE="$(shell $(TARGET_DEST_DIR)/usr/bin/pcre-config --prefix=$(TARGET_DEST_DIR)/usr --libs )" \
+ AUXLIBS_SQLITE="-lsqlite3 -lpthread" \
+ OPT="$(CFLAGS)" DEBUG="" ; \
+ sed -i 's,@HOST_TOOLS_PREFIX@,LD_LIBRARY_PATH=../build-tools/lib ../build-tools/,g' postfix-install ; \
+ )
+ @touch $@
+
+$(install_target): $(build_target)
+ @mkdir -p $(POSTFIX_PKG)/usr/share/doc/$(src_dir_name)
+ @( cd $(SRC_DIR) ; \
+ $(BUILD_ENVIRONMENT) $(MAKE) \
+ non-interactive-package \
+ install_root=$(POSTFIX_PKG) \
+ tempdir=postfix-temp \
+ sample_directory= ; \
+ )
+ @( cd $(POSTFIX_PKG)/usr/share/doc ; \
+ ln -sf $(src_dir_name) postfix ; \
+ )
+ @rm -f $(POSTFIX_PKG)/etc/postfix/{TLS_,}LICENSE
+ @mkdir -p $(POSTFIX_PKG)/etc/rc.d
+ @install -D -m 0644 $(CURDIR)/rc.d/rc.postfix $(POSTFIX_PKG)/etc/rc.d/rc.postfix.new
+ # ======= Add greylist.pl per postfix documentation: =======
+ @cp -a $(SRC_DIR)/examples/smtpd-policy/greylist.pl $(POSTFIX_PKG)/usr/libexec/postfix
+ @chmod 755 $(POSTFIX_PKG)/usr/libexec/postfix/greylist.pl
+ @cp -a $(SRC_DIR)/examples/smtpd-policy/README.SPF $(POSTFIX_PKG)/usr/share/doc/$(src_dir_name)/readme
+ # ======= Add some additional tools: =======
+ @install -m 0755 $(SRC_DIR)/bin/posttls-finger $(POSTFIX_PKG)/usr/bin/
+ @install -m 0644 $(SRC_DIR)/man/man1/posttls-finger.1 $(POSTFIX_PKG)/usr/share/man/man1/
+ @install -m 0644 $(SRC_DIR)/html/posttls-finger.1.html $(POSTFIX_PKG)/usr/share/doc/$(src_dir_name)/html/
+ @install -m 0755 $(SRC_DIR)/auxiliary/qshape/qshape.pl $(POSTFIX_PKG)/usr/bin/
+ @install -m 0644 $(SRC_DIR)/man/man1/qshape.1 $(POSTFIX_PKG)/usr/share/man/man1/
+ @install -m 0644 $(SRC_DIR)/html/qshape.1.html $(POSTFIX_PKG)/usr/share/doc/$(src_dir_name)/html/
+ @install -m 0755 $(SRC_DIR)/auxiliary/collate/collate.pl $(POSTFIX_PKG)/usr/bin/
+ @cp -a $(SRC_DIR)/auxiliary/collate/README $(POSTFIX_PKG)/usr/share/doc/$(src_dir_name)/readme/README.collate
+ @install -m 0755 $(SRC_DIR)/bin/{smtp,qmqp}-{source,sink} $(POSTFIX_PKG)/usr/sbin/
+ @install -m 0644 $(SRC_DIR)/man/man1/{smtp,qmqp}-{source,sink}.1 $(POSTFIX_PKG)/usr/share/man/man1/
+ # ======= Tune rbconfig.rb to the target destination =======
+ @( cd $(POSTFIX_PKG)/etc/postfix ; \
+ sed -i "s,$(CCACHE),,g" makedefs.out ; \
+ sed -i "s,$(TARGET_DEST_DIR),,g" makedefs.out ; \
+ sed -i "s,$(CROSS_PREFIX),/usr/bin/,g" makedefs.out ; \
+ sed -i "s, --sysroot=,,g" makedefs.out ; \
+ )
+ # ======= Move configuration files to filename.new: =======
+ @find $(POSTFIX_PKG)/etc/postfix -type f ! -name "*.default" ! -name "*.proto" ! -name "*.out" \
+ ! -name "postfix-files" -exec mv {} {}.new \;
+ # ======= The aliases file is expected to be in /etc, so let's put it there: =======
+ @mv $(POSTFIX_PKG)/etc/postfix/aliases.new $(POSTFIX_PKG)/etc/aliases.new
+ # ======= Tune /etc/postfix/postfix-files: =======
+ @( cd $(POSTFIX_PKG)/etc/postfix ; \
+ sed -i -e '/$$config_directory\/LICENSE:f:root:-:644:1/ d' postfix-files ; \
+ sed -i -e '/$$config_directory\/TLS_LICENSE:f:root:-:644:1/ d' postfix-files ; \
+ sed -i -e 's#\($$manpage_directory/man[158]/.\+\.[158]\)\(:.*\)#\1.gz\2#' postfix-files ; \
+ )
+ # ======= Compress man pages =======
+ @( cd $(POSTFIX_PKG)/usr/share/man/man1 ; \
+ for file in *.1 ; do \
+ ln=`head -n 1 $$file` ; \
+ if [ "`echo $$ln | grep '^\.so '`" != "" ] ; then \
+ origin=`echo $$ln | cut -f 2 -d ' '` ; \
+ origin=`basename $$origin` ; \
+ rm -f $$file ; \
+ ln -sf $$origin $$file ; \
+ fi ; \
+ done ; \
+ )
+ @( cd $(POSTFIX_PKG)/usr/share/man/man5 ; \
+ for file in *.5 ; do \
+ ln=`head -n 1 $$file` ; \
+ if [ "`echo $$ln | grep '^\.so '`" != "" ] ; then \
+ origin=`echo $$ln | cut -f 2 -d ' '` ; \
+ origin=`basename $$origin` ; \
+ rm -f $$file ; \
+ ln -sf $$origin $$file ; \
+ fi ; \
+ done ; \
+ )
+ @( cd $(POSTFIX_PKG)/usr/share/man/man8 ; \
+ for file in *.8 ; do \
+ ln=`head -n 1 $$file` ; \
+ if [ "`echo $$ln | grep '^\.so '`" != "" ] ; then \
+ origin=`echo $$ln | cut -f 2 -d ' '` ; \
+ origin=`basename $$origin` ; \
+ rm -f $$file ; \
+ ln -sf $$origin $$file ; \
+ fi ; \
+ done ; \
+ )
+ @if [ -d $(POSTFIX_PKG)/usr/share/man ]; then \
+ ( cd $(POSTFIX_PKG)/usr/share/man ; \
+ for manpagedir in `find . -type d -name "man*"` ; do \
+ ( cd $$manpagedir ; \
+ for eachpage in `find . -type l -maxdepth 1` ; do \
+ ln -s `readlink $$eachpage`.gz $$eachpage.gz ; \
+ rm $$eachpage ; \
+ done ; \
+ find . -type f -name "*.?" -exec gzip -9 {} \; ; \
+ ) \
+ done \
+ ) \
+ fi
+ # ======= Install Documentation =======
+ @mkdir -p $(POSTFIX_PKG)/usr/doc/$(src_dir_name)
+ @cp -a $(SRC_DIR)/COPYRIGHT $(SRC_DIR)/{TLS_,}LICENSE \
+ $(POSTFIX_PKG)/usr/doc/$(src_dir_name)
+ @mkdir -p $(POSTFIX_PKG)/usr/share/doc/$(src_dir_name)
+ @( cd $(SRC_DIR) ; \
+ cp -a AAAREADME COMPATIBILITY COPYRIGHT HISTORY IPv6-ChangeLog \
+ LICENSE PORTING RELEASE_NOTES TLS_* US_PATENT_* examples implementation-notes \
+ $(POSTFIX_PKG)/usr/share/doc/$(src_dir_name) ; \
+ )
+ @( cd $(SRC_DIR) ; \
+ if [ -r ChangeLog ]; then \
+ DOCSDIR=`echo $(POSTFIX_PKG)/usr/share/doc/$(src_dir_name)` ; \
+ cat ChangeLog | head -n 1000 > $$DOCSDIR/ChangeLog ; \
+ touch -r ChangeLog $$DOCSDIR/ChangeLog ; \
+ fi \
+ )
+ # ======= Install the same to $(TARGET_DEST_DIR) =======
+ $(call install-into-devenv, $(POSTFIX_PKG))
+ # ======= Strip binaries =======
+ @( cd $(POSTFIX_PKG) ; \
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs $(STRIP) --strip-unneeded 2> /dev/null ; \
+ )
+ @touch $@
+
+$(POSTFIX_PKG_DESCRIPTION_FILE): $(POSTFIX_PKG_DESCRIPTION_FILE_IN)
+ @cat $< | $(SED) -e "s/@VERSION@/$(version)/g" > $@
+
+$(pkg_certificate) : $(pkg_archive) ;
+$(pkg_signature) : $(pkg_archive) ;
+$(pkg_description) : $(pkg_archive) ;
+
+$(pkg_archive): $(install_target) $(POSTFIX_PKG_DESCRIPTION_FILE) $(POSTFIX_PKG_INSTALL_SCRIPT)
+ @cp $(POSTFIX_PKG_DESCRIPTION_FILE) $(POSTFIX_PKG)/.DESCRIPTION
+ @cp $(POSTFIX_PKG_INSTALL_SCRIPT) $(POSTFIX_PKG)/.INSTALL
+ @$(BUILD_PKG_REQUIRES) $(POSTFIX_PKG)/.REQUIRES
+ @echo "pkgname=$(POSTFIX_PKG_NAME)" > $(POSTFIX_PKG)/.PKGINFO ; \
+ echo "pkgver=$(POSTFIX_PKG_VERSION)" >> $(POSTFIX_PKG)/.PKGINFO ; \
+ echo "arch=$(POSTFIX_PKG_ARCH)" >> $(POSTFIX_PKG)/.PKGINFO ; \
+ echo "distroname=$(POSTFIX_PKG_DISTRO_NAME)" >> $(POSTFIX_PKG)/.PKGINFO ; \
+ echo "distrover=$(POSTFIX_PKG_DISTRO_VERSION)" >> $(POSTFIX_PKG)/.PKGINFO ; \
+ echo "group=$(POSTFIX_PKG_GROUP)" >> $(POSTFIX_PKG)/.PKGINFO ; \
+ echo "short_description=\"$(POSTFIX_PKG_SHORT_DESCRIPTION)\"" >> $(POSTFIX_PKG)/.PKGINFO ; \
+ echo "url=$(POSTFIX_PKG_URL)" >> $(POSTFIX_PKG)/.PKGINFO ; \
+ echo "license=$(POSTFIX_PKG_LICENSE)" >> $(POSTFIX_PKG)/.PKGINFO
+ @$(PSEUDO) sh -c "cd $(POSTFIX_PKG) && \
+ chown -R root:root . && \
+ chown 0:92 usr/sbin/{postdrop,postqueue} && \
+ chmod 2755 usr/sbin/{postdrop,postqueue} && \
+ chown 91:0 var/lib/postfix && \
+ chown -R 91:0 var/spool/postfix/* && \
+ chown 0:0 var/spool/postfix/pid && \
+ chown 91:92 var/spool/postfix/{maildrop,public} && \
+ $(MAKE_PACKAGE) -J --linkadd=yes $(GNUPG_OPTIONS) -m -d .. ."
Index: 3.6.4/PATCHES
===================================================================
--- 3.6.4/PATCHES (nonexistent)
+++ 3.6.4/PATCHES (revision 5)
@@ -0,0 +1,6 @@
+
+../../../sources/packages/n/postfix/patches/postfix-3.6.4-cross-install.patch -p0
+../../../sources/packages/n/postfix/patches/postfix-3.6.4-db-version.patch -p0
+../../../sources/packages/n/postfix/patches/postfix-3.6.4-linux-version.patch -p0
+../../../sources/packages/n/postfix/patches/postfix-3.6.4-main-defaults.patch -p0
+../../../sources/packages/n/postfix/patches/postfix-3.6.4-starting-message.patch -p0
Index: 3.6.4/postfix-pkg-description.in
===================================================================
--- 3.6.4/postfix-pkg-description.in (nonexistent)
+++ 3.6.4/postfix-pkg-description.in (revision 5)
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+postfix: postfix @VERSION@ (mail transport and submission agent)
+postfix:
+postfix: Postfix attempts to be fast, easy to administer, and secure,
+postfix: while at the same time being sendmail compatible enough to not
+postfix: upset existing users. Thus, the outside has a sendmail-ish flavor,
+postfix: but the inside is completely different.
+postfix:
+postfix: Homepage: http://www.postfix.org
+postfix:
+postfix:
+postfix:
Index: 3.6.4/postfix-pkg-install.sh
===================================================================
--- 3.6.4/postfix-pkg-install.sh (nonexistent)
+++ 3.6.4/postfix-pkg-install.sh (revision 5)
@@ -0,0 +1,124 @@
+#!/bin/sh
+
+# Preserve new files
+install_file() {
+ NEW="$1"
+ OLD="`dirname $NEW`/`basename $NEW .new`"
+ # If there's no file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+preserve_perms() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ if [ -e $OLD ]; then
+ cp -a $OLD ${NEW}.incoming
+ cat $NEW > ${NEW}.incoming
+ touch -r $NEW ${NEW}.incoming
+ mv ${NEW}.incoming $NEW
+ fi
+ install_file $NEW
+}
+
+
+# arg 1: the new package version
+pre_install() {
+ /bin/true
+}
+
+# arg 1: the new package version
+post_install() {
+ # Make sure that the postfix user (UID 91, GID 91),
+ # and the postdrop group (GID 92) exist on this system:
+ if ! grep -q "^postfix:" etc/passwd ; then
+ echo "postfix:x:91:91:User for Postfix MTA:/dev/null:/bin/false" >> etc/passwd
+ fi
+ if ! grep -q "^postfix:" etc/group ; then
+ echo "postfix:x:91:" >> etc/group
+ fi
+ if ! grep -q "^postdrop:" etc/group ; then
+ echo "postdrop:x:92:" >> etc/group
+ fi
+
+ find etc/postfix -type f -name '*.new' | while read new ; do
+ install_file $new
+ done
+
+ preserve_perms etc/rc.d/rc.postfix.new
+ install_file etc/aliases.new
+
+ ( cd etc/postfix ; ln -s ../aliases aliases )
+
+ # Don't keep aliases.new. If it exists, the user already defined aliases.
+ rm -f etc/aliases.new
+
+ # This is for backward compatibility with the old Sendmail package;
+ # some software might still expect to find the /usr/lib/sendmail link.
+ if [ ! -d usr/lib ]; then
+ mkdir -p usr/lib
+ ( cd usr/lib ; rm -f sendmail )
+ ( cd usr/lib ; ln -s ../sbin/sendmail sendmail)
+ fi
+
+ # We have to check that we are not in the installer mode on the target system
+ # ("/etc/system-installer"), and we have to be sure that we are on the working system
+ # on the target hardware ("proc/sys/kernel/osrelease" - relative path).
+ if [ -r proc/sys/kernel/osrelease -a ! -r /etc/system-installer ]; then
+ # No reason to keep these: upgrade-configuration will take care
+ # of merging changes needed to the existing files
+ rm -f /etc/postfix/main.cf.new /etc/postfix/master.cf.new
+ fi
+
+ # The upgrade-configuration command will add any necessary new settings to
+ # existing config files (/etc/postfix/{main,master}.cf). It won't hurt
+ # anything on a new install.
+ #
+ # Also we have to check that we are not in the installer mode on the target system
+ # ("/etc/system-installer"), and we have to be sure that we are on the working system
+ # on the target hardware ("proc/sys/kernel/osrelease" - relative path).
+ if [ -r proc/sys/kernel/osrelease -a ! -r /etc/system-installer -a -x /usr/sbin/postfix ]; then
+ /usr/sbin/postfix upgrade-configuration 1> /dev/null 2> /dev/null
+ fi
+
+ # Process /etc/aliases into a database:
+ #
+ # Also we have to check that we are not in the installer mode on the target system
+ # ("/etc/system-installer"), and we have to be sure that we are on the working system
+ # on the target hardware ("proc/sys/kernel/osrelease" - relative path).
+ if [ -r proc/sys/kernel/osrelease -a ! -r /etc/system-installer -a -x /usr/bin/newaliases ]; then
+ /usr/bin/newaliases 1> /dev/null 2> /dev/null
+ fi
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+pre_update() {
+ /bin/true
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_update() {
+ post_install
+}
+
+# arg 1: the old package version
+pre_remove() {
+ /bin/true
+}
+
+# arg 1: the old package version
+post_remove() {
+ /bin/true
+}
+
+
+operation=$1
+shift
+
+$operation $*
Property changes on: 3.6.4/postfix-pkg-install.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: 3.6.4/rc.d/rc.postfix
===================================================================
--- 3.6.4/rc.d/rc.postfix (nonexistent)
+++ 3.6.4/rc.d/rc.postfix (revision 5)
@@ -0,0 +1,69 @@
+#!/bin/bash
+#
+# Copyright 2006, Alan Hicks, Lizella, GA
+# Copyright 2017, Patrick J. Volkerding, Sebeka, MN USA
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+postfix_start()
+{
+ /usr/sbin/postfix start
+}
+
+postfix_stop()
+{
+ /usr/sbin/postfix stop
+}
+
+postfix_restart()
+{
+ postfix_stop
+ postfix_start
+}
+
+postfix_reload()
+{
+ /usr/sbin/postfix reload
+}
+
+postfix_status()
+{
+ /usr/sbin/postfix status
+}
+
+case $1 in
+'start')
+ postfix_start
+ ;;
+'stop')
+ postfix_stop
+ ;;
+'restart')
+ postfix_restart
+ ;;
+'reload')
+ postfix_reload
+ ;;
+'status')
+ postfix_status
+ ;;
+*)
+ echo "usage $0 start|stop|restart|reload|status"
+esac
Index: 3.6.4/rc.d
===================================================================
--- 3.6.4/rc.d (nonexistent)
+++ 3.6.4/rc.d (revision 5)
Property changes on: 3.6.4/rc.d
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: 3.6.4
===================================================================
--- 3.6.4 (nonexistent)
+++ 3.6.4 (revision 5)
Property changes on: 3.6.4
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: .
===================================================================
--- . (nonexistent)
+++ . (revision 5)
Property changes on: .
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~