summaryrefslogtreecommitdiff
path: root/community/boinc/boinc.install
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2013-01-01 15:38:30 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2013-01-01 15:38:30 +0100
commitb63a03da360e5a18e9044e7058ae69898db5ffb0 (patch)
tree2901728a2c53e2eb590d577db1531ee2976a2cbf /community/boinc/boinc.install
parent73346505421c2d923e13e2020dd31ddd764b8fe4 (diff)
parent26ac5932cb02318206fa6a528ed4bd82ad6af87c (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/blender/PKGBUILD community/cdfs/PKGBUILD community/cdfs/cdfs.install community/mc/PKGBUILD community/open-vm-tools-modules/PKGBUILD community/open-vm-tools-modules/modprobe.conf community/open-vm-tools-modules/open-vm-tools-modules.install community/open-vm-tools/PKGBUILD community/open-vm-tools/open-vm-tools.conf.d community/open-vm-tools/open-vm-tools.rc.d community/open-vm-tools/scripts-network-FS19541.patch community/pekwm/PKGBUILD community/r8168-lts/PKGBUILD community/simutrans/PKGBUILD community/spectrwm/PKGBUILD community/supertuxkart/PKGBUILD community/tp_smapi/PKGBUILD community/tp_smapi/tp_smapi.install community/vhba-module/PKGBUILD community/vhba-module/vhba-module.install core/gcc/PKGBUILD core/glibc/PKGBUILD extra/fcgi/PKGBUILD extra/gst-plugins-bad/PKGBUILD extra/imap/PKGBUILD extra/kdebase-runtime/PKGBUILD extra/lirc/PKGBUILD extra/lirc/lirc.install extra/llvm/PKGBUILD extra/nvidia-304xx-utils/PKGBUILD extra/ruby/PKGBUILD extra/xscreensaver/PKGBUILD
Diffstat (limited to 'community/boinc/boinc.install')
-rw-r--r--community/boinc/boinc.install23
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".'
+}