diff options
Diffstat (limited to 'meta-oe/recipes-connectivity/hostapd/hostapd_2.2.bb')
-rw-r--r-- | meta-oe/recipes-connectivity/hostapd/hostapd_2.2.bb | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/hostapd/hostapd_2.2.bb b/meta-oe/recipes-connectivity/hostapd/hostapd_2.2.bb new file mode 100644 index 000000000..b75f2b9a7 --- /dev/null +++ b/meta-oe/recipes-connectivity/hostapd/hostapd_2.2.bb | |||
@@ -0,0 +1,48 @@ | |||
1 | HOMEPAGE = "http://hostap.epitest.fi" | ||
2 | SECTION = "kernel/userland" | ||
3 | LICENSE = "GPLv2 | BSD" | ||
4 | LIC_FILES_CHKSUM = "file://README;md5=0854a4da34ac3990770794d771fac7fd" | ||
5 | DEPENDS = "libnl openssl" | ||
6 | SUMMARY = "User space daemon for extended IEEE 802.11 management" | ||
7 | |||
8 | inherit update-rc.d systemd | ||
9 | INITSCRIPT_NAME = "hostapd" | ||
10 | |||
11 | SYSTEMD_SERVICE_${PN} = "hostapd.service" | ||
12 | SYSTEMD_AUTO_ENABLE_${PN} = "disable" | ||
13 | |||
14 | DEFAULT_PREFERENCE = "-1" | ||
15 | |||
16 | SRC_URI = " \ | ||
17 | http://hostap.epitest.fi/releases/hostapd-${PV}.tar.gz \ | ||
18 | file://defconfig \ | ||
19 | file://init \ | ||
20 | file://hostapd.service \ | ||
21 | " | ||
22 | |||
23 | S = "${WORKDIR}/hostapd-${PV}/hostapd" | ||
24 | |||
25 | |||
26 | do_configure() { | ||
27 | install -m 0644 ${WORKDIR}/defconfig ${S}/.config | ||
28 | } | ||
29 | |||
30 | do_compile() { | ||
31 | export CFLAGS="-MMD -O2 -Wall -g -I${STAGING_INCDIR}/libnl3" | ||
32 | make | ||
33 | } | ||
34 | |||
35 | do_install() { | ||
36 | install -d ${D}${sbindir} ${D}${sysconfdir}/init.d ${D}${systemd_unitdir}/system/ | ||
37 | install -m 0644 ${S}/hostapd.conf ${D}${sysconfdir} | ||
38 | install -m 0755 ${S}/hostapd ${D}${sbindir} | ||
39 | install -m 0755 ${S}/hostapd_cli ${D}${sbindir} | ||
40 | install -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/hostapd | ||
41 | install -m 0644 ${WORKDIR}/hostapd.service ${D}${systemd_unitdir}/system/ | ||
42 | sed -i -e 's,@SBINDIR@,${sbindir},g' -e 's,@SYSCONFDIR@,${sysconfdir},g' ${D}${systemd_unitdir}/system/hostapd.service | ||
43 | } | ||
44 | |||
45 | CONFFILES_${PN} += "${sysconfdir}/hostapd.conf" | ||
46 | |||
47 | SRC_URI[md5sum] = "23c1f78a693c3288802d516adb7fd289" | ||
48 | SRC_URI[sha256sum] = "f15b6bcb434378860ea5b88dffed7f54d8cb71fff2146de0f006977a5e25a882" | ||