Compare commits
10 Commits
5bf634423b
...
8d933df3cc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8d933df3cc | ||
|
|
0252562856 | ||
|
|
ef9dcca978 | ||
|
|
6eddc3b326 | ||
|
|
8e73448722 | ||
|
|
15e12ca24f | ||
|
|
4dfb7dabce | ||
|
|
a03be15b67 | ||
|
|
7a93c3cb35 | ||
|
|
e513ecba4a |
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user