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

« back to all changes in this revision

Viewing changes to build

  • 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:
18
18
        echo "This is <`pwd`>"
19
19
        echo "SIG is <$SIG>"
20
20
        echo "KEY is <$KEY>"
21
 
        exit 1
22
 
        ;;
 
21
        exit 1
 
22
        ;;
23
23
    esac
24
24
    ;;
25
25
 *)
84
84
    ;;
85
85
esac
86
86
 
87
 
CCSUF=""
88
 
 
89
87
case "$CC" in
90
 
 '') ;;
91
 
 *) CCSUF="-$CC"
 
88
 '')
 
89
    CCSUF=""
 
90
    ;;
 
91
 *)
 
92
    CCSUF="-`echo $CC | sed -e 's: :_:g' -e's:/:+:g'`"
92
93
    ;;
93
94
esac
94
95
 
103
104
 
104
105
#
105
106
# Make sure we have a nice that works.
106
 
# To disable use of nice make a dummy nice script such
107
 
# as the heredoc a few lines below and set BNICE to its
108
 
# path.
109
 
 
107
# To disable use of nice, setenv NO_NICE_BUILD=1
110
108
#
111
 
nice true && NICEB=nice
112
 
nice true || {
113
 
        NICEB=./.nicebuild-$MYNAME-$SIG
114
 
        cat > .nicebuild-$MYNAME-$SIG <<-HEREDOC
 
109
NICEB=""
 
110
[ "$NO_NICE_BUILD" != "1" ] && nice true && NICEB=nice
 
111
[ -z "$NICEB" ] && {
 
112
        NICEB="./.nicebuild-$MYNAME-$SIG"
 
113
        cat > $NICEB <<-HEREDOC
115
114
                #! /bin/sh
116
115
                shift
117
116
                \$*
118
117
HEREDOC
119
 
        chmod +x .nicebuild-$MYNAME-$SIG
 
118
        chmod +x $NICEB
120
119
}
121
120
 
122
 
 
123
 
(
124
 
[ -f config.status ] || $NICEB -7 ../configure \
125
 
                        --cache-file=../config.cache-$IAM \
126
 
                        $CONFIG_ARGS
127
 
 
128
 
$NICEB -5 ./config.status
129
 
 
130
 
case "$MAKE" in
131
 
 '') $NICEB -14 make && $NICEB -10 make check
132
 
     ;;
133
 
 *)  $NICEB -14 $MAKE && $NICEB -10 $MAKE check
134
 
     ;;
135
 
esac
 
121
CONFIGURE="../configure --cache-file=../config.cache-$IAM$CCSUF $CONFIG_ARGS"
 
122
 
 
123
(       # This sequence of commands is logged to make.log.
 
124
        [ -f config.status ] || $NICEB -7 $CONFIGURE
 
125
        $NICEB -5 ./config.status
 
126
        $NICEB -14 ${MAKE-make} && $NICEB -10 ${MAKE-make} check
136
127
) > $LOGF 2>&1
137
128
 
 
129
EXITCODE=$?
138
130
 
139
131
# clean up if we made a dummy nice script
140
 
[ -f .nicebuild-$MYNAME-$SIG ] && rm .nicebuild-$MYNAME-$SIG
 
132
case "$NICEB" in
 
133
 nice)
 
134
    ;;
 
135
 *)
 
136
    rm $NICEB
 
137
esac
 
138
 
 
139
exit $EXITCODE