From patchwork Mon Sep 18 14:16:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adolf Belka X-Patchwork-Id: 7208 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4Rq6N81zpjz3wtY for ; Mon, 18 Sep 2023 14:18:32 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) client-signature ECDSA (secp384r1)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4Rq6Mw2VLzzR4; Mon, 18 Sep 2023 14:18:20 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4Rq6Mv5RZfz2ynQ; Mon, 18 Sep 2023 14:18:19 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4Rq6Ms6TCRz2y4Q for ; Mon, 18 Sep 2023 14:18:17 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4Rq6Ms4W3rz2Hn; Mon, 18 Sep 2023 14:18:17 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1695046697; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RZ5oK+plc75p5oedFeS+73lgJ5rwNgoZtQtqzkqVYA4=; b=NYvy0LL+rQ+Oacoq+K/3zqMvt4P52BMKR5cOhbnUGEXPPcRoPvtqEhEqVg9ZakVNUpzlya U5pACxOryrYrveAg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1695046697; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RZ5oK+plc75p5oedFeS+73lgJ5rwNgoZtQtqzkqVYA4=; b=RBdaWbldltpIm4ac2nuX2TBZD+3G7Tz8ILxDacKDgGrdCZayKsiwyz7BSFUrzRql+3zEqt i7upvKrQa0A8d7IPeWdwfE9Hyukr6OFD7zfkwiu4pNM+A/tF6dq/qsTWAdW5u9DKs1rNG0 331ovCT6jC6JhgJLQdxk69v7uhEq7o1RKs6WERaQf9DX7ZNQp3RX5cJT8qZpfWwCIzM8PF Swj8Y4UVjOCG1fzKUxfJPzKamO9/k3f5wYg+F2IAq7fYT6uWYIzm26NPFXeaBuAbHhojHE dwUtWcmS0u52C+iW5DNwYijEtXxOe4vZoyOP/3EFu3oOEYYvaSpYwAu0zupSBQ== 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> References: <20230918141810.536112-1-adolf.belka@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" - 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 = apache +version = 2.4.57 +release = 1 +thisapp = httpd-%{version} + +groups = System/Libraries +url = https://httpd.apache.org/ +license = ASL 2.0 +summary = 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 services in sync with + the current HTTP standards. + + The Apache HTTP Server ("httpd") was launched in 1995 and it has been the most popular web + server on the Internet since April 1996. It has celebrated its 25th birthday as a project + in February 2020. + + The Apache HTTP Server is a project of The Apache Software Foundation. +end + +source_dl = https://downloads.apache.org/httpd/ +sources = %{thisapp}.tar.bz2 + +build + requires + apr-devel + apr-util-devel + pcre-devel + pcre2-devel + openssl-devel + expat-devel + libuuid-devel + libxcrypt-devel + end + + 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 += \ + --enable-layout=IPFire \ + --enable-ssl \ + --enable-mods-shared=all \ + --enable-proxy \ + --with-mpm=event \ + --disable-lua \ + --disable-md \ + --libexecdir=/usr/lib/httpd/modules + + install_cmds + # var/run no longer used + rm -df %{BUILDROOT}/var/run + + # non executable bash scripts should not be in usr/sbin + mv %{BUILDROOT}/usr/sbin/envvars* %{BUILDROOT}/usr/lib/apache/ + + # change location of envars files in apachectl + sed -i 's#/usr/sbin/envvars#/usr/lib/apache/envvars#g' %{BUILDROOT}/usr/sbin/apachectl + end + +end + +packages + package %{name} + + package %{name}-devel + template DEVEL + end + + package %{name}-debuginfo + template DEBUGINFO + end +end