Fix for use of dpkg-buildpackage -A
[rrq/maintain_lilo.git] / debian / rules
index 3eaf127a8c00a35fdd15c388d081593493bb72f3..d8663ebe27513306cabba75bdbf1055c98812a1e 100755 (executable)
@@ -9,3 +9,19 @@
 %:
        dh $@
 
+
+override_dh_auto_build:
+       dh_auto_build
+       @echo "Extract html documentation (tech.html, user.html)"
+       uudecode -o /dev/stdout debian/doc/tech.html.uu 2>/dev/null | tar -x -z -C debian
+       uudecode -o /dev/stdout debian/doc/user.html.uu 2>/dev/null | tar -x -z -C debian
+
+override_dh_fixperms-arch:
+       dh_fixperms
+       @echo "Set execute flag to chattr-lilo hook scripts"
+       chmod 0755 debian/lilo/usr/lib/lilo/hooks/kernel/*/chattr-lilo
+
+override_dh_auto_clean:
+       rm -rf debian/html
+       dh_auto_clean
+