| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | export DEB_CPPFLAGS_MAINT_APPEND = -D_GNU_SOURCE |
| 4 | |
| 5 | %: |
| 6 | dh $@ |
| 7 | |
| 8 | override_dh_clean: |
| 9 | dh_clean |
| 10 | rm -f version |
| 11 | $(RM) debian/powerd.conf |
| 12 | |
| 13 | execute_before_dh_install: debian/powerd.conf |
| 14 | |
| 15 | debian/powerd.conf: |
| 16 | cp powerd.conf.dist debian/powerd.conf |
| 17 | # we don't use pwrlog stuff |
| 18 | sed -i s/^config_PWRLOG_INTERVAL=.*/config_PWRLOG_INTERVAL=\"0\"/g debian/powerd.conf |