Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
6
7 include /usr/share/dpkg/pkg-info.mk
8
9 deb_systemdsystemunitdir = $(shell pkg-config --variable=systemdsystemunitdir systemd)
10 deb_udevdir = $(shell pkg-config --variable=udevdir udev)
11
12 DESTDIR=$(CURDIR)/debian/laptop-mode-tools
13 INSTALL=install -o root -g root
14
15 %:
16 dh $@
17
18 override_dh_auto_configure:
19 dh_auto_configure
20 cp etc/init.d/laptop-mode debian/laptop-mode-tools.laptop-mode.init
21
22 override_dh_auto_install:
23 DESTDIR=$(DESTDIR) INSTALL=install MAN_D=/usr/share/man LIB_D=/usr/lib ./install.sh
24
25 override_dh_installchangelogs:
26 dh_installchangelogs Documentation/revision-history.txt
27
28 override_dh_installinit:
29 dh_installinit --name laptop-mode -- defaults 99
30
31 override_dh_installmenu:
32 # This file was not installed in old debhelper code
33 # The menu file provided contains the wrong path (/usr/bin instead of /usr/sbin)
34 # Not sure whether it is really worth adding a dependency from gksu or PolicyKit.
35 echo "Do not install debian/menu"