aboutsummaryrefslogtreecommitdiffstats
path: root/main/apache2
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-10-28 10:47:53 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-10-28 12:07:25 +0000
commit71f74b583df0e1be3189e91c3e19ff58c975dea7 (patch)
treebc60351be90ce7fddf1110f7b3cae5d288a70d2a /main/apache2
parente15798a4740c90d3f79e32dfd8fcb4baf0249018 (diff)
downloadaports-71f74b583df0e1be3189e91c3e19ff58c975dea7.tar.bz2
aports-71f74b583df0e1be3189e91c3e19ff58c975dea7.tar.xz
main/apache2: add www-data group if its missing
ref #2245
Diffstat (limited to 'main/apache2')
-rw-r--r--main/apache2/APKBUILD3
-rw-r--r--main/apache2/apache2.pre-upgrade5
2 files changed, 7 insertions, 1 deletions
diff --git a/main/apache2/APKBUILD b/main/apache2/APKBUILD
index d67ec04083..3ad820869b 100644
--- a/main/apache2/APKBUILD
+++ b/main/apache2/APKBUILD
@@ -1,12 +1,13 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=apache2
pkgver=2.4.6
-pkgrel=1
+pkgrel=2
pkgdesc="A high performance Unix-based HTTP server"
url="http://httpd.apache.org/"
arch="all"
license="APACHE"
depends=""
+install="$pkgname.pre-upgrade"
pkgusers="apache"
pkggroups="apache"
makedepends="openssl-dev zlib-dev apr-util-dev apr-dev pcre-dev sed lua-dev
diff --git a/main/apache2/apache2.pre-upgrade b/main/apache2/apache2.pre-upgrade
new file mode 100644
index 0000000000..7c1e8af993
--- /dev/null
+++ b/main/apache2/apache2.pre-upgrade
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+addgroup -g 82 -S www-data 2>/dev/null
+addgroup apache www-data 2>/dev/null
+exit0