diff options
author | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2013-03-15 18:51:48 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2013-03-15 18:51:48 -0300 |
commit | 2c33b6fa89ccd00a73f94c58eead90728f4fc58c (patch) | |
tree | 746f6f4cc6e99a213b9299c301b5de56df8000a4 /pcr/grass/grass.install | |
parent | 21c8faf33d1696a91f54ad1093b0f3f87133cd3a (diff) | |
parent | 4d0c1c6db5bf50ebb518f78ca638863681f32d2b (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/grass/grass.install')
-rw-r--r-- | pcr/grass/grass.install | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pcr/grass/grass.install b/pcr/grass/grass.install new file mode 100644 index 000000000..878ea0186 --- /dev/null +++ b/pcr/grass/grass.install @@ -0,0 +1,26 @@ +## arg 1: the new package version +post_install() { + pkgver=${1%-*} + + # Create symlink for version workaround. + ln -sf /opt/grass-${pkgver} /opt/grass + + echo 'Please relogin for required variables to be set from /etc/profile.d/grass.sh' +} + +## arg 1: the new package version +## arg 2: the old package version +post_upgrade() { + pkgver=${1%-*} + + # Updating symlink for new version + ln -sf /opt/grass-${pkgver} /opt/grass +} + +## arg 1: the old package version +pre_remove() { + # Removing cruft symlink + rm -f /opt/grass +} + +# vim:set ts=2 sw=2 et: |