Permalink
Fetching contributors…
Cannot retrieve contributors at this time
63 lines (47 sloc) 1.18 KB
%define name nodogsplash
%define lib_name libhttpd
%define version @VERSION@
%define release 0
Summary: Nodogsplash is a simple hotspot firewall controller.
Name: %{name}
Version: %{version}
Release: %{release}
Source: http://kokoro.ucsd.edu/nodogsplash/%{name}-%{version}.tar.gz
Group: Applications/System
License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Prereq: /sbin/ldconfig
%description
Nodogsplash is a simple hotspot firewall controller.
%prep
%setup -q
%build
%configure
%make
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_prefix}
# Will this overide previous config file?
mkdir -p $RPM_BUILD_ROOT/etc
cp nodogsplash.conf $RPM_BUILD_ROOT/etc
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
cp scripts/init.d/nodogsplash $RPM_BUILD_ROOT/etc/rc.d/init.d
chmod +x $RPM_BUILD_ROOT/etc/rc.d/init.d/nodogsplash
%makeinstall
%post
/sbin/ldconfig
%_post_service nodogsplash
%postun
/sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,0755)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README FAQ doc/html
%config /etc/nodogsplash.conf
%config /etc/rc.d/init.d/nodogsplash
%{_bindir}/*
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/*.so*
%{_includedir}/*