summaryrefslogtreecommitdiff
path: root/multimedia/mediatomb/INSTALL
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2008-11-03 17:04:51 +0000
committertron <tron@pkgsrc.org>2008-11-03 17:04:51 +0000
commitc4cb7babd41f71eb916fde7eaef084997ef21a74 (patch)
tree593ecfdf23debe39ca4ef702f198d5d740308fa9 /multimedia/mediatomb/INSTALL
parent6eb4f283c0d790fb628b11cf72323d025ea297b6 (diff)
downloadpkgsrc-c4cb7babd41f71eb916fde7eaef084997ef21a74.tar.gz
Improvements for the "mediatomb" package:
1.) Create a user and group "mediatomb" for running the server to restrict the files which can be accessed. 2.) Add a startup script to start the server automatically. Bump package revision because of these fixes. Changes approved by Alistair Crooks.
Diffstat (limited to 'multimedia/mediatomb/INSTALL')
-rw-r--r--multimedia/mediatomb/INSTALL14
1 files changed, 14 insertions, 0 deletions
diff --git a/multimedia/mediatomb/INSTALL b/multimedia/mediatomb/INSTALL
new file mode 100644
index 00000000000..92abe9d4466
--- /dev/null
+++ b/multimedia/mediatomb/INSTALL
@@ -0,0 +1,14 @@
+#!@SH@
+#
+# $NetBSD: INSTALL,v 1.1 2008/11/03 17:04:51 tron Exp $
+
+PKG_HOME="@PKG_HOME@"
+MEDIATOMB_USER="@MEDIATOMB_USER@"
+MEDIATOMB_GROUP="@MEDIATOMB_GROUP@"
+
+case "${STAGE}" in
+PRE-INSTALL)
+ ${MKDIR} -m 0750 ${PKG_HOME}
+ ${CHOWN} ${MEDIATOMB_USER}:${MEDIATOMB_GROUP} ${PKG_HOME}
+ ;;
+esac