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); \