Add optional kernel hook scripts for no defragmenting
[rrq/maintain_lilo.git] / debian / hooks / Makefile
1 # -*- makefile -*-
2 #
3 # Copyright 2010-2014 Joachim Wiedorn
4 #
5 # Licensed under the terms of the GPL-2 or any later version.
6 # On Debian systems, the complete text of the GNU General Public License
7 # version 2 can be found in the file `/usr/share/common-licenses/GPL-2'.
8
9
10 BASE     := /etc
11 POSTINST := kernel/postinst.d
12 PREINST  := kernel/preinst.d
13 PRERM    := kernel/prerm.d
14
15 all:
16
17 install:
18         @echo Install kernel hook scripts
19         mkdir -p $(BASE)/$(POSTINST)
20         mkdir -p $(BASE)/$(PREINST)
21         mkdir -p $(BASE)/$(PRERM)
22         install -m 0755 $(POSTINST)/chattr-lilo  $(BASE)/$(POSTINST)
23         install -m 0755 $(PREINST)/chattr-lilo  $(BASE)/$(PREINST)
24         install -m 0755 $(PRERM)/chattr-lilo  $(BASE)/$(PRERM)
25
26 uninstall:
27         @echo Uninstall kernel hook scripts
28         rm $(BASE)/$(POSTINST)/chattr-lilo
29         rm $(BASE)/$(PREINST)/chattr-lilo
30         rm $(BASE)/$(PRERM)/chattr-lilo
31