~ubuntu-branches/ubuntu/trusty/clamsmtp/trusty

« back to all changes in this revision

Viewing changes to missing

  • Committer: Bazaar Package Importer
  • Author(s): Chad Walstrom
  • Date: 2007-03-16 12:18:21 UTC
  • mfrom: (2.1.4 feisty)
  • Revision ID: james.westby@ubuntu.com-20070316121821-68pr5njlmsonuigy
Tags: 1.8-5
* debian/postinst: A few logic errors found and fixed.  Moved checks to add
  clamav user to clamsmtp group outside scope of clamsmtp user/group test.
  Upon install or reinstall, only restart clamav-daemon if clamav user is
  added to the clamsmtp group.  Truly Closes: #413968.
* debian/postrm: Encapsulated invoke-rc.d calls to start and stop
  clamav-daemon in a sub-shell.  If we cannot stop the service, we shouldn't
  try to start it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Common stub for a few missing GNU programs while installing.
3
3
 
4
 
scriptversion=2004-09-07.08
 
4
scriptversion=2005-06-08.21
5
5
 
6
 
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004
 
6
# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
7
7
#   Free Software Foundation, Inc.
8
8
# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
9
9
 
19
19
 
20
20
# You should have received a copy of the GNU General Public License
21
21
# along with this program; if not, write to the Free Software
22
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
23
 
# 02111-1307, USA.
 
22
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 
23
# 02110-1301, USA.
24
24
 
25
25
# As a special exception to the GNU General Public License, if you
26
26
# distribute this file as part of a program that contains a
87
87
  yacc         create \`y.tab.[ch]', if possible, from existing .[ch]
88
88
 
89
89
Send bug reports to <bug-automake@gnu.org>."
90
 
    exit 0
 
90
    exit $?
91
91
    ;;
92
92
 
93
93
  -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
94
94
    echo "missing $scriptversion (GNU Automake)"
95
 
    exit 0
 
95
    exit $?
96
96
    ;;
97
97
 
98
98
  -*)
288
288
         call might also be the consequence of using a buggy \`make' (AIX,
289
289
         DU, IRIX).  You might want to install the \`Texinfo' package or
290
290
         the \`GNU make' package.  Grab either from any GNU archive site."
 
291
    # The file to touch is that specified with -o ...
291
292
    file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
292
293
    if test -z "$file"; then
293
 
      file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
294
 
      file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
 
294
      # ... or it is the one specified with @setfilename ...
 
295
      infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
 
296
      file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
 
297
      # ... or it is derived from the source name (dir/f.texi becomes f.info)
 
298
      test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
295
299
    fi
 
300
    # If the file does not exist, the user really needs makeinfo;
 
301
    # let's fail without touching anything.
 
302
    test -f $file || exit 1
296
303
    touch $file
297
304
    ;;
298
305