summarylogtreecommitdiffstats
path: root/gnump3d.install
diff options
context:
space:
mode:
Diffstat (limited to 'gnump3d.install')
-rw-r--r--gnump3d.install23
1 files changed, 23 insertions, 0 deletions
diff --git a/gnump3d.install b/gnump3d.install
new file mode 100644
index 000000000000..78d9104e0076
--- /dev/null
+++ b/gnump3d.install
@@ -0,0 +1,23 @@
+# arg 1: the new package version
+post_install() {
+ chown nobody:root /var/cache/gnump3d /var/cache/gnump3d/serving
+
+ echo
+ echo "----[ NOTE ]----------------------------------------------------------"
+ echo "| Before starting the server, edit /etc/gnump3d/gnump3d.conf to your |"
+ echo "| liking. For instance, you will probably want to change the \"root\" |"
+ echo "| variable so that it points to your music collection. |"
+ echo "| |"
+ echo "| When the \"root\" variable is properly set, run |"
+ echo "| /usr/bin/gnump3d-index |"
+ echo "| This will create a database in /var/cache/gnump3d/ for gnump3d. |"
+ echo "| |"
+ echo "| Per default, the server runs as \"nobody\", which is a Good Thing. |"
+ echo "| |"
+ echo "| To make the server start on boot, add \"gnump3d\" to the DAEMONS |"
+ echo "| array in /etc/rc.conf. |"
+ echo "----------------------------------------------------------------------"
+ echo
+}
+
+