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
=== modified file 'debian/changelog'
--- debian/changelog 2010-12-10 17:33:10 +0000
+++ debian/changelog 2011-01-26 03:29:53 +0000
@@ -1,3 +1,9 @@
1ginn (0.2.3-0ubuntu2) UNRELEASED; urgency=low
2
3 * Added installer scripts to handle config files (LP: #699925).
4
5 -- Stephen M. Webb <stephen.webb@canonical.com> Tue, 18 Jan 2011 07:59:41 -0500
6
1ginn (0.2.3-0ubuntu1-1) natty; urgency=low7ginn (0.2.3-0ubuntu1-1) natty; urgency=low
28
3 [ Mohamed Ikbel Boulabiar ]9 [ Mohamed Ikbel Boulabiar ]
410
=== added file 'debian/postinst'
--- debian/postinst 1970-01-01 00:00:00 +0000
+++ debian/postinst 2011-01-26 03:29:53 +0000
@@ -0,0 +1,50 @@
1#!/bin/sh -e
2#
3# debian/postinst for ginn
4#
5# Copyright 2011 Canonical Ltd.
6#
7# This library is free software; you can redistribute it and/or modify it under
8# the terms of the GNU General Public License as published by the Free Software
9# Foundation; either version 3 of the License, or (at your option) any later
10# version.
11#
12# This library is distributed in the hope that it will be useful, but WITHOUT
13# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
15# details.
16#
17# You should have received a copy of the GNU General Public License along with
18# this program; if not, write to the Free Software Foundation, Inc., 51
19# Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20#
21
22ginn_config_dir=/etc/ginn
23ginn_template_dir=/usr/share/ginn
24
25ginn_wishes_file=$ginn_config_dir/wishes.xml
26ginn_wishes_template=$ginn_template_dir/wishes.xml
27
28create_config()
29{
30 if [ ! -d "$ginn_config_dir" ]; then
31 mkdir -p $ginn_config_dir
32 fi
33
34 if [ ! -f "$ginn_wishes_file" ]; then
35 if [ -f "$ginn_wishes_template" ]; then
36 cp $ginn_wishes_template $ginn_wishes_file
37 fi
38 fi
39}
40
41
42case $1 in
43 configure)
44 create_config
45 ;;
46 *)
47 ;;
48esac
49
50exit 0
051
=== added file 'debian/postrm'
--- debian/postrm 1970-01-01 00:00:00 +0000
+++ debian/postrm 2011-01-26 03:29:53 +0000
@@ -0,0 +1,39 @@
1#!/bin/sh -e
2#
3# debian/postrm for ginn
4#
5# Copyright 2011 Canonical Ltd.
6#
7# This library is free software; you can redistribute it and/or modify it under
8# the terms of the GNU General Public License as published by the Free Software
9# Foundation; either version 3 of the License, or (at your option) any later
10# version.
11#
12# This library is distributed in the hope that it will be useful, but WITHOUT
13# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
15# details.
16#
17# You should have received a copy of the GNU General Public License along with
18# this program; if not, write to the Free Software Foundation, Inc., 51
19# Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20#
21
22ginn_config_dir=/etc/ginn
23
24
25purge_config()
26{
27 rm -rf $ginn_config_dir
28}
29
30
31case $1 in
32 purge)
33 purge_config
34 ;;
35 *)
36 ;;
37esac
38
39exit 0

Subscribers

People subscribed via source and target branches