r4521 - vdr/vdr/trunk/debian
Tobias Grimm
tiber-guest at alioth.debian.org
Sat Apr 28 08:12:47 UTC 2007
Author: tiber-guest
Date: 2007-04-28 08:12:47 +0000 (Sat, 28 Apr 2007)
New Revision: 4521
Added:
vdr/vdr/trunk/debian/vdr-groups.conf
vdr/vdr/trunk/debian/vdr-groups.sh
Log:
introduce group membership script
Added: vdr/vdr/trunk/debian/vdr-groups.conf
===================================================================
--- vdr/vdr/trunk/debian/vdr-groups.conf 2007-04-28 07:23:14 UTC (rev 4520)
+++ vdr/vdr/trunk/debian/vdr-groups.conf 2007-04-28 08:12:47 UTC (rev 4521)
@@ -0,0 +1,11 @@
+#
+# If you require VDR to run as a member of a specific group and added
+# the user 'vdr' manually to this group, you should add the group name
+# to this file. The installation / deinstallation procedure of plugin
+# packages will automatically modify and check this file to keep track
+# of vdr group memberships.
+#
+
+vdr # by default vdr is assigned to group 'vdr', you shouldn't change this
+video # by default vdr is assigned to group 'video', you shouldn't change this
+
Added: vdr/vdr/trunk/debian/vdr-groups.sh
===================================================================
--- vdr/vdr/trunk/debian/vdr-groups.sh 2007-04-28 07:23:14 UTC (rev 4520)
+++ vdr/vdr/trunk/debian/vdr-groups.sh 2007-04-28 08:12:47 UTC (rev 4521)
@@ -0,0 +1,27 @@
+#
+# vdr-groups.sh
+#
+# Shell script to be used by vdr plugin packages to register/deregister
+# required vdr group memberships.
+#
+# Usage:
+#
+# /bin/sh /usr/share/vdr/vdr-groups.sh --add <GROUP> <PLUGIN-NAME>
+# /bin/sh /usr/share/vdr/vdr-groups.sh --remove <GROUP> <PLUGIN-NAME>
+#
+
+VDRGROUPS=/etc/vdr/vdr-groups.sh
+
+add_to_group()
+{
+ # 1. Add vdr to <GROUP>
+ # 2. Add entry to vdr-groups.conf:
+ # <GROUP> # <PLUGIN-NAME> (don't touch this - will be maintained by the plugin)
+}
+
+remove_from_group()
+{
+ # 1. Remove mathching <GROUP> entry from vdr-groups.conf
+ # 2. If no <GROUP> entry is left, remove user vdr from <GROUP>
+}
+
More information about the pkg-vdr-dvb-changes
mailing list