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

« back to all changes in this revision

Viewing changes to flock-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
#PARSE=
19
19
STD="--enable-simulator"
20
20
 
21
 
case "$SIMUL" in
22
 
 '') PARALLEL_BUILDS=1
23
 
     ;;
24
 
 *)  PARALLEL_BUILDS=$SIMUL
 
21
case "$SIMUL::$FB_FIRSTONLY" in
 
22
 ::*)
 
23
    PARALLEL_BUILDS=1
 
24
    ;;
 
25
 *::0)
 
26
    PARALLEL_BUILDS=$SIMUL
 
27
    ;;
 
28
 *)
 
29
    PARALLEL_BUILDS=1
25
30
esac
26
31
 
27
32
case "$PARALLEL_BUILDS" in
63
68
    [ -f .buildkey-$i ] && SKIPTHIS=1
64
69
    case "$SKIPTHIS" in
65
70
     1)
66
 
        echo flock-build running on $i? check LIST, skipping
67
 
        ;;
68
 
     0)   
69
 
        echo $i
70
 
        echo $SIG > .buildkey-$i
71
 
        case "1" in
72
 
         0)
73
 
            ssh $i "cd $c_d ; ./build $SIG $PARSE $STD $BUILD_ARGS" &
74
 
            ssh $i "cd $c_d ; ./build $SIG $PARSE $STD --without-crypto $BUILD_ARGS" &
75
 
            ssh $i "cd $c_d ; ./build $SIG        $STD --disable-all-clocks $BUILD_ARGS" &
76
 
            ;;
77
 
         1)
78
 
            cat > .flockbuild-$i-$SIG <<-ENDQUOT
 
71
        echo flock-build running on $i? check LIST, skipping
 
72
        ;;
 
73
     0)
 
74
        echo $i
 
75
        echo $SIG > .buildkey-$i
 
76
        case "1" in
 
77
         0)
 
78
            ssh $i "cd $c_d ; ./build $SIG $PARSE $STD $BUILD_ARGS" &
 
79
            ssh $i "cd $c_d ; ./build $SIG $PARSE $STD --without-crypto $BUILD_ARGS" &
 
80
            ssh $i "cd $c_d ; ./build $SIG        $STD --disable-all-clocks $BUILD_ARGS" &
 
81
            ;;
 
82
         1)
 
83
            cat > .flockbuild-$i-$SIG <<-ENDQUOT
79
84
                #!/bin/sh
80
85
 
81
86
                # script uses job control and expects to be invoked
114
119
                echo \`date -u '+%H:%M:%S'\` $i flock-build $c_d done.
115
120
                rm .buildkey-$i
116
121
ENDQUOT
117
 
            chmod +x .flockbuild-$i-$SIG
118
 
            ssh -tt $i "$c_d/.flockbuild-$i-$SIG ; \
119
 
                      rm $c_d/.flockbuild-$i-$SIG" 2>/dev/null &
120
 
        esac
 
122
            chmod +x .flockbuild-$i-$SIG
 
123
            ssh -tt $i "$c_d/.flockbuild-$i-$SIG ; \
 
124
                rm $c_d/.flockbuild-$i-$SIG" 2>/dev/null &
 
125
        esac
121
126
    esac
122
127
done
123
128
echo `date -u '+%H:%M:%S'` flock-build launched