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:
10
Makefile
10
Makefile
@@ -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); \
|
||||
|
||||
Reference in New Issue
Block a user