From cdb53f499f7a1a2539dcc701f037d715a6fc9b0a Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Thu, 9 Oct 2025 12:07:48 +1100 Subject: [PATCH] initial commit of file from CVS for coova-chilli on Thu Oct 9 12:07:48 AEDT 2025 --- .gitattributes | 1 + .gitignore | 3 ++ Makefile | 21 +++++++++ README.md | 8 +++- contriborbase | 1 + coova-chilli.spec | 109 ++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 142 insertions(+), 1 deletion(-) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 contriborbase create mode 100644 coova-chilli.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..b5c5801 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.%{srcext} filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1534ba5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.rpm +*.log +*spec-20* diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7cd91a2 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: coova-chilli +# $Id: Makefile,v 1.1 2020/12/21 19:08:01 brianr Exp $ +NAME := coova-chilli +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) diff --git a/README.md b/README.md index 2d3bd77..07b2db6 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ # coova-chilli -3rd Party (Maintained by Koozali) git repo for coova-chilli smecontribs \ No newline at end of file +3rd Party (Maintained by Koozali) git repo for coova-chilli smecontribs + +## Description + +
*This description has been generated by an LLM AI system and cannot be relied on to be fully correct.* +*Once it has been checked, then this comment will be deleted* +
diff --git a/contriborbase b/contriborbase new file mode 100644 index 0000000..9b7fd51 --- /dev/null +++ b/contriborbase @@ -0,0 +1 @@ +contribs10 diff --git a/coova-chilli.spec b/coova-chilli.spec new file mode 100644 index 0000000..6af965b --- /dev/null +++ b/coova-chilli.spec @@ -0,0 +1,109 @@ +%define realname coova-chilli +%define realver 1.3.0 +%define srcext tar.gz + +# Common info +Name: %{realname} +Version: %{realver} +Release: 1.2 +License: GPL +Group: Productivity/Networking/Security +URL: http://coova.org/CoovaChilli +Summary: A Software Access Controller for Captive Portal and WPA + +# Install-time parameters +Requires: haserl + +# Build-time parameters +BuildRequires: openssl-devel +BuildRoot: %{_tmppath}/%{name}-root +Source: http://ap.coova.org/chilli/%{realname}-%{realver}%{?extraver}.%{srcext} + +%description +chilli is a software access controller typically used in Wireless LAN HotSpot. +It supports of two different access methods for a Wireless LAN HotSpot: +Universal Access Method (UAM) as well as Wireless Protected Access (WPA). +This version of chilli is called CoovaChilli, a fork of the original ChilliSpot. + +%package devel +Group: Development/Languages/C and C++ +Summary: Development files for %{name} +Requires: %{name} = %{version} + +%description devel +Development files for %{name} + +# Preparation step (unpackung and patching if necessary) +%prep +%setup -q -n %{realname}-%{realver}%{?extraver} + +%build +%configure \ + --disable-static \ + --disable-debug \ + --enable-miniportal \ + --enable-dhcpopt \ + --enable-multilan \ + --enable-mdns \ + --enable-netbios \ + --enable-ieee8023 \ + --enable-ssdp \ + --with-openssl \ + LDFLAGS="-Wl,--as-needed -Wl,--strip-all" +%__sed -i 's/ -Werror//' src/Makefile +%__make %{?_smp_mflags} + +%install +%__make install DESTDIR=%{buildroot} +%if %{expand:%_vendor == "suse"} +%__ln_s %{_initrddir}/chilli %{buildroot}%{_sbindir}/rcchilli +%else +%__mkdir -p %{buildroot}%{_initrddir} +%__mv -f %{buildroot}%{_sysconfdir}/init.d/chilli %{buildroot}%{_initrddir}/ +%endif + +%clean +[ "%{buildroot}" != "/" ] && rm -rf %{buildroot} + +%files +%defattr(-,root,root) +%doc AUTHORS COPYING CREDITS LICENSE README doc/dictionary.chillispot doc/attributes doc/hotspotlogin.cgi +%config(noreplace) %{_sysconfdir}/chilli.conf +%dir %{_sysconfdir}/chilli +%config(noreplace) %{_sysconfdir}/chilli/* +%{_initrddir}/chilli +%{_sbindir}/* +%{_libdir}/*.so.* +%exclude %{_libdir}/python/CoovaChilliLib.py* +%doc %{_mandir}/man1/* +%doc %{_mandir}/man5/* +%doc %{_mandir}/man8/* + +# Development stuff +%files devel +%defattr(-,root,root) +%dir %{_includedir}/chilli +%{_includedir}/chilli/*.h +%{_libdir}/*.so +%exclude %{_libdir}/*.la + +%if 0%{?suse_version} +%post +%{fillup_and_insserv chilli} + +%preun +%{stop_on_removal chilli} + +%postun +%{restart_on_update chilli} +%{insserv_cleanup} +%endif + +%changelog +* Thu Oct 09 2025 BogusDateBot +- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, + by assuming the date is correct and changing the weekday. + +* Mon Dec 21 2020 Brian Read %{realver}-1.2.sme +- Initial import to SME10 [SME: 11289] +