Accepting request 684994 from home:jengelh:branches:network
- Feed through spec-cleaner. Trim undesirable author list. - Drop unused PreReq, and add needed systemd-rpm-macros instead. OBS-URL: https://build.opensuse.org/request/show/684994 OBS-URL: https://build.opensuse.org/package/show/network/pen?expand=0&rev=6
This commit is contained in:
parent
cec807ab5a
commit
d3dd09a8ec
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 14 12:08:47 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Feed through spec-cleaner. Trim undesirable author list.
|
||||||
|
- Drop unused PreReq, and add needed systemd-rpm-macros instead.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Mar 12 14:48:32 UTC 2019 - josef.moellers@suse.com
|
Tue Mar 12 14:48:32 UTC 2019 - josef.moellers@suse.com
|
||||||
|
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=A simple load balancer for tcp based protocols
|
|
||||||
After=time-sync.target nss-lookup.target syslog.socket remote-fs.target
|
|
||||||
[Service]
|
|
||||||
Type=forking
|
|
||||||
ExecStart=/usr/share/pen/scripts/rcpen start
|
|
||||||
ExecStop=/usr/share/pen/scripts/rcpen stop
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.system
|
|
75
pen.spec
75
pen.spec
@ -12,28 +12,28 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: pen
|
Name: pen
|
||||||
Summary: A simple load balancer for tcp based protocols
|
|
||||||
License: GPL-2.0+
|
|
||||||
Group: Productivity/Clustering/HA
|
|
||||||
Url: http://siag.nu/pen/
|
|
||||||
Version: 0.26.1
|
Version: 0.26.1
|
||||||
Release: 0
|
Release: 0
|
||||||
|
Summary: A simple load balancer for TCP-based protocols
|
||||||
|
License: GPL-2.0-or-later
|
||||||
|
Group: Productivity/Clustering/HA
|
||||||
|
URL: http://siag.nu/pen/
|
||||||
Source0: http://siag.nu/pub/pen/%{name}-%{version}.tar.gz
|
Source0: http://siag.nu/pub/pen/%{name}-%{version}.tar.gz
|
||||||
Source1: %{name}.cfg
|
Source1: %{name}.cfg
|
||||||
Source2: init.%{name}
|
Source2: init.%{name}
|
||||||
Source3: runpen.sh
|
Source3: runpen.sh
|
||||||
Source4: pen.service
|
Source4: pen.service
|
||||||
PreReq: %insserv_prereq %fillup_prereq
|
BuildRequires: systemd-rpm-macros
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
%systemd_requires
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Pen is a load balancer for "simple" tcp based protocols such as http or
|
Pen is a load balancer for "simple" TCP-based protocols such as HTTP or
|
||||||
smtp. It allows several servers to appear as one to the outside and
|
SMTP. It allows several servers to appear as one to the outside and
|
||||||
automatically detects servers that are down and distributes clients
|
automatically detects servers that are down and distributes clients
|
||||||
among the available servers. This gives high availability and scalable
|
among the available servers. This gives high availability and scalable
|
||||||
performance.
|
performance.
|
||||||
@ -52,13 +52,7 @@ available, even when individual servers are brought down for
|
|||||||
maintenance or reconfiguration.
|
maintenance or reconfiguration.
|
||||||
|
|
||||||
The final single point of failure, pen itself, can be eliminated by
|
The final single point of failure, pen itself, can be eliminated by
|
||||||
running pen on several servers, using vrrp to decide which is active.
|
running pen on several servers, using VRRP to decide which is active.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Authors:
|
|
||||||
--------
|
|
||||||
Ulric Eriksson <ulric@siag.nu>
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
@ -66,26 +60,22 @@ Authors:
|
|||||||
%build
|
%build
|
||||||
%configure \
|
%configure \
|
||||||
--with-daemon
|
--with-daemon
|
||||||
make %{?jobs:-j%jobs}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p $RPM_BUILD_ROOT/%_sbindir
|
mkdir -p %{buildroot}/%{_sbindir}
|
||||||
#make DESTDIR="$RPM_BUILD_ROOT" install
|
%make_install
|
||||||
%makeinstall
|
|
||||||
# Install pen init script
|
# Install pen init script
|
||||||
install -d $RPM_BUILD_ROOT%{_datadir}/pen/scripts
|
install -d %{buildroot}/%{_datadir}/pen/scripts
|
||||||
install -m 0744 %SOURCE2 $RPM_BUILD_ROOT%{_datadir}/pen/scripts/rcpen
|
install -m 0744 %{SOURCE2} %{buildroot}/%{_datadir}/pen/scripts/rcpen
|
||||||
install -d $RPM_BUILD_ROOT%{_unitdir}
|
install -d %{buildroot}/%{_unitdir}
|
||||||
install -m 0444 %SOURCE4 $RPM_BUILD_ROOT%{_unitdir}/pen.service
|
install -m 0444 %{SOURCE4} %{buildroot}/%{_unitdir}/pen.service
|
||||||
install -m 0744 %SOURCE3 $RPM_BUILD_ROOT/usr/bin/runpen.sh
|
install -m 0744 %{SOURCE3} %{buildroot}%{_bindir}/runpen.sh
|
||||||
install -d $RPM_BUILD_ROOT/etc
|
install -d %{buildroot}%{_sysconfdir}
|
||||||
install -m 0644 %SOURCE1 $RPM_BUILD_ROOT/etc/%{name}.cfg
|
install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}.cfg
|
||||||
ln -sf service $RPM_BUILD_ROOT/usr/sbin/rcpen
|
ln -sf service %{buildroot}%{_sbindir}/rcpen
|
||||||
mkdir -p ${RPM_BUILD_ROOT}%{_docdir}
|
mkdir -p %{buildroot}/%{_docdir}
|
||||||
mv $RPM_BUILD_ROOT/usr/doc/pen ${RPM_BUILD_ROOT}%{_docdir}
|
mv %{buildroot}%{_prefix}/doc/pen %{buildroot}/%{_docdir}
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf ${RPM_BUILD_ROOT}
|
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
%service_add_pre pen.service
|
%service_add_pre pen.service
|
||||||
@ -100,18 +90,17 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
%service_del_postun pen.service
|
%service_del_postun pen.service
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
%{_mandir}/man1/*.1.gz
|
%{_mandir}/man1/*.1%{?ext_man}
|
||||||
%{_datadir}/pen
|
%{_datadir}/pen
|
||||||
%{_unitdir}/pen.service
|
%{_unitdir}/pen.service
|
||||||
/usr/bin/%{name}
|
%{_bindir}/%{name}
|
||||||
/usr/bin/runpen.sh
|
%{_bindir}/runpen.sh
|
||||||
/usr/bin/mergelogs
|
%{_bindir}/mergelogs
|
||||||
/usr/bin/penctl
|
%{_bindir}/penctl
|
||||||
/usr/bin/penlog
|
%{_bindir}/penlog
|
||||||
/usr/bin/penlogd
|
%{_bindir}/penlogd
|
||||||
/usr/sbin/rc%{name}
|
%{_sbindir}/rc%{name}
|
||||||
%config(noreplace) /etc/%{name}.cfg
|
%config(noreplace) %{_sysconfdir}/%{name}.cfg
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user