~ubuntu-branches/ubuntu/karmic/sysnews/karmic

« back to all changes in this revision

Viewing changes to debian/preinst

  • Committer: Bazaar Package Importer
  • Author(s): Ryan Niebur
  • Date: 2009-02-24 17:08:35 UTC
  • Revision ID: james.westby@ubuntu.com-20090224170835-bzjqiice1vvu92i3
Tags: 0.9-16
* New maintainer (Closes: #483250)
  - Change Vcs-* headers
* use quilt
* switch to dh7
* split up patches
  - upstream's Makefile already regenerates the man page with the
    NEWSDIR set correctly, so just use the regenerated version
    rather than patching
  - stop patching the Makefile when the changes can happen in
    debian/rules
  - organize the remaining changes
* fix permissions on executable
* stop supporting upgrades from potato :p
* upgrade to latest policy (3.8.0)
  - add README.source
* leave the debian/dirs, as it is actually needed
* redo copyright file to be more clear
* remove unneeded build dependency on dpkg-dev
* add lintian override for non-standard-dir-perm
* remove the default WELCOME. There was no easy way to make it comply
  with Debian Policy, and imho it's kinda useless, since most people
  probably remove/change it anyway.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh -e
2
 
#DEBHELPER#
3
 
 
4
 
# The cron job was renamed.
5
 
if [ -e /etc/cron.daily/news ] && dpkg --compare-versions 0.9-7 gt "$2"; then
6
 
        mv -f /etc/cron.daily/news /etc/cron.daily/sysnews.dpkg-old || true
7
 
        rm -f /etc/cron.daily/news* 2>/dev/null || true
8
 
fi
9
 
 
10
 
# The postinst needs to know if the WELCOME file in the old directory was
11
 
# deleted, so it can delete the WELCOME file in the new location. It can't
12
 
# just check to see if it's there, because dpkg will delete it, as an
13
 
# unchanged removed conffile, before the ponstinst runs. Thus this gross
14
 
# hack. Note that I use a directory because that can be created safely w/o
15
 
# sysmlink attacks. Adding a file to /var/news/ makes dpkg emit puzzling
16
 
# messages, which is why I don't do that.
17
 
if [ -d /var/news -a ! -e /var/news/WELCOME ] && dpkg --compare-versions 0.9-8 gt "$2"; then
18
 
        mkdir /var/tmp/.sysnews_WELCOME_deleted
19
 
fi