From e79a947fbccf15d6954488eabab40d6ad4ac1d31 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Tue, 1 Mar 2016 20:11:24 -0300 Subject: guix: add new package to [pcr] --- pcr/guix/guix.install | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 pcr/guix/guix.install (limited to 'pcr/guix/guix.install') diff --git a/pcr/guix/guix.install b/pcr/guix/guix.install new file mode 100644 index 000000000..54f7659b6 --- /dev/null +++ b/pcr/guix/guix.install @@ -0,0 +1,30 @@ +infodir=usr/share/info +file=guix.info + +post_install() { + echo "Guix 0.8.3 already provides a systemd service file in its release," + echo "so the one included in AUR package is now removed. Please use the" + echo "following commands to keep your installation compatible with the" + echo "new service file:" + echo + echo " systemctl disable guix" + echo " systemctl enable guix-daemon" + echo " groupmod -n guixbuild guix-builder" + echo " usermod -l guixbuild guix-builder" + echo + echo "If you have /etc/systemd/system/guix.service.d, please also remember" + echo "to review its content and rename it to guix-daemon.service.d." + [[ -x usr/bin/install-info ]] || return 0 + install-info "$infodir/$file.gz" "$infodir/dir" 2> /dev/null +} + +post_upgrade() { + post_install "$1" +} + +pre_remove() { + [[ -x usr/bin/install-info ]] || return 0 + install-info --delete "$infodir/$file.gz" "$infodir/dir" 2> /dev/null +} + +# vim:set ts=2 sw=2 ft=sh et: -- cgit v1.2.3