1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007 Michael Tremer & Christian Schmidt #
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. #
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. #
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/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
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)
37 DEPS = "cyrus-imapd postfix mysql"
39 ###############################################################################
41 ###############################################################################
43 objects = $(DL_FILE) \
46 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
47 adodb502.tgz = $(DL_FROM)/adodb502.tgz
49 $(DL_FILE)_MD5 = c56bc9c41f9dd25da9dbf1b63a470333
50 adodb502.tgz_MD5 = 850fe353400df5af006985a88620936d
54 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
56 download :$(patsubst %,$(DIR_DL)/%,$(objects))
58 md5 : $(subst %,%_MD5,$(objects))
63 ###############################################################################
64 # Downloading, checking, md5sum
65 ###############################################################################
67 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
70 $(patsubst %,$(DIR_DL)/%,$(objects)) :
73 $(subst %,%_MD5,$(objects)) :
76 ###############################################################################
77 # Installation Details
78 ###############################################################################
80 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
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