commit
6a087bf22b
4 changed files with 85 additions and 0 deletions
@ -0,0 +1,37 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<packages> |
||||||
|
<package id="zabbix_agent" |
||||||
|
name="Agent de supervision Zabbix" |
||||||
|
revision="1" |
||||||
|
priority="10"> |
||||||
|
|
||||||
|
<variable name="PKG_VERSION" value="2.0.0" /> |
||||||
|
<variable architecture="x86" name="MSI" value="%SOFTWARE%\zabbix_agent\zabbix_agent-%PKG_VERSION%_x86.msi" /> |
||||||
|
<variable architecture="x64" name="MSI" value="%SOFTWARE%\zabbix_agent\zabbix_agent-%PKG_VERSION%_x64.msi" /> |
||||||
|
|
||||||
|
<check type="uninstall" condition="versiongreaterorequal" path="Zabbix Agent" value="%PKG_VERSION%"/> |
||||||
|
|
||||||
|
<install cmd='msiexec /qn /i "%MSI%" SERVER=%IPASSERELLE_IP% RMTCMD=0' /> |
||||||
|
<install cmd='netsh firewall add portopening TCP 10050 "Zabbix Agent" enable custom "%IPASSERELLE_IP%"' /> |
||||||
|
<install cmd='%COMSPEC% /C sc start "Zabbix Agent"'> |
||||||
|
<exit code="any" /> |
||||||
|
</install> |
||||||
|
|
||||||
|
<upgrade cmd='%COMSPEC% /C sc stop "Zabbix Agent"'> |
||||||
|
<exit code="any" /> |
||||||
|
</upgrade> |
||||||
|
<upgrade include="install" /> |
||||||
|
|
||||||
|
<downgrade cmd='%COMSPEC% /C sc stop "Zabbix Agent"'> |
||||||
|
<exit code="any" /> |
||||||
|
</downgrade> |
||||||
|
<downgrade include="install" /> |
||||||
|
|
||||||
|
<remove cmd='%COMSPEC% /C sc stop "Zabbix Agent"'> |
||||||
|
<exit code="any" /> |
||||||
|
</remove> |
||||||
|
<remove cmd='%COMSPEC% /C msiexec /qn /norestart /x "%MSI%"' /> |
||||||
|
<remove cmd='netsh firewall delete portopening TCP 10050' /> |
||||||
|
|
||||||
|
</package> |
||||||
|
</packages> |
Binary file not shown.
Binary file not shown.
@ -0,0 +1,48 @@ |
|||||||
|
%define package zabbix_agent |
||||||
|
%define version 2.0.0 |
||||||
|
%define release 1 |
||||||
|
|
||||||
|
Name: wpkg-%{package} |
||||||
|
Version: %{version} |
||||||
|
Release: %{release}%{?dist} |
||||||
|
Summary: %{package} for WPKG on iPasserelle |
||||||
|
|
||||||
|
Group: System/Softwares |
||||||
|
URL: http://www.ipasserelle.com |
||||||
|
Source0: %{name}-%{version}.tar.gz |
||||||
|
License: misc |
||||||
|
|
||||||
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
||||||
|
BuildArch: noarch |
||||||
|
BuildRequires: unix2dos |
||||||
|
|
||||||
|
Requires: ipasserelle-gp |
||||||
|
|
||||||
|
%description |
||||||
|
%{package} for WPKG on iPasserelle |
||||||
|
|
||||||
|
%prep |
||||||
|
%setup -q -n %{name}-%{version} |
||||||
|
|
||||||
|
%build |
||||||
|
unix2dos packages/* |
||||||
|
|
||||||
|
%install |
||||||
|
/bin/rm -rf %{buildroot} |
||||||
|
mkdir -p %{buildroot}/home/e-smith/files/shares/wpkg/files/packages |
||||||
|
mkdir -p %{buildroot}/home/e-smith/files/shares/wpkg/files/softwares/%{package} |
||||||
|
cp -r softwares/* %{buildroot}/home/e-smith/files/shares/wpkg/files/softwares/%{package}/ |
||||||
|
cp -r packages/* %{buildroot}/home/e-smith/files/shares/wpkg/files/packages/ |
||||||
|
|
||||||
|
%files |
||||||
|
%defattr(-,root,root) |
||||||
|
%doc CHANGELOG.git |
||||||
|
/home/e-smith/files/shares/wpkg/files/ |
||||||
|
|
||||||
|
%clean |
||||||
|
/bin/rm -rf %{buildroot} |
||||||
|
|
||||||
|
%changelog |
||||||
|
* Mon Jul 9 2012 Daniel Berteaud <daniel@firewall-services.com> - 2.0.0 |
||||||
|
- initial release with Zabbix Agent 2.0.0 |
||||||
|
|
Loading…
Reference in new issue