1 Summary: Bjorb - secure TCP relay software
5 License: see COPYRIGHT, modified is not distributable
6 Group: Networking/Daemons
7 Source0: http://people.FreeBSD.org/~foxfair/distfiles/%{name}-%{version}.tar.gz
8 # Source0-md5: abea77967a1a0fd2dcd1b407d652b3bf
9 # http://www.freebsd.org/cgi/cvsweb.cgi/ports/security/bjorb/files/
11 Patch0: %{name}-fbsd_patches.patch
12 Patch1: %{name}-Makefile.in.patch
13 Patch2: %{name}-sysconfdir.patch
14 URL: http://www.hitachi-ms.co.jp/bjorb/
15 BuildRequires: libstdc++-devel
16 BuildRequires: openssl-devel
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Bjorb is secure TCP relay software. Bjorb provides you, secure
21 end-to-end connection over insecure network such as Internet.
23 1. Encrypt/decrypt any "static port" TCP connection with SSL.
24 2. Restrcit access by IP address.
25 3. Server side certification.
26 4. Client side certification.
28 %define _sysconfdir /etc/%{name}
43 rm -rf $RPM_BUILD_ROOT
46 DESTDIR=$RPM_BUILD_ROOT
47 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/{bjorb.conf.sample,bjorb.conf}
48 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
49 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
52 rm -rf $RPM_BUILD_ROOT
55 /sbin/chkconfig --add %{name}
56 if [ -f /var/lock/subsys/%{name} ]; then
57 /etc/rc.d/init.d/%{name} restart 1>&2
59 echo "Run \"/etc/rc.d/init.d/%{name} start\" to start Bjorb daemon."
63 if [ "$1" = "0" ]; then
64 if [ -f /var/lock/subsys/%{name} ]; then
65 /etc/rc.d/init.d/%{name} stop 1>&2
67 /sbin/chkconfig --del %{name}
71 %defattr(644,root,root,755)
72 %doc ChangeLog COPYRIGHT README doc/sample/bjorb.conf.doc doc/sample/bjorb.conf.sample
73 %lang(ja) %doc ChangeLog.jp COPYRIGHT.jp README.jp doc/features.jp doc/bjorb.conf.5.jp.txt
74 %attr(755,root,root) %{_sbindir}/*
75 %attr(754,root,root) /etc/rc.d/init.d/%{name}
77 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}.conf