diff options
| author | Unit 193 <unit193@ubuntu.com> | 2017-09-24 06:39:35 -0400 |
|---|---|---|
| committer | Unit 193 <unit193@ubuntu.com> | 2017-09-24 06:39:35 -0400 |
| commit | 84c307eb5d0dc6159b2cf256f628995bed3cb02d (patch) | |
| tree | 47f2b2495aa5a9297ff694e9f1a845bd1b2212f9 | |
| parent | fd18f07c9546d3215f4678c13ebd214e3a467572 (diff) | |
| download | irssi-84c307eb5d0dc6159b2cf256f628995bed3cb02d.tar.bz2 irssi-84c307eb5d0dc6159b2cf256f628995bed3cb02d.tar.xz | |
d/rules: Use pkg-info.mk to derive version.
This further has the advantage that you're not exposing what precise revision
you're using, this precisely what patches you have and potentially what
security vulnerabilities you may have.
| -rwxr-xr-x | debian/rules | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/rules b/debian/rules index e0cfd8f..6282434 100755 --- a/debian/rules +++ b/debian/rules @@ -1,15 +1,15 @@ #!/usr/bin/make -f +include /usr/share/dpkg/pkg-info.mk export DEB_BUILD_MAINT_OPTIONS=hardening=+all CONFIGURE_SWITCHES = --enable-ipv6 --with-bot --with-proxy --enable-true-color --with-perl-lib=vendor --disable-static -VERSION = $(shell dpkg-parsechangelog | grep "^Version:" | cut -d" " -f2) %: dh $@ --with autotools_dev override_dh_auto_configure: - dh_auto_configure -- $(CONFIGURE_SWITCHES) PACKAGE_VERSION=$(VERSION) + dh_auto_configure -- $(CONFIGURE_SWITCHES) PACKAGE_VERSION=$(DEB_VERSION_UPSTREAM) override_dh_install: find debian/tmp -name '*.la' -delete |
