Fix package file, autoconfig during logon

tags/0.15.4.3_el5
Daniel Berteaud 11 years ago
parent c4312272f4
commit 905832c898
  1. 19
      packages/gajim.xml
  2. 19
      root/home/e-smith/files/shares/tools/files/scripts/session/020GajimProfile.bat
  3. 5
      wpkg-gajim.spec

@ -2,13 +2,13 @@
<packages> <packages>
<package id="gajim" <package id="gajim"
name="Client XMPP Gajim" name="Client XMPP Gajim"
revision="1" revision="2"
reboot="false" reboot="false"
priority="10"> priority="10">
<variable name="PKG_VERSION" value='0.15.4-3' /> <variable name="PKG_VERSION" value='0.15.4' />
<variable name="SETUP" value='gajim-%PKG_VERSION%.exe' /> <variable name="PKG_RELEASE" value="3" />
<variable name="SETUP" value='gajim-%PKG_VERSION%-%PKG_RELEASE%.exe' />
<variable architecture="x86" name="INSTALL_PATH" value="%PROGRAMFILES%\Gajim" /> <variable architecture="x86" name="INSTALL_PATH" value="%PROGRAMFILES%\Gajim" />
<variable architecture="x64" name="INSTALL_PATH" value="%PROGRAMFILES(x86)%\Gajim" /> <variable architecture="x64" name="INSTALL_PATH" value="%PROGRAMFILES(x86)%\Gajim" />
@ -16,6 +16,14 @@
<install include='remove' /> <install include='remove' />
<install cmd='%SOFTWARE%\gajim\%SETUP% /S' /> <install cmd='%SOFTWARE%\gajim\%SETUP% /S' />
<!-- XP -->
<install cmd='%COMSPEC% /C del /F /Q "%ALLUSERSPROFILE%\Bureau\Gajim.lnk"'>
<exit code="any" />
</install>
<!-- Vista / 7 -->
<install cmd='%COMSPEC% /C del /F /Q "%PUBLIC%\Desktop\Gajim.lnk"'>
<exit code="any" />
</install>
<upgrade include='install' /> <upgrade include='install' />
@ -25,7 +33,6 @@
<exit code="0" /> <exit code="0" />
<exit code="128" /> <exit code="128" />
</remove> </remove>
<remove cmd='"%INSTALL_PATH%\Uninstall.exe" /S' /> <remove cmd='%COMSPEC% /C if exist "%INSTALL_PATH%\Uninstall.exe" "%INSTALL_PATH%\Uninstall.exe" /S _?=%INSTALL_PATH%' />
</package> </package>
</packages> </packages>

@ -0,0 +1,19 @@
REM Configuration de Gajim au premier lancement
if not exist "%APPDATA%\Gajim\Config" (
mkdir "%APPDATA%\Gajim\"
echo one_message_window = always_with_roster>> "%APPDATA%\Gajim\Config"
echo accounts.%IPASSERELLE_DOMAIN%.autoauth = True>> "%APPDATA%\Gajim\Config"
echo accounts.%IPASSERELLE_DOMAIN%.name = %USERNAME%>> "%APPDATA%\Gajim\Config"
echo accounts.%IPASSERELLE_DOMAIN%.hostname = %IPASSERELLE_DOMAIN%>> "%APPDATA%\Gajim\Config"
echo accounts.%IPASSERELLE_DOMAIN%.sync_with_global_status = True>> "%APPDATA%\Gajim\Config"
echo accounts.%IPASSERELLE_DOMAIN%.active = True>> "%APPDATA%\Gajim\Config"
echo accounts.%IPASSERELLE_DOMAIN%.autoconnect = True>> "%APPDATA%\Gajim\Config"
echo accounts.%IPASSERELLE_DOMAIN%.autoconnect_as = online>> "%APPDATA%\Gajim\Config"
echo accounts.%IPASSERELLE_DOMAIN%.custom_host = %IPASSERELLE_NAME%.%IPASSERELLE_DOMAIN%>> "%APPDATA%\Gajim\Config"
echo accounts.%IPASSERELLE_DOMAIN%.send_os_info = False>> "%APPDATA%\Gajim\Config"
echo accounts.%IPASSERELLE_DOMAIN%.enable_message_carbons = True>> "%APPDATA%\Gajim\Config"
)
else (
echo "Gajim est configure"
)

@ -1,6 +1,6 @@
%define package gajim %define package gajim
%define version 0.15.4.3 %define version 0.15.4.3
%define release 1.beta0 %define release 1.beta1
Name: wpkg-%{package} Name: wpkg-%{package}
Version: %{version} Version: %{version}
@ -29,6 +29,7 @@ unix2dos packages/*
%install %install
/bin/rm -rf %{buildroot} /bin/rm -rf %{buildroot}
cp -a root %{buildroot}/
mkdir -p %{buildroot}/home/e-smith/files/shares/wpkg/files/packages mkdir -p %{buildroot}/home/e-smith/files/shares/wpkg/files/packages
mkdir -p %{buildroot}/home/e-smith/files/shares/wpkg/files/softwares/%{package} 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 softwares/* %{buildroot}/home/e-smith/files/shares/wpkg/files/softwares/%{package}/
@ -37,7 +38,7 @@ cp -r packages/* %{buildroot}/home/e-smith/files/shares/wpkg/files/packages/
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc CHANGELOG.git %doc CHANGELOG.git
/home/e-smith/files/shares/wpkg/files/ /home/e-smith/files/shares/
%clean %clean
/bin/rm -rf %{buildroot} /bin/rm -rf %{buildroot}

Loading…
Cancel
Save