forked from NathanGibbs3/iplog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiplog.spec
62 lines (51 loc) · 1.24 KB
/
iplog.spec
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
62
Summary: A port scan detection tool.
Name: iplog
Version: 2.2.3
Release: 1
License: GPL
Group: System Environment/Daemons
URL: http://ojnk.sourceforge.net/
Source0: http://download.sourcrforge.net/ojnk/%{name}-%{version}.tar.gz
Source1: iplog
Source2: iplog.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
%description
Use iplog to detect port scans.
%prep
%setup -q -n %{name}-%{version}
%build
%configure
make
%install
rm -rf %{buildroot}
%makeinstall
mkdir -p %{buildroot}/etc/rc.d/init.d
install -m 0644 %{SOURCE2} %{buildroot}/etc
install -m 0755 %{SOURCE1} %{buildroot}/etc/rc.d/init.d
%clean
rm -rf %{buildroot}
%post
/sbin/chkconfig --add iplog
/usr/sbin/groupadd -g 70 iplog > /dev/null 2>&1
/usr/sbin/useradd -c "iplog user" -d / -g 70 -M -s /bin/false -u 70 iplog > /dev/null 2>&1
exit 0
%preun
if [ "$1" = "0" ]; then
/sbin/service iplog stop > /dev/null 2>&1
/sbin/chkconfig --del iplog
fi
%postun
if [ "$1" -ge "1" ]; then
/sbin/service iplog condrestart > /dev/null 2>&1
fi
%files
%defattr(-,root,root)
%attr(0755,root,root)/etc/rc.d/init.d/*
%config /etc/iplog.conf
%{_sbindir}/iplog
%{_mandir}/*/*
%changelog
* Fri Nov 24 2000 Tim Waugh <[email protected]>
- 2.2.2
* Sun Nov 12 2000 Tim Waugh <[email protected]>
- Packaged