opkg_svn.bb: make postinst/postrm work for opkg-nogpg too
authorJeremy Laine <jeremy.laine@m4x.org>
Wed, 30 Apr 2008 09:49:01 +0000 (09:49 +0000)
committerJeremy Laine <jeremy.laine@m4x.org>
Wed, 30 Apr 2008 09:49:01 +0000 (09:49 +0000)
packages/opkg/opkg_svn.bb

index 81401dd..58aaf74 100644 (file)
@@ -1,6 +1,6 @@
 require opkg.inc
 
-PR = "r3"
+PR = "r4"
 
 PACKAGES =+ "libopkg-dev libopkg"
 
@@ -12,7 +12,7 @@ FILES_libopkg = "${libdir}/*.so.*"
 OPKG_INIT_POSITION = "98"
 OPKG_INIT_POSITION_slugos = "41"
 
-pkg_postinst_opkg () {
+pkg_postinst_${PN} () {
 #!/bin/sh
 if [ "x$D" != "x" ]; then
        install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d
@@ -26,7 +26,7 @@ fi
 update-alternatives --install ${bindir}/opkg opkg ${bindir}/opkg-cl 100
 }
 
-pkg_postrm_opkg () {
+pkg_postrm_${PN} () {
 #!/bin/sh
 update-alternatives --remove opkg ${bindir}/opkg-cl
 }