[Pkg-silc-commits] [SCM] server for the SILC protocol branch, master, updated. fa150714d2562c855e7b2b9560f56a06f2b04a61
Jérémy Bobbio
lunar at debian.org
Fri Jun 26 15:22:13 UTC 2009
The following commit has been merged in the master branch:
commit 397fc88cc12625045009a0beee6ba588ef5d4811
Author: Jérémy Bobbio <lunar at debian.org>
Date: Thu Jun 25 21:51:52 2009 +0200
Use $tmpdir instead of $TMPDIR in postinst script to make lintian happy
diff --git a/debian/changelog b/debian/changelog
index d9b018b..4905a9f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,7 @@ silc-server (1.1.16-1) UNRELEASED; urgency=low
* Update Vcs-* field and document Git usage in README.source.
* Build-Depend on libsilc-dev instead of libsilc-1.1-2-dev.
* Provide a package with debug symbols.
+ * Use $tmpdir instead of $TMPDIR in postinst script to make lintian happy.
-- Jérémy Bobbio <lunar at debian.org> Thu, 25 Jun 2009 18:00:10 +0200
diff --git a/debian/postinst b/debian/postinst
index 90df42c..a13fd66 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -52,6 +52,8 @@ rfc2253ize() {
}
create_key_pair() {
+ local tmpdir
+
retrieve_debconf_answers
if [ -z "$SERVER_NAME" -o -z "$HOST_NAME" ]; then
@@ -70,14 +72,14 @@ create_key_pair() {
IDENTIFIER="$IDENTIFIER, C=$(rfc2253ize "$COUNTRY")"
fi
- TMPDIR=$(mktemp -d -t silcd.XXXXXX)
- chmod 700 "$TMPDIR"
- silcd --create-key-pair="$TMPDIR" --identifier="$IDENTIFIER"
+ tmpdir=$(mktemp -d -t silcd.XXXXXX)
+ chmod 700 "$tmpdir"
+ silcd --create-key-pair="$tmpdir" --identifier="$IDENTIFIER"
mkdir -p "$(dirname "$PUBLIC_KEY")" "$(dirname "$PRIVATE_KEY")"
- mv -f "$TMPDIR/silcd.pub" "$PUBLIC_KEY"
- mv -f "$TMPDIR/silcd.prv" "$PRIVATE_KEY"
+ mv -f "$tmpdir/silcd.pub" "$PUBLIC_KEY"
+ mv -f "$tmpdir/silcd.prv" "$PRIVATE_KEY"
chmod 0600 "$PRIVATE_KEY"
- rmdir "$TMPDIR"
+ rmdir "$tmpdir"
}
change_setting() {
--
server for the SILC protocol
More information about the Pkg-silc-commits
mailing list