🔒 Repository is read-only – file editing is disabled.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
pkgname: apache
pkgver: '2.4.68'
pkgrel: '1'
pkgdesc: An open-source HTTP server for modern operating systems.
url: 'https://httpd.apache.org/ABOUT_APACHE.html'
arch: x86_64
license:
- APACHE
depends:
- shadow
makedepends:
- sed
- grep
- pcre2
- apr-util
- sqlite
- expat
- libxcrypt
source:
- 'https://repo.paganlinux.eu/sources/pagan-scripts-20260822.tar.gz'
- 'https://archive.apache.org/dist/httpd/httpd-${pkgver}.tar.bz2'
- layout.patch
sha256sums:
- 32e0aec88cc56a8afe0b2671debe47d19357792a6ffaffaf6e3db8a021a57072
- 68c74d4df38c26bed4dfbdb8f3baf1eb532f3872357becc1bba5d136f6b63c06
- SKIP
hooks:
post-install: "name=apache\nversion=2.4.68\nrelease=1\nINFO=\"\\033[1;36m\"\nNORMAL=\"\\033[0;39m\"\n\n[ -f etc/httpd/httpd.conf.example\
\ ] && sed \\\n-e 's@User apache@User http@' \\\n-e 's@Group apache@Group http@' \\\n-i etc/httpd/httpd.conf.example\n\
\n\nif [ ! -f etc/httpd/httpd.conf ]; then\n\tcp etc/httpd/httpd.conf{.example,}\n printf \"${INFO} /etc//httpd/httpd.conf\
\ created ${NORMAL}\\n\"\n printf \"${INFO} Double check /etc//httpd/httpd.conf and adapted to your needs ${NORMAL}\\\
n\"\nfi\nif [ ! -f srv/www/index.html ]; then\n cp srv/www/index.html{.apache.example,}\n printf \"${INFO} /srv/www/index.html\
\ created ${NORMAL}\\n\"\nfi\nSYSTEMD_TMPFILE=$(which systemd-tmpfile)\n[ -z \"$SYSTEMD_TMPFILE\" ] || $SYSTEMD_TMPFILE\
\ --create httpd.conf\nsystemctl enable httpd\n"
pre-install: "name=apache\nversion=2.4.68\nrelease=1\nINFO=\"\\033[1;36m\"\nNORMAL=\"\\033[0;39m\"\n\n[ -f etc/httpd/httpd.conf\
\ ] && sed \\\n-e 's@User apache@User http@' \\\n-e 's@Group apache@Group http@' \\\n-i etc/httpd/httpd.conf\n\nUN=apache\n\
(getent passwd $UN > /dev/null) && userdel $UN\n(getent group $UN > /dev/null) && groupdel $UN\n\nUN=www\n(getent passwd\
\ $UN > /dev/null) && userdel $UN\n(getent group $UN > /dev/null) && groupdel $UN\n\n\nUN=http\nif ! (getent group $UN\
\ > /dev/null); then\n\tprintf \"${INFO}Creating $UN group${NORMAL}\\n\"\n\tgroupadd -g 25 $UN\nfi\nif ! (getent passwd\
\ $UN > /dev/null); then\n\tprintf \"${INFO}Creating $UN user${NORMAL}\\n\"\n\tuseradd -c \"http Server\" -d /srv/www\
\ \\\n\t-g $UN -s /usr/bin/false -u 25 $UN\nfi\n"
build: |
UN=apache
(getent passwd $UN > /dev/null) && userdel $UN
(getent group $UN > /dev/null) && groupdel $UN
UN=www
(getent passwd $UN > /dev/null) && userdel $UN
(getent group $UN > /dev/null) && groupdel $UN
UN=http
if ! (getent group $UN > /dev/null); then
groupadd -g 25 $UN
fi
if ! (getent passwd $UN > /dev/null); then
useradd -c "http Server" -d /srv/www \
-g $UN -s /usr/bin/false -u 25 $UN
fi
cd httpd-${pkgver}
unset MAKEFLAGS
patch -Np1 -i ../layout.patch
sed '/dir.*CFG_PREFIX/s@^@#@' -i support/apxs.in
./configure --enable-authnz-fcgi \
--sbindir=/usr/bin \
--enable-layout=BLFS \
--enable-mods-shared="all cgi" \
--enable-mpms-shared=all \
--enable-suexec=shared \
--with-apr=/usr/bin/apr-1-config \
--with-apr-util=/usr/bin/apu-1-config \
--with-suexec-bin=/usr/lib/httpd/suexec \
--with-suexec-caller=http \
--with-suexec-docroot=/srv/www \
--with-suexec-logfile=/var/log/httpd/suexec.log \
--with-suexec-uidmin=100 \
--with-suexec-userdir=public_html
make
make DESTDIR=${PKGDIR} install
mv -v ${PKGDIR}/usr/bin/suexec ${PKGDIR}/usr/lib/httpd/suexec
chgrp http ${PKGDIR}/usr/lib/httpd/suexec
chmod 4754 ${PKGDIR}/usr/lib/httpd/suexec
chown -v -R http:http ${PKGDIR}/srv/www
mv ${PKGDIR}/srv/www/index.html{,.apache.example}
# Services – pagan-scripts jest SĄSIADEM httpd (rozpakowuje się obok
# httpd-2.4.68), więc wchodzimy o jeden poziom wyżej. Wcześniej było
# `cd ./pagan-scripts-20260822`, co szukało katalogu WEWNĄTRZ httpd/.
cd ../pagan-scripts-20260822
make DESTDIR=${PKGDIR} install-sysd-httpd
package: |
true