~ubuntu-branches/debian/squeeze/laptop-mode-tools/squeeze

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Bart Samwel
  • Date: 2008-07-15 12:47:01 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080715124701-kaj9itpwjfpjrr0m
Tags: 1.45-1
* New upstream version 1.45.
* New upstream version 1.44:
  * Strip non-numeric suffixes from kernel minor version number.
    Closes: #488950.
  * Remove spurious error message on machines that don't have 
    /sys/class/power_supply. Closes: #490167.
  * Fix incorrect path to laptop-mode.conf in the laptop-mode.conf(8)
    manual page. Closes: #488261.
  * Add sched-mc-power-savings module. Closes: #490587.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
# -*- makefile -*-
3
 
# Sample debian/rules that uses debhelper.
 
3
# Based on a sample debian/rules that uses debhelper.
4
4
# GNU copyright 1997 to 1999 by Joey Hess.
 
5
# Modifications Copyright 2008 by Bart Samwel
5
6
 
6
7
# Uncomment this to turn on verbose mode.
7
8
#export DH_VERBOSE=1
28
29
clean:
29
30
        dh_testdir
30
31
        dh_testroot
31
 
        -rm debian/laptop-mode-tools.laptop-mode.init
32
 
        -rm -f build-stamp configure-stamp
 
32
        rm -f debian/laptop-mode-tools.laptop-mode.init
 
33
        rm -f build-stamp configure-stamp
33
34
        dh_clean 
34
35
 
35
36
DESTDIR=$(CURDIR)/debian/laptop-mode-tools
43
44
        dh_installdirs
44
45
 
45
46
        # Add here commands to install the package into debian/laptop-mode-tools.
46
 
        mkdir -p $(DESTDIR)/etc/laptop-mode $(DESTDIR)/etc/acpi/events $(DESTDIR)/etc/acpi/actions
47
 
        mkdir -p $(DESTDIR)/usr/sbin $(DESTDIR)/etc/apm/event.d
48
 
        mkdir -p $(DESTDIR)/etc/power/scripts.d $(DESTDIR)/etc/power/event.d
 
47
        mkdir -p $(DESTDIR)/etc/laptop-mode
 
48
        mkdir -p $(DESTDIR)/etc/acpi/events
 
49
        mkdir -p $(DESTDIR)/etc/acpi/actions
 
50
        mkdir -p $(DESTDIR)/usr/sbin
 
51
        mkdir -p $(DESTDIR)/usr/share/laptop-mode-tools/modules
 
52
        mkdir -p $(DESTDIR)/etc/apm/event.d
 
53
        mkdir -p $(DESTDIR)/etc/power/scripts.d
 
54
        mkdir -p $(DESTDIR)/etc/power/event.d
49
55
        mkdir -p $(DESTDIR)/etc/laptop-mode/batt-start
50
56
        mkdir -p $(DESTDIR)/etc/laptop-mode/batt-stop
51
57
        mkdir -p $(DESTDIR)/etc/laptop-mode/lm-ac-start
52
58
        mkdir -p $(DESTDIR)/etc/laptop-mode/lm-ac-stop
53
59
        mkdir -p $(DESTDIR)/etc/laptop-mode/nolm-ac-start
54
60
        mkdir -p $(DESTDIR)/etc/laptop-mode/nolm-ac-stop
 
61
        mkdir -p $(DESTDIR)/etc/laptop-mode/conf.d
 
62
        mkdir -p $(DESTDIR)/etc/laptop-mode/modules
55
63
        install -m600 etc/laptop-mode/laptop-mode.conf $(DESTDIR)/etc/laptop-mode/laptop-mode.conf
 
64
        install -m600 etc/laptop-mode/conf.d/* $(DESTDIR)/etc/laptop-mode/conf.d
56
65
        install -m700 etc/acpi/actions/* $(DESTDIR)/etc/acpi/actions
57
66
        install -m600 etc/acpi/events/* $(DESTDIR)/etc/acpi/events
58
67
        install -m700 etc/apm/event.d/* $(DESTDIR)/etc/apm/event.d
61
70
        install -m700 usr/sbin/laptop_mode $(DESTDIR)/usr/sbin
62
71
        install -m700 usr/sbin/lm-syslog-setup $(DESTDIR)/usr/sbin
63
72
        install -m700 usr/sbin/lm-profiler $(DESTDIR)/usr/sbin
 
73
        install -m700 usr/share/laptop-mode-tools/modules/* $(DESTDIR)/usr/share/laptop-mode-tools/modules
64
74
 
65
75
# Build architecture-independent files here.
66
76
binary-arch: build install
79
89
#       dh_installemacsen
80
90
#       dh_installpam
81
91
#       dh_installmime
82
 
        dh_installinit --name laptop-mode
 
92
        dh_installinit --name laptop-mode -- defaults 99
83
93
#       dh_installcron
84
94
#       dh_installinfo
85
95
        dh_installman man/*