diff options
author | Florian Pritz <f-p@gmx.at> | 2009-05-05 14:03:15 +0200 |
---|---|---|
committer | Florian Pritz <f-p@gmx.at> | 2009-05-05 14:03:15 +0200 |
commit | aed08f01f8e6b0de458181975c14efe8b89c418f (patch) | |
tree | 3f73ca7d67c1098486ec780134d93a7888d0af0f /mpd-git/mpd.install | |
parent | d0233c8e0b47beedff2c9ece475db86e1a6a9653 (diff) | |
download | aur-packages-aed08f01f8e6b0de458181975c14efe8b89c418f.tar.gz aur-packages-aed08f01f8e6b0de458181975c14efe8b89c418f.tar.xz |
forgot to update some time
Diffstat (limited to 'mpd-git/mpd.install')
-rw-r--r-- | mpd-git/mpd.install | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/mpd-git/mpd.install b/mpd-git/mpd.install new file mode 100644 index 0000000..b9d6851 --- /dev/null +++ b/mpd-git/mpd.install @@ -0,0 +1,27 @@ +# arg 1: the new package version +post_install() { + echo "==> mpd: Create a config under /etc/mpd.conf before using MPD (Example: /etc/mpd.conf.example)" + groupadd -g 45 mpd &>/dev/null + useradd -u 45 -g mpd -d /var/lib/mpd -s /bin/true mpd &>/dev/null + gpasswd -a mpd audio &>/dev/null + chown mpd:mpd -R /var/{lib,log,run}/mpd +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + echo "==> mpd: upgrade from 0.11 -> 0.12: configuration file syntax changed, " + echo "==> mpd: make sure to update your configuration file! See example conf: /etc/mpd.conf.example" + echo "==> mpd: If you install any of the optional dependencies, you will have to rebuild this package." + post_install $1 +} + +# arg 1: the old package version +pre_remove() { + userdel mpd &>/dev/null +} + +op=$1 +shift + +$op $* |