diff options
author | root <root@rshg054.dnsready.net> | 2012-12-29 02:13:48 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-12-29 02:13:48 -0800 |
commit | 5dd7ed82e788ebad2e920e0f2db7468cc6547cfe (patch) | |
tree | f467412e09912ababcd8fe6c05193d829f514dcd /community/boinc/boinc.install | |
parent | 3009e8addb4a894329bf8ab3e8fb763361833978 (diff) |
Sat Dec 29 02:10:20 PST 2012
Diffstat (limited to 'community/boinc/boinc.install')
-rw-r--r-- | community/boinc/boinc.install | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/community/boinc/boinc.install b/community/boinc/boinc.install new file mode 100644 index 000000000..b54002ada --- /dev/null +++ b/community/boinc/boinc.install @@ -0,0 +1,23 @@ +# arg 1: the new package version +post_install() { + /usr/sbin/groupadd boinc 2>/dev/null || true + /usr/sbin/useradd -s /bin/bash -g boinc -d /var/lib/boinc boinc 2>/dev/null || true + + if [ ! -d /var/lib/boinc ]; then + install -d /var/lib/boinc + fi + chown -R boinc:boinc /var/lib/boinc + + echo '>>> Client RPC password can be found in /var/lib/boinc/gui_rpc_auth.cfg' + echo '>>> (this file is generated after first run of /etc/rc.d/boinc start).' + echo '>>> Remove it from gui_rpc_auth.cfg if you do not want to use password.' + echo '>>> See more details on the Arch Linux BOINC wiki page.' +} + +# arg 1: the old package version +post_remove() { + /usr/sbin/userdel boinc + /usr/sbin/groupdel boinc + + echo '>>> If you really do not want to run Boinc in the future, you may completely remove the directory "/var/lib/boinc".' +} |