File: balance.spec

package info (click to toggle)
balance 3.56-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 188 kB
  • ctags: 126
  • sloc: ansic: 1,619; makefile: 96
file content (80 lines) | stat: -rw-r--r-- 1,838 bytes parent folder | download | duplicates (2)
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
Summary: TCP load-balancing proxy server
Name: balance
Version: 3.54
Release: 1
Group: Networking/Daemons
Source: http://www.inlab.de/%{name}-%{version}.tar.gz
Copyright: Proprietary
BuildRoot: %{_tmppath}/%{name}-buildroot

%define strip_binaries 1
%define gzip_man 1
%define  __prefix /usr

Prefix: %{__prefix}

%description
Balance is a simple but powerful generic tcp proxy with round robin
load balancing and failover mechanisms.  The program behaviour can
be controlled at runtime using a simple command line syntax. 

%prep
%setup 
%build

make CFLAGS="$RPM_OPT_FLAGS"
	
%install
[ "${RPM_BUILD_ROOT}" != "/" ] && /bin/rm -rf ${RPM_BUILD_ROOT}
mkdir -p $RPM_BUILD_ROOT/usr/sbin
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
mkdir -p $RPM_BUILD_ROOT/var/run/balance
chmod 1777 $RPM_BUILD_ROOT/var/run/balance
install -m 755 -s balance $RPM_BUILD_ROOT/usr/sbin/balance
install -m 644 balance.1 $RPM_BUILD_ROOT%{_mandir}/man1/balance.1

%if %{strip_binaries}
{ cd $RPM_BUILD_ROOT
  strip .%{__prefix}/sbin/balance || /bin/true
}
%if %{gzip_man}
{ cd $RPM_BUILD_ROOT
  gzip .%{_mandir}/man1/balance.1
}
%endif

%clean
[ "${RPM_BUILD_ROOT}" != "/" ] && /bin/rm -rf ${RPM_BUILD_ROOT}

%files
%defattr(-,root,root)
%doc README COPYING
%{__prefix}/sbin/balance
%{_mandir}/man1/balance.1.gz
%dir /var/run/balance

%changelog
* Fri Dec 03 2010 T.Obermair > 3.54 
- update version

* Tue Apr 08 2008 T.Obermair > 3.42 
- update version

* Sat Nov 24 2007 T.Obermair > 3.40 
- update version

* Mon Jan 15 2007 T.Obermair > 3.35 
- update version

* Sat Mar 18 2006 T.Obermair > 3.34 
- update version

* Wed Oct 19 2005 T.Obermair > 3.28 
- update version

* Fri Oct 31 2003 Bojan Smojver <bojan at rexursive dot com> 3.11-1 
- update version

* Mon Sep  22 2003 Thomas Steudten <thomas at steudten dot com> 3.10-2 
- rebuild
- fix/expand specfile