Author: rmeggins
Update of /cvs/dirsec/fedora-idm-console/win
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18260
Added Files:
Console.wxs FedoraLogo.ico Makefile fedora-idm-console.bat
Log Message:
initial commit of Fedora Console for Windows - has no UI
--- NEW FILE Console.wxs ---
<?xml version='1.0' encoding='windows-1252'?>
<!-- BEGIN COPYRIGHT BLOCK
This Program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; version 2 of the License.
This Program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
Place, Suite 330, Boston, MA 02111-1307 USA.
In addition, as a special exception, Red Hat, Inc. gives You the additional
right to link the code of this Program with code not covered under the GNU
General Public License ("Non-GPL Code") and to distribute linked combinations
including the two, subject to the limitations in this paragraph. Non-GPL Code
permitted under this exception must only link to the code of this Program
through those well defined interfaces identified in the file named EXCEPTION
found in the source code files (the "Approved Interfaces"). The files of
Non-GPL Code may instantiate templates or use macros or inline functions from
the Approved Interfaces without causing the resulting work to be covered by
the GNU General Public License. Only Red Hat, Inc. may make changes or
additions to the list of Approved Interfaces. You must obey the GNU General
Public License in all respects for all of the Program code and other code used
in conjunction with the Program except the Non-GPL Code covered by this
exception. If you modify this file, you may extend this exception to your
version of the file, but you are not obligated to do so. If you do not wish to
provide this exception without modification, you must delete this exception
statement from your version and license this file solely under the GPL without
exception.
Copyright (C) 2007 Red Hat, Inc.
All rights reserved.
END COPYRIGHT BLOCK -->
<Wix
xmlns='http://schemas.microsoft.com/wix/2003/01/wi'>
<Product Name='Fedora Identity Management Console'
Id='5B5D4E30-55E2-49c1-84B3-10C1CE56907F'
Language='1033' Codepage='1252'
Version='1.1.0' Manufacturer='Fedora Project'>
<Package Id='????????-????-????-????-????????????'
Keywords='Installer'
Description="Fedora Identity Management Console Installer"
Manufacturer='Fedora Project'
InstallerVersion='100' Languages='1033' Compressed='yes'
SummaryCodepage='1252' />
<Media Id='1' Cabinet='Sample.cab' EmbedCab='yes'
DiskPrompt="CD-ROM #1" />
<Property Id='DiskPrompt' Value="Console Installation [1]" />
<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id='ProgramFilesFolder' Name='PFiles'>
<Directory Id='INSTALLDIR' Name='FIDMCON' LongName='Fedora
Identity Management Console'>
<Component Id='NSPRLibrary'
Guid='DE133754-3C99-49e7-8A71-0375AB348CDD'>
<File Id='NSPR' LongName='libnspr4.dll'
Name='libnspr4.dll' DiskId='1' src='libnspr4.dll'
Vital='yes' />
</Component>
<Component Id='NSPRpldsLibrary'
Guid='7DCDBD30-DC5B-4c89-BD94-EE55E1D9D082'>
<File Id='NSPRPLDS' LongName='libplds4.dll'
Name='libplds4.dll' DiskId='1' src='libplds4.dll'
Vital='yes' />
</Component>
<Component Id='NSPRplcLibrary'
Guid='4E707871-BA8E-41e2-982E-E3E79E85A599'>
<File Id='NSPRPLC' LongName='libplc4.dll'
Name='libplc4.dll' DiskId='1' src='libplc4.dll'
Vital='yes' />
</Component>
<Component Id='NSSLibrary'
Guid='3196F339-901E-42c4-AAD3-704775DCF5F4'>
<File Id='NSS' LongName='nss3.dll' Name='nss3.dll'
DiskId='1' src='nss3.dll' Vital='yes' />
</Component>
<Component Id='NSSsslLibrary'
Guid='004E7F81-77E8-4681-810B-E97EC9BE49F2'>
<File Id='NSSSSL' LongName='ssl3.dll'
Name='ssl3.dll' DiskId='1' src='ssl3.dll' Vital='yes'
/>
</Component>
<Component Id='NSSsoftoknLibrary'
Guid='B20D5FB4-B985-4c44-B4AA-8657C74B8061'>
<File Id='NSSSOFTTOKN' LongName='softokn3.dll'
Name='softokn3.dll' DiskId='1' src='softokn3.dll'
Vital='yes' />
</Component>
<Component Id='NSSsmimeLibrary'
Guid='84BD3153-5E80-4556-9B6C-C67B13B3BEA9'>
<File Id='NSSSMIME' LongName='smime3.dll'
Name='smime3.dll' DiskId='1' src='smime3.dll' Vital='yes'
/>
</Component>
<Component Id='NSSfreeblLibrary'
Guid='69D9F77F-27EA-4820-B931-07538AFC75FD'>
<File Id='NSSFREEBL' LongName='freebl3.dll'
Name='freebl3.dll' DiskId='1' src='freebl3.dll'
Vital='yes' />
</Component>
<Component Id='NSScertutil'
Guid='7741A56D-3E96-4823-AC0F-0B81A696651F'>
<File Id='NSSCERTUTIL' LongName='certutil.exe'
Name='certutil.exe' DiskId='1' src='certutil.exe'
Vital='yes' />
</Component>
<Component Id='NSSpk12util'
Guid='F10ABF8A-8C10-49f6-8150-45616EA4C360'>
<File Id='NSSPK12UTIL' LongName='pk12util.exe'
Name='pk12util.exe' DiskId='1' src='pk12util.exe'
Vital='yes' />
</Component>
<Component Id='JSSLibrary'
Guid='844240DD-3EE8-444e-BA48-5C114648096B'>
<File Id='JSSLIB' LongName='jss4.dll'
Name='jss4.dll' DiskId='1' src='jss4.dll' Vital='yes'
/>
</Component>
<Component Id='JSSJar'
Guid='064A960B-4D7E-45cc-895B-19DE1D9AEF77'>
<File Id='JSSJAR' LongName='jss4.jar'
Name='jss4.jar' DiskId='1' src='jss4.jar' Vital='yes'
/>
</Component>
<Component Id='LDAPJar'
Guid='E6D5B3AE-11F5-427f-85D3-D7A6A6A0A55D'>
<File Id='LDAPJAR' LongName='ldapjdk.jar'
Name='ldapjdk.jar' DiskId='1' src='ldapjdk.jar'
Vital='yes' />
</Component>
<Component Id='IDMBaseJar'
Guid='F45C344F-A3C2-4ffd-9CC6-22D36AA5E69E'>
<File Id='IDMBASEJAR' LongName='idm-console-base.jar'
Name='idmbase.jar' DiskId='1' src='idm-console-base.jar'
Vital='yes' />
</Component>
<Component Id='IDMMCCJar'
Guid='1DB26BB6-56AF-4e7e-BD55-8F1364B7A55B'>
<File Id='IDMMCCJAR' LongName='idm-console-mcc.jar'
Name='idmmcc.jar' DiskId='1' src='idm-console-mcc.jar'
Vital='yes' />
</Component>
<Component Id='IDMMCCENJar'
Guid='71FF3A08-C895-4648-A8CC-08F0CD2AD4D6'>
<File Id='IDMMCCENJAR' LongName='idm-console-mcc_en.jar'
Name='idmmccen.jar' DiskId='1' src='idm-console-mcc_en.jar'
Vital='yes' />
</Component>
<Component Id='IDMNMCLFJar'
Guid='2F118B1B-3413-4740-A99A-1B22E79AB232'>
<File Id='IDMNMCLFJAR' LongName='idm-console-nmclf.jar'
Name='idmnmclf.jar' DiskId='1' src='idm-console-nmclf.jar'
Vital='yes' />
</Component>
<Component Id='IDMNMCLFENJar'
Guid='EB4F2170-BFDC-4c5f-8A12-9812CAADB740'>
<File Id='IDMNMCLFENJAR'
LongName='idm-console-nmclf_en.jar' Name='idmnmcen.jar' DiskId='1'
src='idm-console-nmclf_en.jar' Vital='yes' />
</Component>
<Component Id='FedoraConsoleJar'
Guid='BE426443-1A07-406e-97FA-103D518BE233'>
<File Id='FEDORACONSOLEJAR'
LongName='fedora-idm-console_en.jar' Name='fconen.jar' DiskId='1'
src='fedora-idm-console_en.jar' Vital='yes' />
</Component>
<Component Id='FedoraConsoleBat'
Guid='00DEC033-5D77-49a2-9478-FA67E8D4EFEA'>
<File Id='FEDORACONSOLEBAT'
LongName='fedora-idm-console.bat' Name='fdracon.bat' DiskId='1'
src='fedora-idm-console.bat' Vital='yes' >
<Shortcut Id="startmenuFedoraConsole"
Directory="ProgramMenuDir" Name="FIDMCON"
LongName="Fedora IDM Console"
WorkingDirectory='INSTALLDIR'
Icon="FedoraLogo.ico" IconIndex="0" />
<Shortcut Id="desktopFedoraConsole"
Directory="DesktopFolder" Name="FIDMCON"
LongName="Fedora IDM Console"
WorkingDirectory='INSTALLDIR'
Icon="FedoraLogo.ico" IconIndex="0" />
</File>
</Component>
</Directory>
</Directory>
<Directory Id="ProgramMenuFolder" Name="PMenu"
LongName="Programs">
<Directory Id="ProgramMenuDir" Name='FIDMCON'
LongName="Fedora Identity Management Console" />
</Directory>
<Directory Id="DesktopFolder" Name="Desktop" />
</Directory>
<Feature Id='Complete' Title='Fedora Identity Management Console'
Description='The complete package.'
TypicalDefault='install' Display='expand' Level='1'
ConfigurableDirectory='INSTALLDIR'>
<Feature Id='MainProgram' Title='Program' Description='The
main executable.'
TypicalDefault='install' Level='1'>
<ComponentRef Id='NSPRLibrary' />
<ComponentRef Id='NSPRpldsLibrary' />
<ComponentRef Id='NSPRplcLibrary' />
<ComponentRef Id='NSSLibrary' />
<ComponentRef Id='NSSsslLibrary' />
<ComponentRef Id='NSSsoftoknLibrary' />
<ComponentRef Id='NSSsmimeLibrary' />
<ComponentRef Id='NSSfreeblLibrary' />
<ComponentRef Id='NSScertutil' />
<ComponentRef Id='NSSpk12util' />
<ComponentRef Id='JSSLibrary' />
<ComponentRef Id='JSSJar' />
<ComponentRef Id='LDAPJar' />
<ComponentRef Id='IDMBaseJar' />
<ComponentRef Id='IDMMCCJar' />
<ComponentRef Id='IDMMCCENJar' />
<ComponentRef Id='IDMNMCLFJar' />
<ComponentRef Id='IDMNMCLFENJar' />
<ComponentRef Id='FedoraConsoleJar' />
<ComponentRef Id='FedoraConsoleBat' />
</Feature>
</Feature>
<Icon Id="FedoraLogo.ico" SourceFile="FedoraLogo.ico" />
</Product>
</Wix>
--- NEW FILE FedoraLogo.ico ---
&11111111111111111111111111
--- NEW FILE Makefile ---
#
# BEGIN COPYRIGHT BLOCK
# This Program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; version 2 of the License.
#
# This Program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA 02111-1307 USA.
#
# In addition, as a special exception, Red Hat, Inc. gives You the additional
# right to link the code of this Program with code not covered under the GNU
# General Public License ("Non-GPL Code") and to distribute linked combinations
# including the two, subject to the limitations in this paragraph. Non-GPL Code
# permitted under this exception must only link to the code of this Program
# through those well defined interfaces identified in the file named EXCEPTION
# found in the source code files (the "Approved Interfaces"). The files of
# Non-GPL Code may instantiate templates or use macros or inline functions from
# the Approved Interfaces without causing the resulting work to be covered by
# the GNU General Public License. Only Red Hat, Inc. may make changes or
# additions to the list of Approved Interfaces. You must obey the GNU General
# Public License in all respects for all of the Program code and other code used
# in conjunction with the Program except the Non-GPL Code covered by this
# exception. If you modify this file, you may extend this exception to your
# version of the file, but you are not obligated to do so. If you do not wish to
# provide this exception without modification, you must delete this exception
# statement from your version and license this file solely under the GPL without
# exception.
#
#
# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
# Copyright (C) 2005 Red Hat, Inc.
# All rights reserved.
# END COPYRIGHT BLOCK
#
# Packaging nmake Makefile for Console.msi
PKGNAME=Console
PKGDIR=.
WXSDIR=.
BASEDIR=E:\cygwin\home\rich
# where to find nspr dlls
NSPRLIBDIR=$(BASEDIR)\nspr-4.6.7
# where to find nss dlls
NSSLIBDIR=$(BASEDIR)\nss-3.11.7
# where to find nss exes
NSSBINDIR=$(BASEDIR)\nss-3.11.7
# where to find jss jar and dll
JSSDIR=$(BASEDIR)\jss-4.2.4
# where to find the ldapjdk.jar
LDAPDIR=$(BASEDIR)\console
#LDAPDIR=$(BASEDIR)\ldapjdk-4.18
# where to find the idm-console-framework jars
IDMDIR=$(BASEDIR)\console
# where to find the fedora-idm-console jar and other files
FEDORACONSOLEDIR=.
WIXDIR=$(BASEDIR)\wix
CANDLE=$(WIXDIR)\candle
LIGHT=$(WIXDIR)\light
ALL : $(PKGNAME).msi
LAYOUT :
copy /Y $(NSPRLIBDIR)\*.dll $(PKGDIR)
copy /Y $(NSSLIBDIR)\*.dll $(PKGDIR)
copy /Y $(NSSBINDIR)\certutil.exe $(PKGDIR)
copy /Y $(NSSBINDIR)\pk12util.exe $(PKGDIR)
copy /Y $(JSSDIR)\jss4.jar $(PKGDIR)
copy /Y $(JSSDIR)\jss4.dll $(PKGDIR)
copy /Y $(LDAPDIR)\ldapjdk.jar $(PKGDIR)
copy /Y $(IDMDIR)\*.jar $(PKGDIR)
# copy /Y $(FEDORACONSOLEDIR)\*.jar $(PKGDIR)
# copy /Y $(FEDORACONSOLEDIR)\*.bat $(PKGDIR)
# copy /Y $(FEDORACONSOLEDIR)\*.ico $(PKGDIR)
$(PKGNAME).msi : LAYOUT
cd "$(PKGDIR)"
$(CANDLE) "$(WXSDIR)\$(PKGNAME).wxs"
$(LIGHT) $(PKGNAME).wixobj
--- NEW FILE fedora-idm-console.bat ---
echo off
rem BEGIN COPYRIGHT BLOCK
rem Copyright (C) 2005 Red Hat, Inc.
rem All rights reserved.
rem
rem This library is free software; you can redistribute it and/or
rem modify it under the terms of the GNU Lesser General Public
rem License as published by the Free Software Foundation version
rem 2.1 of the License.
rem
rem This library is distributed in the hope that it will be useful,
rem but WITHOUT ANY WARRANTY; without even the implied warranty of
rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
rem Lesser General Public License for more details.
rem
rem You should have received a copy of the GNU Lesser General Public
rem License along with this library; if not, write to the Free Software
rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
rem END COPYRIGHT BLOCK
rem set the JAVA to use here
rem set JAVA=C:\j2sdk1.4.2_15\bin\java
if not %JAVA%foo==foo goto launch
where java > nul 2>&1 || goto findjre
set JAVA=java
goto launch
:findjre
rem look for Java Runtime Environment in registry
reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Runtime Environment" > nul 2>&1
|| goto findjdk
rem can we grab the java location from the registry?
rem set JAVA=path\bin\java
rem apparently not, in a batch file
rem goto launch
echo The Java Runtime Environment is installed on this machine, but the
echo command java.exe is not in your PATH. You can either make sure java.exe
echo is in the PATH, or edit this script to set JAVA to the full path of
echo java.exe
pause
goto end
:findjdk
reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Development Kit" > nul 2>&1 ||
goto nojava
rem can we grab the java location from the registry?
rem set JAVA=path\bin\java
rem goto launch
echo The Java Development Kit is installed on this machine, but the
echo command java.exe is not in your PATH. You can either make sure java.exe
echo is in the PATH, or edit this script to set JAVA to the full path of
echo java.exe
pause
goto end
:nojava
echo Java does not appear to be installed on this machine. Please download and install
the Java Runtime Environment and make sure the java.exe command is in the PATH of this
command.
pause
goto end
:launch
set BASEPATH=.
set FIDMCONSOLEJARDIR=%BASEPATH%
set CONSOLEJARDIR=%BASEPATH%
set JSSDIR=%BASEPATH%
set LDAPJARDIR=%BASEPATH%
set PATH=%BASEPATH%;%PATH%
rem
rem Launch the Console
rem
echo on
%JAVA% "-Djava.library.path=%JSSDIR%" -cp
"%JSSDIR%/jss4.jar;%LDAPJARDIR%/ldapjdk.jar;%CONSOLEJARDIR%/idm-console-base.jar;%CONSOLEJARDIR%/idm-console-mcc.jar;%CONSOLEJARDIR%/idm-console-mcc_en.jar;%CONSOLEJARDIR%/idm-console-nmclf.jar;%CONSOLEJARDIR%/idm-console-nmclf_en.jar;%FIDMCONSOLEJARDIR%/fedora-idm-console_en.jar"
-Djava.util.prefs.systemRoot=%HOME%/.fedora-idm-console
-Djava.util.prefs.userRoot=%HOME%/.fedora-idm-console
com.netscape.management.client.console.Console %*
:end