]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - lfs/postfix
Add ext4 support to installer.
[people/pmueller/ipfire-2.x.git] / lfs / postfix
CommitLineData
94025eea 1###############################################################################
94025eea 2# #
70df8302
MT
3# IPFire.org - A linux based firewall #
4# Copyright (C) 2007 Michael Tremer & Christian Schmidt #
5# #
6# This program is free software: you can redistribute it and/or modify #
94025eea 7# it under the terms of the GNU General Public License as published by #
70df8302 8# the Free Software Foundation, either version 3 of the License, or #
94025eea
MT
9# (at your option) any later version. #
10# #
70df8302 11# This program is distributed in the hope that it will be useful, #
94025eea
MT
12# but WITHOUT ANY WARRANTY; without even the implied warranty of #
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14# GNU General Public License for more details. #
15# #
16# You should have received a copy of the GNU General Public License #
70df8302 17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
94025eea 18# #
94025eea
MT
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include Config
26
562e9f63 27VER = 2.6.5
94025eea
MT
28
29THISAPP = postfix-$(VER)
30DL_FILE = $(THISAPP).tar.gz
907cd036 31DL_FROM = $(URL_IPFIRE)
94025eea
MT
32DIR_APP = $(DIR_SRC)/$(THISAPP)
33TARGET = $(DIR_INFO)/$(THISAPP)
a8b159e7 34PROG = postfix
562e9f63 35PAK_VER = 6
94025eea 36
f4e27420 37DEPS = "amavisd mysql"
f86b0cc3 38
94025eea
MT
39###############################################################################
40# Top-level Rules
41###############################################################################
42
562e9f63 43objects = $(DL_FILE)
94025eea
MT
44
45$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
46
562e9f63 47$(DL_FILE)_MD5 = 6b954cfb3eb6141dac1e773281211717
94025eea
MT
48
49install : $(TARGET)
50
51check : $(patsubst %,$(DIR_CHK)/%,$(objects))
52
53download :$(patsubst %,$(DIR_DL)/%,$(objects))
54
55md5 : $(subst %,%_MD5,$(objects))
56
e7164bb4 57dist:
a8b159e7 58 @$(PAK)
e7164bb4 59
94025eea
MT
60###############################################################################
61# Downloading, checking, md5sum
62###############################################################################
63
64$(patsubst %,$(DIR_CHK)/%,$(objects)) :
65 @$(CHECK)
66
67$(patsubst %,$(DIR_DL)/%,$(objects)) :
68 @$(LOAD)
69
70$(subst %,%_MD5,$(objects)) :
71 @$(MD5)
72
73###############################################################################
74# Installation Details
75###############################################################################
76
77$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
78 @$(PREBUILD)
79 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
80 cd $(DIR_APP) && make -f Makefile.init makefiles \
6bb14162 81 'CCARGS=-DDEF_DAEMON_DIR=\"/usr/lib/postfix\" -DDEF_MANPAGE_DIR=\"/usr/share/man\" -DUSE_TLS -I/usr/include/openssl -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DHAS_MYSQL -I/usr/include/mysql' \
f1baee3e 82 'AUXLIBS=-L/usr/lib -L/usr/lib/sasl2 -lz -lm -lssl -lcrypto -lmysqlclient -L/usr/lib/mysql -lsasl2 -L/usr/lib'
fd3e7da0 83 cd $(DIR_APP) && make $(MAKETUNING)
94025eea 84 cd $(DIR_APP) && sh postfix-install -non-interactive
3796e3d5
MT
85 ## Install configuration
86 rm -vf /etc/postfix/main.cf.default
87 cp -vf $(DIR_CONF)/postfix/* /etc/postfix
88 mv -vf /etc/postfix/aliases /etc/aliases
6c47cd83 89 mkdir -p /var/lib/postfix
bcf4b2e2 90 chown postfix.root /var/lib/postfix
94025eea 91 @rm -rf $(DIR_APP)
f28d0ddc 92 @$(POSTBUILD)