]> git.ipfire.org Git - ipfire-2.x.git/blame - lfs/postfix
Ein Paar Dateien fuer die GPLv3 angepasst.
[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
386325bb 27VER = 2.2.11
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
9badc9e9 35PAK_VER = 1
94025eea
MT
36
37###############################################################################
38# Top-level Rules
39###############################################################################
40
41objects = $(DL_FILE)
42
43$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
44
386325bb 45$(DL_FILE)_MD5 = 03f416410110bf46352004dcae67a5fe
94025eea
MT
46
47install : $(TARGET)
48
49check : $(patsubst %,$(DIR_CHK)/%,$(objects))
50
51download :$(patsubst %,$(DIR_DL)/%,$(objects))
52
53md5 : $(subst %,%_MD5,$(objects))
54
e7164bb4 55dist:
a8b159e7 56 @$(PAK)
e7164bb4 57
94025eea
MT
58###############################################################################
59# Downloading, checking, md5sum
60###############################################################################
61
62$(patsubst %,$(DIR_CHK)/%,$(objects)) :
63 @$(CHECK)
64
65$(patsubst %,$(DIR_DL)/%,$(objects)) :
66 @$(LOAD)
67
68$(subst %,%_MD5,$(objects)) :
69 @$(MD5)
70
71###############################################################################
72# Installation Details
73###############################################################################
74
75$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
76 @$(PREBUILD)
77 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
78 cd $(DIR_APP) && make -f Makefile.init makefiles \
f1baee3e
MT
79 'CCARGS=-DDEF_DAEMON_DIR=\"/usr/lib/postfix\" -DDEF_MANPAGE_DIR=\"/usr/share/man\" -DUSE_TLS -I/usr/include/openssl -DUSE_SALS_AUTH -I/usr/include/sasl -DHAS_MYSQL -I/usr/include/mysql' \
80 'AUXLIBS=-L/usr/lib -L/usr/lib/sasl2 -lz -lm -lssl -lcrypto -lmysqlclient -L/usr/lib/mysql -lsasl2 -L/usr/lib'
fd3e7da0 81 cd $(DIR_APP) && make $(MAKETUNING)
94025eea 82 cd $(DIR_APP) && sh postfix-install -non-interactive
3796e3d5
MT
83 ## Install configuration
84 rm -vf /etc/postfix/main.cf.default
85 cp -vf $(DIR_CONF)/postfix/* /etc/postfix
86 mv -vf /etc/postfix/aliases /etc/aliases
94025eea 87 @rm -rf $(DIR_APP)
f28d0ddc 88 @$(POSTBUILD)