-
Notifications
You must be signed in to change notification settings - Fork 3
/
nodogsplash.spec.in
62 lines (47 loc) · 1.18 KB
/
nodogsplash.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
%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}/*