diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2016-03-18 16:37:23 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2016-03-18 16:37:23 -0500 |
commit | 1af461bc327f1fbb09a98c22acf956ce95804980 (patch) | |
tree | a9ff3de49cdb1fb6cd2c487ca255d25369bf023a /pcr/openrc-devel/distcc.install | |
parent | ad8bc09cf6040c582fcb04918840874cf0fb900d (diff) |
openrc-devel-20160222-1: updating version
Diffstat (limited to 'pcr/openrc-devel/distcc.install')
-rw-r--r-- | pcr/openrc-devel/distcc.install | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pcr/openrc-devel/distcc.install b/pcr/openrc-devel/distcc.install new file mode 100644 index 000000000..24a142e9e --- /dev/null +++ b/pcr/openrc-devel/distcc.install @@ -0,0 +1,16 @@ +_svc="distccd" +_rlvl="default" + +post_install() { + _cmd="rc-update add ${_svc} ${_rlvl}" + echo " ==> run '${_cmd}'" +} + +post_upgrade() { + post_install "$1" +} + +post_remove() { + _cmd="rc-update del ${_svc} ${_rlvl}" + echo " ==> run '${_cmd}'" +} |