From ea8b801288d870fea3c5137e8bda9e4bb9942329 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Mon, 20 Mar 2006 19:18:11 +0000 Subject: hostap-daemon: create common .inc file to simplify managment --- packages/hostap/hostap-daemon.inc | 32 ++++++++++++++++++++++++++++++++ packages/hostap/hostap-daemon_0.3.7.bb | 33 ++------------------------------- packages/hostap/hostap-daemon_0.4.4.bb | 33 ++------------------------------- 3 files changed, 36 insertions(+), 62 deletions(-) create mode 100644 packages/hostap/hostap-daemon.inc (limited to 'packages/hostap') diff --git a/packages/hostap/hostap-daemon.inc b/packages/hostap/hostap-daemon.inc new file mode 100644 index 0000000000..231978df83 --- /dev/null +++ b/packages/hostap/hostap-daemon.inc @@ -0,0 +1,32 @@ +DESCRIPTION = "User space daemon for extended IEEE 802.11 management" +HOMEPAGE = "http://hostap.epitest.fi" +SECTION = "kernel/userland" +PRIORITY = "optional" +MAINTAINER = "Michael 'Mickey' Lauer " +LICENSE = "GPL" +RDEPENDS = "virtual/kernel-hostap hostap-utils (${PV})" +DEPENDS_mtx-1_append = "madwifi-modules" + +SRC_URI = "http://hostap.epitest.fi/releases/hostapd-${PV}.tar.gz \ + file://makefile-cross.diff;patch=1;pnum=0 \ + file://madwifi-bsd-fix.diff;patch=1;pnum=0 \ + file://defconfig \ + file://init" + +S = "${WORKDIR}/hostapd-${PV}" + +do_configure() { + install -m 0644 ${WORKDIR}/defconfig ${S}/.config +} + +do_compile() { + CFLAGS='${CFLAGS}' CC='${CC}' make +} + +do_install() { + install -d ${D}${sbindir} ${D}${sysconfdir}/init.d + make TARGET_PREFIX=${D}${sbindir} install + install -m 0644 hostapd.conf ${D}${sysconfdir} + install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/hostapd +} + diff --git a/packages/hostap/hostap-daemon_0.3.7.bb b/packages/hostap/hostap-daemon_0.3.7.bb index 78fef559ed..7eb822c0d4 100644 --- a/packages/hostap/hostap-daemon_0.3.7.bb +++ b/packages/hostap/hostap-daemon_0.3.7.bb @@ -1,32 +1,3 @@ -DESCRIPTION = "User space daemon for extended IEEE 802.11 management" -HOMEPAGE = "http://hostap.epitest.fi" -SECTION = "kernel/userland" -PRIORITY = "optional" -MAINTAINER = "Michael 'Mickey' Lauer " -LICENSE = "GPL" -RDEPENDS = "virtual/kernel-hostap hostap-utils (${PV})" -DEPENDS_mtx-1_append = "madwifi-modules" -PR = "r1" - -SRC_URI = "http://hostap.epitest.fi/releases/hostapd-${PV}.tar.gz \ - file://makefile-cross.diff;patch=1;pnum=0 \ - file://madwifi-bsd-fix.diff;patch=1;pnum=0 \ - file://defconfig \ - file://init" - -S = "${WORKDIR}/hostapd-${PV}" +include hostap-daemon.inc -do_configure() { - install -m 0644 ${WORKDIR}/defconfig ${S}/.config -} - -do_compile() { - CFLAGS='${CFLAGS}' CC='${CC}' make -} - -do_install() { - install -d ${D}${sbindir} ${D}${sysconfdir}/init.d - make TARGET_PREFIX=${D}${sbindir} install - install -m 0644 hostapd.conf ${D}${sysconfdir} - install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/hostapd -} +PR = "r1" diff --git a/packages/hostap/hostap-daemon_0.4.4.bb b/packages/hostap/hostap-daemon_0.4.4.bb index 78fef559ed..7eb822c0d4 100644 --- a/packages/hostap/hostap-daemon_0.4.4.bb +++ b/packages/hostap/hostap-daemon_0.4.4.bb @@ -1,32 +1,3 @@ -DESCRIPTION = "User space daemon for extended IEEE 802.11 management" -HOMEPAGE = "http://hostap.epitest.fi" -SECTION = "kernel/userland" -PRIORITY = "optional" -MAINTAINER = "Michael 'Mickey' Lauer " -LICENSE = "GPL" -RDEPENDS = "virtual/kernel-hostap hostap-utils (${PV})" -DEPENDS_mtx-1_append = "madwifi-modules" -PR = "r1" - -SRC_URI = "http://hostap.epitest.fi/releases/hostapd-${PV}.tar.gz \ - file://makefile-cross.diff;patch=1;pnum=0 \ - file://madwifi-bsd-fix.diff;patch=1;pnum=0 \ - file://defconfig \ - file://init" - -S = "${WORKDIR}/hostapd-${PV}" +include hostap-daemon.inc -do_configure() { - install -m 0644 ${WORKDIR}/defconfig ${S}/.config -} - -do_compile() { - CFLAGS='${CFLAGS}' CC='${CC}' make -} - -do_install() { - install -d ${D}${sbindir} ${D}${sysconfdir}/init.d - make TARGET_PREFIX=${D}${sbindir} install - install -m 0644 hostapd.conf ${D}${sysconfdir} - install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/hostapd -} +PR = "r1" -- cgit 1.2.3-korg