The following changes were made:

* Added patch routine
  * Added patch to disable nis in default config
  * Updated init script to use status_of_proc
  * usher will now restart postfix if running
This commit is contained in:
2018-06-08 09:28:52 -05:00
parent 11fd07811b
commit c456a05512
4 changed files with 25 additions and 9 deletions

View File

@@ -70,7 +70,7 @@ REPO = main
BRIEF = The Postfix MTA
DESC = The Postfix MTA (Mail Transport Agent) was written as an alternative \
to the widely-used Sendmail program
SNAPVER = 0
SNAPVER = 1
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
@@ -101,6 +101,10 @@ $(SRCDIR)/Makefile: $(ARCHIVE)
# be re-executed even if it isn't necessary
$(SRCDIR)/bin/postfix: $(SRCDIR)/Makefile
@cd $(SRCDIR) && \
for patch in `find $(PATCHDIR) -name \*.patch|sort`; do \
patch --verbose -Np1 -i $$patch; \
done
@cd $(SRCDIR) && make CCARGS="-DUSE_SASL_AUTH -DUSE_CYRUS_SASL \
-I/usr/include/sasl -DHAS_LDAP -DUSE_TLS" AUXLIBS="-lsasl2 \
-lldap -llber -lssl -lcrypto" makefiles && make
@@ -120,9 +124,11 @@ $(ROOT): $(SRCDIR)/bin/postfix
readme_directory=/usr/share/doc/postfix/readme && \
install -v -d -m 0755 $(ROOT)/etc/init.d && \
install -v -d -m 0755 $(ROOT)/usr/share/postfix/etc && \
install -v -d -m 0755 $(ROOT)/var/spool && \
install -v -m 0755 $(SNAPDIR)/postfix.init \
$(ROOT)/etc/init.d/postfix && \
mv -v $(ROOT)/etc/postfix/* $(ROOT)/usr/share/postfix/etc
mv -v $(ROOT)/etc/postfix/* $(ROOT)/usr/share/postfix/etc && \
ln -sfv ../mail $(ROOT)/var/spool/mail
test: $(ROOT)
@cd $(SRCDIR); \

View File

@@ -37,13 +37,7 @@ case "$1" in
$0 start
;;
status)
pid=$(pidofproc -p "$PIDFILE" "$BINFILE");
if [ "$?" -ne 0 ]; then
echo "postfix is not runing"
else
echo "postfix running with PID: $pid"
fi
status_of_proc -p "$PIDFILE" "$DAEMON"
;;
*)
echo "Usage: $0 {start|stop|reload|restart|status}"

View File

@@ -31,6 +31,10 @@ case $1 in
/var/spool/postfix/maildrop
chmod 2555 /usr/sbin/postqueue \
/usr/sbin/postdrop
/etc/init.d/postfix status 2>&1 > /dev/null && /etc/init.d/postfix restart
exit 0
;;
prerm)
exit 0

View File

@@ -0,0 +1,12 @@
diff -Naur a/conf/main.cf b/conf/main.cf
--- a/conf/main.cf 2017-02-18 19:58:20.000000000 -0600
+++ b/conf/main.cf 2018-06-06 18:43:23.134275240 -0500
@@ -398,7 +398,7 @@
# "postfix reload" to eliminate the delay.
#
#alias_maps = dbm:/etc/aliases
-#alias_maps = hash:/etc/aliases
+alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases