diff options
author | Christian Heim <phreak@gentoo.org> | 2007-02-10 11:40:43 +0000 |
---|---|---|
committer | Christian Heim <phreak@gentoo.org> | 2007-02-10 11:40:43 +0000 |
commit | d74b90ebcc6649d5a6e91130d6bbf409119d9321 (patch) | |
tree | 2a14e8da650d9996294a3d0b2f1794a407871acc /net-wireless/hostapd | |
parent | Stable on ppc wrt bug 166029 (diff) | |
download | historical-d74b90ebcc6649d5a6e91130d6bbf409119d9321.tar.gz historical-d74b90ebcc6649d5a6e91130d6bbf409119d9321.tar.bz2 historical-d74b90ebcc6649d5a6e91130d6bbf409119d9321.zip |
Version bump, thanks to Conrad Kostecki <ConiKost at gmx.de> in #150769.
Package-Manager: portage-2.1.2-r9
Diffstat (limited to 'net-wireless/hostapd')
-rw-r--r-- | net-wireless/hostapd/ChangeLog | 11 | ||||
-rw-r--r-- | net-wireless/hostapd/Manifest | 66 | ||||
-rw-r--r-- | net-wireless/hostapd/files/digest-hostapd-0.4.7-r2 | 2 | ||||
-rw-r--r-- | net-wireless/hostapd/files/digest-hostapd-0.4.8 | 2 | ||||
-rw-r--r-- | net-wireless/hostapd/files/digest-hostapd-0.4.9 | 2 | ||||
-rw-r--r-- | net-wireless/hostapd/files/digest-hostapd-0.5.2 | 2 | ||||
-rw-r--r-- | net-wireless/hostapd/files/digest-hostapd-0.5.7 | 3 | ||||
-rw-r--r-- | net-wireless/hostapd/files/hostapd-0.5.7-conf.d | 9 | ||||
-rw-r--r-- | net-wireless/hostapd/files/hostapd-0.5.7-init.d | 50 | ||||
-rw-r--r-- | net-wireless/hostapd/hostapd-0.5.7.ebuild | 128 |
10 files changed, 253 insertions, 22 deletions
diff --git a/net-wireless/hostapd/ChangeLog b/net-wireless/hostapd/ChangeLog index 25fc86f0767a..9bb57afb39fc 100644 --- a/net-wireless/hostapd/ChangeLog +++ b/net-wireless/hostapd/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-wireless/hostapd -# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/ChangeLog,v 1.68 2006/09/10 11:49:37 kloeri Exp $ +# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/ChangeLog,v 1.69 2007/02/10 11:40:43 phreak Exp $ + +*hostapd-0.5.7 (10 Feb 2007) + + 10 Feb 2007; Christian Heim <phreak@gentoo.org> + +files/hostapd-0.5.7-conf.d, +files/hostapd-0.5.7-init.d, + +hostapd-0.5.7.ebuild: + Version bump, thanks to Conrad Kostecki <ConiKost at gmx.de> in #150769. 10 Sep 2006; Bryan Ăstergaard <kloeri@gentoo.org> metadata.xml: Remove brix from metadata.xml. diff --git a/net-wireless/hostapd/Manifest b/net-wireless/hostapd/Manifest index 9a8f3e79831c..d442e8d342cc 100644 --- a/net-wireless/hostapd/Manifest +++ b/net-wireless/hostapd/Manifest @@ -1,3 +1,6 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX hostapd-0.4.7-conf.d 425 RMD160 a6ec8e63f4ddf6758d1c86d9b21ad171df253e8b SHA1 c06cac84b146f7c3e610148839c925ae79ca6c32 SHA256 3a4c7e22541ac8cfcea928443dec4e5b0c01a4faccc34c3c11794e7bf8e1e605 MD5 d5a08b266b9a031229e8910fe8cd18b3 files/hostapd-0.4.7-conf.d 425 RMD160 a6ec8e63f4ddf6758d1c86d9b21ad171df253e8b files/hostapd-0.4.7-conf.d 425 @@ -54,12 +57,21 @@ AUX hostapd-0.5.4-init.d 954 RMD160 8765998fb7b637fb08cd5fe2cbcf501f90827d85 SHA MD5 bc180cbb8a7c6251a5c965287a85427d files/hostapd-0.5.4-init.d 954 RMD160 8765998fb7b637fb08cd5fe2cbcf501f90827d85 files/hostapd-0.5.4-init.d 954 SHA256 b02e0a77bc84a3750b35fd5c9d1295d9012dff4a604c0b546d9130a1a9f856a4 files/hostapd-0.5.4-init.d 954 -DIST hostapd-0.4.7.tar.gz 288016 -DIST hostapd-0.4.8.tar.gz 290829 -DIST hostapd-0.4.9.tar.gz 291630 -DIST hostapd-0.5.2.tar.gz 367925 +AUX hostapd-0.5.7-conf.d 245 RMD160 88b816218cb37d32fd940db17ece84d612c87f14 SHA1 0d88865c313bf1ffbc168029a13c76f288280a3d SHA256 916f4b14095ee4ec8a510391c883e9f01868e18d79a3d5cbeb13a104a793d45d +MD5 44e1d599bbbbabcb53ce925ee037e42b files/hostapd-0.5.7-conf.d 245 +RMD160 88b816218cb37d32fd940db17ece84d612c87f14 files/hostapd-0.5.7-conf.d 245 +SHA256 916f4b14095ee4ec8a510391c883e9f01868e18d79a3d5cbeb13a104a793d45d files/hostapd-0.5.7-conf.d 245 +AUX hostapd-0.5.7-init.d 956 RMD160 51558d2ad7267bcfdfbe6d872fb74187f97eb8b9 SHA1 76490d29c2b4757e5b9f9d3623327ee34a8dca74 SHA256 6e1fe35e6e9c3b5816fa76f86dd2918f3617b4301d93a24939f973de951b8bab +MD5 1c1dda0ea21b91702e5862d427344a1d files/hostapd-0.5.7-init.d 956 +RMD160 51558d2ad7267bcfdfbe6d872fb74187f97eb8b9 files/hostapd-0.5.7-init.d 956 +SHA256 6e1fe35e6e9c3b5816fa76f86dd2918f3617b4301d93a24939f973de951b8bab files/hostapd-0.5.7-init.d 956 +DIST hostapd-0.4.7.tar.gz 288016 RMD160 0f71232f90e0bfe4ca70611820269353d0679b47 SHA1 9b39c9b4e24882e4acfee70a05ee797db561776a SHA256 51633242467b463c2ae0215028df9ebce8fef459d05cd97dbc4115f88bc3f67a +DIST hostapd-0.4.8.tar.gz 290829 RMD160 91598e15e98f19213be7d2cc349d1d838ce958dc SHA1 4040836e22aba449ecdda60b23e2df497080708d SHA256 4675ae608a9f16e0ac519af2003ef694e7e13a4ecda2fcbe29f12a306e460551 +DIST hostapd-0.4.9.tar.gz 291630 RMD160 aad20c52edf7b9bf5d22ebb600711815fa826310 SHA1 2ea6c9ee8e843c93366474a311131e90d9c91341 SHA256 cdcb40fdad82d766d6098b8fabe093c679b5abd416563d03cf655ed42915c8ef +DIST hostapd-0.5.2.tar.gz 367925 RMD160 b9baabff282d01f9143cf83bfa6c06983f51d4ae SHA1 f2ab7fc9b35afb7d1d22489a5ba6d00c870aaabd SHA256 2c58c71d7efb0e595e47a5ea352cdda63b389c3e6709347f8adfe438ac9e147d DIST hostapd-0.5.3.tar.gz 385649 RMD160 9914c9d26c264bfbab52ef722a81a49fad9190a4 SHA1 24012a7c742adfac455db2dd5a1917034b90d109 SHA256 8681a00adf9478e37fb5b2423ed73af671f69f7e75d86ba49933b20cef9100b4 DIST hostapd-0.5.4.tar.gz 395052 RMD160 14f4de6f99ef37d2e80ead2b30195a7c0cb17350 SHA1 cba3f1a62133f4ef506298adc36f9e9069863925 SHA256 0c4865d24f9b27f68cb293ee1a9f8b4f60d1c4ab8daf32b46a65f0f5d7a47234 +DIST hostapd-0.5.7.tar.gz 458451 RMD160 188b6ca4365bd9e8d76b4b9c0c5a62a7d9f2cb66 SHA1 ff1050bcea89fdebbe7685eaa65e99556b056f27 SHA256 67dd20255807fbf13e07e8f5c9f089fd1213c63e736b792c979ed34ac8e84da3 EBUILD hostapd-0.4.7-r2.ebuild 2738 RMD160 98f448d3ad82d48b738f13ebd7fc477e48abc7d7 SHA1 0576ddf0fd2529cf99212f879eb4a0ef5e5a34a6 SHA256 8a847cf7c838d79b23f595f29d0d469789fdb0692a8aa00334cc9540a79af9e7 MD5 98674360a16af6d2ee36838a0e186c05 hostapd-0.4.7-r2.ebuild 2738 RMD160 98f448d3ad82d48b738f13ebd7fc477e48abc7d7 hostapd-0.4.7-r2.ebuild 2738 @@ -84,29 +96,43 @@ EBUILD hostapd-0.5.4.ebuild 3505 RMD160 3e7685140c1acde27b9a6e116ac61b0366a4230a MD5 4912cd0710fea3262e90a2b43ed9edaa hostapd-0.5.4.ebuild 3505 RMD160 3e7685140c1acde27b9a6e116ac61b0366a4230a hostapd-0.5.4.ebuild 3505 SHA256 be84011267b01a11405a8e8abd056eb0482afa7eb72251acb51fea861b60ae54 hostapd-0.5.4.ebuild 3505 -MISC ChangeLog 11452 RMD160 f991db349a3305af9a44e31b9934f37485338c56 SHA1 23b366b131c6a63c869d1c6c8aeefdeab3c06858 SHA256 962c152dacd6669c9689ab87d3fcfb038f874673e085e95719adc2b4fd265be6 -MD5 41adc6082f9d272abd01c796031dd496 ChangeLog 11452 -RMD160 f991db349a3305af9a44e31b9934f37485338c56 ChangeLog 11452 -SHA256 962c152dacd6669c9689ab87d3fcfb038f874673e085e95719adc2b4fd265be6 ChangeLog 11452 +EBUILD hostapd-0.5.7.ebuild 3500 RMD160 353769e6c20397bd5435f70c09de053eb3801bf8 SHA1 49e098b8a17f53c8262f3ab04d690e39d575d7d5 SHA256 6a17af567ccf42aa194942ce6a439fda48f1b55919f7ca287988692be69a33e9 +MD5 177621aa633774a255a5a524f0db3450 hostapd-0.5.7.ebuild 3500 +RMD160 353769e6c20397bd5435f70c09de053eb3801bf8 hostapd-0.5.7.ebuild 3500 +SHA256 6a17af567ccf42aa194942ce6a439fda48f1b55919f7ca287988692be69a33e9 hostapd-0.5.7.ebuild 3500 +MISC ChangeLog 11693 RMD160 eec2bcf8e59610c49b18d4c2a423cf85c492ed4b SHA1 03d5cc6a7db0a57d7efc020b194d8e79319cb90f SHA256 077352b5db63a17faeda885eb404288fbcaba00faddf8745d24ea99d0a2515b5 +MD5 90bb419076d970639474bfe786b51d46 ChangeLog 11693 +RMD160 eec2bcf8e59610c49b18d4c2a423cf85c492ed4b ChangeLog 11693 +SHA256 077352b5db63a17faeda885eb404288fbcaba00faddf8745d24ea99d0a2515b5 ChangeLog 11693 MISC metadata.xml 358 RMD160 f51b6f02df6647da8cc437f82e488ab3aa595fab SHA1 cc89332a1d8c1968f4fd4caec36e5d9af5bf62ae SHA256 afb3539f9fb6266ba2976a543fd645784d3893cc21958b3b9a8d824c076adcc5 MD5 8b8cb4dca165988da878b5ea301e5094 metadata.xml 358 RMD160 f51b6f02df6647da8cc437f82e488ab3aa595fab metadata.xml 358 SHA256 afb3539f9fb6266ba2976a543fd645784d3893cc21958b3b9a8d824c076adcc5 metadata.xml 358 -MD5 b0b607a1e367c39a3b14a50fd66d89b1 files/digest-hostapd-0.4.7-r2 65 -RMD160 d91034e9790578f79e02655fc736977121aaa5d7 files/digest-hostapd-0.4.7-r2 65 -SHA256 44f322e5bfff76dae52bb49f19420a50f798bb4793ded1f75b2e1ecd70068964 files/digest-hostapd-0.4.7-r2 65 -MD5 b889b17ff10dbe3193353f453f04be64 files/digest-hostapd-0.4.8 65 -RMD160 e66a4bb2827690aaaa5e296745d20af3f453da59 files/digest-hostapd-0.4.8 65 -SHA256 6b415726e286d0beb0ae520d3f14c6baf91cbb2569cfd27400d560755e6b4b8e files/digest-hostapd-0.4.8 65 -MD5 b6e6c055b71a94affe9d7c4386f12b2f files/digest-hostapd-0.4.9 65 -RMD160 eec90e38e68bec79660fe6dc2ea7205659717f1b files/digest-hostapd-0.4.9 65 -SHA256 0c596199d4f592b6265c41512da26b251b46cd32a52b05774ed0474c02b1b211 files/digest-hostapd-0.4.9 65 -MD5 371819cdecb937819dcca6c56f322ff3 files/digest-hostapd-0.5.2 65 -RMD160 589b9a065ac02428781b0a247a29e552f360892c files/digest-hostapd-0.5.2 65 -SHA256 ff9e7df43f6591ad09f12f8878c18bdf3f0fbbfba302d3712d9d499a3352dcd8 files/digest-hostapd-0.5.2 65 +MD5 ef5cd46754688b1d23798725307b7381 files/digest-hostapd-0.4.7-r2 241 +RMD160 f57358ba302be7306f6f9e7cb46f8795594580b2 files/digest-hostapd-0.4.7-r2 241 +SHA256 b8888cdc44a6b8d85205021bda61454b76fada2ec66257289c45353af2bdb153 files/digest-hostapd-0.4.7-r2 241 +MD5 eb84d4635228516108a48df1ca08f3e0 files/digest-hostapd-0.4.8 241 +RMD160 5d3ed230d0ac092282d0850a89f4e8cc6a82254d files/digest-hostapd-0.4.8 241 +SHA256 9880beb75d38513c0cf5f2e0df2bb2999b3cb73a27c1c30043e691c94cafce69 files/digest-hostapd-0.4.8 241 +MD5 c48cd61ab0efabd5485d2dd447ff75d8 files/digest-hostapd-0.4.9 241 +RMD160 b839fcb266e45b4e6470b51ff667d343173c554b files/digest-hostapd-0.4.9 241 +SHA256 d9f6d4f40d2cf10f7f214b31d6f1eb712b32ee034922d76d54e38507ecaa32c2 files/digest-hostapd-0.4.9 241 +MD5 f5152f91c3d3c24546e9e3ec319a12f3 files/digest-hostapd-0.5.2 241 +RMD160 3454a13c71eb6b56be6190eff0f08e67f1d85fef files/digest-hostapd-0.5.2 241 +SHA256 0d27ee4f5a519399ef75709d5a3f5b63211de547584dd396c699befe8b6111f3 files/digest-hostapd-0.5.2 241 MD5 716dc5933fa3c1f58d082430cc774671 files/digest-hostapd-0.5.3 241 RMD160 c6339da3c98200bd2dc340468aea805c6103d312 files/digest-hostapd-0.5.3 241 SHA256 6224c24d6b2b5b60cd37d6e5aa84c1f57a90fbb8c58b2032caafde4716178e15 files/digest-hostapd-0.5.3 241 MD5 99bcb8d0740e3ac7e9a70ea144d7a780 files/digest-hostapd-0.5.4 241 RMD160 5f4a86ccf0161970e1c49d3155a08fc642d052e3 files/digest-hostapd-0.5.4 241 SHA256 e55ceeac96313ba59269c6d218cf674a10abc476255b34267c7739c6d8a690a1 files/digest-hostapd-0.5.4 241 +MD5 9f47b501fe1abf0e39925cbb98fcdd5a files/digest-hostapd-0.5.7 241 +RMD160 f600c84c8b71dc3974c48bd150e3547b02929e3b files/digest-hostapd-0.5.7 241 +SHA256 a56fa48ee1f0d7a4ab3f374ec811069848cd06b103094ee84ba0e7cc8e4638d5 files/digest-hostapd-0.5.7 241 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.2 (GNU/Linux) + +iD8DBQFFza9DyuNVb5qfaOYRAo87AKCgRZmizXNrayX2sd0RE9gPLyMueACcCXS5 +U5B5zwUDrc8OFXIB3d+GNCk= +=Po7x +-----END PGP SIGNATURE----- diff --git a/net-wireless/hostapd/files/digest-hostapd-0.4.7-r2 b/net-wireless/hostapd/files/digest-hostapd-0.4.7-r2 index 4680e1c2c50f..971e491f101c 100644 --- a/net-wireless/hostapd/files/digest-hostapd-0.4.7-r2 +++ b/net-wireless/hostapd/files/digest-hostapd-0.4.7-r2 @@ -1 +1,3 @@ MD5 b299211691fe8a6840e7adafda351d2b hostapd-0.4.7.tar.gz 288016 +RMD160 0f71232f90e0bfe4ca70611820269353d0679b47 hostapd-0.4.7.tar.gz 288016 +SHA256 51633242467b463c2ae0215028df9ebce8fef459d05cd97dbc4115f88bc3f67a hostapd-0.4.7.tar.gz 288016 diff --git a/net-wireless/hostapd/files/digest-hostapd-0.4.8 b/net-wireless/hostapd/files/digest-hostapd-0.4.8 index 77582646ac24..120d3376f2e5 100644 --- a/net-wireless/hostapd/files/digest-hostapd-0.4.8 +++ b/net-wireless/hostapd/files/digest-hostapd-0.4.8 @@ -1 +1,3 @@ MD5 b8f30f23c04b74f18b2e4e6d8e0ee014 hostapd-0.4.8.tar.gz 290829 +RMD160 91598e15e98f19213be7d2cc349d1d838ce958dc hostapd-0.4.8.tar.gz 290829 +SHA256 4675ae608a9f16e0ac519af2003ef694e7e13a4ecda2fcbe29f12a306e460551 hostapd-0.4.8.tar.gz 290829 diff --git a/net-wireless/hostapd/files/digest-hostapd-0.4.9 b/net-wireless/hostapd/files/digest-hostapd-0.4.9 index 0de1901df547..dc2a52a0420e 100644 --- a/net-wireless/hostapd/files/digest-hostapd-0.4.9 +++ b/net-wireless/hostapd/files/digest-hostapd-0.4.9 @@ -1 +1,3 @@ MD5 3feba72240c24024b44fcd0b66f7c5d2 hostapd-0.4.9.tar.gz 291630 +RMD160 aad20c52edf7b9bf5d22ebb600711815fa826310 hostapd-0.4.9.tar.gz 291630 +SHA256 cdcb40fdad82d766d6098b8fabe093c679b5abd416563d03cf655ed42915c8ef hostapd-0.4.9.tar.gz 291630 diff --git a/net-wireless/hostapd/files/digest-hostapd-0.5.2 b/net-wireless/hostapd/files/digest-hostapd-0.5.2 index 39c3414070a2..a93274e2daa5 100644 --- a/net-wireless/hostapd/files/digest-hostapd-0.5.2 +++ b/net-wireless/hostapd/files/digest-hostapd-0.5.2 @@ -1 +1,3 @@ MD5 b7f4739ca4758798f8dc3b1ea9fd00d0 hostapd-0.5.2.tar.gz 367925 +RMD160 b9baabff282d01f9143cf83bfa6c06983f51d4ae hostapd-0.5.2.tar.gz 367925 +SHA256 2c58c71d7efb0e595e47a5ea352cdda63b389c3e6709347f8adfe438ac9e147d hostapd-0.5.2.tar.gz 367925 diff --git a/net-wireless/hostapd/files/digest-hostapd-0.5.7 b/net-wireless/hostapd/files/digest-hostapd-0.5.7 new file mode 100644 index 000000000000..4bb36555f4ab --- /dev/null +++ b/net-wireless/hostapd/files/digest-hostapd-0.5.7 @@ -0,0 +1,3 @@ +MD5 d5113247dc6ee17106e6bc7cb89aa507 hostapd-0.5.7.tar.gz 458451 +RMD160 188b6ca4365bd9e8d76b4b9c0c5a62a7d9f2cb66 hostapd-0.5.7.tar.gz 458451 +SHA256 67dd20255807fbf13e07e8f5c9f089fd1213c63e736b792c979ed34ac8e84da3 hostapd-0.5.7.tar.gz 458451 diff --git a/net-wireless/hostapd/files/hostapd-0.5.7-conf.d b/net-wireless/hostapd/files/hostapd-0.5.7-conf.d new file mode 100644 index 000000000000..7d05735eb3b4 --- /dev/null +++ b/net-wireless/hostapd/files/hostapd-0.5.7-conf.d @@ -0,0 +1,9 @@ +# Space separated List of interfaces which needs to be started before +# hostapd +INTERFACES="wlan0" + +# Space separated list of configuration files +CONFIGS="/etc/hostapd/hostapd.conf" + +# Extra options to pass to hostapd, see hostapd(8) +OPTIONS="" diff --git a/net-wireless/hostapd/files/hostapd-0.5.7-init.d b/net-wireless/hostapd/files/hostapd-0.5.7-init.d new file mode 100644 index 000000000000..f2e2911f3838 --- /dev/null +++ b/net-wireless/hostapd/files/hostapd-0.5.7-init.d @@ -0,0 +1,50 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/files/hostapd-0.5.7-init.d,v 1.1 2007/02/10 11:40:43 phreak Exp $ + +opts="start stop reload" + +depend() { + local iface + + for iface in ${INTERFACES}; do + need net.${iface} + done + + use logger +} + +checkconfig() { + local file + + for file in ${CONFIGS}; do + if [[ ! -r ${file} ]]; then + eerror "hostapd configuration file (${CONFIG}) not found" + return 1 + fi + done +} + +start() { + checkconfig || return 1 + + ebegin "Starting hostapd" + start-stop-daemon --start --exec /usr/sbin/hostapd \ + -- -B ${OPTIONS} ${CONFIGS} + eend ${?} +} + +stop() { + ebegin "Stopping hostapd" + start-stop-daemon --stop --exec /usr/sbin/hostapd + eend ${?} +} + +reload() { + checkconfig || return 1 + + ebegin "Reloading hostapd configuration" + kill -HUP $(pidof /usr/sbin/hostapd) > /dev/null 2>&1 + eend ${?} +} diff --git a/net-wireless/hostapd/hostapd-0.5.7.ebuild b/net-wireless/hostapd/hostapd-0.5.7.ebuild new file mode 100644 index 000000000000..b548f5472d2f --- /dev/null +++ b/net-wireless/hostapd/hostapd-0.5.7.ebuild @@ -0,0 +1,128 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/hostapd-0.5.7.ebuild,v 1.1 2007/02/10 11:40:43 phreak Exp $ + +inherit toolchain-funcs + +DESCRIPTION="IEEE 802.11 wireless LAN Host AP daemon" +HOMEPAGE="http://hostap.epitest.fi" +SRC_URI="http://hostap.epitest.fi/releases/${P}.tar.gz" + +LICENSE="|| ( GPL-2 BSD )" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +IUSE="ipv6 logwatch madwifi ssl" + +RDEPEND="ssl? ( dev-libs/openssl ) + madwifi? ( || ( net-wireless/madwifi-ng net-wireless/madwifi-old ) )" +DEPEND="${RDEPEND}" + +src_unpack() { + local CONFIG="${S}"/.config + + unpack ${A} + + sed -i -e "s:/etc/hostapd:/etc/hostapd/hostapd:g" \ + "${S}"/hostapd.conf + + # toolchain setup + echo "CC = $(tc-getCC)" > ${CONFIG} + + # authentication methods + echo "CONFIG_EAP=y" >> ${CONFIG} + echo "CONFIG_EAP_AKA=y" >> ${CONFIG} + echo "CONFIG_EAP_GTC=y" >> ${CONFIG} + echo "CONFIG_EAP_MD5=y" >> ${CONFIG} + echo "CONFIG_EAP_PAX=y" >> ${CONFIG} + echo "CONFIG_EAP_PSK=y" >> ${CONFIG} + echo "CONFIG_EAP_SIM=y" >> ${CONFIG} + echo "CONFIG_EAP_TLV=y" >> ${CONFIG} + echo "CONFIG_IAPP=y" >> ${CONFIG} + echo "CONFIG_PKCS12=y" >> ${CONFIG} + echo "CONFIG_RADIUS_SERVER=y" >> ${CONFIG} + echo "CONFIG_RSN_PREAUTH=y" >> ${CONFIG} + echo "CONFIG_PEERKEY=y" >> ${CONFIG} + + if use ssl; then + # SSL authentication methods + echo "CONFIG_EAP_MSCHAPV2=y" >> ${CONFIG} + echo "CONFIG_EAP_PEAP=y" >> ${CONFIG} + echo "CONFIG_EAP_TLS=y" >> ${CONFIG} + echo "CONFIG_EAP_TTLS=y" >> ${CONFIG} + fi + + if use ipv6; then + echo "CONFIG_IPV6=y" >> ${CONFIG} + fi + + # Linux specific drivers + echo "CONFIG_DRIVER_HOSTAP=y" >> ${CONFIG} + echo "CONFIG_DRIVER_PRISM54=y" >> ${CONFIG} + echo "CONFIG_DRIVER_WIRED=y" >> ${CONFIG} + + if use madwifi; then + # Add include path for madwifi-driver headers + echo "CFLAGS += -I${ROOT}/usr/include/madwifi" >> ${CONFIG} + echo "CONFIG_DRIVER_MADWIFI=y" >> ${CONFIG} + fi +} + +src_compile() { + emake || die "emake failed" + + if use ssl; then + emake nt_password_hash || die "emake nt_password_hash failed" + emake hlr_auc_gw || die "emake hlr_auc_gw failed" + fi +} + +src_install() { + insinto /etc/hostapd + doins hostapd.conf hostapd.accept hostapd.deny \ + hostapd.eap_user hostapd.radius_clients hostapd.sim_db hostapd.wpa_psk + + dosbin hostapd + dobin hostapd_cli + use ssl && dobin nt_password_hash + use ssl && dobin hlr_auc_gw + + newinitd "${FILESDIR}"/${P}-init.d hostapd + newconfd "${FILESDIR}"/${P}-conf.d hostapd + + doman hostapd.8 hostapd_cli.1 + + dodoc ChangeLog developer.txt README + + docinto examples + dodoc madwifi.conf wired.conf + + if use logwatch; then + insinto /etc/log.d/conf/services/ + doins logwatch/hostapd.conf + + exeinto /etc/log.d/scripts/services/ + doexe logwatch/hostapd + fi +} + +pkg_postinst() { + einfo + einfo "In order to use ${PN} you need to set up your wireless card" + einfo "for master mode in /etc/conf.d/net or /etc/conf.d/wireless" + einfo "and then start /etc/init.d/hostapd." + einfo + einfo "Example configuration:" + einfo + einfo "config_wlan0=( \"192.168.1.1/24\" )" + einfo "channel_wlan0=\"6\"" + einfo "essid_wlan0=\"test\"" + einfo "mode_wlan0=\"master\"" + einfo + if use madwifi; then + einfo "This package now compiles against the headers installed by" + einfo "the madwifi driver. You should remerge ${PN} after" + einfo "upgrading your madwifi driver." + einfo + fi +} |