File: rules

package info (click to toggle)
thinkfan 1.3.1-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 640 kB
  • sloc: cpp: 3,098; ansic: 492; sh: 119; xml: 23; makefile: 19
file content (29 lines) | stat: -rwxr-xr-x 1,076 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- -DUSE_ATASMART=YES
override_dh_auto_install:
	dh_auto_install
	rm -rf $(CURDIR)/debian/thinkfan/etc/systemd/
	rm $(CURDIR)/debian/thinkfan/usr/share/doc/thinkfan/thinkfan.yaml
	rm $(CURDIR)/debian/thinkfan/usr/share/doc/thinkfan/COPYING
	install -D -m0644 examples/thinkfan.yaml $(CURDIR)/debian/thinkfan/usr/share/doc/thinkfan/examples/thinkfan.yaml
	install -D -m0755 rcscripts/sysvinit/thinkfan.init $(CURDIR)/debian/thinkfan/etc/init.d/thinkfan
	install -D -m0644 rcscripts/sysvinit/thinkfan.default $(CURDIR)/debian/thinkfan/etc/default/thinkfan

override_dh_installinit:
	dh_installinit --onlyscripts

override_dh_installsystemd:
	# Do not enable the file by default on purpose.
	# The user should enable it only after making sure the configuration is
	# appropriate for their computer.
	# This corresponds to START=no in /etc/default/thinkfan
	dh_installsystemd --no-enable