ALT Linux Bugzilla
– Attachment 7258 Details for
Bug 34122
[FR] ручка для отключения java
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
- introduce java knob (on by default) (closes: #34122)
0001-1-3.4.3-alt2.patch (text/plain), 5.03 KB, created by
Michael Shigorin
on 2017-11-02 21:39:26 MSK
(
hide
)
Description:
- introduce java knob (on by default) (closes: #34122)
Filename:
MIME Type:
Creator:
Michael Shigorin
Created:
2017-11-02 21:39:26 MSK
Size:
5.03 KB
patch
obsolete
>From 439489303a19f250d289f7c7c4e8a2205de7c375 Mon Sep 17 00:00:00 2001 >From: Michael Shigorin <mike@altlinux.org> >Date: Thu, 2 Nov 2017 21:30:45 +0300 >Subject: [PATCH] 1:3.4.3-alt2 > >- introduce java knob (on by default) (closes: #34122) >- buildreq again >--- > zabbix.spec | 29 +++++++++++++++++++++++------ > 1 file changed, 23 insertions(+), 6 deletions(-) > >diff --git a/zabbix.spec b/zabbix.spec >index b888329..9f3cfd3 100644 >--- a/zabbix.spec >+++ b/zabbix.spec >@@ -4,6 +4,7 @@ > %define svnrev 73588 > > %def_with pgsql >+%def_enable java > > %ifndef _unitdir > %define _unitdir %systemd_unitdir >@@ -11,7 +12,7 @@ > > Name: zabbix > Version: 3.4.3 >-Release: alt1 >+Release: alt2 > > Packager: Alexei Takaseev <taf@altlinux.ru> > >@@ -27,15 +28,18 @@ Url: http://www.zabbix.com > Source0: %name-%version.tar > Patch0: %name-%version-%release.patch > >-BuildPreReq: java-devel-default >+%{?_enable_java:BuildPreReq: java-devel-default} > BuildPreReq: libelf-devel > BuildRequires(pre): rpm-build-webserver-common > >-# Automatically added by buildreq on Tue Aug 22 2017 (-bi) >+# Automatically added by buildreq on Thu Nov 02 2017 (-bi) >+# optimized out: elfutils glibc-kernheaders-generic glibc-kernheaders-x86 libcom_err-devel libkrb5-devel libnet-snmp30 libp11-kit libpq-devel libsasl2-3 libssl-devel net-snmp-config perl pkg-config python-base python3 rpm-build-python3 xz >+BuildRequires: libcurl-devel libelf-devel libevent-devel libiksemel-devel libldap-devel libmysqlclient-devel libnet-snmp-devel libopenipmi-devel libpcre-devel libsqlite3-devel libxml2-devel postgresql-devel python3-base >+ > # optimized out: elfutils glibc-kernheaders-x86 java java-1.8.0-oracle-headless libcom_err-devel libgpg-error libkrb5-devel libnet-snmp30 libp11-kit libpq-devel libsasl2-3 libssl-devel net-snmp-config perl pkg-config python-base python3 python3-base python3-module-javapackages python3-module-lxml python3-module-six rpm-build-python3 xz >-BuildRequires: glibc-kernheaders-generic java-devel libcurl-devel libelf-devel libevent-devel libiksemel-devel libldap-devel libmysqlclient-devel libnet-snmp-devel libopenipmi-devel libpcre-devel libsqlite3-devel libxml2-devel postgresql-devel rpm-build-java >+%{?_enable_java:BuildRequires: java-devel rpm-build-java} > >-BuildRequires: libnet-snmp-devel libopenipmi-devel libsqlite3-devel libxml2-devel perl-Switch >+BuildRequires: perl-Switch > > %if_with pgsql > BuildRequires: postgresql-devel >@@ -268,7 +272,7 @@ mv src/%{name}_server/%{name}_server src/%{name}_server/%{name}_pgsql > --enable-proxy \ > --enable-ipv6 \ > --enable-agent \ >- --enable-java \ >+ %{subst_enable java} \ > --with-libcurl \ > --with-libxml2 \ > --with-net-snmp \ >@@ -343,8 +347,10 @@ install -pDm0755 sources/%{name}_mysql.init %buildroot%_initdir/%{name}_mysql > install -pDm0644 sources/%{name}_mysql.service %buildroot%_unitdir/%{name}_mysql.service > install -pDm0755 sources/%{name}_proxy.init %buildroot%_initdir/%{name}_proxy > install -pDm0644 sources/%{name}_proxy.service %buildroot%_unitdir/%{name}_proxy.service >+%if_enabled java > install -pDm0755 sources/%{name}_java_gateway.init %buildroot%_initdir/%{name}_java_gateway > install -pDm0644 sources/%{name}_java_gateway.service %buildroot%_unitdir/%{name}_java_gateway.service >+%endif > > # sudo entry > install -pDm0400 sources/%name.sudo %buildroot%_sysconfdir/sudoers.d/%name >@@ -361,6 +367,7 @@ mv upgrades/dbpatches-final/dbpatches/2.0/postgresql upgrades-postgresql/2.0 > # include files > cp include/* %buildroot%_includedir/%name > >+%if_enabled java > # delete unnecessary files from java gateway > rm %buildroot%_sbindir/zabbix_java/settings.sh > rm %buildroot%_sbindir/zabbix_java/startup.sh >@@ -377,6 +384,7 @@ cat src/zabbix_java/settings.sh | sed \ > -e 's|^PID_FILE=.*|PID_FILE="/var/run/zabbix/zabbix_java.pid"|g' \ > -e '/^# TIMEOUT=/a \\nTIMEOUT=3' \ > > %buildroot%_sysconfdir/zabbix/zabbix_java_gateway.conf >+%endif > > # ChangeLog > bzip2 ChangeLog >@@ -402,6 +410,7 @@ bzip2 ChangeLog > %post proxy > %post_service zabbix_proxy > >+%if_enabled java > %preun proxy > %preun_service zabbix_proxy > %post java-gateway >@@ -409,6 +418,8 @@ bzip2 ChangeLog > > %preun java-gateway > %preun_service zabbix_java_gateway >+%endif >+ > %post agent > %post_service zabbix_agentd > if [ $1 -eq 1 ]; then >@@ -458,6 +469,7 @@ fi > %config(noreplace) %attr(0640,root,%zabbix_group) %_sysconfdir/%name/%{name}_proxy.conf > %_man8dir/%{name}_proxy.* > >+%if_enabled java > %files java-gateway > %_sbindir/%{name}_java_gateway > %_initdir/%{name}_java_gateway >@@ -465,6 +477,7 @@ fi > %config(noreplace) %attr(0640,root,%zabbix_group) %_sysconfdir/%name/%{name}_java_gateway.conf > %config(noreplace) %attr(0640,root,%zabbix_group) %_sysconfdir/%name/%{name}_java_gateway_logback.xml > %_javadir/* >+%endif > > %files agent > %config(noreplace) %attr(0640,root,%zabbix_group) %_sysconfdir/%name/%{name}_agentd.conf >@@ -499,6 +512,10 @@ fi > %_includedir/%name > > %changelog >+* Thu Nov 02 2017 Michael Shigorin <mike@altlinux.org> 1:3.4.3-alt2 >+- introduce java knob (on by default) (closes: #34122) >+- buildreq again >+ > * Thu Oct 19 2017 Alexei Takaseev <taf@altlinux.org> 1:3.4.3-alt1 > - 3.4.3 > >-- >2.7.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 34122
:
7257
| 7258