~ubuntu-branches/ubuntu/trusty/hdparm/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Steve Langasek
  • Date: 2012-10-25 04:41:31 UTC
  • mfrom: (2.1.10 sid)
  • Revision ID: steve.langasek@canonical.com-20121025044131-iivujash13dmd6dx
Merge version 9.42-1 from Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
# 02111-1307 USA.
19
19
 
20
20
DEB_DH_INSTALLINIT_ARGS := --no-start --noscripts --onlyscripts
 
21
#DEB_DH_LINK_ARGS := ../init.d/hdparm /etc/rcS.d/S07hdparm.first
 
22
DEB_FIXPERMS_EXCLUDE := 20hdparm
21
23
DEB_DH_INSTALLUDEV_ARGS := --priority=85
22
 
#DEB_DH_LINK_ARGS := ../init.d/hdparm /etc/rcS.d/S07hdparm.first
23
 
DEB_FIXPERMS_EXCLUDE:= 20hdparm
 
24
DEB_MAKE_ENVVARS := STRIP="true" LDFLAGS=
24
25
 
25
26
include /usr/share/cdbs/1/rules/debhelper.mk
26
27
include /usr/share/cdbs/1/class/makefile.mk
31
32
        install -d $(CURDIR)/debian/tmp/sbin
32
33
common-binary-post-install-arch::
33
34
        install -m 755 $(CURDIR)/debian/hdparm.udev-script $(CURDIR)/debian/hdparm/lib/udev/hdparm
34
 
        install -D -m 755 $(CURDIR)/debian/95hdparm-apm $(CURDIR)/debian/hdparm//usr/lib/pm-utils/power.d/95hdparm-apm
35
35
        dh_link -phdparm /usr/lib/pm-utils/power.d/95hdparm-apm /usr/lib/pm-utils/sleep.d/95hdparm-apm
36
36
 
37
37
binary-predeb/hdparm::
38
38
        chmod 755 $(CURDIR)/debian/hdparm/etc/apm/event.d/20hdparm
 
39
        chmod 755 $(CURDIR)/debian/hdparm/usr/lib/pm-utils/power.d/95hdparm-apm
 
40
clean::
 
41
        # remove cruft from orig tarball
 
42
        rm -f debian/hdparm.postinit debian/hdparm.dirs debian/hdparm.rules debian/hdparm.postrm