aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2012-10-29 23:13:17 +0100
committerCarlo Landmeter <clandmeter@gmail.com>2012-10-29 23:13:25 +0100
commit121ddc4be1f2b3531f0263c83242d59714530987 (patch)
treec8735e515df87dd3ea6052b40042feb9bdbe12b8 /main
parent7e6edb996b286b3d15b9006b2387951cf0c54641 (diff)
downloadaports-121ddc4be1f2b3531f0263c83242d59714530987.tar.bz2
aports-121ddc4be1f2b3531f0263c83242d59714530987.tar.xz
main/redmine: add pre-install
Diffstat (limited to 'main')
-rw-r--r--main/redmine/APKBUILD4
-rw-r--r--main/redmine/redmine.pre-install4
2 files changed, 6 insertions, 2 deletions
diff --git a/main/redmine/APKBUILD b/main/redmine/APKBUILD
index ffe39c3b76..bd8877f3cc 100644
--- a/main/redmine/APKBUILD
+++ b/main/redmine/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=redmine
pkgver=2.1.2
-pkgrel=2
+pkgrel=3
pkgdesc="Project management web application written in Ruby"
url="http://redmine.org"
arch="noarch"
@@ -12,7 +12,7 @@ depends="ruby-rails ruby-rmagick ruby-i18n ruby-openid ruby-rack
ruby-net-ldap ruby-rack-openid ruby-bigdecimal ruby-unicorn"
depends_dev=
makedepends="$depends_dev ruby-gems"
-install=""
+install="$pkgname.pre-install"
subpackages=""
pkgusers="$pkgname"
pkggroups="$pkgname"
diff --git a/main/redmine/redmine.pre-install b/main/redmine/redmine.pre-install
new file mode 100644
index 0000000000..4cb620dbc7
--- /dev/null
+++ b/main/redmine/redmine.pre-install
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+adduser -S -h /usr/share/webapps/redmine -s /bin/false -D redmine 2>/dev/null
+exit 0