diff options
author | Phil Sidler | 2017-11-22 22:02:56 -0600 |
---|---|---|
committer | Phil Sidler | 2017-11-22 22:02:56 -0600 |
commit | 8f40e52d398a27f9d31c64dd6dc8c45eef8a62fa (patch) | |
tree | 0efd60eba8be8555af7195f2e7362b0436426ce1 /oorexx-beta.install | |
download | aur-8f40e52d398a27f9d31c64dd6dc8c45eef8a62fa.tar.gz |
initial attempt
Diffstat (limited to 'oorexx-beta.install')
-rw-r--r-- | oorexx-beta.install | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/oorexx-beta.install b/oorexx-beta.install new file mode 100644 index 000000000000..9628bed7b578 --- /dev/null +++ b/oorexx-beta.install @@ -0,0 +1,46 @@ +# arg 1: the new package version +pre_install() { + /bin/true +} + +# arg 1: the new package version +post_install() { + + orx_prefix=/usr + data_dir=${orx_prefix}/share/ooRexx + + systemctl link /usr/share/ooRexx/rxapid.service + systemctl --system daemon-reload + systemctl start rxapid.service + systemctl enable rxapid.service + +} + +# arg 1: the new package version +# arg 2: the old package version +pre_upgrade() { + pre_remove $1 +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + post_install $1 +} + +# arg 1: the old package version +pre_remove() { + systemctl disable rxapid.service + systemctl stop rxapid.service + systemctl --system daemon-reload +} + +# arg 1: the old package version +post_remove() { + /bin/true +} + +op=$1 +shift +$op $* + |