summaryrefslogtreecommitdiff
path: root/distrib/zaurus
diff options
context:
space:
mode:
authorUwe Stuehler <uwe@cvs.openbsd.org>2005-03-19 20:23:10 +0000
committerUwe Stuehler <uwe@cvs.openbsd.org>2005-03-19 20:23:10 +0000
commit0d48017b651202aa6057a71d61daa5c10062a877 (patch)
treebb0bc483610e29263ea9b84cad06043bcfb96814 /distrib/zaurus
parent1732082ac3f269ea5c7334637e186a2976c632f9 (diff)
Generate control file automatically.
Diffstat (limited to 'distrib/zaurus')
-rw-r--r--distrib/zaurus/ipk/Makefile28
-rw-r--r--distrib/zaurus/ipk/controlfile8
2 files changed, 15 insertions, 21 deletions
diff --git a/distrib/zaurus/ipk/Makefile b/distrib/zaurus/ipk/Makefile
index 6745738d324..a6a731a32bf 100644
--- a/distrib/zaurus/ipk/Makefile
+++ b/distrib/zaurus/ipk/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.6 2005/03/19 00:28:04 deraadt Exp $
+# $OpenBSD: Makefile,v 1.7 2005/03/19 20:23:09 uwe Exp $
TOP= ${.CURDIR}/..
IPK= openbsd${OSrev}_arm.ipk
@@ -30,31 +30,33 @@ ${IPK}:
${.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;
+ 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}
- echo "Package: openbsd" > ${.OBJDIR}/Packages
- echo "Version: ${OSREV}" >> ${.OBJDIR}/Packages
- echo "Priority: optional" >> ${.OBJDIR}/Packages
- echo "Section: Misc" >> ${.OBJDIR}/Packages
- echo "Architecture: arm" >> ${.OBJDIR}/Packages
- echo "Maintainer: uwe@openbsd.org" >> ${.OBJDIR}/Packages
- echo "Filename: ${IPK}" >> ${.OBJDIR}/Packages
+ cp ${.OBJDIR}/control/control Packages
echo "Size:" `/bin/ls -l ${IPK} | awk '{print $$5}'` \
>> ${.OBJDIR}/Packages
- echo "Description: OpenBSD ${OSREV} boot loader and kernel" \
- >> ${.OBJDIR}/Packages
install: ${IPK} Packages
cp ${IPK} ${DESTDIR}/snapshot
diff --git a/distrib/zaurus/ipk/controlfile b/distrib/zaurus/ipk/controlfile
deleted file mode 100644
index c27e97b5cc8..00000000000
--- a/distrib/zaurus/ipk/controlfile
+++ /dev/null
@@ -1,8 +0,0 @@
-Package: openbsd
-Version: 3.7
-Priority: optional
-Maintainer: uwe@openbsd.org
-Architecture: arm
-Section: Communications
-Description: OpenBSD boot loader and kernel image
-Installed-Size: 4.1M