Import Debian changes 1.21+ds-1
hd-idle (1.21+ds-1) unstable; urgency=medium
.
[ Debian Janitor ]
* Bump debhelper from old 12 to 13.
* Set debhelper-compat version in Build-Depends.
* Update standards version to 4.4.1, no changes needed.
.
[ Alexandre Mestiashvili ]
* d/watch, track new upstream
* d/copyright:
+ new upstream source
+ switch to GPL-3+
+ add upstream to debian/* section
* New upstream version 1.21+ds, Closes: #1026327
* d/control
+ update build deps
+ update Homepage and Description
+ Rules-Requires-Root: no
+ bump Policy to 4.6.2
+ introduce XS-Go-Import-Path and Built-Using headers
* d/rules, new build rules
* d/docs, install only README.md
* d/NEWS, new codebase
* add d/lintian-overrides, hd-idle is statically linked
This commit is contained in:
19
debian/rules
vendored
19
debian/rules
vendored
@@ -1,16 +1,15 @@
|
||||
#!/usr/bin/make -f
|
||||
export DH_VERBOSE=1
|
||||
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
||||
include /usr/share/dpkg/pkg-info.mk
|
||||
|
||||
mandir:= $(CURDIR)/debian/hd-idle/usr/share/man
|
||||
%:
|
||||
dh $@
|
||||
dh $@ --buildsystem=golang --with=golang
|
||||
|
||||
override_dh_auto_install:
|
||||
dh_auto_install
|
||||
# upstream ships wrong man section, thus the dirty workaround below
|
||||
mkdir -p $(mandir)/man8
|
||||
mv $(mandir)/man1/hd-idle.1 \
|
||||
$(mandir)/man8/hd-idle.8
|
||||
perl -i -pe 's/\A(\.TH\sHD-IDLE\s)1(.*)\Z/$${1}8$$2/' $(mandir)/man8/hd-idle.8
|
||||
rm -rf $(mandir)/man1
|
||||
dh_auto_install -- --no-source
|
||||
|
||||
override_dh_install:
|
||||
mv -vf ${CURDIR}/debian/${DEB_SOURCE}/usr/bin ${CURDIR}/debian/${DEB_SOURCE}/usr/sbin
|
||||
|
||||
override_dh_installman:
|
||||
dh_installman debian/hd-idle.8
|
||||
|
||||
Reference in New Issue
Block a user