Merge lp:~bregma/ginn/packaging-699925 into lp:~oif-team/ginn/packaging

Proposed by Stephen M. Webb
Status: Merged
Merged at revision: 6
Proposed branch: lp:~bregma/ginn/packaging-699925
Merge into: lp:~oif-team/ginn/packaging
Diff against target: 112 lines (+95/-0)
3 files modified
debian/changelog (+6/-0)
debian/postinst (+50/-0)
debian/postrm (+39/-0)
To merge this branch: bzr merge lp:~bregma/ginn/packaging-699925
Reviewer Review Type Date Requested Status
Mohamed IKBEL Boulabiar (community) Approve
Review via email: mp+47499@code.launchpad.net

Description of the change

Fixed a problem in the postinst script reported by gustavold

To post a comment you must log in.
Revision history for this message
Mohamed IKBEL Boulabiar (boulabiar) :
review: Approve
Revision history for this message
Mohamed IKBEL Boulabiar (boulabiar) wrote :

Now I need to modify the man file to add ref. to the template and config file.
Thanks !

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2010-12-10 17:33:10 +0000
3+++ debian/changelog 2011-01-26 03:29:53 +0000
4@@ -1,3 +1,9 @@
5+ginn (0.2.3-0ubuntu2) UNRELEASED; urgency=low
6+
7+ * Added installer scripts to handle config files (LP: #699925).
8+
9+ -- Stephen M. Webb <stephen.webb@canonical.com> Tue, 18 Jan 2011 07:59:41 -0500
10+
11 ginn (0.2.3-0ubuntu1-1) natty; urgency=low
12
13 [ Mohamed Ikbel Boulabiar ]
14
15=== added file 'debian/postinst'
16--- debian/postinst 1970-01-01 00:00:00 +0000
17+++ debian/postinst 2011-01-26 03:29:53 +0000
18@@ -0,0 +1,50 @@
19+#!/bin/sh -e
20+#
21+# debian/postinst for ginn
22+#
23+# Copyright 2011 Canonical Ltd.
24+#
25+# This library is free software; you can redistribute it and/or modify it under
26+# the terms of the GNU General Public License as published by the Free Software
27+# Foundation; either version 3 of the License, or (at your option) any later
28+# version.
29+#
30+# This library is distributed in the hope that it will be useful, but WITHOUT
31+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
32+# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
33+# details.
34+#
35+# You should have received a copy of the GNU General Public License along with
36+# this program; if not, write to the Free Software Foundation, Inc., 51
37+# Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
38+#
39+
40+ginn_config_dir=/etc/ginn
41+ginn_template_dir=/usr/share/ginn
42+
43+ginn_wishes_file=$ginn_config_dir/wishes.xml
44+ginn_wishes_template=$ginn_template_dir/wishes.xml
45+
46+create_config()
47+{
48+ if [ ! -d "$ginn_config_dir" ]; then
49+ mkdir -p $ginn_config_dir
50+ fi
51+
52+ if [ ! -f "$ginn_wishes_file" ]; then
53+ if [ -f "$ginn_wishes_template" ]; then
54+ cp $ginn_wishes_template $ginn_wishes_file
55+ fi
56+ fi
57+}
58+
59+
60+case $1 in
61+ configure)
62+ create_config
63+ ;;
64+ *)
65+ ;;
66+esac
67+
68+exit 0
69
70=== added file 'debian/postrm'
71--- debian/postrm 1970-01-01 00:00:00 +0000
72+++ debian/postrm 2011-01-26 03:29:53 +0000
73@@ -0,0 +1,39 @@
74+#!/bin/sh -e
75+#
76+# debian/postrm for ginn
77+#
78+# Copyright 2011 Canonical Ltd.
79+#
80+# This library is free software; you can redistribute it and/or modify it under
81+# the terms of the GNU General Public License as published by the Free Software
82+# Foundation; either version 3 of the License, or (at your option) any later
83+# version.
84+#
85+# This library is distributed in the hope that it will be useful, but WITHOUT
86+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
87+# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
88+# details.
89+#
90+# You should have received a copy of the GNU General Public License along with
91+# this program; if not, write to the Free Software Foundation, Inc., 51
92+# Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
93+#
94+
95+ginn_config_dir=/etc/ginn
96+
97+
98+purge_config()
99+{
100+ rm -rf $ginn_config_dir
101+}
102+
103+
104+case $1 in
105+ purge)
106+ purge_config
107+ ;;
108+ *)
109+ ;;
110+esac
111+
112+exit 0

Subscribers

People subscribed via source and target branches