premier commit

tags/wpkg-zabbix_agent-3.4.3-0.beta1 2.0.0
Daniel Berteaud 13 years ago
commit 6a087bf22b
  1. 37
      packages/zabbix_agent.xml
  2. BIN
      softwares/zabbix_agent-2.0.0_x64.msi
  3. BIN
      softwares/zabbix_agent-2.0.0_x86.msi
  4. 48
      wpkg-zabbix_agent.spec

@ -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>

@ -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…
Cancel
Save