diff options
Diffstat (limited to 'scripts/package/builddeb')
-rwxr-xr-x | scripts/package/builddeb | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/scripts/package/builddeb b/scripts/package/builddeb index 59726243c2eb..88dbf23b6970 100755 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb | |||
@@ -217,9 +217,20 @@ else | |||
217 | fi | 217 | fi |
218 | maintainer="$name <$email>" | 218 | maintainer="$name <$email>" |
219 | 219 | ||
220 | # Try to determine distribution | ||
221 | if [ -n "$KDEB_CHANGELOG_DIST" ]; then | ||
222 | distribution=$KDEB_CHANGELOG_DIST | ||
223 | elif distribution=$(lsb_release -cs 2>/dev/null) && [ -n "$distribution" ]; then | ||
224 | : # nothing to do in this case | ||
225 | else | ||
226 | distribution="unstable" | ||
227 | echo >&2 "Using default distribution of 'unstable' in the changelog" | ||
228 | echo >&2 "Install lsb-release or set \$KDEB_CHANGELOG_DIST explicitly" | ||
229 | fi | ||
230 | |||
220 | # Generate a simple changelog template | 231 | # Generate a simple changelog template |
221 | cat <<EOF > debian/changelog | 232 | cat <<EOF > debian/changelog |
222 | linux-upstream ($packageversion) unstable; urgency=low | 233 | linux-upstream ($packageversion) $distribution; urgency=low |
223 | 234 | ||
224 | * Custom built Linux kernel. | 235 | * Custom built Linux kernel. |
225 | 236 | ||
@@ -233,10 +244,10 @@ This is a packacked upstream version of the Linux kernel. | |||
233 | The sources may be found at most Linux ftp sites, including: | 244 | The sources may be found at most Linux ftp sites, including: |
234 | ftp://ftp.kernel.org/pub/linux/kernel | 245 | ftp://ftp.kernel.org/pub/linux/kernel |
235 | 246 | ||
236 | Copyright: 1991 - 2009 Linus Torvalds and others. | 247 | Copyright: 1991 - 2015 Linus Torvalds and others. |
237 | 248 | ||
238 | The git repository for mainline kernel development is at: | 249 | The git repository for mainline kernel development is at: |
239 | git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git | 250 | git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git |
240 | 251 | ||
241 | This program is free software; you can redistribute it and/or modify | 252 | This program is free software; you can redistribute it and/or modify |
242 | it under the terms of the GNU General Public License as published by | 253 | it under the terms of the GNU General Public License as published by |