summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2006-06-21 19:59:36 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2006-06-21 19:59:36 +0000
commitd5a9d72e3abf2232d16f5e05c0e5e6a281982c77 (patch)
tree1e71a7c113b6438b6b2c5a57464fe56793d399a7 /net-wireless/hostapd/files
parentNew developer snapshot. (diff)
downloadgentoo-2-d5a9d72e3abf2232d16f5e05c0e5e6a281982c77.tar.gz
gentoo-2-d5a9d72e3abf2232d16f5e05c0e5e6a281982c77.tar.bz2
gentoo-2-d5a9d72e3abf2232d16f5e05c0e5e6a281982c77.zip
New developer snapshot.
(Portage version: 2.1)
Diffstat (limited to 'net-wireless/hostapd/files')
-rw-r--r--net-wireless/hostapd/files/digest-hostapd-0.5.32
-rw-r--r--net-wireless/hostapd/files/digest-hostapd-0.5.43
-rw-r--r--net-wireless/hostapd/files/hostapd-0.5.4-conf.d9
-rw-r--r--net-wireless/hostapd/files/hostapd-0.5.4-init.d50
4 files changed, 64 insertions, 0 deletions
diff --git a/net-wireless/hostapd/files/digest-hostapd-0.5.3 b/net-wireless/hostapd/files/digest-hostapd-0.5.3
index b26698dd068c..0bacfb28490f 100644
--- a/net-wireless/hostapd/files/digest-hostapd-0.5.3
+++ b/net-wireless/hostapd/files/digest-hostapd-0.5.3
@@ -1 +1,3 @@
MD5 4e3134e8b0d86e831230f8c620fd81bb hostapd-0.5.3.tar.gz 385649
+RMD160 9914c9d26c264bfbab52ef722a81a49fad9190a4 hostapd-0.5.3.tar.gz 385649
+SHA256 8681a00adf9478e37fb5b2423ed73af671f69f7e75d86ba49933b20cef9100b4 hostapd-0.5.3.tar.gz 385649
diff --git a/net-wireless/hostapd/files/digest-hostapd-0.5.4 b/net-wireless/hostapd/files/digest-hostapd-0.5.4
new file mode 100644
index 000000000000..34d85dd4e35e
--- /dev/null
+++ b/net-wireless/hostapd/files/digest-hostapd-0.5.4
@@ -0,0 +1,3 @@
+MD5 18e203b3038f8d12fbf5924e60cfd6f3 hostapd-0.5.4.tar.gz 395052
+RMD160 14f4de6f99ef37d2e80ead2b30195a7c0cb17350 hostapd-0.5.4.tar.gz 395052
+SHA256 0c4865d24f9b27f68cb293ee1a9f8b4f60d1c4ab8daf32b46a65f0f5d7a47234 hostapd-0.5.4.tar.gz 395052
diff --git a/net-wireless/hostapd/files/hostapd-0.5.4-conf.d b/net-wireless/hostapd/files/hostapd-0.5.4-conf.d
new file mode 100644
index 000000000000..7d05735eb3b4
--- /dev/null
+++ b/net-wireless/hostapd/files/hostapd-0.5.4-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.4-init.d b/net-wireless/hostapd/files/hostapd-0.5.4-init.d
new file mode 100644
index 000000000000..ed54fdeeb891
--- /dev/null
+++ b/net-wireless/hostapd/files/hostapd-0.5.4-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.4-init.d,v 1.1 2006/06/21 19:59:36 brix 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 ${?}
+}