blob: 0c0de3f2d5e6698b45cf94ef7773c0dca530d0e8 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# $OpenBSD: Makefile,v 1.10 2009/04/17 03:58:55 deraadt Exp $
TOP= ${.CURDIR}/..
IPK= openbsd${OSrev}_arm.ipk
all: ${IPK} Packages
${IPK}:
install -o ${BINOWN} -g ${BINGRP} -m 755 -d ${.OBJDIR}/data/usr/local/OpenBSD
install -o ${BINOWN} -g ${BINGRP} -m 755 -d \
${.OBJDIR}/data/opt/QtPalmtop/apps/Applications
install -o ${BINOWN} -g ${BINGRP} -m 755 -d ${.OBJDIR}/data/opt/QtPalmtop/bin
install -o ${BINOWN} -g ${BINGRP} -m 755 -d ${.OBJDIR}/data/opt/QtPalmtop/pics
install -o ${BINOWN} -g ${BINGRP} -m 755 ${.OBJDIR}/../ramdisk/bsd.rd \
${.OBJDIR}/data/usr/local/OpenBSD
install -o ${BINOWN} -g ${BINGRP} -m 755 ${DESTDIR}/usr/mdec/zboot \
${.OBJDIR}/data/usr/local/OpenBSD
install -o ${BINOWN} -g ${BINGRP} -m 755 ${DESTDIR}/usr/mdec/zbsdmod.o \
${.OBJDIR}/data/usr/local/OpenBSD
install -o ${BINOWN} -g ${BINGRP} -m 755 ${.CURDIR}/rc.zboot \
${.OBJDIR}/data/usr/local/OpenBSD
install -o ${BINOWN} -g ${BINGRP} -m 755 ${.CURDIR}/bootbsd \
${.OBJDIR}/data/opt/QtPalmtop/bin
grep -v '^#' ${.CURDIR}/bootbsd.desktop > ${.OBJDIR}/bootbsd.desktmp
install -o ${BINOWN} -g ${BINGRP} -m 755 ${.OBJDIR}/bootbsd.desktmp \
${.OBJDIR}/data/opt/QtPalmtop/apps/Applications/bootbsd.desktop
uudecode < ${.CURDIR}/bootbsd.png.uu
install -o ${BINOWN} -g ${BINGRP} -m 755 ${.OBJDIR}/bootbsd.png \
${.OBJDIR}/data/opt/QtPalmtop/pics
cd ${.OBJDIR}/data && tar -czf ../data.tar.gz .
install -o ${BINOWN} -g ${BINGRP} -m 755 -d ${.OBJDIR}/control
install -o ${BINOWN} -g ${BINGRP} -m 755 ${.CURDIR}/postinst \
${.OBJDIR}/control;
install -o ${BINOWN} -g ${BINGRP} -m 755 ${.CURDIR}/postrm \
${.OBJDIR}/control;
echo "Package: openbsd" > ${.OBJDIR}/control/control
echo "Version: ${OSREV}" >> ${.OBJDIR}/control/control
echo "Priority: optional" >> ${.OBJDIR}/control/control
echo "Section: Misc" >> ${.OBJDIR}/control/control
echo "Architecture: arm" >> ${.OBJDIR}/control/control
echo "Maintainer: uwe@openbsd.org" >> ${.OBJDIR}/control/control
echo "Filename: ${IPK}" >> ${.OBJDIR}/control/control
echo "Installed-Size:" \
`/usr/bin/du -hs ${.OBJDIR}/data | awk '{print $$1}'` \
>> ${.OBJDIR}/control/control
echo "Description: OpenBSD ${OSREV} boot loader and kernel" \
>> ${.OBJDIR}/control/control
cd ${.OBJDIR}/data/ && find . -type f | sed 's,^\.,,' > ../control/openbsd.list
cd ${.OBJDIR}/control && tar -czf ../control.tar.gz .
echo 2.0 > debian-binary; chown ${BINOWN}:${BINGRP} debian-binary
tar -czf ${IPK} ./debian-binary ./data.tar.gz ./control.tar.gz
Packages: ${IPK}
cp ${.OBJDIR}/control/control Packages
echo "Size:" `/bin/ls -l ${IPK} | awk '{print $$5}'` \
>> ${.OBJDIR}/Packages
.ifdef RELEASEDIR
install: ${IPK} Packages
cp ${IPK} ${RELEASEDIR}
cp Packages ${RELEASEDIR}
.endif
clean cleandir:
rm -rf data control ${IPK} debian-binary control.tar.gz data.tar.gz \
bootbsd.desktmp bootbsd.png Packages
.include <bsd.prog.mk>
.include <bsd.subdir.mk>
|