~ubuntu-branches/debian/squeeze/ntp/squeeze

« back to all changes in this revision

Viewing changes to scripts/VersionName

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2010-05-24 11:09:51 UTC
  • mfrom: (1.2.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20100524110951-1o7gh469ygochf4n
Tags: 1:4.2.6.p1+dfsg-1
* New upstream version
  - They no longer ship arlib, adjust dfsg.patch.
  - Drop kfreebsd.patch, applied upstream
  - Update patches for upstream changes.
* Remove the obsolete config files:

  for ntp:
  - /etc/logcheck/ignore.d.server/ntp, removed in 1:4.2.6+dfsg-1
  - /etc/dhcp3/dhclient-enter-hooks.d/ntp, replaced by exit hooks in
    1:4.2.4p4+dfsg-3
  - /etc/network/if-up.d/ntp, removed in 1:4.2.4p0+dfsg-1

  for ntpdate:
  - /etc/dhcp3/dhclient-enter-hooks.d/ntpdate, replaced by exit hooks in
    1:4.2.4p4+dfsg-3

  Use dpkg 1.15.7.2's dpkg-maintscript-helper.  This needs
  a Pre-Depends to work, else it's never going to be removed.
  (Closes: #569530)
* Add "Depends: ${misc:Depends}" to ntp-doc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
 
 
3
packageinfo='./packageinfo.sh'
 
4
case "$#" in
 
5
 2)
 
6
    case "$1" in
 
7
     -p|--packageinfo)
 
8
        packageinfo="$2"
 
9
    esac
 
10
    ;;
 
11
 0)
 
12
    ;;
 
13
 *) echo "Usage: $0 [-p packageinfo.sh]"
 
14
    exit 1
 
15
    ;;
 
16
esac
 
17
 
3
18
# This script must be executed from the TLD of the source tree...
4
 
. ./packageinfo.sh
 
19
. "$packageinfo"
5
20
 
6
21
NAME="$version"
7
22
case $point in
8
 
 [0-9]*)
9
 
    NAME="${NAME}p$point"
 
23
 [1-9]*)
 
24
    NAME="${NAME}p${point}"
10
25
    ;;
11
26
 NEW) ;;
12
27
 '') ;;
17
32
 
18
33
case $special in
19
34
 '') ;;
20
 
 *) NAME="${NAME}-$special" ;;
 
35
 *) NAME="${NAME}-${special}" ;;
21
36
esac
22
37
 
23
 
case $releasecandidate in
24
 
 [Nn][Oo]) ;;
25
 
 [Yy][Ee][Ss]) NAME="${NAME}-RC" ;;
26
 
 *) echo "Unexpected value for 'releasecandidate' <$releasecandidate>!"
 
38
case "$prerelease::$repotype" in
 
39
 ''::*)
 
40
    ;;
 
41
 beta::stable)
 
42
    NAME="${NAME}-beta${betapoint}"
 
43
    ;;
 
44
 rc::dev|RC::dev)
 
45
    NAME="${NAME}-RC"
 
46
    ;;
 
47
 rc::stable|RC::stable)
 
48
    NAME="${NAME}-RC${rcpoint}"
 
49
    ;;
 
50
 *) echo "Unexpected value for 'prerelease::repotype' <$prerelease::$repotype>!"
27
51
    exit 1
28
52
    ;;
29
53
esac
30
54
 
31
 
case $repotype in
32
 
 stable)
33
 
    case $rcpoint in
34
 
     [0-9]*)
35
 
        NAME="${NAME}$rcpoint"
36
 
        ;;
37
 
    esac
38
 
    ;;
39
 
esac
40
 
 
41
55
echo "$NAME"