aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2013-06-06 12:29:20 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2013-06-06 12:29:46 +0000
commit0aec3382ed322329f16405587d87131018613785 (patch)
tree7f0b78dfe9fa55de6ea94f4a697937c7eabbc4ca /testing
parentd23eac883f7d3e3f659ce044d8bc9fa433cad080 (diff)
downloadaports-0aec3382ed322329f16405587d87131018613785.tar.bz2
aports-0aec3382ed322329f16405587d87131018613785.tar.xz
testing/ejabberd: fixed creation of users and group in pre-install
Diffstat (limited to 'testing')
-rw-r--r--testing/ejabberd/APKBUILD4
-rw-r--r--testing/ejabberd/ejabberd.pre-install4
2 files changed, 6 insertions, 2 deletions
diff --git a/testing/ejabberd/APKBUILD b/testing/ejabberd/APKBUILD
index 4e9d7a3ea6..201ac2b01f 100644
--- a/testing/ejabberd/APKBUILD
+++ b/testing/ejabberd/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=ejabberd
pkgver=2.1.12
-pkgrel=0
+pkgrel=1
pkgdesc="An erlang jabber server"
url="http://www.ejabberd.im"
arch="all"
@@ -12,7 +12,7 @@ depends_dev="erlang-dev expat-dev libiconv-dev openssl-dev zlib-dev heimdal-dev"
makedepends="$depends_dev"
pkgusers="ejabberd"
pkggroups="ejabberd"
-install=""
+install="$pkgname.pre-install"
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.process-one.net/downloads/$pkgname/$pkgver/$pkgname-$pkgver.tgz
gssapi-2.1.0.diff"
diff --git a/testing/ejabberd/ejabberd.pre-install b/testing/ejabberd/ejabberd.pre-install
new file mode 100644
index 0000000000..749c04cb54
--- /dev/null
+++ b/testing/ejabberd/ejabberd.pre-install
@@ -0,0 +1,4 @@
+#!/bin/sh
+addgroup ejabberd 2>/dev/null
+adduser -H -h /var/lib/ejabberd -D ejabberd 2>/dev/null
+exit 0