]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - lfs/openmailadmin
mpc: update to 0.21.
[people/teissler/ipfire-2.x.git] / lfs / openmailadmin
1 ###############################################################################
2 # #
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 #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
10 # #
11 # This program is distributed in the hope that it will be useful, #
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 #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include Config
26
27 VER = 1.0.0
28
29 THISAPP = openmailadmin-$(VER)
30 DL_FILE = $(THISAPP).tbz2
31 DL_FROM = $(URL_IPFIRE)
32 DIR_APP = $(DIR_SRC)/$(THISAPP)
33 TARGET = $(DIR_INFO)/$(THISAPP)
34 PROG = openmailadmin
35 PAK_VER = 1
36
37 DEPS = "cyrus-imapd postfix mysql"
38
39 ###############################################################################
40 # Top-level Rules
41 ###############################################################################
42
43 objects = $(DL_FILE) \
44 adodb502.tgz
45
46 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
47 adodb502.tgz = $(DL_FROM)/adodb502.tgz
48
49 $(DL_FILE)_MD5 = c56bc9c41f9dd25da9dbf1b63a470333
50 adodb502.tgz_MD5 = 850fe353400df5af006985a88620936d
51
52 install : $(TARGET)
53
54 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
55
56 download :$(patsubst %,$(DIR_DL)/%,$(objects))
57
58 md5 : $(subst %,%_MD5,$(objects))
59
60 dist:
61 $(PAK)
62
63 ###############################################################################
64 # Downloading, checking, md5sum
65 ###############################################################################
66
67 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
68 @$(CHECK)
69
70 $(patsubst %,$(DIR_DL)/%,$(objects)) :
71 @$(LOAD)
72
73 $(subst %,%_MD5,$(objects)) :
74 @$(MD5)
75
76 ###############################################################################
77 # Installation Details
78 ###############################################################################
79
80 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
81 @$(PREBUILD)
82 cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE) -C /srv/web
83 mv -v /srv/web/openmailadmin-* /srv/web/openmailadmin
84 cp -fv $(DIR_SRC)/config/openmailadmin/config.local.inc.php \
85 /srv/web/openmailadmin/inc
86 cp -fv $(DIR_SRC)/config/openmailadmin/mail.dump \
87 /srv/web/openmailadmin/
88 tar xfz $(DIR_DL)/adodb502.tgz -C /srv/web/openmailadmin
89 ln -svf adodb5 /srv/web/openmailadmin/adodb
90 chown nobody.nobody /srv/web/openmailadmin/ -Rv
91 @$(POSTBUILD)