]> git.ipfire.org Git - ipfire-3.x.git/blame - apache/apache.nm
make: Update to version 4.4.1
[ipfire-3.x.git] / apache / apache.nm
CommitLineData
01a64af6
AB
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = apache
7version = 2.4.57
8release = 1
9thisapp = httpd-%{version}
10
11groups = System/Libraries
12url = https://httpd.apache.org/
13license = ASL 2.0
14summary = Apache Portable Runtime library
15
16description
17 The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP
18 server for modern operating systems including UNIX and Windows. The goal of this project is
19 to provide a secure, efficient and extensible server that provides HTTP services in sync with
20 the current HTTP standards.
21
22 The Apache HTTP Server ("httpd") was launched in 1995 and it has been the most popular web
23 server on the Internet since April 1996. It has celebrated its 25th birthday as a project
24 in February 2020.
25
26 The Apache HTTP Server is a project of The Apache Software Foundation.
27end
28
29source_dl = https://downloads.apache.org/httpd/
30sources = %{thisapp}.tar.bz2
31
32build
33 requires
34 apr-devel
35 apr-util-devel
36 pcre-devel
37 pcre2-devel
38 openssl-devel
39 expat-devel
40 libuuid-devel
41 libxcrypt-devel
42 end
43
44 prepare_cmds
45 ### Add IPFire's layout, too
46 echo "# IPFire layout" >> config.layout
47 echo "<Layout IPFire>" >> config.layout
48 echo " prefix: /usr" >> config.layout
49 echo " exec_prefix: /usr" >> config.layout
50 echo " bindir: /usr/bin" >> config.layout
51 echo " sbindir: /usr/sbin" >> config.layout
52 echo " libdir: /usr/lib" >> config.layout
53 echo " libexecdir: /usr/lib/httpd/modules" >> config.layout
54 echo " mandir: /usr/share/man" >> config.layout
55 echo " sysconfdir: /etc/httpd/conf" >> config.layout
56 echo " datadir: /srv/web/ipfire" >> config.layout
57 echo " installbuilddir: /usr/lib/apache/build" >> config.layout
58 echo " errordir: /srv/web/ipfire/error" >> config.layout
59 echo " iconsdir: /srv/web/ipfire/icons" >> config.layout
60 echo " htdocsdir: /srv/web/ipfire/htdocs" >> config.layout
61 echo " manualdir: /srv/web/ipfire/manual" >> config.layout
62 echo " cgidir: /srv/web/ipfire/cgi-bin" >> config.layout
63 echo " includedir: /usr/include/apache" >> config.layout
64 echo " localstatedir: /srv/web/ipfire" >> config.layout
65 echo " runtimedir: /var/run" >> config.layout
66 echo " logfiledir: /var/log/httpd" >> config.layout
67 echo " proxycachedir: /var/cache/apache/proxy" >> config.layout
68 echo "</Layout>" >> config.layout
69 end
70
71 configure_options += \
72 --enable-layout=IPFire \
73 --enable-ssl \
74 --enable-mods-shared=all \
75 --enable-proxy \
76 --with-mpm=event \
77 --disable-lua \
78 --disable-md \
79 --libexecdir=/usr/lib/httpd/modules
80
81 install_cmds
82 # var/run no longer used
83 rm -df %{BUILDROOT}/var/run
84
85 # non executable bash scripts should not be in usr/sbin
86 mv %{BUILDROOT}/usr/sbin/envvars* %{BUILDROOT}/usr/lib/apache/
87
88 # change location of envars files in apachectl
89 sed -i 's#/usr/sbin/envvars#/usr/lib/apache/envvars#g' %{BUILDROOT}/usr/sbin/apachectl
90 end
91
92end
93
94packages
95 package %{name}
96
97 package %{name}-devel
98 template DEVEL
99 end
100
101 package %{name}-debuginfo
102 template DEBUGINFO
103 end
104end