]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - lfs/web-user-interface
captive: Import new design
[people/pmueller/ipfire-2.x.git] / lfs / web-user-interface
CommitLineData
afdf1483
MT
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
4# Copyright (C) 2007-2015 IPFire Team <info@ipfire.org> #
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###############################################################################
23# Definitions
24###############################################################################
25
26include Config
27
28VER = ipfire
29
30THISAPP = web-user-interface-$(VER)
31DIR_APP = $(DIR_SRC)/$(THISAPP)
32TARGET = $(DIR_INFO)/$(THISAPP)
33
34###############################################################################
35# Top-level Rules
36###############################################################################
37
38install: $(TARGET)
39
40check:
41
42download:
43
44md5:
45
46###############################################################################
47# Installation Details
48###############################################################################
49
50$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
51 @$(PREBUILD)
52
53 # Copy all html/cgi-bin files
54 mkdir -p /srv/web/ipfire/{cgi-bin,html}
55 mkdir -p /var/updatecache/{download,metadata}
56 cp -aR $(DIR_SRC)/html/* /srv/web/ipfire
57
58 # Change CONFIG_ROOT in cgi-scripts
59 for i in /srv/web/ipfire/cgi-bin/{*,logs.cgi/*,vpn.cgi/*}; do \
60 if [ -f $$i ]; then \
61 sed -i "s+CONFIG_ROOT+$(CONFIG_ROOT)+g" $$i; \
62 fi; \
63 done
64 chown -R root:root /srv/web/ipfire
65 chmod -R 755 /srv/web/ipfire/cgi-bin
66 chmod -R 644 /srv/web/ipfire/html
0a02d9bb 67 chmod 755 /srv/web/ipfire/html /srv/web/ipfire/html/{index.cgi,redirect.cgi,dial.cgi,images,include,themes,themes/*,themes/*/*}
6820454e 68 chmod -R 777 /srv/web/ipfire/html/captive/logo
afdf1483
MT
69 ln -svf ipfire /srv/web/ipfire/html/themes/ipfire-rounded
70
71 # Reset permissions of redirect templates and theme directories
72 find /srv/web/ipfire/html/{redirect-templates,themes} -type d | xargs chmod -v 755
48fb1d3b
MT
73
74 # Captive Portal CSS
75 ln -svf --relative /usr/share/bootstrap/css/bootstrap-grid.min.css \
76 /srv/web/ipfire/html/captive/assets/bootstrap-grid.min.css
77 ln -svf --relative /usr/share/bootstrap/css/bootstrap-reboot.min.css \
78 /srv/web/ipfire/html/captive/assets/bootstrap-reboot.min.css
79
afdf1483 80 @$(POSTBUILD)