From 52a906868117bd95fd3e4a3dfe41608c4fc3f600 Mon Sep 17 00:00:00 2001 From: Rolf Leggewie Date: Mon, 14 May 2007 22:39:38 +0000 Subject: wlan-ng-utils: unify --- packages/wlan-ng/wlan-ng-utils.inc | 65 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 packages/wlan-ng/wlan-ng-utils.inc (limited to 'packages/wlan-ng/wlan-ng-utils.inc') diff --git a/packages/wlan-ng/wlan-ng-utils.inc b/packages/wlan-ng/wlan-ng-utils.inc new file mode 100644 index 0000000000..bfd2ce377c --- /dev/null +++ b/packages/wlan-ng/wlan-ng-utils.inc @@ -0,0 +1,65 @@ +DESCRIPTION = "linux-wlan-ng userland utilities" +HOMEPAGE = "http://www.linux-wlan.org" +SECTION = "kernel/userland" +LICENSE = "GPL" +DEPENDS = "virtual/kernel" + +SRC_URI = "ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/linux-wlan-ng-${PV}.tar.bz2 \ + file://only-the-utils.patch;patch=1 \ + file://wlan-ng.modutils \ + file://wlan.agent \ + file://usbctl \ + file://resume \ + file://pre-up \ + file://post-down \ + file://config.in" + +# yeah, it's kind of backwards, but otherwise the config step will fail +inherit module + +do_configure() { + install -m 0655 ${WORKDIR}/config.in ${S}/config.in + oe_runmake LINUX_SRC=${KERNEL_SOURCE} auto_config + + if grep CONFIG_PCMCIA=[ym] ${STAGING_KERNEL_DIR}/kernel-config; then + echo "PRISM2_PCMCIA=y" >> config.mk + echo "WLAN_KERN_PCMCIA=y" >> config.mk + fi + echo "TARGET_ROOT_ON_HOST=${D}/" >> config.mk + echo "FIRMWARE_DIR=/etc/wlan" >> config.mk + echo "TARGET_MODDIR=${D}/lib/modules/${KERNEL_VERSION}/wlan-ng" >> config.mk + echo "TARGET_INST_EXEDIR=${D}/sbin" >> config.mk + echo "RC_DIR=${sysconfdir}/" >> config.mk + echo "CC=${CC}" >> config.mk + echo "LD=${LD}" >> config.mk + + # Shut up, you broken buildsystem + install -m 0655 config.mk src/prism2/config.mk + install -d src/prism2/driver/include + ln -sf ${S}/src/include/wlan src/prism2/driver/include/wlan + ln -sf ${S}/src/prism2/include/prism2 src/prism2/driver/include/prism2 +} + +do_compile() { + oe_runmake all +} + +do_install() { + oe_runmake install + mkdir -p ${D}${sysconfdir}/modutils/ + mkdir -p ${D}${sysconfdir}/hotplug/ + mkdir -p ${D}${base_sbindir}/ + install -m 0644 ${WORKDIR}/wlan-ng.modutils ${D}${sysconfdir}/modutils/wlan-ng.conf + install -m 0755 ${WORKDIR}/wlan.agent ${D}${sysconfdir}/hotplug/wlan.agent + install -d ${D}${sysconfdir}/network/if-pre-up.d + install -m 0755 ${WORKDIR}/pre-up ${D}${sysconfdir}/network/if-pre-up.d/wlan-ng + install -d ${D}${sysconfdir}/network/if-post-down.d + install -m 0755 ${WORKDIR}/post-down ${D}${sysconfdir}/network/if-post-down.d/wlan-ng + install -d ${D}${sysconfdir}/apm/resume.d + install -m 0755 ${WORKDIR}/resume ${D}${sysconfdir}/apm/resume.d/wlan-ng + install -m 0755 ${WORKDIR}/usbctl ${D}${base_sbindir}/usbctl + install -d ${D}${mandir}/man1 + install -m 0644 ${S}/man/*.1 ${D}${mandir}/man1/ +} + +FILES_${PN} = "/etc /sbin" -- cgit v1.2.3 From e7f57a37a1c80f37eda84798befd772bc7f9321f Mon Sep 17 00:00:00 2001 From: Rolf Leggewie Date: Mon, 14 May 2007 22:49:37 +0000 Subject: wlan-ng-utils: put ${S} back in. It is indeed needed after all ;-) --- packages/wlan-ng/wlan-ng-utils.inc | 1 + 1 file changed, 1 insertion(+) (limited to 'packages/wlan-ng/wlan-ng-utils.inc') diff --git a/packages/wlan-ng/wlan-ng-utils.inc b/packages/wlan-ng/wlan-ng-utils.inc index bfd2ce377c..2b47b51241 100644 --- a/packages/wlan-ng/wlan-ng-utils.inc +++ b/packages/wlan-ng/wlan-ng-utils.inc @@ -3,6 +3,7 @@ HOMEPAGE = "http://www.linux-wlan.org" SECTION = "kernel/userland" LICENSE = "GPL" DEPENDS = "virtual/kernel" +S = "${WORKDIR}/linux-wlan-ng-${PV}" SRC_URI = "ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/linux-wlan-ng-${PV}.tar.bz2 \ file://only-the-utils.patch;patch=1 \ -- cgit v1.2.3 From d00f3c23f5b44d6abdbdbaa969077582b1763d8e Mon Sep 17 00:00:00 2001 From: Rolf Leggewie Date: Mon, 14 May 2007 22:51:57 +0000 Subject: wlan-ng-utils: package up debug files. Fixes QA compilation error. --- packages/wlan-ng/wlan-ng-utils.inc | 1 + 1 file changed, 1 insertion(+) (limited to 'packages/wlan-ng/wlan-ng-utils.inc') diff --git a/packages/wlan-ng/wlan-ng-utils.inc b/packages/wlan-ng/wlan-ng-utils.inc index 2b47b51241..cc1ec927e0 100644 --- a/packages/wlan-ng/wlan-ng-utils.inc +++ b/packages/wlan-ng/wlan-ng-utils.inc @@ -63,4 +63,5 @@ do_install() { install -m 0644 ${S}/man/*.1 ${D}${mandir}/man1/ } +FILES_${PN}_dbg += "/sbin/.debug/" FILES_${PN} = "/etc /sbin" -- cgit v1.2.3 From 5b6dc68808a450f90ed5a18393dc9bd038d065f5 Mon Sep 17 00:00:00 2001 From: Rolf Leggewie Date: Tue, 15 May 2007 08:19:31 +0000 Subject: wlan-ng-utils: fix packaging issues * fix spelling mistake in package debug files * while we're at it, package doc files * Bump PR --- packages/wlan-ng/wlan-ng-utils.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages/wlan-ng/wlan-ng-utils.inc') diff --git a/packages/wlan-ng/wlan-ng-utils.inc b/packages/wlan-ng/wlan-ng-utils.inc index cc1ec927e0..fe00e161d3 100644 --- a/packages/wlan-ng/wlan-ng-utils.inc +++ b/packages/wlan-ng/wlan-ng-utils.inc @@ -63,5 +63,6 @@ do_install() { install -m 0644 ${S}/man/*.1 ${D}${mandir}/man1/ } -FILES_${PN}_dbg += "/sbin/.debug/" +FILES_${PN}-doc += "/usr/local/man" +FILES_${PN}-dbg += "/sbin/.debug" FILES_${PN} = "/etc /sbin" -- cgit v1.2.3