Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
8d933df3cc
!45 Add provides to openEuler-20.03-LTS-SP4
From: @wenwj0 
Reviewed-by: @macchen1 
Signed-off-by: @macchen1
2023-11-03 03:24:52 +00:00
Weijian Wen
0252562856 add provides apache-zookeeper 2023-11-03 10:40:16 +08:00
openeuler-ci-bot
ef9dcca978
!43 change name to zookeeper
From: @xiexing01 
Reviewed-by: @macchen1 
Signed-off-by: @macchen1
2022-11-07 00:51:22 +00:00
xiexing01
6eddc3b326 change name to zookeeper 2022-11-06 19:06:59 +08:00
openeuler-ci-bot
8e73448722
!33 Rebuild for fix log4j1.x cves
From: @wk333 
Reviewed-by: @njlzk 
Signed-off-by: @njlzk
2022-02-25 09:07:55 +00:00
wk333
15e12ca24f Rebuild for fix log4j1.x cves 2022-02-25 11:27:19 +08:00
openeuler-ci-bot
4dfb7dabce !20 [sync] PR-19: Fix reload service failure
From: @openeuler-sync-bot
Reviewed-by: @zhengzhenyu
Signed-off-by: @zhengzhenyu
2021-06-29 06:38:00 +00:00
lingsheng
a03be15b67 Fix reload service failure
(cherry picked from commit 2caec9d1ec7ad31f23c51be6529a361091cac1fd)
2021-06-22 16:36:44 +08:00
openeuler-ci-bot
7a93c3cb35 !17 [sync] PR-15: Repair status failure after stopping service
From: @openeuler-sync-bot
Reviewed-by: @maminjie,@zhengzhenyu
Signed-off-by: @zhengzhenyu
2021-05-31 11:05:00 +08:00
lingsheng
e513ecba4a Repair status failure after stopping service
(cherry picked from commit cd90da88de354ec131fedc64f8ce783b60546d7a)
2021-05-28 17:26:08 +08:00
2 changed files with 30 additions and 10 deletions

View File

@ -12,7 +12,8 @@ Group=zookeeper
ExecStart=/opt/zookeeper/bin/zkServer.sh start /opt/zookeeper/conf/zoo.cfg
ExecStop=/opt/zookeeper/bin/zkServer.sh stop /opt/zookeeper/conf/zoo.cfg
ExecReload=/opt/zookeeper/bin/zkServer.sh restart /opt/zookeeper/conf/zoo.cfg
Restart=on-failure
Restart=always
SuccessExitStatus=143
[Install]
WantedBy=default.target
WantedBy=default.target

View File

@ -1,9 +1,9 @@
%define rel_ver 3.6.1
%define pkg_ver 2.0
%define pkg_ver 2.6
%define _prefix /opt/zookeeper
Summary: High-performance coordination service for distributed applications.
Name: apache-zookeeper
Name: zookeeper
Version: %{rel_ver}
Release: %{pkg_ver}
License: Apache-2.0 and OpenSSL and SSLeay and MIT and BSD
@ -18,16 +18,17 @@ Source4: log4j.properties
BuildRoot: %{_tmppath}/%{name}-%{rel_ver}-%{release}-root
BuildRequires: java-1.8.0-openjdk-devel,maven,hostname
Requires: java-1.8.0-openjdk,systemd
Provides: apache-zookeeper
%description
ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services.
%prep
%setup -q
%setup -q -n apache-zookeeper-3.6.1
%build
mvn -DskipTests package
tar xvf zookeeper-assembly/target/%{name}-%{rel_ver}-bin.tar.gz -C .
tar xvf zookeeper-assembly/target/apache-%{name}-%{rel_ver}-bin.tar.gz -C .
%install
mkdir -p %{buildroot}%{_prefix}/bin
@ -36,9 +37,9 @@ mkdir -p %{buildroot}%{_prefix}/conf
mkdir -p %{buildroot}%{_localstatedir}/log/zookeeper
mkdir -p %{buildroot}%{_localstatedir}/lib/zookeeper/data
install -p -D -m 755 %{name}-%{rel_ver}-bin/bin/*.sh %{buildroot}%{_prefix}/bin
install -p -D -m 644 %{name}-%{rel_ver}-bin/lib/*.jar %{buildroot}%{_prefix}/lib
install -p -D -m 644 %{name}-%{rel_ver}-bin/conf/* %{buildroot}%{_prefix}/conf
install -p -D -m 755 apache-%{name}-%{rel_ver}-bin/bin/*.sh %{buildroot}%{_prefix}/bin
install -p -D -m 644 apache-%{name}-%{rel_ver}-bin/lib/*.jar %{buildroot}%{_prefix}/lib
install -p -D -m 644 apache-%{name}-%{rel_ver}-bin/conf/* %{buildroot}%{_prefix}/conf
install -p -D -m 644 %{S:1} %{buildroot}%{_prefix}/conf/zoo.cfg
install -p -D -m 644 %{S:2} %{buildroot}%{_unitdir}/zookeeper.service
install -p -D -m 644 %{S:3} %{buildroot}%{_sysconfdir}/sysconfig/zookeeper
@ -71,8 +72,26 @@ exit 0
%systemd_postun_with_restart zookeeper.service
%changelog
* Fri Nov 3 2023 wenweijian <wenweijian2@huawei.com> - 3.6.1-2.6
- add provides apache-zookeeper
* Sun Nov 6 2022 xiexing <xiexing4@hisilicon.com> - 3.6.1-2.5
- change Name apache-zookeeper to zookeeper
* Fri Feb 25 2022 wangkai <wangkai385@huawei.com> - 2.4
- Rebuild for fix log4j1.x cves
* Thu Dec 16 2021 wangkai <wangkai385@huawei.com> - 2.3
- This package depends on log4j.After the log4j vulnerability CVE-2021-44228 is fixed,the version needs to be rebuild.
* Fri Jun 18 2021 lingsheng <lingsheng@huawei.com> - 2.2
- Fix reload service failure
* Thu Apr 1 2021 zhangshaoning <zhangshaoning@uniontech.com> - 2.1
- Repair status failure after stopping service
* Thu Mar 25 2021 baizhonggui <baizhonggui@huawei.com> - 2.0
- Delete %{dist} in Release
* Sun Jun 28 2020 hao zhang <unioah@isrc.iscas.ac.cn> - 1.0
- Add zookeeper.service