-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.opensuse
83 lines (68 loc) · 2.4 KB
/
Makefile.opensuse
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/usr/bin/make -f
# EasySCP a Virtual Hosting Control Panel
# Copyright (C) 2010-2012 by Easy Server Control Panel - http://www.easyscp.net
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# @link http://www.easyscp.net
# @author EasySCP Team
ifndef INST_PREF
INST_PREF=/tmp/easyscp
endif
HOST_OS=opensuse
ROOT_CONF=$(INST_PREF)/etc
SYSTEM_ROOT=$(INST_PREF)/srv/www/easyscp
SYSTEM_CONF=$(INST_PREF)/etc/easyscp
SYSTEM_LOG=$(INST_PREF)/var/log/easyscp
SYSTEM_APACHE_BACK_LOG=$(INST_PREF)/var/log/apache2/backup
SYSTEM_VIRTUAL=$(INST_PREF)/srv/www/virtual
SYSTEM_AWSTATS=$(INST_PREF)/srv/www/awstats
SYSTEM_FCGI=$(INST_PREF)/srv/www/fcgi
SYSTEM_SCOREBOARDS=$(INST_PREF)/srv/www/scoreboards
SYSTEM_MAIL_VIRTUAL=$(INST_PREF)/var/spool/mail/virtual
SYSTEM_MAKE_DIRS=/bin/mkdir -p
SYSTEM_MAKE_FILE=/bin/touch
export
install:
$(SYSTEM_MAKE_DIRS) $(SYSTEM_CONF)
$(SYSTEM_MAKE_DIRS) $(SYSTEM_ROOT)
$(SYSTEM_MAKE_DIRS) $(SYSTEM_LOG)
$(SYSTEM_MAKE_DIRS) $(SYSTEM_LOG)/easyscp-arpl-msgr
$(SYSTEM_MAKE_DIRS) $(SYSTEM_VIRTUAL)
$(SYSTEM_MAKE_DIRS) $(SYSTEM_FCGI)
$(SYSTEM_MAKE_DIRS) $(SYSTEM_SCOREBOARDS)
$(SYSTEM_MAKE_DIRS) $(SYSTEM_AWSTATS)
$(SYSTEM_MAKE_DIRS) $(SYSTEM_MAIL_VIRTUAL)
$(SYSTEM_MAKE_DIRS) $(SYSTEM_APACHE_BACK_LOG)
cd ./configs && $(MAKE) install
cd ./daemon && $(MAKE) install
cd ./engine && $(MAKE) install
cd ./gui && $(MAKE) install
uninstall:
cd ./configs && $(MAKE) uninstall
cd ./daemon && $(MAKE) uninstall
cd ./engine && $(MAKE) uninstall
cd ./gui && $(MAKE) uninstall
rm -rf $(SYSTEM_CONF)
rm -rf $(SYSTEM_ROOT)
rm -rf $(SYSTEM_LOG)
rm -rf $(SYSTEM_VIRTUAL)
rm -rf $(SYSTEM_FCGI)
rm -rf $(SYSTEM_SCOREBOARDS)
rm -rf $(SYSTEM_MAIL_VIRTUAL)
rm -rf $(SYSTEM_APACHE_BACK_LOG)
clean:
rm -rf $(INST_PREF)
.PHONY: install uninstall clean