[23551] in Source-Commits
/svn/athena r23192 - in trunk/debathena/debathena: . gconfd-2-wrapper gconfd-2-wrapper/debian
daemon@ATHENA.MIT.EDU (rbasch@MIT.EDU)
Fri Oct 3 16:58:50 2008
Date: Fri, 3 Oct 2008 16:58:19 -0400 (EDT)
From: rbasch@MIT.EDU
Message-Id: <200810032058.QAA26673@drugstore.mit.edu>
To: source-commits@MIT.EDU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Author: rbasch
Date: 2008-10-03 16:58:18 -0400 (Fri, 03 Oct 2008)
New Revision: 23192
Added:
trunk/debathena/debathena/gconfd-2-wrapper/
trunk/debathena/debathena/gconfd-2-wrapper/debian/
trunk/debathena/debathena/gconfd-2-wrapper/debian/changelog
trunk/debathena/debathena/gconfd-2-wrapper/debian/compat
trunk/debathena/debathena/gconfd-2-wrapper/debian/control
trunk/debathena/debathena/gconfd-2-wrapper/debian/control.in
trunk/debathena/debathena/gconfd-2-wrapper/debian/copyright
trunk/debathena/debathena/gconfd-2-wrapper/debian/debathena-gconfd-2-wrapper.install
trunk/debathena/debathena/gconfd-2-wrapper/debian/rules
trunk/debathena/debathena/gconfd-2-wrapper/gconfd-2.debathena
Log:
Add new gconfd-2 wrapper script package to ensure that newly-created
.gconf and .gconfd directories are made private.
Added: trunk/debathena/debathena/gconfd-2-wrapper/debian/changelog
===================================================================
--- trunk/debathena/debathena/gconfd-2-wrapper/debian/changelog 2008-09-28 03:45:30 UTC (rev 23191)
+++ trunk/debathena/debathena/gconfd-2-wrapper/debian/changelog 2008-10-03 20:58:18 UTC (rev 23192)
@@ -0,0 +1,5 @@
+debathena-gconfd-2-wrapper (10.0.0) unstable; urgency=low
+
+ * Initial release.
+
+ -- Robert Basch <rbasch@mit.edu> Fri, 03 Oct 2008 15:41:11 -0400
Added: trunk/debathena/debathena/gconfd-2-wrapper/debian/compat
===================================================================
--- trunk/debathena/debathena/gconfd-2-wrapper/debian/compat 2008-09-28 03:45:30 UTC (rev 23191)
+++ trunk/debathena/debathena/gconfd-2-wrapper/debian/compat 2008-10-03 20:58:18 UTC (rev 23192)
@@ -0,0 +1 @@
+4
Added: trunk/debathena/debathena/gconfd-2-wrapper/debian/control
===================================================================
--- trunk/debathena/debathena/gconfd-2-wrapper/debian/control 2008-09-28 03:45:30 UTC (rev 23191)
+++ trunk/debathena/debathena/gconfd-2-wrapper/debian/control 2008-10-03 20:58:18 UTC (rev 23192)
@@ -0,0 +1,16 @@
+Source: debathena-gconfd-2-wrapper
+Section: debathena/gnome
+Priority: extra
+Maintainer: Debian-Athena Project <debathena@mit.edu>
+Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 4.2.0), config-package-dev (>= 4.5~), lsb-release
+Standards-Version: 3.7.2
+
+Package: debathena-gconfd-2-wrapper
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, debathena-gconf2-config
+Provides: ${diverted-files}
+Conflicts: ${diverted-files}
+Description: Wrapper to configure gconf2 daemon for Debathena
+ This package provides a wrapper for the stock gconf2 daemon. It
+ ensures that newly-created .gconf and .gconfd directories are made
+ private.
Added: trunk/debathena/debathena/gconfd-2-wrapper/debian/control.in
===================================================================
--- trunk/debathena/debathena/gconfd-2-wrapper/debian/control.in 2008-09-28 03:45:30 UTC (rev 23191)
+++ trunk/debathena/debathena/gconfd-2-wrapper/debian/control.in 2008-10-03 20:58:18 UTC (rev 23192)
@@ -0,0 +1,16 @@
+Source: debathena-gconfd-2-wrapper
+Section: debathena/gnome
+Priority: extra
+Maintainer: Debian-Athena Project <debathena@mit.edu>
+Build-Depends: @cdbs@, lsb-release
+Standards-Version: 3.7.2
+
+Package: debathena-gconfd-2-wrapper
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, debathena-gconf2-config
+Provides: ${diverted-files}
+Conflicts: ${diverted-files}
+Description: Wrapper to configure gconf2 daemon for Debathena
+ This package provides a wrapper for the stock gconf2 daemon. It
+ ensures that newly-created .gconf and .gconfd directories are made
+ private.
Added: trunk/debathena/debathena/gconfd-2-wrapper/debian/copyright
===================================================================
--- trunk/debathena/debathena/gconfd-2-wrapper/debian/copyright 2008-09-28 03:45:30 UTC (rev 23191)
+++ trunk/debathena/debathena/gconfd-2-wrapper/debian/copyright 2008-10-03 20:58:18 UTC (rev 23192)
@@ -0,0 +1,11 @@
+Copyright 2008 by the Massachusetts Institute of Technology.
+
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
+provided that the above copyright notice appear in all copies and that
+both that copyright notice and this permission notice appear in
+supporting documentation, and that the name of M.I.T. not be used in
+advertising or publicity pertaining to distribution of the software
+without specific, written prior permission. M.I.T. makes no
+representations about the suitability of this software for any
+purpose. It is provided "as is" without express or implied warranty.
Added: trunk/debathena/debathena/gconfd-2-wrapper/debian/debathena-gconfd-2-wrapper.install
===================================================================
--- trunk/debathena/debathena/gconfd-2-wrapper/debian/debathena-gconfd-2-wrapper.install 2008-09-28 03:45:30 UTC (rev 23191)
+++ trunk/debathena/debathena/gconfd-2-wrapper/debian/debathena-gconfd-2-wrapper.install 2008-10-03 20:58:18 UTC (rev 23192)
@@ -0,0 +1 @@
+gconfd-2.debathena usr/lib/libgconf2-4
Added: trunk/debathena/debathena/gconfd-2-wrapper/debian/rules
===================================================================
--- trunk/debathena/debathena/gconfd-2-wrapper/debian/rules 2008-09-28 03:45:30 UTC (rev 23191)
+++ trunk/debathena/debathena/gconfd-2-wrapper/debian/rules 2008-10-03 20:58:18 UTC (rev 23192)
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+
+DEB_AUTO_UPDATE_DEBIAN_CONTROL = 1
+
+DEB_DIVERT_EXTENSION=.debathena
+DEB_DIVERT_FILES_debathena-gconfd-2-wrapper += \
+ /usr/lib/libgconf2-4/gconfd-2.debathena
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/divert.mk
Property changes on: trunk/debathena/debathena/gconfd-2-wrapper/debian/rules
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/debathena/debathena/gconfd-2-wrapper/gconfd-2.debathena
===================================================================
--- trunk/debathena/debathena/gconfd-2-wrapper/gconfd-2.debathena 2008-09-28 03:45:30 UTC (rev 23191)
+++ trunk/debathena/debathena/gconfd-2-wrapper/gconfd-2.debathena 2008-10-03 20:58:18 UTC (rev 23192)
@@ -0,0 +1,41 @@
+#!/bin/sh
+
+# Wrapper script for gconfd-2 to create the gconf and gconfd
+# directories in an AFS home directory and make them private.
+
+# We parse this file to find the gconf directory to use in the
+# home directory.
+gconf_config=/usr/share/debathena-gconf2-config/gconf.afs
+
+gconfd_dir=".gconfd"
+
+# Create the given directory name as a subdirectory of $HOME, if it
+# does not yet exist, and set its ACL so as to make it private.
+create_private_dir () {
+ dir="$HOME/$1"
+ if [ ! -e "$dir" ]; then
+ mkdir -m 700 "$dir" 2>/dev/null && \
+ fs sa "$dir" system:anyuser none > /dev/null 2>&1
+ fi
+}
+
+# Only create directories when the home directory is in AFS.
+if [ "$DEBATHENA_HOME_TYPE" = afs ]; then
+ # Use the Debathena gconf config file to determine the name of the
+ # gconf directory to use.
+ gconf_dir=
+ if [ -f "$gconf_config" ]; then
+ gconf_dir=`sed -n -e 's|^xml:readwrite:$(HOME)/\(.*$\)|\1|p' \
+ "$gconf_config"`
+ fi
+ # If we cannot determine the gconf directory name; fall back to
+ # .gconf.
+ if [ -z "$gconf_dir" ]; then
+ gconf_dir=".gconf"
+ fi
+ # Create the directories as needed.
+ create_private_dir "$gconf_dir"
+ create_private_dir "$gconfd_dir"
+fi
+
+exec /usr/lib/libgconf2-4/gconfd-2.debathena-orig "$@"
Property changes on: trunk/debathena/debathena/gconfd-2-wrapper/gconfd-2.debathena
___________________________________________________________________
Name: svn:executable
+ *