blob: 3c885b49c955b8bb0b3bc044a3d9ed7ed38c2e6e (
plain)
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
30
31
32
|
#!/usr/bin/make -f
include ../source.mk
nop:
@:
build:
oh-autobuild -T all
touch $@
install: build
oh-autoinstall
install -m 0755 ../install-lilo.sh dest/sbin/install-lilo
install -d -m 0755 dest/usr/libexec/lilo/
$(CC) -o dest/usr/libexec/lilo/blkid ../blkid.c
rm dest/etc/*/p*.d/* dest/etc/lilo.conf_example
rm dest/boot/coffee.bmp dest/boot/debian*.bmp dest/boot/*.dat
# Remove unneeded Perl and Bash scripts.
set -e; \
for script in keytab-lilo liloconfig lilo-uuid-diskid mkrescue; do \
rm "dest/usr/sbin/$${script}"; \
rm "dest/usr/share/man/man8/$${script}.8"; \
done
# Install package hooks.
install -m 0755 -D ../kernel-postinst.sh \
dest/etc/kernel/postinst.d/99-lilo
install -m 0755 -D ../kernel-prerm.sh \
dest/etc/kernel/prerm.d/99-lilo
oh-fixperms
oh-strip
oh-installfiles
|