[arch-commits] Commit in cacti/repos (3 files)
David Runge
dvzrv at archlinux.org
Mon Jan 29 00:25:08 UTC 2018
Date: Monday, January 29, 2018 @ 00:25:07
Author: dvzrv
Revision: 287714
archrelease: copy trunk to community-testing-any
Added:
cacti/repos/community-testing-any/
cacti/repos/community-testing-any/PKGBUILD
(from rev 287713, cacti/trunk/PKGBUILD)
cacti/repos/community-testing-any/tmpfiles.conf
(from rev 287713, cacti/trunk/tmpfiles.conf)
---------------+
PKGBUILD | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
tmpfiles.conf | 2 +
2 files changed, 62 insertions(+)
Copied: cacti/repos/community-testing-any/PKGBUILD (from rev 287713, cacti/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2018-01-29 00:25:07 UTC (rev 287714)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: tuxbubling <tuxbubling at jabber.fr>
+
+pkgname=cacti
+pkgver=1.1.33
+pkgrel=1
+pkgdesc="Complete network graphing solution designed to harness the power of RRDTool's data storage and graphing functionality."
+arch=('any')
+url="https://www.cacti.net"
+license=('GPL2')
+depends=('rrdtool' 'mariadb' 'php-gd' 'net-snmp' 'xorg-fonts-100dpi')
+backup=('etc/webapps/cacti/.htaccess'
+ 'etc/webapps/cacti/config.php')
+source=("https://www.${pkgname}.net/downloads/${pkgname}-${pkgver}.tar.gz"
+ 'tmpfiles.conf')
+sha512sums=('f68c3fef9b483234e18e0e79565d6d51a0731fa50406e45d528a41888d46cbce86bcb1d8507fbdc130b9f6e099ae2337eea8940bcae1f0fbcc7ea94d56ea4b91'
+ '6d25f182141ca7d13388f7241eb27d783ea99b991c0b147382f8ec9eeeb521303531f8ad9dd7c968cb36b7bb657cb517b8c7f46fd1d777e1b10923d76e4efbd6')
+
+prepare() {
+ cd "${pkgname}-${pkgver}"
+ # remove unneeded executable bits
+ find . -executable -type f -and -not -path "*scripts*" -exec chmod -c 644 {} \;
+}
+
+package() {
+ # create directories
+ install -vdm0755 "${pkgdir}/usr/share/webapps/${pkgname}" \
+ "${pkgdir}/etc/webapps/${pkgname}" \
+ "${pkgdir}/var/log/" "${pkgdir}/var/lib/${pkgname}/"
+
+ # move sources
+ mv -v "$srcdir/${pkgname}-${pkgver}"/* \
+ "${pkgdir}/usr/share/webapps/${pkgname}"
+
+ # move and symlink configuration
+ echo "Require all denied" >> "${pkgdir}/etc/webapps/${pkgname}/.htaccess"
+ mv "${pkgdir}/usr/share/webapps/${pkgname}/include/config.php" \
+ "${pkgdir}/etc/webapps/${pkgname}"
+ ln -s "/etc/webapps/${pkgname}/.htaccess" \
+ "${pkgdir}/usr/share/webapps/${pkgname}/.htaccess"
+ ln -s "/etc/webapps/${pkgname}/config.php" \
+ "${pkgdir}/usr/share/webapps/${pkgname}/include/config.php"
+
+ # move and symlink var directory
+ mv -v "${pkgdir}/usr/share/webapps/${pkgname}/rra" \
+ "${pkgdir}/var/lib/${pkgname}/rra"
+ ln -vs "/var/lib/${pkgname}/rra" \
+ "${pkgdir}/usr/share/webapps/${pkgname}/rra"
+
+ # move and symlink log directory
+ mv -v "${pkgdir}/usr/share/webapps/${pkgname}/log" \
+ "${pkgdir}/var/log/${pkgname}"
+ ln -vs "/var/log/${pkgname}" "${pkgdir}/usr/share/webapps/${pkgname}/log"
+
+ # tmpfiles.d
+ install -vDm644 "${srcdir}/tmpfiles.conf" \
+ "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
+}
Copied: cacti/repos/community-testing-any/tmpfiles.conf (from rev 287713, cacti/trunk/tmpfiles.conf)
===================================================================
--- community-testing-any/tmpfiles.conf (rev 0)
+++ community-testing-any/tmpfiles.conf 2018-01-29 00:25:07 UTC (rev 287714)
@@ -0,0 +1,2 @@
+d /var/log/cacti 0755 http http
+d /var/lib/cacti/rra 0755 http http
More information about the arch-commits
mailing list