Logoj0ke.net Open Build Service > Projects > internetx > blocksshd > Changes
Sign Up | Log In

Changes of Revision 9

[-] Changed blocksshd.spec
x
 
1
@@ -11,17 +11,24 @@
2
 Source2:   blocksshd.sysconfig
3
 Patch0:        blocksshd-1.1.diff
4
 Patch1:        blocksshd-suse-config.diff
5
+Patch2:        blocksshd-redhat-config.diff
6
+Patch3:        blocksshd-redhat-init.diff
7
 
8
 Requires:  perl >= 5, /sbin/chkconfig
9
+
10
 %if 0%{?suse_version}
11
+Requires:  whois
12
+%endif
13
+%if 0%{?centos_version} || 0%{?fedora_version}
14
+Requires:  jwhois
15
+%endif
16
+
17
 Requires:  perl-Net-Subnets
18
 Requires:  perl-File-Tail
19
 Requires:  perl-Net-DNS
20
-Requires:  whois
21
 Requires:  iptables
22
 Requires:  sed
23
 Requires:  mailx
24
-%endif
25
 
26
 AutoReq:   no
27
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
28
@@ -40,6 +47,11 @@
29
 %patch1 -p1
30
 %endif
31
 
32
+%if 0%{?centos_version} || 0%{?fedora_version}
33
+%patch2 -p1
34
+%patch3 -p1
35
+%endif
36
+
37
 %build
38
 %{__make}
39
 
40
@@ -65,6 +77,7 @@
41
 %else
42
 %{__make} init DESTDIR="%{buildroot}" \
43
    INITRDDIR="%{_initrddir}"
44
+install -m 644 %{S:2} %{buildroot}/etc/sysconfig/blocksshd
45
 %endif
46
  
47
 %clean
48
@@ -80,9 +93,7 @@
49
 %{_mandir}/man1/blocksshd.1*
50
 %{_initrddir}/blocksshd
51
 %config(noreplace) %{_sysconfdir}/blocksshd.conf
52
-%if 0%{?suse_version}
53
 %config(noreplace) %{_sysconfdir}/sysconfig/blocksshd
54
-%endif
55
 
56
 %post
57
 /sbin/chkconfig --add blocksshd
58
@@ -91,6 +102,10 @@
59
 /sbin/chkconfig --add blocksshd
60
 
61
 %changelog
62
+* Tue Jan 22 2008 Carsten Schoene <cs@linux-administrator.com>
63
+- added more requirements
64
+- added configuration patch & sysconfig for redhat based systems
65
+
66
 * Mon Jan 21 2008 Carsten Schoene <cs@linux-administrator.com>
67
 - adapted spec to SuSE distributions
68
 - added SuSE init script and configuration patch
69
[+] Added blocksshd-redhat-config.diff ^
[+] Added blocksshd-redhat-init.diff ^