diff options
Diffstat (limited to 'main/racktables')
-rw-r--r-- | main/racktables/APKBUILD | 7 | ||||
-rwxr-xr-x | main/racktables/racktables.post-install | 9 |
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 "*" |