commit
900a526e18
2 changed files with 74 additions and 0 deletions
@ -0,0 +1,27 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<packages> |
||||||
|
<package id="ntp" |
||||||
|
name="Synchronisation de la date et de l'heure" |
||||||
|
revision="1" |
||||||
|
priority="10" |
||||||
|
reboot="false" |
||||||
|
execute="once"> |
||||||
|
|
||||||
|
<variable name="NTP_SERVER" value="%IPASSERELLE_NAME%.%IPASSERELLE_DOMAIN% 0.pool.ntp.org" /> |
||||||
|
|
||||||
|
<install cmd='%COMSPEC% /c sc config w32time start= auto' /> |
||||||
|
<install cmd='%COMSPEC% /c sc start w32time'> |
||||||
|
<exit code="any" /> |
||||||
|
</install> |
||||||
|
<install cmd='%COMSPEC% /c w32tm /config /update /syncfromflags:manual /manualpeerlist:"%NTP_SERVER%"' /> |
||||||
|
<install cmd='%COMSPEC% /c w32tm /resync /nowait' /> |
||||||
|
|
||||||
|
<upgrade include="install" /> |
||||||
|
|
||||||
|
<downgrade include="install" /> |
||||||
|
|
||||||
|
<remove cmd='%COMSPEC% /c w32tm /config /update /syncfromflags:manual /manualpeerlist:time.windows.com' /> |
||||||
|
<remove cmd='%COMSPEC% /c net stop w32time & net start w32time' /> |
||||||
|
<remove cmd='%COMSPEC% /c w32tm /resync /nowait' /> |
||||||
|
</package> |
||||||
|
</packages> |
@ -0,0 +1,47 @@ |
|||||||
|
%define package ntp |
||||||
|
%define version 0.1 |
||||||
|
%define realversion 0.1 |
||||||
|
%define release 0.beta1 |
||||||
|
|
||||||
|
Name: wpkg-%{package} |
||||||
|
Version: %{version}+%{realversion} |
||||||
|
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 |
||||||
|
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 |
||||||
|
* Tue Jun 5 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1+0.1-1 |
||||||
|
- initial release |
||||||
|
|
Loading…
Reference in new issue