From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH 4/4] apache: Introduce apache into IPFire3.x Date: Mon, 18 Sep 2023 16:16:57 +0200 Message-ID: <20230918141810.536112-4-adolf.belka@ipfire.org> In-Reply-To: <20230918141810.536112-1-adolf.belka@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0981271183765618548==" List-Id: --===============0981271183765618548== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable - IPFire3.x - Creation of nm file for installation of apache Signed-off-by: Adolf Belka --- apache/apache.nm | 104 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 apache/apache.nm diff --git a/apache/apache.nm b/apache/apache.nm new file mode 100644 index 000000000..a4421b634 --- /dev/null +++ b/apache/apache.nm @@ -0,0 +1,104 @@ +############################################################################= ### +# IPFire.org - An Open Source Firewall Solution = # +# Copyright (C) - IPFire Development Team = # +############################################################################= ### + +name =3D apache +version =3D 2.4.57 +release =3D 1 +thisapp =3D httpd-%{version} + +groups =3D System/Libraries +url =3D https://httpd.apache.org/ +license =3D ASL 2.0 +summary =3D Apache Portable Runtime library + +description + The Apache HTTP Server Project is an effort to develop and maintain an open= -source HTTP + server for modern operating systems including UNIX and Windows. The goal of= this project is + to provide a secure, efficient and extensible server that provides HTTP ser= vices in sync with=20 + the current HTTP standards. + + The Apache HTTP Server ("httpd") was launched in 1995 and it has been the m= ost popular web + server on the Internet since April 1996. It has celebrated its 25th birthda= y as a project + in February 2020. + + The Apache HTTP Server is a project of The Apache Software Foundation. +end + +source_dl =3D https://downloads.apache.org/httpd/ +sources =3D %{thisapp}.tar.bz2 + +build + requires + apr-devel + apr-util-devel + pcre-devel + pcre2-devel + openssl-devel + expat-devel + libuuid-devel + libxcrypt-devel + end +=09 + prepare_cmds + ### Add IPFire's layout, too + echo "# IPFire layout" >> config.layout + echo "" >> config.layout + echo " prefix: /usr" >> config.layout + echo " exec_prefix: /usr" >> config.layout + echo " bindir: /usr/bin" >> config.layout + echo " sbindir: /usr/sbin" >> config.layout + echo " libdir: /usr/lib" >> config.layout + echo " libexecdir: /usr/lib/httpd/modules" >> config.layout + echo " mandir: /usr/share/man" >> config.layout + echo " sysconfdir: /etc/httpd/conf" >> config.layout + echo " datadir: /srv/web/ipfire" >> config.layout + echo " installbuilddir: /usr/lib/apache/build" >> config.layout + echo " errordir: /srv/web/ipfire/error" >> config.layout + echo " iconsdir: /srv/web/ipfire/icons" >> config.layout + echo " htdocsdir: /srv/web/ipfire/htdocs" >> config.layout + echo " manualdir: /srv/web/ipfire/manual" >> config.layout + echo " cgidir: /srv/web/ipfire/cgi-bin" >> config.layout + echo " includedir: /usr/include/apache" >> config.layout + echo " localstatedir: /srv/web/ipfire" >> config.layout + echo " runtimedir: /var/run" >> config.layout + echo " logfiledir: /var/log/httpd" >> config.layout + echo " proxycachedir: /var/cache/apache/proxy" >> config.layout + echo "" >> config.layout + end + + configure_options +=3D \ + --enable-layout=3DIPFire \ + --enable-ssl \ + --enable-mods-shared=3Dall \ + --enable-proxy \ + --with-mpm=3Devent \ + --disable-lua \ + --disable-md \ + --libexecdir=3D/usr/lib/httpd/modules + + install_cmds + # var/run no longer used + rm -df %{BUILDROOT}/var/run + =09 + # non executable bash scripts should not be in usr/sbin=20 + mv %{BUILDROOT}/usr/sbin/envvars* %{BUILDROOT}/usr/lib/apache/ + =09 + # change location of envars files in apachectl + sed -i 's#/usr/sbin/envvars#/usr/lib/apache/envvars#g' %{BUILDROOT}/usr/sb= in/apachectl + end + +end + +packages + package %{name} + + package %{name}-devel + template DEVEL + end + + package %{name}-debuginfo + template DEBUGINFO + end +end --=20 2.42.0 --===============0981271183765618548==--