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>
<package id="gajim"
name="Client XMPP Gajim"
revision="1"
revision="2"
reboot="false"
priority="10">
<variable name="PKG_VERSION" value='0.15.4-3' />
<variable name="SETUP" value='gajim-%PKG_VERSION%.exe' />
<variable name="PKG_VERSION" value='0.15.4' />
<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="x64" name="INSTALL_PATH" value="%PROGRAMFILES(x86)%\Gajim" />
@ -16,6 +16,14 @@
<install include='remove' />
<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' />
@ -25,7 +33,6 @@
<exit code="0" />
<exit code="128" />
</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>
</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 version 0.15.4.3
%define release 1.beta0
%define release 1.beta1
Name: wpkg-%{package}
Version: %{version}
@ -29,6 +29,7 @@ unix2dos packages/*
%install
/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/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
%defattr(-,root,root)
%doc CHANGELOG.git
/home/e-smith/files/shares/wpkg/files/
/home/e-smith/files/shares/
%clean
/bin/rm -rf %{buildroot}

Loading…
Cancel
Save