DESCRIPTION = "Moblin feed configuration files (Online package repositories)"
 
-PR = "r1"
+PR = "r2"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 FEEDNAMEPREFIX ?= "INVALID"
 do_compile() {
        mkdir -p ${S}/${sysconfdir}/opkg/
 
-       archconf=${S}/${sysconfdir}/opkg/arch.conf
-
-       rm -f $archconf
        ipkgarchs="${PACKAGE_ARCHS}"
-       priority=1
-       for arch in $ipkgarchs; do 
-               echo "arch $arch $priority" >> $archconf
-               priority=$(expr $priority + 5)
-       done
 
        basefeedconf=${S}/${sysconfdir}/opkg/base-feeds.conf
 
 
 FILES_${PN} = "${sysconfdir}/opkg/ "
 
-CONFFILES_${PN} += "${sysconfdir}/opkg/base-feeds.conf \
-                    ${sysconfdir}/opkg/arch.conf"
-
+CONFFILES_${PN} += "${sysconfdir}/opkg/base-feeds.conf"
 
--- /dev/null
+DESCRIPTION = "Base configuration files for opkg"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+do_compile() {
+       mkdir -p ${S}/${sysconfdir}/opkg/
+
+       archconf=${S}/${sysconfdir}/opkg/arch.conf
+
+       rm -f $archconf
+       ipkgarchs="${PACKAGE_ARCHS}"
+       priority=1
+       for arch in $ipkgarchs; do 
+               echo "arch $arch $priority" >> $archconf
+               priority=$(expr $priority + 5)
+       done
+}
+
+
+do_install () {
+       install -d ${D}${sysconfdir}/opkg
+       install -m 0644  ${S}/${sysconfdir}/opkg/* ${D}${sysconfdir}/opkg/
+}
+
+FILES_${PN} = "${sysconfdir}/opkg/ "
+
+CONFFILES_${PN} += "${sysconfdir}/opkg/arch.conf"
+
 
 PROVIDES += "virtual/update-alternatives"
 RPROVIDES_update-alternatives-cworth += "update-alternatives"
 RCONFLICTS_update-alternatives-cworth = "update-alternatives-dpkg"
-RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives}"
+RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives} opkg-config-base"
 RDEPENDS_${PN}_virtclass-native = ""
 RDEPENDS_${PN}_virtclass-nativesdk = ""
 PACKAGE_ARCH_update-alternatives-cworth = "all"
 
-PR = "r11"
+PR = "r12"
 
 PACKAGES =+ "libopkg-dev libopkg update-alternatives-cworth"