From 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 Mon Sep 17 00:00:00 2001 From: wbx <wbx@hydrogenium.(none)> Date: Sun, 17 May 2009 14:41:34 +0200 Subject: Initial import --- package/chillispot/Config.in | 15 ++ package/chillispot/Makefile | 31 +++ package/chillispot/files/chilli.conf | 292 +++++++++++++++++++++++++++ package/chillispot/files/chillispot.init | 25 +++ package/chillispot/ipkg/chillispot.conffiles | 1 + package/chillispot/ipkg/chillispot.control | 5 + package/chillispot/ipkg/chillispot.postinst | 3 + 7 files changed, 372 insertions(+) create mode 100644 package/chillispot/Config.in create mode 100644 package/chillispot/Makefile create mode 100644 package/chillispot/files/chilli.conf create mode 100644 package/chillispot/files/chillispot.init create mode 100644 package/chillispot/ipkg/chillispot.conffiles create mode 100644 package/chillispot/ipkg/chillispot.control create mode 100644 package/chillispot/ipkg/chillispot.postinst (limited to 'package/chillispot') diff --git a/package/chillispot/Config.in b/package/chillispot/Config.in new file mode 100644 index 000000000..902ffb1db --- /dev/null +++ b/package/chillispot/Config.in @@ -0,0 +1,15 @@ +config ADK_PACKAGE_CHILLISPOT + prompt "chillispot........................ Wireless LAN access point controller" + tristate + default n + select ADK_KPACKAGE_KMOD_TUN + help + ChilliSpot is an open source captive portal or wireless LAN + access point controller. It is used for authenticating users + of a wireless LAN. It supports web based login which is today's + standard for public HotSpots and it supports Wireless Protected + Access (WPA) which is the standard of the future. Authentication, + authorization and accounting (AAA) is handled by your favorite + radius server. + + http://www.chillispot.org/ diff --git a/package/chillispot/Makefile b/package/chillispot/Makefile new file mode 100644 index 000000000..9ad16b887 --- /dev/null +++ b/package/chillispot/Makefile @@ -0,0 +1,31 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= chillispot +PKG_VERSION:= 1.1.0 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 9d2597756af3fa14d7331b4a3651fc9b +MASTER_SITES= http://www.chillispot.info/download/ + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,CHILLISPOT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${ARCH})) + +CONFIGURE_STYLE= gnu +BUILD_STYLE= auto +INSTALL_STYLE= auto + +post-install: + ${INSTALL_DIR} ${IDIR_CHILLISPOT}/etc/init.d + ${INSTALL_DIR} ${IDIR_CHILLISPOT}/usr/sbin + ${INSTALL_BIN} ./files/chilli.conf \ + ${IDIR_CHILLISPOT}/etc/ + ${INSTALL_BIN} ./files/${PKG_NAME}.init \ + ${IDIR_CHILLISPOT}/etc/init.d/chilli + ${INSTALL_BIN} ${WRKINST}/usr/sbin/chilli ${IDIR_CHILLISPOT}/usr/sbin/ + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/chillispot/files/chilli.conf b/package/chillispot/files/chilli.conf new file mode 100644 index 000000000..e6712d89b --- /dev/null +++ b/package/chillispot/files/chilli.conf @@ -0,0 +1,292 @@ +# Sample ChilliSpot configuration file + +#fg +#debug + +# TAG: interval +# Re-read configuration file at this interval. Will also cause new domain +# name lookups to be performed. Value is given in seconds. +#interval 3600 + +# TAG: pidfile +# File to store information about the process id of the program. +# The program must have write access to this file/directory. +#pidfile /var/run/chilli.pid + +# TAG: statedir +# Directory to use for nonvolatile storage. +# The program must have write access to this directory. +# This tag is currently ignored +#statedir ./ + + +# TUN parameters + +# TAG: net +# IP network address of external packet data network +# Used to allocate dynamic IP addresses and set up routing. +# Normally you do not need to uncomment this tag. +#net 192.168.182.0/24 + +# TAG: dynip +# Dynamic IP address pool +# Used to allocate dynamic IP addresses to clients. +# If not set it defaults to the net tag. +# Do not uncomment this tag unless you are an experienced user! +#dynip 192.168.182.0/24 + +# TAG: statip +# Static IP address pool +# Used to allocate static IP addresses to clients. +# Do not uncomment this tag unless you are an experienced user! +#statip 192.168.182.0/24 + + +# TAG: dns1 +# Primary DNS server. +# Will be suggested to the client. +# If omitted the system default will be used. +# Normally you do not need to uncomment this tag. +#dns1 172.16.0.5 + +# TAG: dns2 +# Secondary DNS server. +# Will be suggested to the client. +# If omitted the system default will be used. +# Normally you do not need to uncomment this tag. +#dns2 172.16.0.6 + +# TAG: domain +# Domain name +# Will be suggested to the client. +# Normally you do not need to uncomment this tag. +#domain key.chillispot.org + +# TAG: ipup +# Script executed after network interface has been brought up. +# Executed with the following parameters: <devicename> <ip address> +# <mask> +# Normally you do not need to uncomment this tag. +#ipup /etc/chilli.ipup + +# TAG: ipdown +# Script executed after network interface has been taken down. +# Executed with the following parameters: <devicename> <ip address> +# <mask> +# Normally you do not need to uncomment this tag. +#ipdown /etc/chilli.ipdown + +# TAG: conup +# Script executed after a user has been authenticated. +# Executed with the following parameters: <devicename> <ip address> +# <mask> <user ip address> <user mac address> <filter ID> +# Normally you do not need to uncomment this tag. +#conup /etc/chilli.conup + +# TAG: conup +# Script executed after a user has disconnected. +# Executed with the following parameters: <devicename> <ip address> +# <mask> <user ip address> <user mac address> <filter ID> +# Normally you do not need to uncomment this tag. +#conup /etc/chilli.condown + + +# Radius parameters + +# TAG: radiuslisten +# IP address to listen to +# Normally you do not need to uncomment this tag. +radiuslisten 127.0.0.1 + +# TAG: radiusserver1 +# IP address of radius server 1 +# For most installations you need to modify this tag. +radiusserver1 localhost + +# TAG: radiusserver2 +# IP address of radius server 2 +# If you have only one radius server you should set radiusserver2 to the +# same value as radiusserver1. +# For most installations you need to modify this tag. +radiusserver2 localhost + +# TAG: radiusauthport +# Radius authentication port +# The UDP port number to use for radius authentication requests. +# The same port number is used for both radiusserver1 and radiusserver2. +# Normally you do not need to uncomment this tag. +#radiusauthport 1812 + +# TAG: radiusacctport +# Radius accounting port +# The UDP port number to use for radius accounting requests. +# The same port number is used for both radiusserver1 and radiusserver2. +# Normally you do not need to uncomment this tag. +#radiusacctport 1813 + +# TAG: radiussecret +# Radius shared secret for both servers +# For all installations you should modify this tag. +radiussecret testing123 + +# TAG: radiusnasid +# Radius NAS-Identifier +# Normally you do not need to uncomment this tag. +#radiusnasid nas01 + +# TAG: radiusnasip +# Radius NAS-IP-Address +# Normally you do not need to uncomment this tag. +#radiusnasip 127.0.0.1 + +# TAG: radiuscalled +# Radius Called-Station-ID +# Normally you do not need to uncomment this tag. +#radiuscalled 00133300 + +# TAG: radiuslocationid +# WISPr Location ID. Should be in the format: isocc=<ISO_Country_Code>, +# cc=<E.164_Country_Code>,ac=<E.164_Area_Code>,network=<ssid/ZONE> +# Normally you do not need to uncomment this tag. +#radiuslocationid isocc=us,cc=1,ac=408,network=ACMEWISP_NewarkAirport + +# TAG: radiuslocationname +# WISPr Location Name. Should be in the format: +# <HOTSPOT_OPERATOR_NAME>,<LOCATION> +# Normally you do not need to uncomment this tag. +#radiuslocationname ACMEWISP,Gate_14_Terminal_C_of_Newark_Airport + + +# Radius proxy parameters + +# TAG: proxylisten +# IP address to listen to +# Normally you do not need to uncomment this tag. +#proxylisten 10.0.0.1 + +# TAG: proxyport +# UDP port to listen to. +# If not specified a port will be selected by the system +# Normally you do not need to uncomment this tag. +#proxyport 1645 + +# TAG: proxyclient +# Client(s) from which we accept radius requests +# Normally you do not need to uncomment this tag. +#proxyclient 10.0.0.1/24 + +# TAG: proxysecret +# Radius proxy shared secret for all clients +# If not specified defaults to radiussecret +# Normally you do not need to uncomment this tag. +#proxysecret testing123 + + +# Remote configuration management + +# TAG: confusername +# If confusername is specified together with confpassword chillispot +# will at regular intervals specified by the interval option query the +# radius server for configuration information. +# Normally you do not need to uncomment this tag. +#confusername conf + +# TAG: confpassword +# If confusername is specified together with confpassword chillispot +# will at regular intervals specified by the interval option query the +# radius server for configuration information. +# Normally you do not need to uncomment this tag. +#confpassword secret + + +# DHCP Parameters + +# TAG: dhcpif +# Ethernet interface to listen to. +# This is the network interface which is connected to the access points. +# In a typical configuration this tag should be set to eth1. +dhcpif wlan0 + +# TAG: dhcpmac +# Use specified MAC address. +# An address in the range 00:00:5E:00:02:00 - 00:00:5E:FF:FF:FF falls +# within the IANA range of addresses and is not allocated for other +# purposes. +# Normally you do not need to uncomment this tag. +#dhcpmac 00:00:5E:00:02:00 + +# TAG: lease +# Time before DHCP lease expires +# Normally you do not need to uncomment this tag. +#lease 600 + + +# Universal access method (UAM) parameters + +# TAG: uamserver +# URL of web server handling authentication. +uamserver https://192.168.182.1/hotspotlogin + +# TAG: uamhomepage +# URL of welcome homepage. +# Unauthenticated users will be redirected to this URL. If not specified +# users will be redirected to the uamserver instead. +# Normally you do not need to uncomment this tag. +uamhomepage http://localhost + +# TAG: uamsecret +# Shared between chilli and authentication web server +#uamsecret ht2eb8ej6s4et3rg1ulp + +# TAG: uamlisten +# IP address to listen to for authentication requests +# Do not uncomment this tag unless you are an experienced user! +#uamlisten 192.168.182.1 + +# TAG: uamport +# TCP port to listen to for authentication requests +# Do not uncomment this tag unless you are an experienced user! +#uamport 3990 + +# TAG: uamallowed +# Comma separated list of domain names, IP addresses or network segments +# the client can access without first authenticating. +# It is possible to specify this tag multiple times. +# Normally you do not need to uncomment this tag. +#uamallowed www.chillispot.org,10.11.12.0/24 + +# TAG: uamanydns +# If this flag is given unauthenticated users are allowed to use +# any DNS server. +# Normally you do not need to uncomment this tag. +#uamanydns + + +# MAC authentication + +# TAG: macauth +# If this flag is given users will be authenticated only on their MAC +# address. +# Normally you do not need to uncomment this tag. +#macauth + +# TAG: macallowed +# List of MAC addresses. +# The MAC addresses specified in this list will be authenticated only on +# their MAC address. +# This tag is ignored if the macauth tag is given. +# It is possible to specify this tag multiple times. +# Normally you do not need to uncomment this tag. +#macallowed 00-0A-5E-AC-BE-51,00-30-1B-3C-32-E9 + +# TAG: macpasswd +# Password to use for MAC authentication. +# Normally you do not need to uncomment this tag. +#macpasswd password + +# TAG: macsuffix +# Suffix to add to MAC address in order to form the username. +# Normally you do not need to uncomment this tag. +#macsuffix suffix + + diff --git a/package/chillispot/files/chillispot.init b/package/chillispot/files/chillispot.init new file mode 100644 index 000000000..c2a6cd489 --- /dev/null +++ b/package/chillispot/files/chillispot.init @@ -0,0 +1,25 @@ +#!/bin/sh +#FWINIT 70 +. /etc/rc.conf + +case $1 in +autostop) ;; +autostart) + test x"${chillispot:-NO}" = x"NO" && exit 0 + exec sh $0 start + ;; +start) + chilli + ;; +stop) + killall chilli + ;; +restart) + sh $0 stop + sh $0 start + ;; + *) + echo "usage: $0 {start | stop | restart}" + exit 1 +esac +exit $? diff --git a/package/chillispot/ipkg/chillispot.conffiles b/package/chillispot/ipkg/chillispot.conffiles new file mode 100644 index 000000000..08485167d --- /dev/null +++ b/package/chillispot/ipkg/chillispot.conffiles @@ -0,0 +1 @@ +/etc/chilli.conf diff --git a/package/chillispot/ipkg/chillispot.control b/package/chillispot/ipkg/chillispot.control new file mode 100644 index 000000000..0bb2badb8 --- /dev/null +++ b/package/chillispot/ipkg/chillispot.control @@ -0,0 +1,5 @@ +Package: chillispot +Priority: optional +Section: net +Depends: kmod-tun +Description: ChilliSpot is a Wireless LAN Access Point Controller. diff --git a/package/chillispot/ipkg/chillispot.postinst b/package/chillispot/ipkg/chillispot.postinst new file mode 100644 index 000000000..20ad12d8c --- /dev/null +++ b/package/chillispot/ipkg/chillispot.postinst @@ -0,0 +1,3 @@ +#!/bin/sh +. $IPKG_INSTROOT/etc/functions.sh +add_rcconf chillispot chillispot NO -- cgit v1.2.3