]> git.ipfire.org Git - ipfire-2.x.git/blob - lfs/apache2
core130: update pakfire database after version change
[ipfire-2.x.git] / lfs / apache2
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007-2019 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
26 include Config
27
28 VER = 2.4.39
29
30 THISAPP = httpd-$(VER)
31 DL_FILE = $(THISAPP).tar.bz2
32 DL_FROM = $(URL_IPFIRE)
33
34 DIR_APP = $(DIR_SRC)/$(THISAPP)
35
36 TARGET = $(DIR_INFO)/$(THISAPP)
37
38 DEPS = "aprutil pcre"
39
40 ###############################################################################
41 # Top-level Rules
42 ###############################################################################
43
44 objects = $(DL_FILE)
45
46 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
47
48 $(DL_FILE)_MD5 = 930e217ba2d71e708a3f1521ecae7ec0
49
50 install : $(TARGET)
51
52 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
53
54 download :$(patsubst %,$(DIR_DL)/%,$(objects))
55
56 md5 : $(subst %,%_MD5,$(objects))
57
58 ###############################################################################
59 # Downloading, checking, md5sum
60 ###############################################################################
61
62 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
63 @$(CHECK)
64
65 $(patsubst %,$(DIR_DL)/%,$(objects)) :
66 @$(LOAD)
67
68 $(subst %,%_MD5,$(objects)) :
69 @$(MD5)
70
71 ###############################################################################
72 # Installation Details
73 ###############################################################################
74
75 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
76 @$(PREBUILD)
77 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
78 ### Add IPFire's layout, too
79 echo "# IPFire layout" >> $(DIR_APP)/config.layout
80 echo "<Layout IPFire>" >> $(DIR_APP)/config.layout
81 echo " prefix: /usr" >> $(DIR_APP)/config.layout
82 echo " exec_prefix: /usr" >> $(DIR_APP)/config.layout
83 echo " bindir: /usr/bin" >> $(DIR_APP)/config.layout
84 echo " sbindir: /usr/sbin" >> $(DIR_APP)/config.layout
85 echo " libdir: /usr/lib" >> $(DIR_APP)/config.layout
86 echo " libexecdir: /usr/lib/apache" >> $(DIR_APP)/config.layout
87 echo " mandir: /usr/share/man" >> $(DIR_APP)/config.layout
88 echo " sysconfdir: /etc/httpd/conf" >> $(DIR_APP)/config.layout
89 echo " datadir: /srv/web/ipfire" >> $(DIR_APP)/config.layout
90 echo " installbuilddir: /usr/lib/apache/build" >> $(DIR_APP)/config.layout
91 echo " errordir: /srv/web/ipfire/error" >> $(DIR_APP)/config.layout
92 echo " iconsdir: /srv/web/ipfire/icons" >> $(DIR_APP)/config.layout
93 echo " htdocsdir: /srv/web/ipfire/htdocs" >> $(DIR_APP)/config.layout
94 echo " manualdir: /srv/web/ipfire/manual" >> $(DIR_APP)/config.layout
95 echo " cgidir: /srv/web/ipfire/cgi-bin" >> $(DIR_APP)/config.layout
96 echo " includedir: /usr/include/apache" >> $(DIR_APP)/config.layout
97 echo " localstatedir: /srv/web/ipfire" >> $(DIR_APP)/config.layout
98 echo " runtimedir: /var/run" >> $(DIR_APP)/config.layout
99 echo " logfiledir: /var/log/httpd" >> $(DIR_APP)/config.layout
100 echo " proxycachedir: /var/cache/apache/proxy" >> $(DIR_APP)/config.layout
101 echo "</Layout>" >> $(DIR_APP)/config.layout
102
103 cd $(DIR_APP) && ./configure --enable-layout=IPFire \
104 --enable-ssl --enable-mods-shared=all --enable-proxy --with-mpm=event --disable-lua --disable-md
105 cd $(DIR_APP) && make $(MAKETUNING)
106 cd $(DIR_APP) && make install
107 chown -v root:root /usr/lib/apache/httpd.exp \
108 /usr/bin/{apxs,dbmmanage} \
109 /usr/sbin/apachectl \
110 /usr/share/man/man1/{ab,apxs,dbmmanage,ht{dbm,digest,passwd,txt2dbm},logresolve}.1 \
111 /usr/share/man/man8/{apachectl,htcacheclean,httpd}.8 \
112 /usr/share/man/man8/{rotatelogs,suexec}.8
113
114 # Install apache config
115 cp -rf $(DIR_CONF)/httpd/* /etc/httpd/conf
116 touch /etc/httpd/conf/hostname.conf
117
118 # Create captive logging directory
119 -mkdir -pv /var/log/httpd/captive
120
121 @rm -rf $(DIR_APP)
122 @$(POSTBUILD)