diff options
| author | Dongxiao Xu <dongxiao.xu@intel.com> | 2010-07-21 10:58:28 +0800 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-21 16:00:58 +0100 |
| commit | 36bc4592f4f0e4b4afaba6a0eba21ee9d4ffcfb1 (patch) | |
| tree | 5f8934d0c7fde07abcdfdcb81c9144646675694c /meta/packages/opkg/opkg_0.1.8.bb | |
| parent | 21fae7e2ec4891e00a611413f1be14ab71947236 (diff) | |
| download | poky-36bc4592f4f0e4b4afaba6a0eba21ee9d4ffcfb1.tar.gz | |
opkg: Upgraded to version 0.1.8
Use stable release as default recipe.
Remove logfix.patch since the logic is already in latest version package
Also fix the metadata
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Diffstat (limited to 'meta/packages/opkg/opkg_0.1.8.bb')
| -rw-r--r-- | meta/packages/opkg/opkg_0.1.8.bb | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/meta/packages/opkg/opkg_0.1.8.bb b/meta/packages/opkg/opkg_0.1.8.bb new file mode 100644 index 0000000000..dcd6fb62ea --- /dev/null +++ b/meta/packages/opkg/opkg_0.1.8.bb | |||
| @@ -0,0 +1,53 @@ | |||
| 1 | require opkg.inc | ||
| 2 | |||
| 3 | PROVIDES += "virtual/update-alternatives" | ||
| 4 | RPROVIDES_update-alternatives-cworth += "update-alternatives" | ||
| 5 | RCONFLICTS_update-alternatives-cworth = "update-alternatives-dpkg" | ||
| 6 | RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives} opkg-config-base" | ||
| 7 | RDEPENDS_${PN}_virtclass-native = "" | ||
| 8 | RDEPENDS_${PN}_virtclass-nativesdk = "" | ||
| 9 | PACKAGE_ARCH_update-alternatives-cworth = "all" | ||
| 10 | |||
| 11 | SRC_URI = "http://opkg.googlecode.com/files/opkg-${PV}.tar.gz \ | ||
| 12 | file://opkg_unarchive.patch \ | ||
| 13 | file://add_vercmp.patch \ | ||
| 14 | file://headerfix.patch" | ||
| 15 | |||
| 16 | PR = "r0" | ||
| 17 | |||
| 18 | PACKAGES =+ "libopkg-dev libopkg update-alternatives-cworth" | ||
| 19 | |||
| 20 | FILES_update-alternatives-cworth = "${bindir}/update-alternatives" | ||
| 21 | FILES_libopkg-dev = "${libdir}/*.a ${libdir}/*.la ${libdir}/*.so" | ||
| 22 | FILES_libopkg = "${libdir}/*.so.* ${libdir}/opkg/" | ||
| 23 | |||
| 24 | # We need to create the lock directory | ||
| 25 | do_install_append() { | ||
| 26 | install -d ${D}${libdir}/opkg | ||
| 27 | } | ||
| 28 | |||
| 29 | # Define a variable to allow distros to run configure earlier. | ||
| 30 | # (for example, to enable loading of ethernet kernel modules before networking starts) | ||
| 31 | OPKG_INIT_POSITION = "98" | ||
| 32 | OPKG_INIT_POSITION_slugos = "41" | ||
| 33 | |||
| 34 | pkg_postinst_${PN} () { | ||
| 35 | #!/bin/sh | ||
| 36 | if [ "x$D" != "x" ]; then | ||
| 37 | install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d | ||
| 38 | # this happens at S98 where our good 'ole packages script used to run | ||
| 39 | echo "#!/bin/sh | ||
| 40 | opkg-cl configure | ||
| 41 | rm -f /${sysconfdir}/rcS.d/S${OPKG_INIT_POSITION}configure | ||
| 42 | " > $D${sysconfdir}/rcS.d/S${OPKG_INIT_POSITION}configure | ||
| 43 | chmod 0755 $D${sysconfdir}/rcS.d/S${OPKG_INIT_POSITION}configure | ||
| 44 | fi | ||
| 45 | |||
| 46 | update-alternatives --install ${bindir}/opkg opkg ${bindir}/opkg-cl 100 | ||
| 47 | } | ||
| 48 | |||
| 49 | pkg_postrm_${PN} () { | ||
| 50 | #!/bin/sh | ||
| 51 | update-alternatives --remove opkg ${bindir}/opkg-cl | ||
| 52 | } | ||
| 53 | |||
