diff options
author | 2005-03-19 20:23:09 +0000 | |
---|---|---|
committer | 2005-03-19 20:23:09 +0000 | |
commit | ab02800579e048db5ae7a44d8d8cc3018fab9e24 (patch) | |
tree | 9823c7299addef344ed43afff88375cd024a7cf3 | |
parent | Expand OSrev correctly, and clarify that more is needed after ipkg (diff) | |
download | wireguard-openbsd-ab02800579e048db5ae7a44d8d8cc3018fab9e24.tar.xz wireguard-openbsd-ab02800579e048db5ae7a44d8d8cc3018fab9e24.zip |
Generate control file automatically.
-rw-r--r-- | distrib/zaurus/ipk/Makefile | 28 | ||||
-rw-r--r-- | distrib/zaurus/ipk/controlfile | 8 |
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 |