]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blame - lfs/openmailadmin
Add DDNS client for dns.lightningwirelabs.com.
[people/teissler/ipfire-2.x.git] / lfs / openmailadmin
CommitLineData
f28d0ddc 1###############################################################################
f28d0ddc 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 #
f28d0ddc 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 #
f28d0ddc
MT
9# (at your option) any later version. #
10# #
70df8302 11# This program is distributed in the hope that it will be useful, #
f28d0ddc
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/>. #
f28d0ddc
MT
18# #
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include Config
26
58493e1e 27VER = 1.0.0
f28d0ddc 28
58493e1e
MT
29THISAPP = openmailadmin-$(VER)
30DL_FILE = $(THISAPP).tbz2
f28d0ddc
MT
31DL_FROM = $(URL_IPFIRE)
32DIR_APP = $(DIR_SRC)/$(THISAPP)
33TARGET = $(DIR_INFO)/$(THISAPP)
58493e1e 34PROG = openmailadmin
f1baee3e 35PAK_VER = 1
f28d0ddc 36
143b812e 37DEPS = "cyrus-imapd postfix mysql"
5609904b 38
f28d0ddc
MT
39###############################################################################
40# Top-level Rules
41###############################################################################
42
27b8cc24
MT
43objects = $(DL_FILE) \
44 adodb502.tgz
f28d0ddc
MT
45
46$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
27b8cc24 47adodb502.tgz = $(DL_FROM)/adodb502.tgz
f28d0ddc 48
58493e1e 49$(DL_FILE)_MD5 = c56bc9c41f9dd25da9dbf1b63a470333
27b8cc24 50adodb502.tgz_MD5 = 850fe353400df5af006985a88620936d
f28d0ddc
MT
51
52install : $(TARGET)
53
54check : $(patsubst %,$(DIR_CHK)/%,$(objects))
55
56download :$(patsubst %,$(DIR_DL)/%,$(objects))
57
58md5 : $(subst %,%_MD5,$(objects))
59
60dist:
5609904b 61 $(PAK)
f28d0ddc
MT
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)
58493e1e
MT
82 cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE) -C /srv/web
83 mv -v /srv/web/openmailadmin-* /srv/web/openmailadmin
fc4ac7ac
MT
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/
27b8cc24
MT
88 tar xfz $(DIR_DL)/adodb502.tgz -C /srv/web/openmailadmin
89 ln -svf adodb5 /srv/web/openmailadmin/adodb
58493e1e 90 chown nobody.nobody /srv/web/openmailadmin/ -Rv
f28d0ddc 91 @$(POSTBUILD)