]> git.pld-linux.org Git - packages/bjorb.git/blame - bjorb.spec
- initscript & related stuff added.
[packages/bjorb.git] / bjorb.spec
CommitLineData
dbaea499 1Summary: Bjorb - secure TCP relay software
3379d8d0 2Name: bjorb
3Version: 0.5.5p1
4Release: 0.1
dbaea499 5License: see COPYRIGHT, modified is not distributable
3379d8d0 6Group: Networking/Daemons
7Source0: 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/
f6ca0969 10Source1: %{name}.init
3379d8d0 11Patch0: %{name}-fbsd_patches.patch
12Patch1: %{name}-Makefile.in.patch
13Patch2: %{name}-sysconfdir.patch
14URL: http://www.hitachi-ms.co.jp/bjorb/
15BuildRequires: libstdc++-devel
16BuildRequires: openssl-devel
3379d8d0 17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20Bjorb is secure TCP relay software. Bjorb provides you, secure
21end-to-end connection over insecure network such as Internet.
22Features:
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.
27
28%define _sysconfdir /etc/%{name}
29
30%prep
31%setup -q
32%patch0 -p1
33%patch1 -p1
34%patch2 -p1
35
36%build
37cd src
38%{__autoconf}
39%configure2_13
40%{__make}
41
42%install
43rm -rf $RPM_BUILD_ROOT
44cd src
45%{__make} install \
46 DESTDIR=$RPM_BUILD_ROOT
47mv -f $RPM_BUILD_ROOT%{_sysconfdir}/{bjorb.conf.sample,bjorb.conf}
f6ca0969 48install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
49install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
3379d8d0 50
51%clean
52rm -rf $RPM_BUILD_ROOT
53
f6ca0969 54%post
55/sbin/chkconfig --add %{name}
56if [ -f /var/lock/subsys/%{name} ]; then
57 /etc/rc.d/init.d/%{name} restart 1>&2
58else
59 echo "Run \"/etc/rc.d/init.d/%{name} start\" to start Bjorb daemon."
60fi
61
62%preun
63if [ "$1" = "0" ]; then
64 if [ -f /var/lock/subsys/%{name} ]; then
65 /etc/rc.d/init.d/%{name} stop 1>&2
66 fi
67 /sbin/chkconfig --del %{name}
68fi
69
3379d8d0 70%files
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}/*
f6ca0969 75%attr(754,root,root) /etc/rc.d/init.d/%{name}
3379d8d0 76%dir %{_sysconfdir}
77%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}.conf
This page took 0.071504 seconds and 4 git commands to generate.