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

Changes of Revision 3

[-] Changed blocksshd.spec
x
 
1
@@ -7,8 +7,15 @@
2
 URL:       http://sourceforge.net/projects/blocksshd/
3
 BuildArch: noarch
4
 Source:        http://downloads.sourgeforge.net/blocksshd/blocksshd-%{version}.tar.bz2
5
-Patch:     blocksshd-1.1.diff
6
+Source1:   blocksshd-suse.init
7
+Patch0:        blocksshd-1.1.diff
8
+Patch1:        blocksshd-suse-config.diff
9
+
10
 Requires:  perl >= 5, /sbin/chkconfig
11
+%if 0%{?suse_version}
12
+Requires:  perl-Net-Subnet
13
+%endif
14
+
15
 AutoReq:   no
16
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
17
 
18
@@ -22,7 +29,8 @@
19
 
20
 %setup -q
21
 %if 0%{?suse_version}
22
-%patch -p1 
23
+%patch0 -p1 
24
+%patch1 -p1
25
 %endif
26
 
27
 %build
28
@@ -39,8 +47,13 @@
29
    MANCOMPRESS= \
30
    INSTALL="%{__install} -p"
31
 
32
+%if 0%{?suse_version}
33
+install -D -m 755 -d %{buildroot}/etc/init.d/
34
+install -m 755 %{S:1} %{buildroot}/etc/init.d/blocksshd
35
+%else
36
 %{__make} init DESTDIR="%{buildroot}" \
37
    INITRDDIR="%{_initrddir}"
38
+%endif
39
  
40
 %clean
41
 %{__rm} -rf "%{buildroot}"
42
@@ -61,6 +74,10 @@
43
 /sbin/chkconfig --add blocksshd
44
 
45
 %changelog
46
+* Mon Jan 21 2008 Carsten Schoene <cs@linux-administrator.com>
47
+- adapted spec to SuSE distributions
48
+- added SuSE init script and configuration patch
49
+
50
 * Thu Apr 12 2007 James Turnbull <james@lovedthanlost.net> 1.1-1
51
 - Added -p to spec file
52
 - Changed download source from dl to download
53
[+] Added blocksshd-suse-config.diff ^
[+] Added blocksshd-suse.init ^