Import Debian changes 1.05+ds-2
hd-idle (1.05+ds-2) unstable; urgency=medium . * No-change, Source-only upload . hd-idle (1.05+ds-1) unstable; urgency=medium . * Initial release. Closes: #924749
This commit is contained in:
14
debian/rules
vendored
14
debian/rules
vendored
@@ -2,13 +2,15 @@
|
||||
export DH_VERBOSE=1
|
||||
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
||||
|
||||
mandir:= $(CURDIR)/debian/hd-idle/usr/share/man
|
||||
%:
|
||||
dh $@
|
||||
|
||||
override_dh_auto_build:
|
||||
|
||||
override_dh_auto_install:
|
||||
install -d $(CURDIR)/debian/hd-idle
|
||||
make install DESTDIR=$(CURDIR)/debian/hd-idle ARCH=$(DEB_HOST_ARCH)
|
||||
|
||||
override_dh_strip:
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user