~ubuntu-branches/ubuntu/precise/devscripts/precise

« back to all changes in this revision

Viewing changes to debian/postinst

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2011-05-25 09:46:30 UTC
  • Revision ID: james.westby@ubuntu.com-20110525094630-gsd820t94ib5u6kn
Tags: 2.11.0ubuntu1
* Merge from Debian unstable; remaining changes:
  - Demote Recommends to Suggests:
    + libcrypt-ssleay-perl: only needed for a corner case (uscan on SSL
      download sites), wasn't installed by default in previous releases
      either, and seems quite dead upstream; universe only.
    + debian-{keyring,maintainers}: not useful enough in Ubuntu; universe
      only.
    + equivs: too much of a hack to install by default; universe only.
    + libyaml-syck-perl: transition-check is fairly Debian-specific.
  - scripts/debchange.{pl,1}:
    + Adjust --security template for Ubuntu.
    + Add -U/--upstream flag that forces original "just increment
      the end" behaviour; Ubuntu is upstream for some pieces of software.
    + Add --distributor= and DEBCHANGE_DISTRIBUTOR to override lsb_release
      output.
    + Default to "oneiric" as distribution.
    + Add "ubuntu1" to version string for new versions, with tweaks for
      special cases.
    + Add -R/--rebuild flag for Ubuntu's no-change rebuilds.
    + Don't use the last distribution in debian/changelog when doing
      "dch -r" on Ubuntu. "Just because it was last uploaded to jaunty
      doesn't mean that's the right thing to do now." Thanks to Colin
      Watson. (LP: #429288)
  - Add test/debchange.pl, test/Makefile: debchange test suite.
  - Rename XS-Vcs-* to XS-Debian-Vcs-*.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
                cat >> /etc/devscripts.conf <<EOF
25
25
 
26
26
# debchange/dch option added in version 2.7.90:
27
 
 
27
#
28
28
# Query the BTS when --closes is being used?
29
29
# DEBCHANGE_QUERY_BTS=yes
30
 
 
30
#
31
31
# uupdate option added in version 2.7.90:
32
 
 
32
#
33
33
# Should we symlink the .orig.tar.gz file to its new name or
34
34
# copy it instead?  yes=symlink, no=copy
35
35
# UUPDATE_SYMLINK_ORIG=yes
42
42
                cat >> /etc/devscripts.conf <<EOF
43
43
 
44
44
# debuild options added in version 2.7.93:
45
 
 
45
#
46
46
# Do we run linda at the end of a full run?
47
47
# DEBUILD_LINDA=no
48
 
 
48
#
49
49
# Extra options given to linda before any command-line options
50
50
# specified.
51
51
# DEBUILD_LINDA_OPTS=""
52
52
 
53
53
##### Package-wide variables first introduced in version 2.7.93:
54
 
 
54
#
55
55
# Lists of which scripts are affected by these package-wide variables
56
56
# can be found in the devscripts.conf(5) manpage.
57
 
58
 
 
57
#
 
58
#
59
59
# Directory Name Checking
60
 
 
60
#
61
61
# Several programs check the directory name and refuse to function if
62
62
# it does not match the name of the package being worked on.  (The
63
63
# details are described in the individual manpages.)
71
71
# defines what is considered a valid directory name for the source
72
72
# package PACKAGE; if it includes a '/', then it must match the full
73
73
# directory path, otherwise it must match the full directory name.
74
 
 
74
#
75
75
# The default settings are:
76
76
# DEVSCRIPTS_CHECK_DIRNAME_LEVEL=1
77
77
# DEVSCRIPTS_CHECK_DIRNAME_REGEX='PACKAGE(-.+)?'
84
84
                cat >> /etc/devscripts.conf <<EOF
85
85
 
86
86
##### bts options changes between version 2.8.6 and version 2.8.7:
87
 
 
87
#
88
88
# The following option replaces the previous BTS_FULL_MIRROR option.
89
89
# How much to mirror when caching?  The minimal amount (min), the mbox
90
90
# version as well (mbox) or the whole works (full)?
91
91
# BTS_CACHE_MODE=min
92
 
 
92
#
93
93
# The following is a new option
94
94
# How do we read an mbox?  This will be split on whitespace, then
95
95
# %s is replaced by the mbox name and %% by a single %.
101
101
                cat >> /etc/devscripts.conf <<EOF
102
102
 
103
103
##### bts options added in versions 2.8.6 and 2.8.7:
104
 
 
104
#
105
105
# Default bts show/bugs to run in offline mode?
106
106
# BTS_OFFLINE=no
107
 
 
107
#
108
108
# Cache all visited bug reports once a cache has been established
109
109
# for the first time?
110
110
# BTS_CACHE=yes
111
 
 
111
#
112
112
# How much to mirror when caching?  The minimal amount (min), the mbox
113
113
# version as well (mbox) or the whole works (full)?
114
114
# BTS_CACHE_MODE=min
115
 
 
115
#
116
116
# Always refresh the cache, even if nothing's changed?
117
117
# BTS_FORCE_REFRESH=no
118
 
 
118
#
119
119
# How do we read an mbox?  This will be split on whitespace, then
120
120
# %s is replaced by the mbox name and %% by a single %.
121
121
# BTS_MAIL_READER='mutt -f %s'
128
128
                cat >> /etc/devscripts.conf <<EOF
129
129
 
130
130
##### uscan option added in version 2.8.12:
131
 
 
131
#
132
132
# Should we use DEHS style output (XML format)?
133
133
# USCAN_DEHS_OUTPUT=no
134
 
 
134
#
135
135
EOF
136
136
            fi
137
137
        fi
143
143
            cat >> /etc/devscripts.conf <<EOF
144
144
 
145
145
##### debchange option added in version 2.8.15:
146
 
 
146
#
147
147
# Select a heuristic to use to determine whether the package has released.
148
148
# See the debchange man page for details.
149
149
# DEBCHANGE_RELEASE_HEURISTIC=log
157
157
            cat >> /etc/devscripts.conf <<EOF
158
158
 
159
159
##### debchange option added in version 2.9.5:
160
 
 
160
#
161
161
# Introduce multiple-maintainer markers in changelog sections?
162
162
# DEBCHANGE_MULTIMAINT=yes
163
163
EOF
169
169
            cat >> /etc/devscripts.conf <<EOF
170
170
 
171
171
##### bts option added in version 2.9.15
172
 
 
172
#
173
173
# What sendmail command do we use?  This will be split on whitespace.
174
174
# BTS_SENDMAIL_COMMAND='/usr/sbin/sendmail'
175
175
 
176
176
##### dpkg-sig options added in version 2.9.15
177
 
 
177
#
178
178
# dpkg-sig is not a part of devscripts, but shares this configuration file.
179
179
# It pays attention to the values of DEBSIGN_MAINT and DEBSIGN_KEY in
180
180
# addition to the following.
181
181
#
182
182
# This key ID takes precedence over the rest
183
183
# DPKGSIG_KEYID=
184
 
 
184
#
185
185
# Do we sign the .changes and .dsc files?  See the manpage for more
186
186
# info.  Valid options are no, auto, yes, full and force_full.
187
187
# DPKGSIG_SIGN_CHANGES=auto
188
 
 
188
#
189
189
# Do we cache the gpg passphrase by default?  This can be dangerous!
190
190
# DPKGSIG_CACHE_PASS=no
191
191
 
192
192
##### pts-subscribe added in version 2.9.15
193
 
 
193
#
194
194
# How long will we subscribe for by default?  The default is 30 days.
195
195
# Setting this to 'forever' means that no unsubscription request will
196
196
# be scheduled.
204
204
            cat >> /etc/devscripts.conf <<EOF
205
205
 
206
206
##### debdiff option added in version 2.9.17
207
 
 
207
#
208
208
# Which control files to compare?  A comma-separated list, with
209
209
# possibilities such as postinst, config and so on; ALL means compare
210
210
# all control files.
211
211
# DEBDIFF_CONTROLFILES=control
212
212
 
213
213
##### debrelease/debc/debi option added in version 2.9.17
214
 
 
214
#
215
215
# This specifies the directory, relative to the top of the source
216
216
# tree, in which the .changes and .debs files are to be found.  Note
217
217
# that this option affects all of debrelease, debc and debi.
218
218
# DEBRELEASE_DEBS_DIR=..
219
219
 
220
220
##### debuild options added in version 2.9.17
221
 
 
221
#
222
222
# Do we check for the existence of the .orig.tar.gz before calling
223
223
# dpkg-buildpackage?
224
224
# DEBUILD_TGZ_CHECK=yes
225
 
 
225
#
226
226
# Hooks; see the manpage for details of these
227
227
# DEBUILD_DPKG_BUILDPACKAGE_HOOK=""
228
228
# DEBUILD_CLEAN_HOOK=""
235
235
# DEBUILD_POST_DPKG_BUILDPACKAGE_HOOK=""
236
236
 
237
237
##### who-uploads options added in version 2.9.17
238
 
 
238
#
239
239
# Maximum number of uploads to display per package
240
240
# WHOUPLOADS_MAXUPLOADS=3
241
 
 
241
#
242
242
# Colon-separated list of keyrings to examine by default
243
243
# WHOUPLOADS_KEYRINGS=/usr/share/keyrings/debian-keyring.gpg:/usr/share/keyrings/debian-keyring.pgp
244
244
EOF
251
251
            cat >> /etc/devscripts.conf <<EOF
252
252
 
253
253
##### nmudiff options added in versions 2.9.25 and 2.9.26
254
 
 
254
#
255
255
# Should we use mutt to edit and send the message or just a plain old
256
256
# editor?
257
257
# NMUDIFF_MUTT=yes
258
 
 
258
#
259
259
# Should we always submit a new report (yes), always send to the bugs
260
260
# which are being closed (no), or send to the bug being closed if
261
261
# there is only one of them, otherwise send a new report (maybe)?
262
262
# NMUDIFF_NEWREPORT=maybe
263
 
 
263
#
264
264
# nmudiff also uses the value of BTS_SENDMAIL_COMMAND if NMUDIFF_MUTT=no
265
265
 
266
266
##### dget option added in version 2.9.26
267
 
 
267
#
268
268
# Extra directories to search for files in addition to
269
269
# /var/cache/apt/archives.  This is a colon-separated list of directories.
270
270
# DGET_PATH=""
350
350
            cat >> /etc/devscripts.conf <<EOF
351
351
 
352
352
##### debcommit option added in version 2.10.8
353
 
#   
 
353
#
354
354
# Strip a leading "* " from commit messages taken from changelogs?
355
355
# DEBCOMMIT_STRIP_MESSAGE=no
356
356
EOF
357
357
        fi
358
 
        
 
358
 
359
359
        if dpkg --compare-versions "$2" lt 2.10.10
360
360
        then
361
361
            # Added in devscripts 2.10.10
418
418
# Allow the generated message to be edited and, if necessary, abandoned
419
419
# before sending it to the control bot?
420
420
#
421
 
# If set to yes, prompt for confirmation / edit / abandonment.          
 
421
# If set to yes, prompt for confirmation / edit / abandonment.
422
422
# If set to force, spawn an editor and then proceed as if set to yes
423
 
# BTS_INTERACTIVE=no 
 
423
# BTS_INTERACTIVE=no
424
424
 
425
425
EOF
426
426
        fi
452
452
##### debuild options added in version 2.10.20
453
453
#
454
454
# Colon-separated list of options to be added to the beginning
455
 
# of PATH once it has been sanitised                  
 
455
# of PATH once it has been sanitised
456
456
# DEBUILD_PREPEND_PATH="/usr/lib/ccache"
457
457
#
458
458
# Credentials to pass to debrsign when signing dsc / changes files
472
472
# options may be used to specify the username and password to use.
473
473
# If only a username is provided then the password will be prompted for
474
474
# before sending the e-mail
475
 
# BTS_SMTP_AUTH_USERNAME=user    
 
475
# BTS_SMTP_AUTH_USERNAME=user
476
476
# BTS_SMTP_AUTH_PASSWORD=pass
477
477
 
478
478
##### debdiff option added in version 2.10.21
513
513
            # Added in devscripts 2.10.26
514
514
            cat >> /etc/devscripts.conf <<EOF
515
515
##### rmadison option added in version 2.10.26
516
 
 
516
#
517
517
# Add a custom URL to the default list of shorthands so one
518
518
# can use it with -u without having to specify the full URL
519
 
 
519
#
520
520
# RMADISON_URL_MAP_EXAMPLE=http://example.com/madison.cgi
521
521
 
522
522
EOF
593
593
        then
594
594
            cat >> /etc/devscripts.conf << EOF
595
595
##### debcheckout option added in version 2.10.40
596
 
 
596
#
597
597
# List of space-separated pairs REGEXP/REPLACEMENT_TEXT to define
598
598
# custom rules to enable authenticated mode.
599
599
# See debcheckout(1) for a more precise description of syntax and
602
602
 
603
603
##### uscan option added in version 2.10.40
604
604
#
605
 
# Automatically repack bzipped tar or zip archives to gzipped tars? 
 
605
# Automatically repack bzipped tar or zip archives to gzipped tars?
606
606
# USCAN_REPACK=no
607
607
EOF
608
608
        fi
719
719
 
720
720
EOF
721
721
        fi
 
722
 
 
723
        if dpkg --compare-versions "$2" lt 2.11.0
 
724
        then
 
725
            cat >> /etc/devscripts.conf << EOF
 
726
#### debsign option added in 2.11.0
 
727
#
 
728
# Always re-sign files even if they are already signed, without prompting.
 
729
# DEBSIGN_ALWAYS_RESIGN=yes
 
730
 
 
731
EOF
 
732
        fi
722
733
    fi
723
734
fi
724
735