S = "${WORKDIR}/ipkg/C"
inherit autotools libtool
+
+pkg_postinst () {
+#!/bin/sh
+if [ "x$D" != "x" ]; then
+ install -d ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d
+ # this needs to happen after S35mountall so that /tmp is available
+ echo -e "#!/bin/sh\nipkg-cl configure\nrm -f \$0" > ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S36configure
+ chmod 755 ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S36configure
+fi
+
+update-alternatives --install /usr/bin/ipkg ipkg /usr/bin/ipkg-cl 100
+}
+
+pkg_postrm () {
+#!/bin/sh
+update-alternatives --remove ipkg /usr/bin/ipkg-cl
+}
+++ /dev/null
-DESCRIPTION = "A driver for wireless LAN cards based on Hermes(Orinoco) cards. \
-Also contains support for cards using downloadable firmware, i.e. the Symbol/Socket family."
-SECTION = "base"
-PRIORITY = "optional"
-MAINTAINER = "Michael Lauer <mickey@Vanille.de>"
-LICENSE = "GPL"
-
-export CVS_RSH = "ssh"
-SRC_URI = "cvs://anoncvs@savannah.nongnu.org/cvsroot/orinoco;module=orinoco;date=${PV};method=ext \
- file://${FILESDIR}/compile.patch;patch=1"
-S = "${WORKDIR}/orinoco"
-
-inherit module
-
-do_install() {
- install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/net/wireless
- install -d ${D}/etc/pcmcia
- install -m 0755 *.o ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/net/wireless/
- install -m 0644 ${FILESDIR}/spectrum.conf ${D}/etc/pcmcia/
- install -m 0644 hermes.conf ${D}/etc/pcmcia/
-}