Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > by-pkgid > b6d15092978de834279ced5c122a2e75 > files > 5

nocatsplash-0.91-1mdk.src.rpm

%define realname NoCatSplash

Summary:	NoCatSplash is a Open Public Network Gateway Daemon
Name:		nocatsplash
Version:	0.91
Release:	1mdk
License:        GPL
Group:		Networking/Remote access
BuildRequires:	glib-devel
Source0:	http://nocat.net/download/%{realname}/%{realname}-%{version}.tar.bz2
Source1:	NoCatSplashSetup.txt
Source2:	%{realname}-firewall-scripts.tar.bz2
Patch0:		NoCatSplash-mdk-greeting.patch.bz2
URL:            http://nocat.net/wiki/index.cgi?NoCatSplash
BuildRoot:	%{_tmppath}/%{name}-root
Requires:	iptables

%description
NoCatSplash is a Open Public Network Gateway Daemon.  It performs as a
[captive/open/active] portal.  When run on a gateway/router on a network,
all web requests are redirected until the client either logs in or clicks
"I Accept" to an AUP. The gateway daemon then changes the firewall rules
on the gateway to pass traffic for that client (based on IP address and
MAC address).

%prep

%setup -q -a2 -n %{realname}-%{version}
%patch0 -p1
cp %SOURCE1 .

%build
%configure --with-firewall=iptables
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README TODO NoCatSplashSetup.txt
%dir %{_datadir}/%{realname}
%{_datadir}/%{realname}/*
%dir %{_libdir}/%{realname}
%{_libdir}/%{realname}/*
%{_sbindir}/splashd
%config(noreplace) %{_sysconfdir}/nocat.conf

%changelog
* Wed Dec 15 2004 Stew Benedict <sbenedict@mandrakesoft.com> 0.91-1mdk
- 0.91, update setup doc, Mandrake Linux -> Mandrakelinux
- add missing firewall scripts from 0.00

* Tue Dec 30 2003 Stew Benedict <sbenedict@mandrakesoft.com> 0.00-2mdk
- distriblint

* Tue Nov  4 2003 Stew Benedict <sbenedict@mandrakesoft.com> 0.00-1mdk
- lowercase name - /me is bad, fix version

* Mon Nov  3 2003 Stew Benedict <sbenedict@mandrakesoft.com> 0.0.0-1mdk
- 1st mdk packaging, add Setup doc, mdk'ize splash screen