diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2013-09-12 15:08:47 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2013-09-12 15:08:53 +0000 |
commit | 2c3b667552f9901fc0198aa9654fbed7554827e1 (patch) | |
tree | 4889dae181b16c704408d70da571a1697cb44e57 | |
parent | 58355231bfd85879c53382eec0679b2c59af19b6 (diff) | |
download | aports-2c3b667552f9901fc0198aa9654fbed7554827e1.tar.bz2 aports-2c3b667552f9901fc0198aa9654fbed7554827e1.tar.xz |
testing/racktables: move config location into index.php
-rw-r--r-- | testing/racktables/APKBUILD | 21 | ||||
-rw-r--r-- | testing/racktables/index-racktables.php | 4 | ||||
-rwxr-xr-x | testing/racktables/racktables.post-install | 2 |
3 files changed, 8 insertions, 19 deletions
diff --git a/testing/racktables/APKBUILD b/testing/racktables/APKBUILD index f515ab9f2..1e26867de 100644 --- a/testing/racktables/APKBUILD +++ b/testing/racktables/APKBUILD @@ -3,7 +3,7 @@ pkgname=racktables _realname=RackTables pkgver=0.20.5 -pkgrel=1 +pkgrel=2 pkgdesc="Server room asset management" url="http://racktables.org" arch="noarch" @@ -13,10 +13,7 @@ depends_dev= makedepends="$depends_dev" install="$pkgname.post-install" subpackages="$pkgname-doc" -source="http://downloads.sourceforge.net/project/$pkgname/$_realname-${pkgver}.tar.gz - index-racktables.php - " - +source="http://downloads.sourceforge.net/project/$pkgname/$_realname-${pkgver}.tar.gz" _builddir="$srcdir"/$_realname-$pkgver @@ -40,14 +37,10 @@ package() { make DESTDIR="${pkgdir}" install make DESTDIR="${pkgdir}" install-docs mkdir -p "$pkgdir"/etc/racktables - touch "$pkgdir"/etc/racktables/secret.php - install -D -m644 "$srcdir"/index-racktables.php \ - "$pkgdir"/usr/share/webapps/RackTables/wwwroot/index-racktables.php + sed -i 's%<?php%<?php\n$racktables_confdir='/etc/racktables';%' \ + "$pkgdir"/usr/share/webapps/RackTables/wwwroot/index.php } -md5sums="635d1e86dc175340c5cbda95aa55167d RackTables-0.20.5.tar.gz -e12445ea9d2c1b563774294e8b0dc3b9 index-racktables.php" -sha256sums="4d90c08ab8451eccaa3c925dd935a449c92874c996519b5b5e0775ad92627d77 RackTables-0.20.5.tar.gz -85049288336171bd6e462d1440325065eec9dcbf2983cf6ade22d87d83b7cc99 index-racktables.php" -sha512sums="6da6df0fd48149dc8d5a1a9892bc9c301ff7604b185e672ed3a52ed54c6ce2da6c968fad46bacfe0763eae11f58f5978521f7638de38403a00bd523202c336ce RackTables-0.20.5.tar.gz -f21cc03f2fe2b519d5f6a294267686578985ac3c5bf1aaa7c89cf9c8a21de9831db4116708c046a41f0aaaea3f0eb3677e0b0af67477ac2329d04295d9b18e14 index-racktables.php" +md5sums="635d1e86dc175340c5cbda95aa55167d RackTables-0.20.5.tar.gz" +sha256sums="4d90c08ab8451eccaa3c925dd935a449c92874c996519b5b5e0775ad92627d77 RackTables-0.20.5.tar.gz" +sha512sums="6da6df0fd48149dc8d5a1a9892bc9c301ff7604b185e672ed3a52ed54c6ce2da6c968fad46bacfe0763eae11f58f5978521f7638de38403a00bd523202c336ce RackTables-0.20.5.tar.gz" diff --git a/testing/racktables/index-racktables.php b/testing/racktables/index-racktables.php deleted file mode 100644 index 405376feb..000000000 --- a/testing/racktables/index-racktables.php +++ /dev/null @@ -1,4 +0,0 @@ -<?php -$racktables_confdir='/etc/racktables'; -require '/usr/share/webapps/RackTables/wwwroot/index.php'; -?> diff --git a/testing/racktables/racktables.post-install b/testing/racktables/racktables.post-install index 5b7905cf2..b01b10d8f 100755 --- a/testing/racktables/racktables.post-install +++ b/testing/racktables/racktables.post-install @@ -4,6 +4,6 @@ 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-racktables.php\n\ +echo -e "* Symlink /usr/share/webapps/RackTables/index.php\n\ to your webserver directory" echo "*" |