From 3726f3dd674e74258c5f47b00f3f6f15f4037175 Mon Sep 17 00:00:00 2001 From: Jameson Graef Rollins Date: Sat, 15 Nov 2008 14:43:22 -0500 Subject: move debian packaging to the packaging/ subdirectory. --- packaging/debian/monkeysphere.preinst | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 packaging/debian/monkeysphere.preinst (limited to 'packaging/debian/monkeysphere.preinst') diff --git a/packaging/debian/monkeysphere.preinst b/packaging/debian/monkeysphere.preinst new file mode 100755 index 0000000..860286b --- /dev/null +++ b/packaging/debian/monkeysphere.preinst @@ -0,0 +1,22 @@ +#!/bin/sh -e + +# preinst script for monkeysphere + +# Author: Jameson Rollins +# Copyright 2008 + +ETC="/etc/monkeysphere" +VARLIB="/var/lib/monkeysphere" + +# move the gpg.conf files from the GNUPGHOMEs if they're there to +# /etc, where they will be linked back into the GNUPGHOMEs later +if [ -f "$VARLIB"/gnupg-host/gpg.conf -a ! -L "$VARLIB"/gnupg-host/gpg.conf ] ; then + mv "$VARLIB"/gnupg-host/gpg.conf "$ETC"/gpg-host.conf + chown root:root "$ETC"/gpg-host.conf + ln -s "$ETC"/gpg-host.conf "$VARLIB"/gnupg-host/gpg.conf +fi +if [ -f "$VARLIB"/gnupg-authentication/gpg.conf -a ! -L "$VARLIB"/gnupg-authentication/gpg.conf ] ; then + mv "$VARLIB"/gnupg-authentication/gpg.conf "$ETC"/gpg-authentication.conf + chown root:root "$ETC"/gpg-authentication.conf + ln -s "$ETC"/gpg-authentication.conf "$VARLIB"/gnupg-authentication/gpg.conf +fi -- cgit v1.2.3