Fred
2011-06-23 14:19:03 UTC
Hello
Based on the following article mentionned in the wiki...
www.inportb.com/2010/10/19/making-an-opkg-package/
... I attempted to build my first opkg package, which fails installing
with the following error: "Collected errors: * pkg_init_from_file:
Malformed package file package.opk."
Here's what I did:
1. mkdir /tmp/mypackage
2. /tmp/mypackage/ contains the following files:
+-- bin
¦ +-- hello
¦ +-- hello.c
+-- control
+-- control.tar.gz
+-- data.tar.gz
+-- debian-binary
+-- package.tar.gz
+-- postinst
+-- postrm
+-- preinst
+-- prerm
3. Here's the contents of each file:
debian-binary
2.0
control.tar.gz: tar czvf control.tar.gz control preinst postinst prerm
postrm
control
Package: opkg-hello
Version: 0.0.1
Description: Sample OPKG package
Section: cyanogenmod/applications
Priority: optional
Maintainer: Jiang Yio
Architecture: all
Homepage: http://inportb.com/
Source:
Depends:
preinst
#!/bin/sh
echo "preinst: preparing to install package"
postinst
#!/bin/sh
echo "postinst: installed package"
prerm
#!/bin/sh
echo "prerm: preparing to remove package"
postrm
#!/bin/sh
echo "postrm: removed package"
data.tar.gz: tar czvfP data.tar.gz ./bin/hello
/bin
hello
4. Still on the workstation, I proceeded with the following:
tar zcvf package.tar.gz debian-binary control.tar.gz data.tar.gz
ar -r package.opk package.tar.gz
mv package.opk /var/www
5. On the appliance, downloaded and ran the following:
/var/tmp> ./opkg-cl install package.opk
Collected errors:
* pkg_init_from_file: Malformed package file package.opk.
Can someone spot what I did wrong?
Thank you.
Based on the following article mentionned in the wiki...
www.inportb.com/2010/10/19/making-an-opkg-package/
... I attempted to build my first opkg package, which fails installing
with the following error: "Collected errors: * pkg_init_from_file:
Malformed package file package.opk."
Here's what I did:
1. mkdir /tmp/mypackage
2. /tmp/mypackage/ contains the following files:
+-- bin
¦ +-- hello
¦ +-- hello.c
+-- control
+-- control.tar.gz
+-- data.tar.gz
+-- debian-binary
+-- package.tar.gz
+-- postinst
+-- postrm
+-- preinst
+-- prerm
3. Here's the contents of each file:
debian-binary
2.0
control.tar.gz: tar czvf control.tar.gz control preinst postinst prerm
postrm
control
Package: opkg-hello
Version: 0.0.1
Description: Sample OPKG package
Section: cyanogenmod/applications
Priority: optional
Maintainer: Jiang Yio
Architecture: all
Homepage: http://inportb.com/
Source:
Depends:
preinst
#!/bin/sh
echo "preinst: preparing to install package"
postinst
#!/bin/sh
echo "postinst: installed package"
prerm
#!/bin/sh
echo "prerm: preparing to remove package"
postrm
#!/bin/sh
echo "postrm: removed package"
data.tar.gz: tar czvfP data.tar.gz ./bin/hello
/bin
hello
4. Still on the workstation, I proceeded with the following:
tar zcvf package.tar.gz debian-binary control.tar.gz data.tar.gz
ar -r package.opk package.tar.gz
mv package.opk /var/www
5. On the appliance, downloaded and ran the following:
/var/tmp> ./opkg-cl install package.opk
Collected errors:
* pkg_init_from_file: Malformed package file package.opk.
Can someone spot what I did wrong?
Thank you.
--
You received this message because you are subscribed to the Google Groups "opkg-devel" group.
To post to this group, send email to opkg-devel-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to opkg-devel+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/opkg-devel?hl=en.
You received this message because you are subscribed to the Google Groups "opkg-devel" group.
To post to this group, send email to opkg-devel-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To unsubscribe from this group, send email to opkg-devel+***@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/opkg-devel?hl=en.