diff options
author | Tyler Langlois | 2015-08-24 22:32:49 -0400 |
---|---|---|
committer | Tyler Langlois | 2015-08-24 22:32:49 -0400 |
commit | 88ebc67513f55bc489c1b729f3c3cb4b04ad77b6 (patch) | |
tree | d3b44c1d72d30284f2c5f7be996dfc639fba80e6 /ganglia.install | |
download | aur-88ebc67513f55bc489c1b729f3c3cb4b04ad77b6.tar.gz |
Bring ganglia to AUR4
Derived from https://github.com/aur-archive/ganglia with the following changes:
- Use upstream systemd service units
- Drop .rc init scripts
- Use sysusers paradigm in lieu of manual steps in .install file
Diffstat (limited to 'ganglia.install')
-rw-r--r-- | ganglia.install | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ganglia.install b/ganglia.install new file mode 100644 index 000000000000..20620db24d61 --- /dev/null +++ b/ganglia.install @@ -0,0 +1,27 @@ +# Arg 1: the new package version +post_install() { + + # Create user and group + systemd-sysusers ganglia.conf + + # Required at this stage to ensure ganglia user & group are available + install -d -o ganglia -g ganglia /var/lib/ganglia{,/rrds} +} + +# Arg 1: the new package version +# Arg 2: the old package version +post_upgrade() { + if [ "`vercmp $2 3.4.0`" -lt 0 ]; then + echo "WARNING: The ganglia package has been split. If you use the" \ + "web frontend, you'll need to install the ganglia-web package as well." + fi +} + +# Arg 1: the old package version +post_remove() { + echo "This package does not automatically remove the ganglia data " + echo "directory (default /var/lib/ganglia) or ganglia user. Please do so " + echo "manually if they are no longer required." +} + +# vim:set ts=2 sw=2 et: |