Premier commit

tags/0.1 0.1
Daniel Berteaud 13 years ago
commit a8baca571c
  1. 22
      packages/settings.xml
  2. 48
      wpkg-settings.spec

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id="settings"
name="Parametrages du systeme"
revision="1"
reboot="false"
priority="10">
<check type="registry" condition="equals" path="HKLM\SYSTEM\CurrentControlSet\services\gpsvc\PreshutdownTimeout" value="1800000" />
<!-- Le timeout par défaut de 15min est trop juste pour certains déploiement
Ce réglage devrait se faire normalement à l'installation, mais les permissions sur cette clef de registre ne laisse
les droits de modifications qu'à l'utilisateur système -->
<install cmd='%COMSPEC% /C reg add "HKLM\SYSTEM\CurrentControlSet\services\gpsvc" /v PreshutdownTimeout /t REG_DWORD /d "1800000" /f' />
<upgrade include='install' />
<remove cmd='%COMSPEC% /C reg add "HKLM\SYSTEM\CurrentControlSet\services\gpsvc" /v PreshutdownTimeout /t REG_DWORD /d "900000" /f' />
</package>
</packages>

@ -0,0 +1,48 @@
%define package settings
%define version 0.1
%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
* Thu Aug 23 2012 Daniel Berteaud <daniel@firewall-services.com>
- initial release
Loading…
Cancel
Save