blob: 0996c6952461330d2cb2ad0217c78ba2edd8ee7a (
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
|
# $OpenBSD: Makefile,v 1.1 2005/03/18 20:26:12 uwe Exp $
TOP= ${.CURDIR}/..
IPK= openbsd37_arm.ipk
all: ${IPK}
${IPK}:
-rm -rf ${.OBJDIR}/data
install -o ${BINOWN} -g ${BINGRP} -m 755 -d ${.OBJDIR}/data/hdd2/OpenBSD
# install -o ${BINOWN} -g ${BINGRP} -m 755 -d ${.OBJDIR}/data/hdd2
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/hdd2/OpenBSD
install -o ${BINOWN} -g ${BINGRP} -m 755 ${DESTDIR}/usr/mdec/zboot \
${.OBJDIR}/data/hdd2/OpenBSD
install -o ${BINOWN} -g ${BINGRP} -m 755 ${DESTDIR}/usr/mdec/zbsdmod.o \
${.OBJDIR}/data/hdd2/OpenBSD
install -o ${BINOWN} -g ${BINGRP} -m 755 ${.CURDIR}/rc.zboot \
${.OBJDIR}/data/hdd2/OpenBSD
install -o ${BINOWN} -g ${BINGRP} -m 755 ${.CURDIR}/bootbsd \
${.OBJDIR}/data/opt/QtPalmtop/bin
install -o ${BINOWN} -g ${BINGRP} -m 755 ${.CURDIR}/bootbsd.desktop \
${.OBJDIR}/data/opt/QtPalmtop/apps/Applications
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}/controlfile \
${.OBJDIR}/control/control;
install -o ${BINOWN} -g ${BINGRP} -m 755 ${.CURDIR}/postinst \
${.OBJDIR}/control;
install -o ${BINOWN} -g ${BINGRP} -m 755 ${.CURDIR}/postrm \
${.OBJDIR}/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
install:
cp ${IPK} ${DESTDIR}/snapshot
clean cleandir:
rm -rf data control ${IPK} debian-binary control.tar.gz data.tar.gz
.include <bsd.prog.mk>
.include <bsd.subdir.mk>
|