[arch-commits] Commit in apache/repos (14 files)
Felix Yan
fyan at archlinux.org
Fri Mar 4 21:25:50 UTC 2016
Date: Friday, March 4, 2016 @ 22:25:50
Author: fyan
Revision: 260835
archrelease: copy trunk to staging-i686, staging-x86_64
Added:
apache/repos/staging-i686/
apache/repos/staging-i686/PKGBUILD
(from rev 260834, apache/trunk/PKGBUILD)
apache/repos/staging-i686/apache.install
(from rev 260834, apache/trunk/apache.install)
apache/repos/staging-i686/apache.tmpfiles.conf
(from rev 260834, apache/trunk/apache.tmpfiles.conf)
apache/repos/staging-i686/arch.layout
(from rev 260834, apache/trunk/arch.layout)
apache/repos/staging-i686/httpd.logrotate
(from rev 260834, apache/trunk/httpd.logrotate)
apache/repos/staging-i686/httpd.service
(from rev 260834, apache/trunk/httpd.service)
apache/repos/staging-x86_64/
apache/repos/staging-x86_64/PKGBUILD
(from rev 260834, apache/trunk/PKGBUILD)
apache/repos/staging-x86_64/apache.install
(from rev 260834, apache/trunk/apache.install)
apache/repos/staging-x86_64/apache.tmpfiles.conf
(from rev 260834, apache/trunk/apache.tmpfiles.conf)
apache/repos/staging-x86_64/arch.layout
(from rev 260834, apache/trunk/arch.layout)
apache/repos/staging-x86_64/httpd.logrotate
(from rev 260834, apache/trunk/httpd.logrotate)
apache/repos/staging-x86_64/httpd.service
(from rev 260834, apache/trunk/httpd.service)
-------------------------------------+
staging-i686/PKGBUILD | 121 ++++++++++++++++++++++++++++++++++
staging-i686/apache.install | 16 ++++
staging-i686/apache.tmpfiles.conf | 1
staging-i686/arch.layout | 22 ++++++
staging-i686/httpd.logrotate | 7 +
staging-i686/httpd.service | 15 ++++
staging-x86_64/PKGBUILD | 121 ++++++++++++++++++++++++++++++++++
staging-x86_64/apache.install | 16 ++++
staging-x86_64/apache.tmpfiles.conf | 1
staging-x86_64/arch.layout | 22 ++++++
staging-x86_64/httpd.logrotate | 7 +
staging-x86_64/httpd.service | 15 ++++
12 files changed, 364 insertions(+)
Copied: apache/repos/staging-i686/PKGBUILD (from rev 260834, apache/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD (rev 0)
+++ staging-i686/PKGBUILD 2016-03-04 21:25:50 UTC (rev 260835)
@@ -0,0 +1,121 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Pierre Schmitz <pierre at archlinux.de>
+
+pkgname=apache
+pkgver=2.4.18
+pkgrel=2
+pkgdesc='A high performance Unix-based HTTP server'
+arch=('i686' 'x86_64')
+url='http://www.apache.org/dist/httpd'
+license=('APACHE')
+backup=(
+ etc/httpd/conf/httpd.conf
+ etc/httpd/conf/extra/httpd-{autoindex,dav,default,info,languages}.conf
+ etc/httpd/conf/extra/httpd-{manual,mpm,multilang-errordoc}.conf
+ etc/httpd/conf/extra/httpd-{ssl,userdir,vhosts}.conf
+ etc/httpd/conf/extra/proxy-html.conf
+ etc/httpd/conf/{mime.types,magic}
+ etc/logrotate.d/httpd
+)
+depends=('zlib' 'apr-util' 'pcre')
+makedepends=('libxml2' 'lua' 'openssl' 'nghttp2')
+optdepends=(
+ 'lua: for mod_lua module'
+ 'openssl: for mod_ssl module'
+ 'libxml2: for mod_proxy_html, mod_xml2enc modules'
+ 'nghttp2: for mod_http2 module'
+ 'lynx: apachectl status'
+)
+install=apache.install
+source=(
+ http://www.apache.org/dist/httpd/httpd-${pkgver}.tar.bz2{,.asc}
+ apache.tmpfiles.conf
+ httpd.logrotate
+ httpd.service
+ arch.layout
+)
+sha256sums=('0644b050de41f5c9f67c825285049b144690421acb709b06fe53eddfa8a9fd4c'
+ 'SKIP'
+ '63da1a420f4714a3e7af2672d28384419cc7eedbe7bf35baebd02938fabc15bf'
+ '0bbbfae23a917b2fce0bf8f900f60319b50769224a96314e9301a75ccd078e16'
+ 'f574bac6d5f398e7a649fc0e1ca66ff01ad4ef34dac71258e93d8a9d9a2b3960'
+ 'dda05c6e76f12624e418ca18a36f2e90ec1c5b1cc52fed7142fce6076ec413f3')
+validpgpkeys=('A93D62ECC3C8EA12DB220EC934EA76E6791485A8') # Jim Jagielski
+
+prepare() {
+ cd httpd-${pkgver}
+
+ # set default user
+ sed -e 's#User daemon#User http#' \
+ -e 's#Group daemon#Group http#' \
+ -i docs/conf/httpd.conf.in
+
+ cat "${srcdir}/arch.layout" >> config.layout
+}
+
+build() {
+ cd httpd-${pkgver}
+
+ ./configure --sbindir=/usr/bin \
+ --enable-layout=Arch \
+ --enable-mpms-shared=all \
+ --enable-modules=all \
+ --enable-mods-shared=all \
+ --enable-so \
+ --enable-suexec \
+ --with-suexec-caller=http \
+ --with-suexec-docroot=/srv/http \
+ --with-suexec-logfile=/var/log/httpd/suexec.log \
+ --with-suexec-bin=/usr/bin/suexec \
+ --with-suexec-uidmin=99 --with-suexec-gidmin=99 \
+ --enable-ldap --enable-authnz-ldap --enable-authnz-fcgi \
+ --enable-cache --enable-disk-cache --enable-mem-cache --enable-file-cache \
+ --enable-ssl --with-ssl \
+ --enable-deflate --enable-cgi --enable-cgid \
+ --enable-proxy --enable-proxy-connect \
+ --enable-proxy-http --enable-proxy-ftp \
+ --enable-dbd --enable-imagemap --enable-ident --enable-cern-meta \
+ --enable-lua --enable-xml2enc --enable-http2 \
+ --with-apr=/usr/bin/apr-1-config \
+ --with-apr-util=/usr/bin/apu-1-config \
+ --with-pcre=/usr
+
+ make
+}
+
+package() {
+ cd httpd-${pkgver}
+
+ make DESTDIR="${pkgdir}" install
+
+ install -D -m644 "${srcdir}/httpd.logrotate" "${pkgdir}/etc/logrotate.d/httpd"
+ install -D -m644 "${srcdir}/apache.tmpfiles.conf" "${pkgdir}/usr/lib/tmpfiles.d/apache.conf"
+ install -D -m644 "${srcdir}/httpd.service" "${pkgdir}/usr/lib/systemd/system/httpd.service"
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+ # symlinks for /etc/httpd
+ # do we really need this symlink?
+ ln -fs /usr/lib/httpd/modules "${pkgdir}/etc/httpd/modules"
+
+ # set sane defaults
+ sed -e 's#/usr/lib/httpd/modules/#modules/#' \
+ -e 's|#\(LoadModule negotiation_module \)|\1|' \
+ -e 's|#\(LoadModule include_module \)|\1|' \
+ -e 's|#\(LoadModule userdir_module \)|\1|' \
+ -e 's|#\(LoadModule slotmem_shm_module \)|\1|' \
+ -e 's|#\(Include conf/extra/httpd-multilang-errordoc.conf\)|\1|' \
+ -e 's|#\(Include conf/extra/httpd-autoindex.conf\)|\1|' \
+ -e 's|#\(Include conf/extra/httpd-languages.conf\)|\1|' \
+ -e 's|#\(Include conf/extra/httpd-userdir.conf\)|\1|' \
+ -e 's|#\(Include conf/extra/httpd-default.conf\)|\1|' \
+ -e 's|#\(Include conf/extra/httpd-mpm.conf\)|\1|' \
+ -i "${pkgdir}/etc/httpd/conf/httpd.conf"
+
+ # cleanup
+ rm -r "${pkgdir}/usr/share/httpd/manual"
+ rm -r "${pkgdir}/etc/httpd/conf/original"
+ rm -r "${pkgdir}/srv/"
+ rm -r "${pkgdir}/run"
+}
Copied: apache/repos/staging-i686/apache.install (from rev 260834, apache/trunk/apache.install)
===================================================================
--- staging-i686/apache.install (rev 0)
+++ staging-i686/apache.install 2016-03-04 21:25:50 UTC (rev 260835)
@@ -0,0 +1,16 @@
+post_install() {
+ if type -P systemd-tmpfiles &> /dev/null; then
+ systemd-tmpfiles --create apache.conf
+ fi
+}
+
+post_upgrade() {
+ if type -P systemd-tmpfiles &> /dev/null; then
+ systemd-tmpfiles --create apache.conf
+ fi
+
+ if [[ $2 == 2\.2\.* ]]; then
+ # it is a major upgrade, show a useful link to upgrade instructions
+ echo ' Check Apache upgrade instructions: https://httpd.apache.org/docs/2.4/upgrading.html'
+ fi
+}
Copied: apache/repos/staging-i686/apache.tmpfiles.conf (from rev 260834, apache/trunk/apache.tmpfiles.conf)
===================================================================
--- staging-i686/apache.tmpfiles.conf (rev 0)
+++ staging-i686/apache.tmpfiles.conf 2016-03-04 21:25:50 UTC (rev 260835)
@@ -0,0 +1 @@
+d /run/httpd 0755 root root -
Copied: apache/repos/staging-i686/arch.layout (from rev 260834, apache/trunk/arch.layout)
===================================================================
--- staging-i686/arch.layout (rev 0)
+++ staging-i686/arch.layout 2016-03-04 21:25:50 UTC (rev 260835)
@@ -0,0 +1,22 @@
+<Layout Arch>
+ prefix: /etc/httpd
+ exec_prefix: /usr
+ bindir: /usr/bin
+ sbindir: /usr/bin
+ libdir: /usr/lib/httpd
+ libexecdir: /usr/lib/httpd/modules
+ mandir: /usr/share/man
+ sysconfdir: /etc/httpd/conf
+ datadir: /usr/share/httpd
+ installbuilddir: /usr/lib/httpd/build
+ errordir: /usr/share/httpd/error
+ iconsdir: /usr/share/httpd/icons
+ htdocsdir: /srv/http
+ manualdir: /usr/share/httpd/manual
+ cgidir: /srv/http/cgi-bin
+ includedir: /usr/include/httpd
+ localstatedir: /var
+ runtimedir: /run/httpd
+ logfiledir: /var/log/httpd
+ proxycachedir: /var/cache/httpd
+</Layout>
\ No newline at end of file
Copied: apache/repos/staging-i686/httpd.logrotate (from rev 260834, apache/trunk/httpd.logrotate)
===================================================================
--- staging-i686/httpd.logrotate (rev 0)
+++ staging-i686/httpd.logrotate 2016-03-04 21:25:50 UTC (rev 260835)
@@ -0,0 +1,7 @@
+/var/log/httpd/*log {
+ missingok
+ sharedscripts
+ postrotate
+ /usr/bin/systemctl reload httpd.service 2>/dev/null || true
+ endscript
+}
Copied: apache/repos/staging-i686/httpd.service (from rev 260834, apache/trunk/httpd.service)
===================================================================
--- staging-i686/httpd.service (rev 0)
+++ staging-i686/httpd.service 2016-03-04 21:25:50 UTC (rev 260835)
@@ -0,0 +1,15 @@
+[Unit]
+Description=Apache Web Server
+After=network.target remote-fs.target nss-lookup.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/httpd -k start -DFOREGROUND
+ExecStop=/usr/bin/httpd -k graceful-stop
+ExecReload=/usr/bin/httpd -k graceful
+PrivateTmp=true
+LimitNOFILE=infinity
+KillMode=mixed
+
+[Install]
+WantedBy=multi-user.target
Copied: apache/repos/staging-x86_64/PKGBUILD (from rev 260834, apache/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2016-03-04 21:25:50 UTC (rev 260835)
@@ -0,0 +1,121 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Pierre Schmitz <pierre at archlinux.de>
+
+pkgname=apache
+pkgver=2.4.18
+pkgrel=2
+pkgdesc='A high performance Unix-based HTTP server'
+arch=('i686' 'x86_64')
+url='http://www.apache.org/dist/httpd'
+license=('APACHE')
+backup=(
+ etc/httpd/conf/httpd.conf
+ etc/httpd/conf/extra/httpd-{autoindex,dav,default,info,languages}.conf
+ etc/httpd/conf/extra/httpd-{manual,mpm,multilang-errordoc}.conf
+ etc/httpd/conf/extra/httpd-{ssl,userdir,vhosts}.conf
+ etc/httpd/conf/extra/proxy-html.conf
+ etc/httpd/conf/{mime.types,magic}
+ etc/logrotate.d/httpd
+)
+depends=('zlib' 'apr-util' 'pcre')
+makedepends=('libxml2' 'lua' 'openssl' 'nghttp2')
+optdepends=(
+ 'lua: for mod_lua module'
+ 'openssl: for mod_ssl module'
+ 'libxml2: for mod_proxy_html, mod_xml2enc modules'
+ 'nghttp2: for mod_http2 module'
+ 'lynx: apachectl status'
+)
+install=apache.install
+source=(
+ http://www.apache.org/dist/httpd/httpd-${pkgver}.tar.bz2{,.asc}
+ apache.tmpfiles.conf
+ httpd.logrotate
+ httpd.service
+ arch.layout
+)
+sha256sums=('0644b050de41f5c9f67c825285049b144690421acb709b06fe53eddfa8a9fd4c'
+ 'SKIP'
+ '63da1a420f4714a3e7af2672d28384419cc7eedbe7bf35baebd02938fabc15bf'
+ '0bbbfae23a917b2fce0bf8f900f60319b50769224a96314e9301a75ccd078e16'
+ 'f574bac6d5f398e7a649fc0e1ca66ff01ad4ef34dac71258e93d8a9d9a2b3960'
+ 'dda05c6e76f12624e418ca18a36f2e90ec1c5b1cc52fed7142fce6076ec413f3')
+validpgpkeys=('A93D62ECC3C8EA12DB220EC934EA76E6791485A8') # Jim Jagielski
+
+prepare() {
+ cd httpd-${pkgver}
+
+ # set default user
+ sed -e 's#User daemon#User http#' \
+ -e 's#Group daemon#Group http#' \
+ -i docs/conf/httpd.conf.in
+
+ cat "${srcdir}/arch.layout" >> config.layout
+}
+
+build() {
+ cd httpd-${pkgver}
+
+ ./configure --sbindir=/usr/bin \
+ --enable-layout=Arch \
+ --enable-mpms-shared=all \
+ --enable-modules=all \
+ --enable-mods-shared=all \
+ --enable-so \
+ --enable-suexec \
+ --with-suexec-caller=http \
+ --with-suexec-docroot=/srv/http \
+ --with-suexec-logfile=/var/log/httpd/suexec.log \
+ --with-suexec-bin=/usr/bin/suexec \
+ --with-suexec-uidmin=99 --with-suexec-gidmin=99 \
+ --enable-ldap --enable-authnz-ldap --enable-authnz-fcgi \
+ --enable-cache --enable-disk-cache --enable-mem-cache --enable-file-cache \
+ --enable-ssl --with-ssl \
+ --enable-deflate --enable-cgi --enable-cgid \
+ --enable-proxy --enable-proxy-connect \
+ --enable-proxy-http --enable-proxy-ftp \
+ --enable-dbd --enable-imagemap --enable-ident --enable-cern-meta \
+ --enable-lua --enable-xml2enc --enable-http2 \
+ --with-apr=/usr/bin/apr-1-config \
+ --with-apr-util=/usr/bin/apu-1-config \
+ --with-pcre=/usr
+
+ make
+}
+
+package() {
+ cd httpd-${pkgver}
+
+ make DESTDIR="${pkgdir}" install
+
+ install -D -m644 "${srcdir}/httpd.logrotate" "${pkgdir}/etc/logrotate.d/httpd"
+ install -D -m644 "${srcdir}/apache.tmpfiles.conf" "${pkgdir}/usr/lib/tmpfiles.d/apache.conf"
+ install -D -m644 "${srcdir}/httpd.service" "${pkgdir}/usr/lib/systemd/system/httpd.service"
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+ # symlinks for /etc/httpd
+ # do we really need this symlink?
+ ln -fs /usr/lib/httpd/modules "${pkgdir}/etc/httpd/modules"
+
+ # set sane defaults
+ sed -e 's#/usr/lib/httpd/modules/#modules/#' \
+ -e 's|#\(LoadModule negotiation_module \)|\1|' \
+ -e 's|#\(LoadModule include_module \)|\1|' \
+ -e 's|#\(LoadModule userdir_module \)|\1|' \
+ -e 's|#\(LoadModule slotmem_shm_module \)|\1|' \
+ -e 's|#\(Include conf/extra/httpd-multilang-errordoc.conf\)|\1|' \
+ -e 's|#\(Include conf/extra/httpd-autoindex.conf\)|\1|' \
+ -e 's|#\(Include conf/extra/httpd-languages.conf\)|\1|' \
+ -e 's|#\(Include conf/extra/httpd-userdir.conf\)|\1|' \
+ -e 's|#\(Include conf/extra/httpd-default.conf\)|\1|' \
+ -e 's|#\(Include conf/extra/httpd-mpm.conf\)|\1|' \
+ -i "${pkgdir}/etc/httpd/conf/httpd.conf"
+
+ # cleanup
+ rm -r "${pkgdir}/usr/share/httpd/manual"
+ rm -r "${pkgdir}/etc/httpd/conf/original"
+ rm -r "${pkgdir}/srv/"
+ rm -r "${pkgdir}/run"
+}
Copied: apache/repos/staging-x86_64/apache.install (from rev 260834, apache/trunk/apache.install)
===================================================================
--- staging-x86_64/apache.install (rev 0)
+++ staging-x86_64/apache.install 2016-03-04 21:25:50 UTC (rev 260835)
@@ -0,0 +1,16 @@
+post_install() {
+ if type -P systemd-tmpfiles &> /dev/null; then
+ systemd-tmpfiles --create apache.conf
+ fi
+}
+
+post_upgrade() {
+ if type -P systemd-tmpfiles &> /dev/null; then
+ systemd-tmpfiles --create apache.conf
+ fi
+
+ if [[ $2 == 2\.2\.* ]]; then
+ # it is a major upgrade, show a useful link to upgrade instructions
+ echo ' Check Apache upgrade instructions: https://httpd.apache.org/docs/2.4/upgrading.html'
+ fi
+}
Copied: apache/repos/staging-x86_64/apache.tmpfiles.conf (from rev 260834, apache/trunk/apache.tmpfiles.conf)
===================================================================
--- staging-x86_64/apache.tmpfiles.conf (rev 0)
+++ staging-x86_64/apache.tmpfiles.conf 2016-03-04 21:25:50 UTC (rev 260835)
@@ -0,0 +1 @@
+d /run/httpd 0755 root root -
Copied: apache/repos/staging-x86_64/arch.layout (from rev 260834, apache/trunk/arch.layout)
===================================================================
--- staging-x86_64/arch.layout (rev 0)
+++ staging-x86_64/arch.layout 2016-03-04 21:25:50 UTC (rev 260835)
@@ -0,0 +1,22 @@
+<Layout Arch>
+ prefix: /etc/httpd
+ exec_prefix: /usr
+ bindir: /usr/bin
+ sbindir: /usr/bin
+ libdir: /usr/lib/httpd
+ libexecdir: /usr/lib/httpd/modules
+ mandir: /usr/share/man
+ sysconfdir: /etc/httpd/conf
+ datadir: /usr/share/httpd
+ installbuilddir: /usr/lib/httpd/build
+ errordir: /usr/share/httpd/error
+ iconsdir: /usr/share/httpd/icons
+ htdocsdir: /srv/http
+ manualdir: /usr/share/httpd/manual
+ cgidir: /srv/http/cgi-bin
+ includedir: /usr/include/httpd
+ localstatedir: /var
+ runtimedir: /run/httpd
+ logfiledir: /var/log/httpd
+ proxycachedir: /var/cache/httpd
+</Layout>
\ No newline at end of file
Copied: apache/repos/staging-x86_64/httpd.logrotate (from rev 260834, apache/trunk/httpd.logrotate)
===================================================================
--- staging-x86_64/httpd.logrotate (rev 0)
+++ staging-x86_64/httpd.logrotate 2016-03-04 21:25:50 UTC (rev 260835)
@@ -0,0 +1,7 @@
+/var/log/httpd/*log {
+ missingok
+ sharedscripts
+ postrotate
+ /usr/bin/systemctl reload httpd.service 2>/dev/null || true
+ endscript
+}
Copied: apache/repos/staging-x86_64/httpd.service (from rev 260834, apache/trunk/httpd.service)
===================================================================
--- staging-x86_64/httpd.service (rev 0)
+++ staging-x86_64/httpd.service 2016-03-04 21:25:50 UTC (rev 260835)
@@ -0,0 +1,15 @@
+[Unit]
+Description=Apache Web Server
+After=network.target remote-fs.target nss-lookup.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/httpd -k start -DFOREGROUND
+ExecStop=/usr/bin/httpd -k graceful-stop
+ExecReload=/usr/bin/httpd -k graceful
+PrivateTmp=true
+LimitNOFILE=infinity
+KillMode=mixed
+
+[Install]
+WantedBy=multi-user.target
More information about the arch-commits
mailing list