aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2014-03-25 10:21:50 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2014-03-25 10:21:50 +0000
commit6bcaafb202f06bd6d1f99a26393f3b896c5a6ffd (patch)
tree6aa8148efaba42fbaabc53713e4c6a1b99d5c0c9 /main
parent99031f3ac15107068ce19bdb8db6ce882b9a119c (diff)
downloadaports-6bcaafb202f06bd6d1f99a26393f3b896c5a6ffd.tar.bz2
aports-6bcaafb202f06bd6d1f99a26393f3b896c5a6ffd.tar.xz
main/racktables: use www-data group
Diffstat (limited to 'main')
-rw-r--r--main/racktables/APKBUILD7
-rwxr-xr-xmain/racktables/racktables.post-install9
2 files changed, 5 insertions, 11 deletions
diff --git a/main/racktables/APKBUILD b/main/racktables/APKBUILD
index 9d89810ce3..6a95c2df99 100644
--- a/main/racktables/APKBUILD
+++ b/main/racktables/APKBUILD
@@ -3,7 +3,7 @@
pkgname=racktables
_realname=RackTables
pkgver=0.20.7
-pkgrel=0
+pkgrel=1
pkgdesc="Server room asset management"
url="http://racktables.org"
arch="noarch"
@@ -11,9 +11,10 @@ license="GPL-2"
depends="php php-bcmath php-gd php-mysql php-pdo_mysql php-json"
depends_dev=
makedepends="$depends_dev"
-install="$pkgname.post-install"
+install=
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/project/$pkgname/$_realname-${pkgver}.tar.gz"
+pkggroups="www-data"
_builddir="$srcdir"/$_realname-$pkgver
@@ -37,6 +38,8 @@ package() {
make DESTDIR="${pkgdir}" install
make DESTDIR="${pkgdir}" install-docs
mkdir -p "$pkgdir"/etc/racktables
+ chown :www-data "$pkgdir"/etc/racktables
+ chmod 770 "$pkgdir"/etc/racktables
sed -i "s%<?php%<?php\n\n\$racktables_confdir = '/etc/racktables';%" \
"$pkgdir"/usr/share/webapps/RackTables/wwwroot/index.php
}
diff --git a/main/racktables/racktables.post-install b/main/racktables/racktables.post-install
deleted file mode 100755
index b01b10d8fe..0000000000
--- a/main/racktables/racktables.post-install
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-echo "*"
-echo "* Please give ownership to the web server user, the following directories:"
-echo "*"
-echo "* /etc/racktables"
-echo "*"
-echo -e "* Symlink /usr/share/webapps/RackTables/index.php\n\
- to your webserver directory"
-echo "*"