initial commit of file from CVS for coova-chilli on Thu Oct 9 12:07:48 AEDT 2025

This commit is contained in:
Trevor Batley
2025-10-09 12:07:48 +11:00
parent 9a1f547a2f
commit cdb53f499f
6 changed files with 142 additions and 1 deletions

1
.gitattributes vendored Normal file
View File

@@ -0,0 +1 @@
*.%{srcext} filter=lfs diff=lfs merge=lfs -text

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
*.rpm
*.log
*spec-20*

21
Makefile Normal file
View File

@@ -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)

View File

@@ -1,3 +1,9 @@
# coova-chilli
3rd Party (Maintained by Koozali) git repo for coova-chilli smecontribs
3rd Party (Maintained by Koozali) git repo for coova-chilli smecontribs
## Description
<br />*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*
<br />

1
contriborbase Normal file
View File

@@ -0,0 +1 @@
contribs10

109
coova-chilli.spec Normal file
View File

@@ -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 <brianr@bjsystems.co.uk> %{realver}-1.2.sme
- Initial import to SME10 [SME: 11289]