Compare commits
62 Commits
Author | SHA1 | Date | |
---|---|---|---|
f33ae77937 | |||
da8a775020 | |||
2e3e67f26c | |||
d098c43154 | |||
232a09dd13 | |||
d923fb5f91 | |||
febe491142 | |||
a03a9cfb65 | |||
e6fadb30a0 | |||
e618c1ab42 | |||
cce13671a6 | |||
eea6783023 | |||
be83912999 | |||
875be09377 | |||
c9c4a4497b | |||
b6cd827b7a | |||
eb50508ce7 | |||
1ff63acc8c | |||
cab4b70c9f | |||
1b0c9093ba | |||
7071c58d8b | |||
b5411efa5e | |||
de2b9f307c | |||
1a22526c98 | |||
3216581294 | |||
ab72548671 | |||
d6f9336cda | |||
cdf3c0ebb6 | |||
f42808be3e | |||
eeb6b71002 | |||
23d889ba8a | |||
|
230573bd9f | ||
a2f57cfed0 | |||
7ca6abed3f | |||
008406b577 | |||
d6e5603f53 | |||
25e4752290 | |||
d9c2182f61 | |||
304ce4f5fa | |||
9046a2e3f4 | |||
5b77ac7846 | |||
d32a07020f | |||
0c43e420e3 | |||
0d8b097378 | |||
727e2517eb | |||
c5a3f00931 | |||
9097c5ea4b | |||
5bdb2b7bff | |||
dde1bd7369 | |||
adc614b54a | |||
e256ee0e41 | |||
a509f4fbdb | |||
4f48c53250 | |||
99921d8000 | |||
a3338ecbc4 | |||
95aecadc6f | |||
e666f44f7e | |||
63b2a4c93f | |||
a1197b245b | |||
175d2aff1d | |||
5ca3473783 | |||
d7ae79e2d5 |
89
Makefile
89
Makefile
@@ -1,14 +1,16 @@
|
||||
# Makefile for openmamba-desktop-base
|
||||
# Copyright (C) 2004-2009 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
# Copyright (C) 2004-2011 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
# Copyright (C) 2005-2007 by Davide Madrisan <davide.madrisan@gmail.com>
|
||||
|
||||
include VERSION
|
||||
include SRPMSVERSIONS
|
||||
|
||||
PACKAGE = desktop-base-openmamba
|
||||
|
||||
DISTROID = openmamba
|
||||
|
||||
WITHKDE3 := 1
|
||||
WITHKDE3TOOLS := 1
|
||||
|
||||
RPM_VENDOR = openmamba
|
||||
RPM_DISTRIBUTION = openmamba
|
||||
RPM_DISTROEXT = mamba
|
||||
@@ -37,26 +39,23 @@ datadir = ${prefix}/share
|
||||
initrddir = ${sysconfdir}/rc.d/init.d
|
||||
mandir = ${prefix}/usr/share/man
|
||||
sysconfigdir= ${sysconfdir}/sysconfig
|
||||
xprofiledir = ${sysconfdir}/xprofile.d
|
||||
mambabasedatadir = ${datadir}/openmamba/mambabase
|
||||
mambareportdatadir = ${datadir}/openmamba/mambareport
|
||||
mambawelcomedatadir = ${datadir}/openmamba/mambawelcome
|
||||
mambaimagesdir = ${datadir}/openmamba/images
|
||||
xramdrdatadir = ${datadir}/openmamba/xramdr
|
||||
bootrecoverdatadir = ${datadir}/openmamba/bootrecover
|
||||
usbinstalldatadir = ${datadir}/openmamba/usbinstall
|
||||
iconsdir = ${datadir}/icons/hicolor
|
||||
kdeprefixdir = $(shell kde-config --prefix)
|
||||
kde4prefixdir = $(shell kde4-config --prefix)
|
||||
kdedatadir = $(kdeprefixdir)/share
|
||||
kde4bindir = $(kde4prefixdir)/bin
|
||||
kdeautostartdir = ${kdedatadir}/autostart
|
||||
kdeconfigdir = ${kdedatadir}/config
|
||||
kdewallpapersdir = ${kdedatadir}/wallpapers
|
||||
localesdir = ${datadir}/locale
|
||||
kdelocalesdir = ${kdedatadir}/locale
|
||||
aptconfdir = ${sysconfdir}/apt/apt.conf.d
|
||||
aptscriptsdir = ${datadir}/apt/scripts
|
||||
|
||||
pck_desktop = $(wildcard desktop/*.bz2)
|
||||
systemlogodir = ${datadir}/pixmaps
|
||||
xdg_appsdir = ${datadir}/applications
|
||||
xdg_directorydir = ${datadir}/desktop-directories
|
||||
xdg_menudir = ${sysconfdir}/xdg/menus
|
||||
@@ -65,7 +64,7 @@ xdg_mergedmenudir = $(xdg_menudir)/applications-merged
|
||||
distrorootdir = ${datadir}/$(DISTROid)
|
||||
distrobindir = ${distrorootdir}/bin
|
||||
distrosrpmsdir = ${distrorootdir}/SRPMS
|
||||
distrokdedir = ${distrorootdir}/kde
|
||||
distrodesktopdir = ${distrorootdir}/desktop
|
||||
srcdir = .
|
||||
|
||||
INSTALL = /usr/bin/install
|
||||
@@ -74,24 +73,24 @@ INSTALL_DATA = ${INSTALL} -m 644
|
||||
INSTALL_DIR = ${INSTALL} -d -m 755
|
||||
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
|
||||
|
||||
pck_kdedesktop = $(wildcard kde/desktop/*)
|
||||
#pck_srpms = flashplugin jre msttcorefonts win32codecs
|
||||
pck_srpms = flashplugin msttcorefonts win32codecs skype b43-firmware virtualbox-extension-pack
|
||||
pck_srpms = flashplugin msttcorefonts win32codecs skype b43-firmware virtualbox-extension-pack sun-java7
|
||||
|
||||
pck_infiles := $(wildcard kde/config/*.in \
|
||||
kde/scripts/*.in \
|
||||
kde/wallpapers/*.in \
|
||||
menu/*.in menu/applications/*.in menu/applications/*/*.in \
|
||||
SRPMS/*/*.in)
|
||||
SRPMS/*/*.in \
|
||||
desktop/*.in)
|
||||
pck_sysconfigfile := distroutils.sysconfig
|
||||
|
||||
distdir = $(PACKAGE)-$(VERSION)
|
||||
dist_archive = $(distdir).tar.bz2
|
||||
|
||||
pck_desktop := $(wildcard desktop/*.tar.bz2)
|
||||
pck_catalogs := $(wildcard mambabase/po/*.po)
|
||||
pck_catalogs1 := $(wildcard mambawelcome/po/*.po)
|
||||
pck_catalogs2 := $(wildcard bootrecover/po/*.po)
|
||||
pck_catalogs3 := $(wildcard usbinstall/po/*.po)
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .in .po .mo
|
||||
@@ -107,12 +106,13 @@ pck_catalogs3 := $(wildcard usbinstall/po/*.po)
|
||||
s,@datadir@,${datadir},g;\
|
||||
s,@bindir@,$(bindir),g;\
|
||||
s,@distrobindir@,$(distrobindir),g;\
|
||||
s,@distrokdedir@,$(distrokdedir),g;\
|
||||
s,@distrodesktopdir@,$(distrodesktopdir),g;\
|
||||
s,@distrosrpmsdir@,$(distrosrpmsdir),g;\
|
||||
s,@wallpaper@,$(DEFAULT_WALLPAPER),g;\
|
||||
s,@screensaver@,${SCREENSAVER},g;\
|
||||
s,@flashpluginver@,${FLASHPLUGIN_VERSION},g;\
|
||||
s,@win32codecsver@,${WIN32CODECS_VERSION},g;\
|
||||
s,@sunjava7ver@,${SUN_JAVA7_VERSION},g;\
|
||||
s,@virtualboxextensionpackver@,${VIRTUALBOX_EXTENSION_PACK_VERSION},g;\
|
||||
s,@skypever@,${SKYPE_VERSION},g" $< > $@
|
||||
|
||||
@@ -146,13 +146,6 @@ install-locales: locales
|
||||
$(INSTALL_DIR) $$dir;\
|
||||
$(INSTALL_DATA) $${f/.po/.mo} $$dir/bootrecover.mo;\
|
||||
done
|
||||
@for f in $(pck_catalogs3); do\
|
||||
lang=`echo $$f | sed 's,.*/\(.*\)\.po,\1,'`;\
|
||||
echo "installing i18n file for language \`$$lang'...";\
|
||||
dir="$(DESTDIR)$(localesdir)/$$lang/LC_MESSAGES";\
|
||||
$(INSTALL_DIR) $$dir;\
|
||||
$(INSTALL_DATA) $${f/.po/.mo} $$dir/usbinstall.mo;\
|
||||
done
|
||||
|
||||
install-kde-distro-addons: dist-update
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)
|
||||
@@ -160,16 +153,20 @@ install-kde-distro-addons: dist-update
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(datadir)
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(sbindir)
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(distrobindir)
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(kde4bindir)
|
||||
ifeq ($(WITHKDE3),1)
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(kdedatadir)
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(kdeautostartdir)
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(kdeconfigdir)
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(kdewallpapersdir)
|
||||
endif
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(mambaimagesdir)
|
||||
cp -r etc/polkit-1 $(DESTDIR)$(sysconfdir)/
|
||||
cp -r etc/prelink.conf.d $(DESTDIR)$(sysconfdir)/
|
||||
cp -r etc/xprofile.d $(DESTDIR)$(sysconfdir)/
|
||||
chmod 755 $(DESTDIR)$(sysconfdir)/xprofile.d/*.sh
|
||||
$(INSTALL_SCRIPT) kde/scripts/showlog $(DESTDIR)$(distrobindir)
|
||||
cp -r menu/icons/ $(DESTDIR)$(datadir)/icons/
|
||||
ifeq ($(WITHKDE3),1)
|
||||
cp -r kde/apps $(DESTDIR)$(kdedatadir)
|
||||
$(INSTALL_DATA) kde/autostart/kmix.desktop $(DESTDIR)$(kdeautostartdir)/kmix.desktop
|
||||
$(INSTALL_DATA) kde/config/*rc $(DESTDIR)$(kdeconfigdir)/
|
||||
@@ -177,8 +174,8 @@ install-kde-distro-addons: dist-update
|
||||
$(INSTALL_DATA) kde/config/kdeglobals $(DESTDIR)$(kdeconfigdir)/kdeglobals
|
||||
$(INSTALL_DATA) kde/wallpapers/$(WALLPAPER).desktop $(DESTDIR)$(kdewallpapersdir)
|
||||
$(INSTALL_DATA) kde/wallpapers/{$(WALLPAPERS)} $(DESTDIR)$(kdewallpapersdir)
|
||||
endif
|
||||
$(INSTALL_DATA) kde/wallpapers/{$(COMPIZ_WALLPAPERS)} $(DESTDIR)$(mambaimagesdir)
|
||||
# $(INSTALL_SCRIPT) kde/bin/konsole-nofork $(DESTDIR)$(kde4bindir)
|
||||
|
||||
install-distromenu: dist-update
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(xdg_directorydir)
|
||||
@@ -211,38 +208,53 @@ install-srpms:
|
||||
done
|
||||
|
||||
install-icons:
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(systemlogodir)/; \
|
||||
$(INSTALL_DATA) mambabase/mamba-64x64.png $(DESTDIR)$(systemlogodir)/system-logo-white.png
|
||||
@for i in 16x16 22x22 32x32 48x48 64x64 128x128; do \
|
||||
$(INSTALL_DIR) $(DESTDIR)$(iconsdir)/$$i/apps/; \
|
||||
$(INSTALL_DATA) mambabase/mamba-$$i.png $(DESTDIR)$(iconsdir)/$$i/apps/mamba.png; \
|
||||
done
|
||||
ifeq ($(WITHKDE3TOOLS),1)
|
||||
@for i in 16x16 22x22 32x32 48x48 64x64 128x128; do \
|
||||
$(INSTALL_DATA) mambawelcome/mambawelcome-$$i.png $(DESTDIR)$(iconsdir)/$$i/apps/mambawelcome.png; \
|
||||
# $(INSTALL_DATA) xramdr/xramdr-$$i.png $(DESTDIR)$(iconsdir)/$$i/apps/xramdr.png; \
|
||||
$(INSTALL_DATA) bootrecover/bootrecover-$$i.png $(DESTDIR)$(iconsdir)/$$i/apps/bootrecover.png; \
|
||||
done
|
||||
endif
|
||||
# $(INSTALL_DATA) xramdr/xramdr-$$i.png $(DESTDIR)$(iconsdir)/$$i/apps/xramdr.png \
|
||||
|
||||
install-mambabase:
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(mambabasedatadir)
|
||||
$(INSTALL_SCRIPT) mambabase/mambabase.kmdr $(DESTDIR)$(mambabasedatadir)
|
||||
$(INSTALL_DATA) mambabase/mambabase.db $(DESTDIR)$(mambabasedatadir)
|
||||
$(INSTALL_SCRIPT) mambabase/mambabase.sh $(DESTDIR)$(mambabasedatadir)
|
||||
ifeq ($(WITHKDE3TOOLS),1)
|
||||
$(INSTALL_SCRIPT) mambabase/mambabase.kmdr $(DESTDIR)$(mambabasedatadir)
|
||||
$(INSTALL_DATA) mambabase/mambabase.desktop $(DESTDIR)$(xdg_appsdir)
|
||||
$(INSTALL_DATA) mambabase/mambabase-autostart.desktop $(DESTDIR)$(mambabasedatadir)
|
||||
endif
|
||||
|
||||
install-mambareport:
|
||||
$(INSTALL_SCRIPT) mambareport/openmamba-makereport $(DESTDIR)$(bindir)
|
||||
ifeq ($(WITHKDE3TOOLS),1)
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(mambareportdatadir)
|
||||
$(INSTALL_SCRIPT) mambareport/mambareport.kmdr $(DESTDIR)$(mambareportdatadir)
|
||||
$(INSTALL_SCRIPT) mambareport/openmamba-makereport $(DESTDIR)$(bindir)
|
||||
$(INSTALL_DATA) mambareport/mambareport.desktop $(DESTDIR)$(xdg_appsdir)
|
||||
endif
|
||||
|
||||
install-mambawelcome:
|
||||
ifeq ($(WITHKDE3TOOLS),1)
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(mambawelcomedatadir)
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)/rc.d/{init.d,rc5.d}
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(kdeconfigdir)
|
||||
$(INSTALL_SCRIPT) mambawelcome/mambawelcome.kmdr $(DESTDIR)$(mambawelcomedatadir)
|
||||
$(INSTALL_SCRIPT) mambawelcome/mambawelcome.sh $(DESTDIR)$(mambawelcomedatadir)
|
||||
$(INSTALL_SCRIPT) mambawelcome/mambawelcome-init $(DESTDIR)$(sysconfdir)/rc.d/init.d/mambawelcome
|
||||
$(INSTALL_DATA) gpl.html $(DESTDIR)$(mambawelcomedatadir)/gpl.html
|
||||
$(INSTALL_DATA) gpl-it.html $(DESTDIR)$(mambawelcomedatadir)/gpl-it.html
|
||||
$(INSTALL_DATA) gpl-es.html $(DESTDIR)$(mambawelcomedatadir)/gpl-es.html
|
||||
$(INSTALL_DATA) kde/config/kcmfonts $(DESTDIR)$(kdeconfigdir)/kcmfonts
|
||||
$(INSTALL_DATA) kde/config/kdeglobals $(DESTDIR)$(kdeconfigdir)/kdeglobals
|
||||
ln -s ../init.d/mambawelcome $(DESTDIR)$(sysconfdir)/rc.d/rc5.d/S99mambawelcome
|
||||
endif
|
||||
|
||||
install-xramdr:
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(xramdrdatadir)
|
||||
@@ -251,20 +263,16 @@ install-xramdr:
|
||||
|
||||
install-bootrecover:
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(bootrecoverdatadir)
|
||||
$(INSTALL_SCRIPT) bootrecover/bootrecover.kmdr $(DESTDIR)$(bootrecoverdatadir)
|
||||
$(INSTALL_SCRIPT) bootrecover/bootrecover.sh $(DESTDIR)$(bootrecoverdatadir)
|
||||
ifeq ($(WITHKDE3TOOLS),1)
|
||||
$(INSTALL_SCRIPT) bootrecover/bootrecover.kmdr $(DESTDIR)$(bootrecoverdatadir)
|
||||
$(INSTALL_DATA) bootrecover/openmamba-bootrecover.desktop $(DESTDIR)$(xdg_appsdir)
|
||||
endif
|
||||
|
||||
install-apt-extras:
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(aptconfdir) $(DESTDIR)$(aptscriptsdir)
|
||||
$(INSTALL_DATA) apt/post-install.conf $(DESTDIR)$(aptconfdir)
|
||||
$(INSTALL_SCRIPT) apt/post-install.lua $(DESTDIR)$(aptscriptsdir)
|
||||
$(INSTALL_SCRIPT) apt/post-install.sh $(DESTDIR)$(aptscriptsdir)
|
||||
|
||||
install-usbinstall:
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(usbinstalldatadir)
|
||||
$(INSTALL_SCRIPT) usbinstall/usbinstall.sh $(DESTDIR)$(usbinstalldatadir)
|
||||
$(INSTALL_DATA) usbinstall/usbinstall.desktop $(DESTDIR)$(xdg_appsdir)
|
||||
install-desktop:
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(distrodesktopdir)
|
||||
$(INSTALL_DATA) $(pck_desktop) $(DESTDIR)$(distrodesktopdir)
|
||||
$(INSTALL_SCRIPT) desktop/desktop-firsttime.sh $(DESTDIR)$(xprofiledir)
|
||||
|
||||
install-openmamba-update:
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(bindir)
|
||||
@@ -275,15 +283,14 @@ install: $(pck_infiles:.in=) \
|
||||
install-kde-distro-addons \
|
||||
install-distromenu \
|
||||
install-srpms \
|
||||
install-desktop \
|
||||
install-openmamba-update \
|
||||
install-mambabase \
|
||||
install-mambawelcome \
|
||||
install-mambareport \
|
||||
install-usbinstall \
|
||||
install-openmamba-update \
|
||||
install-bootrecover \
|
||||
install-locales \
|
||||
install-icons \
|
||||
install-apt-extras
|
||||
install-icons
|
||||
|
||||
dist: clean
|
||||
@git log > ChangeLog.git
|
||||
|
@@ -4,10 +4,10 @@
|
||||
#FLASH_PLUGIN_PCK=flashplayer9_install_linux_082207.tar.gz
|
||||
#FLASH_PLUGIN_PCK=flash-player-plugin-9.0.48.0.tar.bz2
|
||||
#FLASH_PLUGIN_PCK=install_flash_player_9_linux.tar.gz
|
||||
FLASH_PLUGIN_PCK=install_flash_player_10_linux.tar.gz
|
||||
FLASH_PLUGIN_PCK=install_flash_player_11_linux.i386.tar.gz
|
||||
|
||||
# package URL (do not modify unless you know what you're doing)
|
||||
#FLASH_PLUGIN_URL=http://download.macromedia.com/pub/labs/flashplayer9_update/
|
||||
#FLASH_PLUGIN_URL=http://macromedia.rediris.es/rpmsource/
|
||||
#FLASH_PLUGIN_URL=http://fpdownload.macromedia.com/get/flashplayer/current/
|
||||
FLASH_PLUGIN_URL=http://fpdownload.macromedia.com/get/flashplayer/current/
|
||||
FLASH_PLUGIN_URL=http://fpdownload.macromedia.com/get/flashplayer/pdc/${FLASHPLUGIN_VERSION}/
|
||||
|
@@ -7,14 +7,4 @@ HAS_MS_LICENSE=no
|
||||
|
||||
# Select the server that is closest to you by removing the '#'
|
||||
# character in one of the following lines:
|
||||
MSTTCF_URL=http://mesh.dl.sourceforge.net/project/corefonts/the%20fonts/final/
|
||||
#MSTTCF_URL=http://aleron.dl.sourceforge.net/sourceforge/corefonts
|
||||
#MSTTCF_URL=http://belnet.dl.sourceforge.net/sourceforge/corefonts
|
||||
#MSTTCF_URL=http://cesnet.dl.sourceforge.net/sourceforge/corefonts
|
||||
#MSTTCF_URL=http://flow.dl.sourceforge.net/sourceforge/corefonts
|
||||
#MSTTCF_URL=http://switch.dl.sourceforge.net/sourceforge/corefonts
|
||||
#MSTTCF_URL=http://twtelecom.dl.sourceforge.net/sourceforge/corefonts
|
||||
#MSTTCF_URL=http://unc.dl.sourceforge.net/sourceforge/corefonts
|
||||
#MSTTCF_URL=http://umn.dl.sourceforge.net/sourceforge/corefonts
|
||||
#MSTTCF_URL=http://easynews.dl.sourceforge.net/sourceforge/corefonts/
|
||||
|
||||
MSTTCF_URL=http://downloads.sourceforge.net/project/corefonts/the%20fonts/final
|
||||
|
@@ -1,8 +1,8 @@
|
||||
## Skype
|
||||
|
||||
# package name (do not modify unless you know what you're doing)
|
||||
#SKYPE_PCK=skype-2.0.0.68.tar.bz2
|
||||
#SKYPE_PCK=skype-4.0.0.7.tar.bz2
|
||||
|
||||
# package URL (do not modify unless you know what you're doing)
|
||||
#SKYPE_URL=http://download.skype.com/linux/
|
||||
SKYPE_URL=http://www.skype.com/go/getskype-linux-dynamic
|
||||
SKYPE_URL=http://www.skype.com/go/getskype-linux-beta-dynamic
|
||||
|
@@ -38,15 +38,11 @@ tmpdir=$(mktemp -q -d -t skype.XXXXXXXX)
|
||||
|
||||
wget -nv --timeout=10 --tries=2 \
|
||||
${SKYPE_URL}${SKYPE_PCK} -P ${tmpdir}
|
||||
|
||||
SKYPE_ARCHIVE="`ls ${tmpdir}/skype-*`"
|
||||
|
||||
SKYPE_ARCHIVE="`ls ${tmpdir}/*skype-* 2>/dev/null`"
|
||||
[ -f ${SKYPE_ARCHIVE} ] || exit 1
|
||||
|
||||
if [ `echo ${SKYPE_ARCHIVE} | grep "tar.bz2$"` ]; then
|
||||
tar xjf ${SKYPE_ARCHIVE} --strip-components=1
|
||||
else
|
||||
tar xzf ${SKYPE_ARCHIVE} --strip-components=1
|
||||
fi
|
||||
tar xf ${SKYPE_ARCHIVE} --strip-components=1
|
||||
|
||||
%build -q
|
||||
|
||||
|
68
SRPMS/sun-java7/LICENSE
Normal file
68
SRPMS/sun-java7/LICENSE
Normal file
@@ -0,0 +1,68 @@
|
||||
Oracle Binary Code License Agreement for the Java SE Platform Products and JavaFX
|
||||
|
||||
ORACLE AMERICA, INC. ("ORACLE"), FOR AND ON BEHALF OF ITSELF AND ITS SUBSIDIARIES AND AFFILIATES UNDER COMMON CONTROL, IS WILLING TO LICENSE THE SOFTWARE TO YOU ONLY UPON THE CONDITION THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS BINARY CODE LICENSE AGREEMENT AND SUPPLEMENTAL LICENSE TERMS (COLLECTIVELY "AGREEMENT"). PLEASE READ THE AGREEMENT CAREFULLY. BY SELECTING THE "ACCEPT LICENSE AGREEMENT" (OR THE EQUIVALENT) BUTTON AND/OR BY USING THE SOFTWARE YOU ACKNOWLEDGE THAT YOU HAVE READ THE TERMS AND AGREE TO THEM. IF YOU ARE AGREEING TO THESE TERMS ON BEHALF OF A COMPANY OR OTHER LEGAL ENTITY, YOU REPRESENT THAT YOU HAVE THE LEGAL AUTHORITY TO BIND THE LEGAL ENTITY TO THESE TERMS. IF YOU DO NOT HAVE SUCH AUTHORITY, OR IF YOU DO NOT WISH TO BE BOUND BY THE TERMS, THEN SELECT THE "DECLINE LICENSE AGREEMENT" (OR THE EQUIVALENT) BUTTON AND YOU MUST NOT USE THE SOFTWARE ON THIS SITE OR ANY OTHER MEDIA ON WHICH THE SOFTWARE IS CONTAINED.
|
||||
|
||||
1. DEFINITIONS. "Software" means the software identified above in binary form that you selected for download, install or use (in the version You selected for download, install or use) from Oracle or its authorized licensees, any other machine readable materials (including, but not limited to, libraries, source files, header files, and data files), any updates or error corrections provided by Oracle, and any user manuals, programming guides and other documentation provided to you by Oracle under this Agreement. "General Purpose Desktop Computers and Servers" means computers, including desktop and laptop computers, or servers, used for general computing functions under end user control (such as but not specifically limited to email, general purpose Internet browsing, and office suite productivity tools). The use of Software in systems and solutions that provide dedicated functionality (other than as mentioned above) or designed for use in embedded or function-specific software applications, for example but not limited to: Software embedded in or bundled with industrial control systems, wireless mobile telephones, wireless handheld devices, kiosks, TV/STB, Blu-ray Disc devices, telematics and network control switching equipment, printers and storage management systems, and other related systems are excluded from this definition and not licensed under this Agreement. "Programs" means (a) Java technology applets and applications intended to run on the Java Platform, Standard Edition platform on Java-enabled General Purpose Desktop Computers and Servers; and (b) JavaFX technology applications intended to run on the JavaFX Runtime on JavaFX-enabled General Purpose Desktop Computers and Servers. “Commercial Features” means those features identified in Table 1-1 (Commercial Features In Java SE Product Editions) of the Java SE documentation accessible at http://www.oracle.com/technetwork/java/javase/documentation/index.html. “README File” means the README file for the Software accessible at http://www.oracle.com/technetwork/java/javase/documentation/index.html.
|
||||
|
||||
2. LICENSE TO USE. Subject to the terms and conditions of this Agreement including, but not limited to, the Java Technology Restrictions of the Supplemental License Terms, Oracle grants you a non-exclusive, non-transferable, limited license without license fees to reproduce and use internally the Software complete and unmodified for the sole purpose of running Programs. THE LICENSE SET FORTH IN THIS SECTION 2 DOES NOT EXTEND TO THE COMMERCIAL FEATURES. YOUR RIGHTS AND OBLIGATIONS RELATED TO THE COMMERCIAL FEATURES ARE AS SET FORTH IN THE SUPPLEMENTAL TERMS ALONG WITH ADDITIONAL LICENSES FOR DEVELOPERS AND PUBLISHERS.
|
||||
|
||||
3. RESTRICTIONS. Software is copyrighted. Title to Software and all associated intellectual property rights is retained by Oracle and/or its licensors. Unless enforcement is prohibited by applicable law, you may not modify, decompile, or reverse engineer Software. You acknowledge that the Software is developed for general use in a variety of information management applications; it is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use the Software in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle disclaims any express or implied warranty of fitness for such uses. No right, title or interest in or to any trademark, service mark, logo or trade name of Oracle or its licensors is granted under this Agreement. Additional restrictions for developers and/or publishers licenses are set forth in the Supplemental License Terms.
|
||||
|
||||
4. DISCLAIMER OF WARRANTY. THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. ORACLE FURTHER DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
|
||||
|
||||
5. LIMITATION OF LIABILITY. IN NO EVENT SHALL ORACLE BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, PUNITIVE OR CONSEQUENTIAL DAMAGES, OR DAMAGES FOR LOSS OF PROFITS, REVENUE, DATA OR DATA USE, INCURRED BY YOU OR ANY THIRD PARTY, WHETHER IN AN ACTION IN CONTRACT OR TORT, EVEN IF ORACLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. ORACLE'S ENTIRE LIABILITY FOR DAMAGES HEREUNDER SHALL IN NO EVENT EXCEED ONE THOUSAND DOLLARS (U.S. $1,000).
|
||||
|
||||
6. TERMINATION. This Agreement is effective until terminated. You may terminate this Agreement at any time by destroying all copies of Software. This Agreement will terminate immediately without notice from Oracle if you fail to comply with any provision of this Agreement. Either party may terminate this Agreement immediately should any Software become, or in either party's opinion be likely to become, the subject of a claim of infringement of any intellectual property right. Upon termination, you must destroy all copies of Software.
|
||||
|
||||
7. EXPORT REGULATIONS. You agree that U.S. export control laws and other applicable export and import laws govern your use of the Software, including technical data; additional information can be found on Oracle's Global Trade Compliance web site (http://www.oracle.com/products/export). You agree that neither the Software nor any direct product thereof will be exported, directly, or indirectly, in violation of these laws, or will be used for any purpose prohibited by these laws including, without limitation, nuclear, chemical, or biological weapons proliferation.
|
||||
|
||||
8. TRADEMARKS AND LOGOS. You acknowledge and agree as between you
|
||||
and Oracle that Oracle owns the ORACLE and JAVA trademarks and all ORACLE- and JAVA-related trademarks, service marks, logos and other brand
|
||||
designations ("Oracle Marks"), and you agree to comply with the Third
|
||||
Party Usage Guidelines for Oracle Trademarks currently located at
|
||||
http://www.oracle.com/us/legal/third-party-trademarks/index.html . Any use you make of the Oracle Marks inures to Oracle's benefit.
|
||||
|
||||
9. U.S. GOVERNMENT LICENSE RIGHTS. If Software is being acquired by or on behalf of the U.S. Government or by a U.S. Government prime contractor or subcontractor (at any tier), then the Government's rights in Software and accompanying documentation shall be only those set forth in this Agreement.
|
||||
|
||||
10. GOVERNING LAW. This agreement is governed by the substantive and procedural laws of California. You and Oracle agree to submit to the exclusive jurisdiction of, and venue in, the courts of San Francisco, or Santa Clara counties in California in any dispute arising out of or relating to this agreement.
|
||||
|
||||
11. SEVERABILITY. If any provision of this Agreement is held to be unenforceable, this Agreement will remain in effect with the provision omitted, unless omission would frustrate the intent of the parties, in which case this Agreement will immediately terminate.
|
||||
|
||||
12. INTEGRATION. This Agreement is the entire agreement between you and Oracle relating to its subject matter. It supersedes all prior or contemporaneous oral or written communications, proposals, representations and warranties and prevails over any conflicting or additional terms of any quote, order, acknowledgment, or other communication between the parties relating to its subject matter during the term of this Agreement. No modification of this Agreement will be binding, unless in writing and signed by an authorized representative of each party.
|
||||
|
||||
SUPPLEMENTAL LICENSE TERMS
|
||||
|
||||
These Supplemental License Terms add to or modify the terms of the Binary Code License Agreement. Capitalized terms not defined in these Supplemental Terms shall have the same meanings ascribed to them in the Binary Code License Agreement. These Supplemental Terms shall supersede any inconsistent or conflicting terms in the Binary Code License Agreement, or in any license contained within the Software.
|
||||
|
||||
A. COMMERCIAL FEATURES. You may not use the Commercial Features for running Programs, Java applets or applications in your internal business operations or for any commercial or production purpose, or for any purpose other than as set forth in Sections B, C, D and E of these Supplemental Terms. If You want to use the Commercial Features for any purpose other than as permitted in this Agreement, You must obtain a separate license from Oracle.
|
||||
|
||||
B. SOFTWARE INTERNAL USE FOR DEVELOPMENT LICENSE GRANT. Subject to the terms and conditions of this Agreement and restrictions and exceptions set forth in the README File incorporated herein by reference, including, but not limited to the Java Technology Restrictions of these Supplemental Terms, Oracle grants you a non-exclusive, non-transferable, limited license without fees to reproduce internally and use internally the Software complete and unmodified for the purpose of designing, developing, and testing your Programs.
|
||||
|
||||
C. LICENSE TO DISTRIBUTE SOFTWARE. Subject to the terms and conditions of this Agreement and restrictions and exceptions set forth in the README File, including, but not limited to the Java Technology Restrictions and Limitations on Redistribution of these Supplemental Terms, Oracle grants you a non-exclusive, non-transferable, limited license without fees to reproduce and distribute the Software, provided that (i) you distribute the Software complete and unmodified and only bundled as part of, and for the sole purpose of running, your Programs, (ii) the Programs add significant and primary functionality to the Software, (iii) you do not distribute additional software intended to replace any component(s) of the Software, (iv) you do not remove or alter any proprietary legends or notices contained in the Software, (v) you only distribute the Software subject to a license agreement that: (a) is a complete, unmodified reproduction of this Agreement; or (b) protects Oracle's interests consistent with the terms contained in this Agreement and that includes the notice set forth in Section H, and (vi) you agree to defend and indemnify Oracle and its licensors from and against any damages, costs, liabilities, settlement amounts and/or expenses (including attorneys' fees) incurred in connection with any claim, lawsuit or action by any third party that arises or results from the use or distribution of any and all Programs and/or Software. The license set forth in this Section C does not extend to the Software identified in Section G.
|
||||
|
||||
D. LICENSE TO DISTRIBUTE REDISTRIBUTABLES. Subject to the terms and conditions of this Agreement and restrictions and exceptions set forth in the README File, including but not limited to the Java Technology Restrictions and Limitations on Redistribution of these Supplemental Terms, Oracle grants you a non-exclusive, non-transferable, limited license without fees to reproduce and distribute those files specifically identified as redistributable in the README File ("Redistributables") provided that: (i) you distribute the Redistributables complete and unmodified, and only bundled as part of Programs, (ii) the Programs add significant and primary functionality to the Redistributables, (iii) you do not distribute additional software intended to supersede any component(s) of the Redistributables (unless otherwise specified in the applicable README File), (iv) you do not remove or alter any proprietary legends or notices contained in or on the Redistributables, (v) you only distribute the Redistributables pursuant to a license agreement that: (a) is a complete, unmodified reproduction of this Agreement; or (b) protects Oracle's interests consistent with the terms contained in the Agreement and includes the notice set forth in Section H, (vi) you agree to defend and indemnify Oracle and its licensors from and against any damages, costs, liabilities, settlement amounts and/or expenses (including attorneys' fees) incurred in connection with any claim, lawsuit or action by any third party that arises or results from the use or distribution of any and all Programs and/or Software. The license set forth in this Section D does not extend to the Software identified in Section G.
|
||||
|
||||
E. DISTRIBUTION BY PUBLISHERS. This section pertains to your distribution of the JavaTM SE Development Kit Software (“JDK”) with your printed book or magazine (as those terms are commonly used in the industry) relating to Java technology ("Publication"). Subject to and conditioned upon your compliance with the restrictions and obligations contained in the Agreement, Oracle hereby grants to you a non-exclusive, nontransferable limited right to reproduce complete and unmodified copies of the JDK on electronic media (the "Media") for the sole purpose of inclusion and distribution with your Publication(s), subject to the following terms: (i) You may not distribute the JDK on a stand-alone basis; it must be distributed with your Publication(s); (ii) You are responsible for downloading the JDK from the applicable Oracle web site; (iii) You must refer to the JDK as JavaTM SE Development Kit; (iv) The JDK must be reproduced in its entirety and without any modification whatsoever (including with respect to all proprietary notices) and distributed with your Publication subject to a license agreement that is a complete, unmodified reproduction of this Agreement; (v) The Media label shall include the following information: “Copyright [YEAR], Oracle America, Inc. All rights reserved. Use is subject to license terms. ORACLE and JAVA trademarks and all ORACLE- and JAVA-related trademarks, service marks, logos and other brand designations are trademarks or registered trademarks of Oracle in the U.S. and other countries.” [YEAR] is the year of Oracle's release of the Software; the year information can typically be found in the Software’s “About” box or screen. This information must be placed on the Media label in such a manner as to only apply to the JDK; (vi) You must clearly identify the JDK as Oracle's product on the Media holder or Media label, and you may not state or imply that Oracle is responsible for any third-party software contained on the Media; (vii) You may not include any third party software on the Media which is intended to be a replacement or substitute for the JDK; (viii) You agree to defend and indemnify Oracle and its licensors from and against any damages, costs, liabilities, settlement amounts and/or expenses (including attorneys' fees) incurred in connection with any claim, lawsuit or action by any third party that arises or results from the use or distribution of the JDK and/or the Publication; ; and (ix) You shall provide Oracle with a written notice for each Publication; such notice shall include the following information: (1) title of Publication, (2) author(s), (3) date of Publication, and (4) ISBN or ISSN numbers. Such notice shall be sent to Oracle America, Inc., 500 Oracle Parkway, Redwood Shores, California 94065 U.S.A , Attention: General Counsel.
|
||||
|
||||
F. JAVA TECHNOLOGY RESTRICTIONS. You may not create, modify, or change the behavior of, or authorize your licensees to create, modify, or change the behavior of, classes, interfaces, or subpackages that are in any way identified as "java", "javax", "sun", “oracle” or similar convention as specified by Oracle in any naming convention designation.
|
||||
|
||||
G. LIMITATIONS ON REDISTRIBUTION. You may not redistribute or otherwise transfer: (a) JavaFX Runtime prior to version 2.0.2, (b) JavaFX Development Kit prior to version 2.0.2, or (c) any and all patches, bug fixes and updates made available by Oracle through Oracle Premier Support, including those made available under Oracle's Java SE Support program.
|
||||
|
||||
H. COMMERCIAL FEATURES NOTICE. For purpose of complying with Supplemental Term Section C.(v)(b) and D.(v)(b), your license agreement shall include the following notice, where the notice is displayed in a manner that anyone using the Software will see the notice:
|
||||
|
||||
Use of the Commercial Features for any commercial or production purpose requires a separate license from Oracle. “Commercial Features” means those features identified Table 1-1 (Commercial Features In Java SE Product Editions) of the Java SE documentation accessible at http://www.oracle.com/technetwork/java/javase/documentation/index.html
|
||||
|
||||
I. SOURCE CODE. Software may contain source code that, unless expressly licensed for other purposes, is provided solely for reference purposes pursuant to the terms of this Agreement. Source code may not be redistributed unless expressly provided for in this Agreement.
|
||||
|
||||
J. THIRD PARTY CODE. Additional copyright notices and license terms applicable to portions of the Software are set forth in the THIRDPARTYLICENSEREADME file accessible at http://www.oracle.com/technetwork/java/javase/documentation/index.html. In addition to any terms and conditions of any third party opensource/freeware license identified in the THIRDPARTYLICENSEREADME file, the disclaimer of warranty and limitation of liability provisions in paragraphs 4 and 5 of the Binary Code License Agreement shall apply to all Software in this distribution.
|
||||
|
||||
K. TERMINATION FOR INFRINGEMENT. Either party may terminate this Agreement immediately should any Software become, or in either party's opinion be likely to become, the subject of a claim of infringement of any intellectual property right.
|
||||
|
||||
L. INSTALLATION AND AUTO-UPDATE. The Software's installation and auto-update processes transmit a limited amount of data to Oracle (or its service provider) about those specific processes to help Oracle understand and optimize them. Oracle does not associate the data with personally identifiable information. You can find more information about the data Oracle collects as a result of your Software download at http://www.oracle.com/technetwork/java/javase/documentation/index.html.
|
||||
|
||||
For inquiries please contact:
|
||||
Oracle America, Inc., 500 Oracle Parkway,
|
||||
Redwood Shores, California 94065, USA.
|
||||
|
||||
Last updated 2 July 2012
|
||||
|
0
SRPMS/sun-java7/distroutils.sysconfig
Normal file
0
SRPMS/sun-java7/distroutils.sysconfig
Normal file
721
SRPMS/sun-java7/sun-java7.spec.in
Normal file
721
SRPMS/sun-java7/sun-java7.spec.in
Normal file
@@ -0,0 +1,721 @@
|
||||
%define JRE_NSVER 7
|
||||
|
||||
%define MAJOR %(echo %version | cut -du -f1)
|
||||
%define MINOR %(echo %version | cut -du -f2)
|
||||
%define major 1.%{MAJOR}
|
||||
%define minor 0
|
||||
%define origin sun
|
||||
%define javaver %{major}.%{minor}
|
||||
%define jppname java-%{javaver}-%{origin}
|
||||
%define javaws_ver %{javaver}
|
||||
%define toplevel_dir jdk%{javaver}_06
|
||||
%define distversion %{version}
|
||||
%define label -%{name}
|
||||
%define jdklnk jdk7-%{origin}
|
||||
%define jrelnk jre7-%{origin}
|
||||
%define jdkdir %{jppname}
|
||||
%define jredir %{jdkdir}/jre
|
||||
%define jdkbindir %{_jvmdir}/%{jdklnk}/bin
|
||||
%define jdklibdir %{_jvmdir}/%{jdklnk}/lib
|
||||
%define jrebindir %{_jvmdir}/%{jrelnk}/bin
|
||||
%define jvmjardir %{_jvmjardir}/%{jppname}
|
||||
%define cgibindir %{_var}/www/cgi-bin
|
||||
|
||||
Name: sun-java7
|
||||
Version: @sunjava7ver@
|
||||
Release: 2@distroext@
|
||||
Epoch: 1
|
||||
Summary: Sun Java Developer's Kit
|
||||
Group: System/Libraries/Java
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: http://www.oracle.com/technetwork/java/javase/overview/index.html
|
||||
Source: LICENSE
|
||||
#Source0: http://download.oracle.com/otn-pub/java/jdk/7u6-b24/jdk-%{version}-linux-i586.tar.gz
|
||||
#Source1: http://download.oracle.com/otn-pub/java/jdk/7u6-b24/jdk-%{version}-linux-x64.tar.gz
|
||||
#Source2: http://download.oracle.com/otn-pub/java/jdk/7u6-b24/jdk-%{version}-linux-arm-sfp.tar.gz
|
||||
#Source3: sun-java7-jdk-profile
|
||||
#Source4: sun-java7-jre-profile
|
||||
BuildRequires: jpackage-utils
|
||||
Provides: jdk = %{version}
|
||||
Provides: jdk2 = %{version}
|
||||
License: Oracle Binary Code License
|
||||
Requires: shared-mime-info
|
||||
Requires: desktop-file-utils
|
||||
Requires: sun-java7-runtime = %{epoch}:%{version}-%{release}
|
||||
Requires: menu-java
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
Sun Java Developer's Kit.
|
||||
|
||||
%package runtime
|
||||
Summary: Sun Java Platform Runtime Environment
|
||||
Group: System/Libraries/Java
|
||||
Obsoletes: j2re
|
||||
Provides: j2re = %{version}
|
||||
Provides: jre = %{version}
|
||||
|
||||
%description runtime
|
||||
Sun Java Platform Runtime Environment.
|
||||
|
||||
%prep
|
||||
[ "%{toplevel_dir}" != / ] && rm -rf "%{toplevel_dir}"
|
||||
|
||||
%setup -q -T -c
|
||||
|
||||
#echo yes | MORE=10000
|
||||
%ifarch %{ix86}
|
||||
wget -nv --tries=2 --no-cookies --header \
|
||||
"Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2Ftechnetwork%2Fjava%2Fjavase%2Fdownloads%2Fjdk-%{version}-download-1501626.html;" \
|
||||
http://download.oracle.com/otn-pub/java/jdk/%{version}-b24/jdk-%{version}-linux-i586.tar.gz
|
||||
tar xf jdk-%{version}-linux-i586.tar.gz
|
||||
%endif
|
||||
%ifarch x86_64
|
||||
wget -nv --tries=2 --no-cookies --header \
|
||||
"Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2Ftechnetwork%2Fjava%2Fjavase%2Fdownloads%2Fjdk-%{version}-download-1501626.html;" \
|
||||
http://download.oracle.com/otn-pub/java/jdk/%{version}-b24/jdk-%{version}-linux-x64.tar.gz
|
||||
tar xf jdk-%{version}-linux-x64.tar.gz
|
||||
%endif
|
||||
%ifarch arm
|
||||
wget -nv --tries=2 --no-cookies --header \
|
||||
"Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2Ftechnetwork%2Fjava%2Fjavase%2Fdownloads%2Fjdk-%{version}-download-1501626.html;" \
|
||||
http://download.oracle.com/otn-pub/java/jdk/%{version}-b24/jdk-%{version}-linux-arm-sfp.tar.gz
|
||||
tar xf jdk-%{version}-linux-arm-sfp.tar.gz
|
||||
%endif
|
||||
|
||||
cd %{toplevel_dir}
|
||||
#cp %{SOURCE5} ./construct.sh
|
||||
#mkdir unbundle-jdk
|
||||
#cd unbundle-jdk
|
||||
#sh %{SOURCE0} --accept-license
|
||||
chmod -R u+w *
|
||||
|
||||
#for pack in $(find . -name "*.pack"); do
|
||||
# bin/unpack200 $pack $(echo $pack | sed -e s:.pack::g).jar
|
||||
#done
|
||||
|
||||
%install
|
||||
cd %{toplevel_dir}
|
||||
#construct.sh unbundle-jdk linux-jdk linux-jre
|
||||
install -d -m 755 %{buildroot}%{_jvmdir}/%{jdkdir}
|
||||
install -d -m 755 %{buildroot}%{_jvmdir}/%{jredir}
|
||||
|
||||
cat > bin/HtmlConverter << EOF
|
||||
%{jrebindir}/java -jar %{jdklibdir}/htmlconverter.jar $*
|
||||
EOF
|
||||
|
||||
sed -i "s|PATH=.*|PATH=%{jrebindir}|" bin/java-rmi.cgi
|
||||
# main
|
||||
cp -a bin include lib src.zip %{buildroot}%{_jvmdir}/%{jdkdir}
|
||||
# extensions
|
||||
install -d -m 755 %{buildroot}%{jvmjardir}
|
||||
|
||||
pushd %{buildroot}%{jvmjardir}
|
||||
|
||||
ln -s %{_jvmdir}/%{jredir}/lib/jsse.jar jsse-%{javaver}.jar
|
||||
ln -s %{_jvmdir}/%{jredir}/lib/jce.jar jce-%{javaver}.jar
|
||||
ln -s %{_jvmdir}/%{jredir}/lib/rt.jar jndi-%{javaver}.jar
|
||||
ln -s %{_jvmdir}/%{jredir}/lib/rt.jar jndi-ldap-%{javaver}.jar
|
||||
ln -s %{_jvmdir}/%{jredir}/lib/rt.jar jndi-cos-%{javaver}.jar
|
||||
ln -s %{_jvmdir}/%{jredir}/lib/rt.jar jndi-rmi-%{javaver}.jar
|
||||
ln -s %{_jvmdir}/%{jredir}/lib/rt.jar jaas-%{javaver}.jar
|
||||
ln -s %{_jvmdir}/%{jredir}/lib/rt.jar jdbc-stdext-%{javaver}.jar
|
||||
ln -s jdbc-stdext-%{javaver}.jar jdbc-stdext-3.0.jar
|
||||
ln -s %{_jvmdir}/%{jredir}/lib/rt.jar sasl-%{javaver}.jar
|
||||
# ln -s %{_jvmdir}/%{jredir}/lib/rt.jar xml-commons-apis.jar
|
||||
for jar in *-%{javaver}.jar ; do
|
||||
#if [ %{version} != %{javaver} ]; then
|
||||
#ln -fs ${jar} $(echo $jar | sed "s|-%{version}.jar|-%{javaver}.jar|g")
|
||||
#fi
|
||||
ln -fs ${jar} $(echo $jar | sed "s|-%{javaver}.jar|.jar|g")
|
||||
done
|
||||
|
||||
popd
|
||||
|
||||
# rest of jre
|
||||
cp -a jre/bin jre/lib %{buildroot}%{_jvmdir}/%{jredir}
|
||||
#cp -a jre/javaws %{buildroot}%{_jvmdir}/%{jredir}
|
||||
%ifnarch arm
|
||||
cp -a jre/plugin %{buildroot}%{_jvmdir}/%{jredir}
|
||||
%endif
|
||||
|
||||
# see <http://www.java.com/it/download/help/5000010500.xml#install>
|
||||
mkdir -p %{buildroot}%{_datadir}/pixmaps
|
||||
mkdir -p %{buildroot}%{_datadir}/icons/mini
|
||||
%ifnarch arm
|
||||
install -m 644 jre/plugin/desktop/%{origin}_java.png \
|
||||
%{buildroot}%{_datadir}/pixmaps/%{name}.png
|
||||
ln -s %{_datadir}/pixmaps/%{name}.png %{buildroot}%{_datadir}/icons/mini/%{name}.png
|
||||
|
||||
install -d %{buildroot}%{_libdir}/mozilla/plugins
|
||||
pushd %{buildroot}%{_jvmdir}/%{jredir}
|
||||
ln -s %{_jvmdir}/%{jredir}/plugin/i386/ns%{JRE_NSVER}/libjavaplugin_oji.so \
|
||||
%{buildroot}%{_libdir}/mozilla/plugins/libjava7plugin_oji.so
|
||||
ln -s %{_jvmdir}/%{jredir}/plugin/i386/ns%{JRE_NSVER}/libjavaplugin_oji.so \
|
||||
%{buildroot}%{_libdir}/mozilla/plugins/libjava7plugin.so
|
||||
ln -s %{_jvmdir}/%{jredir}/lib/i386/libjavaplugin_jni.so \
|
||||
%{buildroot}%{_libdir}/mozilla/plugins/libjava7plugin_jni.so
|
||||
ln -s %{_jvmdir}/%{jredir}/lib/i386/libjavaplugin_nscp.so \
|
||||
%{buildroot}%{_libdir}/mozilla/plugins/libjava7plugin_nscp.so
|
||||
ln -s %{_jvmdir}/%{jredir}/lib/i386/libnpjp2.so \
|
||||
%{buildroot}%{_libdir}/mozilla/plugins/libnpjp2-7.so
|
||||
popd
|
||||
%endif
|
||||
|
||||
install -d -m 755 %{buildroot}%{_jvmprivdir}/%{name}/jce/vanilla
|
||||
for file in local_policy.jar US_export_policy.jar; do
|
||||
mv %{buildroot}%{_jvmdir}/%{jredir}/lib/security/$file \
|
||||
%{buildroot}%{_jvmprivdir}/%{name}/jce/vanilla
|
||||
# for ghosts
|
||||
touch %{buildroot}%{_jvmdir}/%{jredir}/lib/security/$file
|
||||
done
|
||||
|
||||
pushd %{buildroot}%{_jvmdir}
|
||||
ln -s %{jredir} %{jrelnk}
|
||||
ln -s %{jdkdir} %{jdklnk}
|
||||
popd
|
||||
|
||||
pushd %{buildroot}%{_jvmjardir}
|
||||
ln -s %{jdkdir} %{jrelnk}
|
||||
ln -s %{jdkdir} %{jdklnk}
|
||||
popd
|
||||
|
||||
mkdir -p %{buildroot}%{_mandir}/man1
|
||||
for manpage in man/man1/*; do
|
||||
install -m 644 -p $manpage \
|
||||
%{buildroot}%{_mandir}/man1/`basename $manpage .1`-%{origin}7.1
|
||||
done
|
||||
|
||||
|
||||
mkdir -p %{buildroot}%{_jvmdir}/%{jdkdir}
|
||||
#cp -a demo sample %{buildroot}%{_jvmdir}/%{jdkdir}
|
||||
|
||||
|
||||
mkdir -p %{buildroot}%{_datadir}/mime/packages/
|
||||
mkdir -p %{buildroot}%{_datadir}/applications
|
||||
|
||||
%ifnarch arm
|
||||
for style in hicolor HighContrast HighContrastInverse LowContrast; do
|
||||
for size in 16 48; do
|
||||
for kind in apps mimetypes; do
|
||||
mkdir -p %{buildroot}%{_datadir}/icons/$style/${size}x${size}/$kind
|
||||
install -m 644 jre/lib/desktop/icons/$style/${size}x${size}/$kind/*.png \
|
||||
%{buildroot}%{_datadir}/icons/$style/${size}x${size}/$kind
|
||||
done
|
||||
done
|
||||
done
|
||||
|
||||
rm -rf %{buildroot}%{_datadir}/icons/hicolor/48x48/mimetypes/gnome-mime-text-x-java.png
|
||||
rm -rf %{buildroot}%{_datadir}/icons/hicolor/16x16/mimetypes/gnome-mime-text-x-java.png
|
||||
|
||||
cp -a jre/lib/desktop/mime/packages/* %{buildroot}%{_datadir}/mime/packages/
|
||||
cp -a jre/lib/desktop/applications/%{origin}-java.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
|
||||
|
||||
mkdir -p %{buildroot}%{_datadir}/applications
|
||||
if [ -e %{buildroot}%{_jvmdir}/%{jdkdir}/bin/jvisualvm ]; then
|
||||
cat >> %{buildroot}%{_datadir}/applications/%{name}-jvisualvm.desktop << EOF
|
||||
[Desktop Entry]
|
||||
Name=Java VisualVM (%{name})
|
||||
Comment=Java Virtual Machine Monitoring, Troubleshooting, and Profiling Tool
|
||||
Exec=%{_jvmdir}/%{jdkdir}/bin/jvisualvm
|
||||
Icon=%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Development;Profiling;
|
||||
EOF
|
||||
fi
|
||||
|
||||
# ControlPanel freedesktop.org menu entry
|
||||
cat > %{buildroot}%{_datadir}/applications/%{name}-jcontrol.desktop << EOF
|
||||
[Desktop Entry]
|
||||
Name=Java Plugin Control Panel (%{name})
|
||||
Comment=Java Control Panel
|
||||
Exec=%{_jvmdir}/%{jdkdir}/bin/jcontrol
|
||||
Icon=%{_datadir}/icons/hicolor/48x48/apps/sun-jcontrol.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Settings;Java;
|
||||
EOF
|
||||
|
||||
# javaws freedesktop.org menu entry
|
||||
cat > %{buildroot}%{_datadir}/applications/%{name}-javaws.desktop << EOF
|
||||
[Desktop Entry]
|
||||
Name=Java Web Start (%{name})
|
||||
Comment=Java Application Launcher
|
||||
MimeType=application/x-java-jnlp-file;
|
||||
Exec=%{_jvmdir}/%{jredir}/bin/javaws %%u
|
||||
Icon=%{_datadir}/icons/hicolor/48x48/apps/sun-javaws.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Settings;Java;
|
||||
EOF
|
||||
%endif
|
||||
|
||||
mkdir -p %{buildroot}%{_datadir}/fonts/ttf/j2se-%{origin}
|
||||
mkdir -p %{buildroot}%{_datadir}/fonts/ttf/j2se-%{origin}-oblique
|
||||
|
||||
# move the fonts into a shared fonts directory
|
||||
install -m 644 jre/lib/fonts/*.ttf \
|
||||
%{buildroot}%{_datadir}/fonts/ttf/j2se-%{origin}
|
||||
install -m 644 jre/lib/oblique-fonts/*.ttf \
|
||||
%{buildroot}%{_datadir}/fonts/ttf/j2se-%{origin}-oblique
|
||||
|
||||
rm -rf %{buildroot}%{_jvmdir}/%{jredir}/lib/fonts
|
||||
rm -rf %{buildroot}%{_jvmdir}/%{jredir}/lib/oblique-fonts
|
||||
ln -s ../../../../../share/fonts/ttf/j2se-%{origin} \
|
||||
%{buildroot}%{_jvmdir}/%{jredir}/lib/fonts
|
||||
ln -s ../../../../../share/fonts/ttf/j2se-%{origin}-oblique \
|
||||
%{buildroot}%{_jvmdir}/%{jredir}/lib/oblique-fonts
|
||||
|
||||
#install -d %{buildroot}%{_sysconfdir}/profile.d
|
||||
#sed -i "s|__JDK__PREFIX__|%{_jvmdir}|" %{S:3}
|
||||
#sed -i "s|__JRE__PREFIX__|%{_jvmdir}%{jrelnk}|" %{S:4}
|
||||
#install -m0755 %{S:3} %{buildroot}%{_sysconfdir}/profile.d/%{jdklnk}.sh
|
||||
#install -m0755 %{S:4} %{buildroot}%{_sysconfdir}/profile.d/%{jrelnk}.sh
|
||||
|
||||
mkdir %{buildroot}%{_javadir}-%{javaver}
|
||||
mkdir %{buildroot}%{_jnidir}-%{javaver}
|
||||
|
||||
## FIXME: temporary workaround to provide openjdk (required by ooobuild-3.1.0.6 odk patch)
|
||||
#ln -s %{jdkdir} %{buildroot}%{_libdir}/jvm/java-%{MAJOR}-openjdk
|
||||
|
||||
pushd %{buildroot}%{_jvmdir}/%{jredir}/lib
|
||||
for l in *.jar; do
|
||||
ln -s ../jre/lib/$l %{buildroot}%{_jvmdir}/%{jdkdir}/lib/$l
|
||||
done
|
||||
|
||||
install -d -m 0755 %{buildroot}%{_jvmdir}/%{jredir}/.systemPrefs
|
||||
touch %{buildroot}%{_jvmdir}/%{jredir}/.systemPrefs/.systemRootModFile
|
||||
|
||||
#for file in %{buildroot}%{_jvmdir}/%{jdkdir}/bin/* %{buildroot}%{_jvmdir}/%{jredir}/bin/*
|
||||
#do
|
||||
# chrpath --list $file && chrpath --delete $file || :
|
||||
#done
|
||||
#for file in $(find %{buildroot}%{_jvmdir}/%{jdkdir}/demo -name "*.so")
|
||||
#do
|
||||
# chrpath --list $file && chrpath --delete $file || :
|
||||
#done
|
||||
#for file in $(find %{buildroot}%{_jvmdir}/%{jredir}/lib -name "*.so")
|
||||
#do
|
||||
# chrpath --list $file && chrpath --delete $file || :
|
||||
#done
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||
|
||||
%pre
|
||||
if [ $1 -ge 1 ]; then
|
||||
# legacy cleanups
|
||||
for b in javac jar; do
|
||||
/usr/sbin/update-alternatives --remove $b \
|
||||
/opt/java/jdk/bin/$b 2>/dev/null
|
||||
done
|
||||
fi
|
||||
:
|
||||
|
||||
%post
|
||||
if [ $1 -ge 1 ]; then
|
||||
# new install
|
||||
if ! echo ${PATH} | grep -q %{_jredir}/bin; then
|
||||
export PATH="$PATH:%{_jredir}/bin"
|
||||
fi
|
||||
for b in javac jar; do
|
||||
[ -L %{_bindir}/$b -a "`readlink %{_bindir}/$b`" != "%{_sysconfdir}/alternatives/$b" ] &&
|
||||
rm -f %{_bindir}/$b
|
||||
%{_sbindir}/update-alternatives \
|
||||
--install %{_bindir}/$b $b \
|
||||
%{_jvmdir}/%{jdklnk}/bin/$b 56
|
||||
done
|
||||
%{_sbindir}/update-alternatives \
|
||||
--install %{_jvmdir}/jdk jdk \
|
||||
%{_jvmdir}/%{jdklnk} 56
|
||||
%{_sbindir}/update-alternatives \
|
||||
--install %{_jvmjardir}/jdk jdk-exports \
|
||||
%{_jvmjardir}/%{jdklnk} 56
|
||||
fi
|
||||
:
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ]; then
|
||||
for b in javac jar; do
|
||||
%{_sbindir}/update-alternatives --remove $b \
|
||||
%{_jvmdir}/%{jdklnk}/bin/$b
|
||||
done
|
||||
%{_sbindir}/update-alternatives --remove jdk \
|
||||
%{_jvmdir}/%{jdklnk}
|
||||
%{_sbindir}/update-alternatives --remove jdk-exports \
|
||||
%{_jvmjardir}/%{jdklnk}
|
||||
fi
|
||||
:
|
||||
|
||||
%pre runtime
|
||||
if [ $1 -ge 1 ]; then
|
||||
[ -L %{_jvmdir}/%{jredir}/lib/fonts ] || rm -rf %{_jvmdir}/%{jredir}/lib/fonts
|
||||
[ -L %{_jvmdir}/%{jredir}/lib/oblique-fonts ] || rm -rf %{_jvmdir}/%{jredir}/lib/oblique-fonts
|
||||
[ -e %{_jvmdir}/%{jrelnk} ] && rm -rf %{_jvmdir}/%{jrelnk}
|
||||
[ -L %{_bindir}/java -a "`readlink %{_bindir}/java`" != "%{_sysconfdir}/alternatives/java" ] &&
|
||||
rm -f %{_bindir}/java
|
||||
|
||||
if [ -d /opt/java/jre ]; then
|
||||
# legacy cleanups
|
||||
%{_sbindir}/update-alternatives --remove java \
|
||||
/opt/java/jre/bin/java 2>/dev/null
|
||||
fi
|
||||
|
||||
%{_sbindir}/update-alternatives \
|
||||
--install %{_bindir}/java java \
|
||||
%{_jvmdir}/%{jrelnk}/bin/java 56
|
||||
%{_sbindir}/update-alternatives \
|
||||
--install %{_jvmdir}/jre jre \
|
||||
%{_jvmdir}/%{jrelnk} 56
|
||||
%{_sbindir}/update-alternatives \
|
||||
--install %{_jvmjardir}/jre jre-exports \
|
||||
%{_jvmjardir}/%{jrelnk} 56
|
||||
fi
|
||||
:
|
||||
|
||||
%post runtime
|
||||
if [ -x %{_bindir}/fc-cache ]; then
|
||||
%{_bindir}/fc-cache %{_datadir}/fonts/ttf/j2se-%{origin}
|
||||
%{_bindir}/fc-cache %{_datadir}/fonts/ttf/j2se-%{origin}-oblique
|
||||
fi
|
||||
|
||||
if ! echo ${PATH} | grep -q %{_jvmdir}/jre/bin; then
|
||||
export PATH="$PATH: %{_jvmdir}/jre/bin"
|
||||
fi
|
||||
|
||||
if [ -d %{_jvmdir}/%{jrelnk}/lib/security ]; then
|
||||
# Need to remove the old jars in order to support upgrading
|
||||
# update-alternatives fails silently if the link targets exist as files
|
||||
rm -f %{_jvmdir}/%{jrelnk}/lib/security/{local,US_export}_policy.jar
|
||||
fi
|
||||
|
||||
%{_sbindir}/update-alternatives \
|
||||
--install %{_jvmdir}/%{jredir}/lib/oblique-fonts \
|
||||
oblique_fonts_%{javaver}_%{origin} %{_datadir}/fonts/ttf/j2se-%{origin}-oblique 56
|
||||
|
||||
%{_sbindir}/update-alternatives \
|
||||
--install %{_jvmdir}/%{jredir}/lib/fonts fonts_%{javaver}_%{origin} \
|
||||
%{_datadir}/fonts/ttf/j2se-%{origin} 56
|
||||
|
||||
%{_sbindir}/update-alternatives \
|
||||
--install %{_jvmdir}/%{jrelnk}/lib/security/local_policy.jar \
|
||||
jce_%{javaver}_%{origin}_local_policy %{_jvmprivdir}/%{name}/jce/vanilla/local_policy.jar 56
|
||||
|
||||
%{_sbindir}/update-alternatives \
|
||||
--install %{_jvmdir}/%{jrelnk}/lib/security/US_export_policy.jar \
|
||||
jce_%{javaver}_%{origin}_us_export_policy %{_jvmprivdir}/%{name}/jce/vanilla/US_export_policy.jar 56
|
||||
:
|
||||
|
||||
%preun runtime
|
||||
if [ $1 -eq 0 ]; then
|
||||
%{_sbindir}/update-alternatives --remove java \
|
||||
%{_jvmdir}/%{jrelnk}/bin/java
|
||||
%{_sbindir}/update-alternatives --remove jre \
|
||||
%{_jvmdir}/%{jrelnk}
|
||||
%{_sbindir}/update-alternatives --remove jre-exports \
|
||||
%{_jvmjardir}/%{jrelnk}
|
||||
fi
|
||||
:
|
||||
|
||||
%postun runtime
|
||||
if [ $1 -eq 0 ]; then
|
||||
if [ -x %{_bindir}/fc-cache ]; then
|
||||
%{_bindir}/fc-cache --system-only
|
||||
fi
|
||||
%{_sbindir}/update-alternatives \
|
||||
--remove jce_%{javaver}_%{origin}_local_policy \
|
||||
%{_jvmprivdir}/%{name}/jce/vanilla/local_policy.jar
|
||||
%{_sbindir}/update-alternatives \
|
||||
--remove oblique_fonts_%{javaver}_%{origin} \
|
||||
%{_datadir}/fonts/ttf/j2se-%{origin}-oblique
|
||||
%{_sbindir}/update-alternatives \
|
||||
--remove fonts_%{javaver}_%{origin} \
|
||||
%{_datadir}/fonts/ttf/j2se-%{origin}
|
||||
fi
|
||||
:
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
#%{_sysconfdir}/profile.d/%{jdklnk}.sh
|
||||
%{_jvmdir}/%{jdklnk}
|
||||
%{_jvmjardir}/%{jdklnk}
|
||||
%{_jvmdir}/%{jdkdir}/bin
|
||||
#%{_jvmdir}/%{jdkdir}/db
|
||||
#%{_jvmdir}/%{jdkdir}/demo
|
||||
%{_jvmdir}/%{jdkdir}/lib
|
||||
%{_jvmdir}/%{jdkdir}/include
|
||||
#%{_jvmdir}/%{jdkdir}/sample
|
||||
%{_jvmdir}/%{jdkdir}/src.zip
|
||||
%dir %{_javadir}-%{javaver}
|
||||
%dir %{_jnidir}-%{javaver}
|
||||
%{_mandir}/man1/appletviewer-sun7.1.gz
|
||||
%{_mandir}/man1/apt-sun7.1.gz
|
||||
%{_mandir}/man1/extcheck-sun7.1.gz
|
||||
%{_mandir}/man1/idlj-sun7.1.gz
|
||||
%{_mandir}/man1/jar-sun7.1.gz
|
||||
%{_mandir}/man1/jarsigner-sun7.1.gz
|
||||
%{_mandir}/man1/javac-sun7.1.gz
|
||||
%{_mandir}/man1/javadoc-sun7.1.gz
|
||||
%ifnarch arm
|
||||
%{_mandir}/man1/javafxpackager-sun7.1.gz
|
||||
%endif
|
||||
%{_mandir}/man1/javah-sun7.1.gz
|
||||
%{_mandir}/man1/javap-sun7.1.gz
|
||||
%{_mandir}/man1/jcmd-sun7.1.gz
|
||||
%{_mandir}/man1/jconsole-sun7.1.gz
|
||||
%{_mandir}/man1/jdb-sun7.1.gz
|
||||
%{_mandir}/man1/jhat-sun7.1.gz
|
||||
%{_mandir}/man1/jinfo-sun7.1.gz
|
||||
%{_mandir}/man1/jmap-sun7.1.gz
|
||||
%{_mandir}/man1/jps-sun7.1.gz
|
||||
%{_mandir}/man1/jrunscript-sun7.1.gz
|
||||
%{_mandir}/man1/jsadebugd-sun7.1.gz
|
||||
%{_mandir}/man1/jstack-sun7.1.gz
|
||||
%{_mandir}/man1/jstat-sun7.1.gz
|
||||
%{_mandir}/man1/jstatd-sun7.1.gz
|
||||
%{_mandir}/man1/jvisualvm-sun7.1.gz
|
||||
%{_mandir}/man1/native2ascii-sun7.1.gz
|
||||
%{_mandir}/man1/policytool-sun7.1.gz
|
||||
%{_mandir}/man1/rmic-sun7.1.gz
|
||||
%{_mandir}/man1/schemagen-sun7.1.gz
|
||||
%{_mandir}/man1/serialver-sun7.1.gz
|
||||
%{_mandir}/man1/wsgen-sun7.1.gz
|
||||
%{_mandir}/man1/wsimport-sun7.1.gz
|
||||
%{_mandir}/man1/xjc-sun7.1.gz
|
||||
%doc %{toplevel_dir}/COPYRIGHT %{toplevel_dir}/LICENSE
|
||||
%doc %{toplevel_dir}/THIRDPARTYLICENSEREADME.txt
|
||||
# %{toplevel_dir}/README*
|
||||
|
||||
%files runtime
|
||||
%defattr(-,root,root)
|
||||
#%{_sysconfdir}/profile.d/%{jrelnk}.sh
|
||||
%dir %{_jvmdir}/%{jdkdir}
|
||||
%dir %{_jvmdir}/%{jredir}
|
||||
%dir %{_jvmdir}/%{jredir}/lib
|
||||
%{_jvmdir}/%{jredir}/lib/*.jar
|
||||
%{_jvmdir}/%{jredir}/lib/*.properties*
|
||||
%{_jvmdir}/%{jredir}/lib/fontconfig*.bfc
|
||||
%{_jvmdir}/%{jredir}/lib/classlist
|
||||
%{_jvmdir}/%{jredir}/lib/jexec
|
||||
%{_jvmdir}/%{jredir}/lib/*.txt
|
||||
%{_jvmdir}/%{jredir}/lib/meta-index
|
||||
#%{_jvmdir}/%{jredir}/lib/audio
|
||||
%{_jvmdir}/%{jredir}/lib/cmm
|
||||
%ifnarch arm
|
||||
%{_jvmdir}/%{jredir}/lib/deploy
|
||||
%{_jvmdir}/%{jredir}/lib/desktop
|
||||
%{_jvmdir}/%{jredir}/lib/locale
|
||||
%endif
|
||||
%{_jvmdir}/%{jredir}/lib/ext
|
||||
%ifarch %{ix86}
|
||||
%{_jvmdir}/%{jredir}/lib/i386
|
||||
%endif
|
||||
%ifarch x86_64
|
||||
%{_jvmdir}/%{jredir}/lib/x86_64
|
||||
%endif
|
||||
%ifarch arm
|
||||
%{_jvmdir}/%{jredir}/lib/arm
|
||||
%endif
|
||||
#%{_jvmdir}/%{jredir}/lib/im
|
||||
%{_jvmdir}/%{jredir}/lib/images
|
||||
%{_jvmdir}/%{jredir}/lib/management
|
||||
%dir %{_jvmdir}/%{jredir}/lib/security
|
||||
%config(noreplace) %{_jvmdir}/%{jredir}/lib/security/cacerts
|
||||
%config(noreplace) %{_jvmdir}/%{jredir}/lib/security/java.policy
|
||||
%config(noreplace) %{_jvmdir}/%{jredir}/lib/security/java.security
|
||||
%ifnarch arm
|
||||
%config(noreplace) %{_jvmdir}/%{jredir}/lib/security/javaws.policy
|
||||
%endif
|
||||
%config(noreplace) %{_jvmdir}/%{jredir}/lib/security/blacklist
|
||||
%config(noreplace) %{_jvmdir}/%{jredir}/lib/security/trusted.libraries
|
||||
%ghost %{_jvmdir}/%{jredir}/lib/security/local_policy.jar
|
||||
%ghost %{_jvmdir}/%{jredir}/lib/security/US_export_policy.jar
|
||||
%{_jvmdir}/%{jredir}/lib/currency.data
|
||||
%{_jvmdir}/%{jredir}/lib/servicetag
|
||||
%{_jvmdir}/%{jredir}/.systemPrefs
|
||||
%{_jvmdir}/%{jredir}/lib/zi
|
||||
|
||||
%{_jvmdir}/%{jredir}/lib/fonts
|
||||
%{_jvmdir}/%{jredir}/lib/oblique-fonts
|
||||
|
||||
%dir %{_jvmprivdir}/%{name}
|
||||
%dir %{_jvmprivdir}/%{name}/jce
|
||||
%dir %{_jvmprivdir}/%{name}/jce/vanilla
|
||||
%config(noreplace) %{_jvmprivdir}/%{name}/jce/vanilla/US_export_policy.jar
|
||||
%config(noreplace) %{_jvmprivdir}/%{name}/jce/vanilla/local_policy.jar
|
||||
%{_jvmdir}/%{jredir}/bin
|
||||
#%{_jvmdir}/%{jredir}/javaws
|
||||
#%{_jvmdir}/%{jredir}/lib
|
||||
%ifnarch arm
|
||||
%{_jvmdir}/%{jredir}/plugin
|
||||
%endif
|
||||
%{_jvmdir}/%{jrelnk}
|
||||
%{_jvmjardir}/%{jrelnk}
|
||||
%{_jvmjardir}/%{jppname}/jaas*.jar
|
||||
%{_jvmjardir}/%{jppname}/jce*jar
|
||||
%{_jvmjardir}/%{jppname}/jdbc-stdext*jar
|
||||
%{_jvmjardir}/%{jppname}/jndi*.jar
|
||||
%{_jvmjardir}/%{jppname}/jsse*.jar
|
||||
%{_jvmjardir}/%{jppname}/sasl*.jar
|
||||
#%{_jvmjardir}/%{jppname}/xml-commons-apis.jar
|
||||
%ifnarch arm
|
||||
%{_libdir}/mozilla/plugins/libjava7plugin*.so
|
||||
%{_libdir}/mozilla/plugins/libnpjp2-7.so
|
||||
%{_datadir}/applications/%{name}.desktop
|
||||
%{_datadir}/applications/%{name}-javaws.desktop
|
||||
%{_datadir}/applications/%{name}-jcontrol.desktop
|
||||
%{_datadir}/applications/%{name}-jvisualvm.desktop
|
||||
%{_datadir}/icons/*/*x*/*/*.png
|
||||
%{_datadir}/icons/mini/%{name}.png
|
||||
%{_datadir}/mime/packages/x-java-*.xml
|
||||
%{_datadir}/pixmaps/%{name}.png
|
||||
%endif
|
||||
%dir %{_datadir}/fonts/ttf/j2se-sun-oblique
|
||||
%{_datadir}/fonts/ttf/j2se-sun-oblique/*.ttf
|
||||
%dir %{_datadir}/fonts/ttf/j2se-sun
|
||||
%{_datadir}/fonts/ttf/j2se-sun/*.ttf
|
||||
|
||||
%{_mandir}/man1/java-sun7.1.gz
|
||||
%{_mandir}/man1/javaws-sun7.1.gz
|
||||
%{_mandir}/man1/keytool-sun7.1.gz
|
||||
%{_mandir}/man1/orbd-sun7.1.gz
|
||||
%{_mandir}/man1/pack200-sun7.1.gz
|
||||
%{_mandir}/man1/rmid-sun7.1.gz
|
||||
%{_mandir}/man1/rmiregistry-sun7.1.gz
|
||||
%{_mandir}/man1/servertool-sun7.1.gz
|
||||
%{_mandir}/man1/tnameserv-sun7.1.gz
|
||||
%{_mandir}/man1/unpack200-sun7.1.gz
|
||||
%doc %{toplevel_dir}/jre/COPYRIGHT %{toplevel_dir}/jre/LICENSE
|
||||
%doc %{toplevel_dir}/jre/THIRDPARTYLICENSEREADME.txt
|
||||
# %{toplevel_dir}/jre/README %{toplevel_dir}/jre/Welcome.html
|
||||
|
||||
%changelog
|
||||
* Sun Aug 19 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 7u6-2mamba
|
||||
- rename to sun-java7
|
||||
|
||||
* Thu Aug 16 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 7u6-1mamba
|
||||
- update to 7u6
|
||||
|
||||
* Tue Mar 27 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 6u26-2mamba
|
||||
- don't obsolete jre and jdk
|
||||
|
||||
* Wed Jun 08 2011 Automatic Build System <autodist@mambasoft.it> 6u26-1mamba
|
||||
- automatic update by autodist
|
||||
|
||||
* Wed Apr 27 2011 Automatic Build System <autodist@mambasoft.it> 6u25-1mamba
|
||||
- automatic update by autodist
|
||||
|
||||
* Thu Feb 17 2011 Automatic Build System <autodist@mambasoft.it> 6u24-1mamba
|
||||
- automatic update by autodist
|
||||
|
||||
* Wed Oct 13 2010 Automatic Build System <autodist@mambasoft.it> 6u22-1mamba
|
||||
- automatic update to 6u22 by autodist
|
||||
|
||||
* Mon Jul 26 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 6u21-3mamba
|
||||
- don't launch chrpath or executables won't find libraries because they are not in system path
|
||||
|
||||
* Wed Jul 21 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 6u21-2mamba
|
||||
- specfile fixes and cleanup
|
||||
- fix broken fonts symlink
|
||||
- edit %%post and %%postun runtime scripts
|
||||
|
||||
* Fri Jul 16 2010 Automatic Build System <autodist@mambasoft.it> 6u21-1mamba
|
||||
- automatic update to 6u21 by autodist
|
||||
|
||||
* Mon Jun 14 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 6u20-2mamba
|
||||
- link libnpjp2.so instead of libjavaplugin.so to /usr/lib/mozilla/plugins
|
||||
|
||||
* Fri Apr 16 2010 Automatic Build System <autodist@mambasoft.it> 6u20-1mamba
|
||||
- automatic update to 6u20 by autodist
|
||||
|
||||
* Wed Mar 31 2010 Automatic Build System <autodist@mambasoft.it> 6u19-1mamba
|
||||
- automatic update to 6u19 by autodist
|
||||
|
||||
* Thu Jan 21 2010 Automatic Build System <autodist@mambasoft.it> 6u18-1mamba
|
||||
- automatic update to 6u18 by autodist
|
||||
|
||||
* Tue Nov 17 2009 Automatic Build System <autodist@mambasoft.it> 6u17-1mamba
|
||||
- automatic update to 6u17 by autodist
|
||||
|
||||
* Wed Sep 23 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 6u16-2mamba
|
||||
- fixed wrong symlink destination for jav for mozilla plugin files
|
||||
|
||||
* Mon Aug 17 2009 Automatic Build System <autodist@mambasoft.it> 6u16-1mamba
|
||||
- automatic update to 6u16 by autodist
|
||||
|
||||
* Thu Aug 06 2009 Automatic Build System <autodist@mambasoft.it> 6u15-1mamba
|
||||
- automatic update to 6u15 by autodist
|
||||
|
||||
* Mon Jul 13 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 6u14-2mamba
|
||||
- create symlink of jre jar's into jdk lib directory
|
||||
|
||||
* Tue Jun 09 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 6u14-1mamba
|
||||
- update to 6u14
|
||||
|
||||
* Fri Jun 05 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 6u13-4mamba
|
||||
- manage /usr/lib/jvm/{jdk,jre} as alternatives
|
||||
- remove profile files for setting JAVA_HOME (now handled by initscripts and alternatives)
|
||||
|
||||
* Thu Jun 04 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 6u13-3mamba
|
||||
- added symlink in /usr/lib/jvm
|
||||
|
||||
* Mon Apr 20 2009 gil <puntogil@libero.it> 6u13-2mamba
|
||||
- added requirement for menu-java
|
||||
|
||||
* Wed Mar 18 2009 gil <puntogil@libero.it> 6u13-1mamba
|
||||
- update to 6u13
|
||||
- edit spec file
|
||||
|
||||
* Tue Sep 23 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 6u7-1mamba
|
||||
- automatic update to 6u7 by autodist
|
||||
|
||||
* Tue Mar 11 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.0-4mamba
|
||||
- update to release 6u4
|
||||
- manage /usr/bin/{java,javac,jar} using alternatives with priority 50
|
||||
|
||||
* Sat Apr 07 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.0-3mamba
|
||||
- install into /opt/java
|
||||
|
||||
* Mon Feb 26 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.0-2qilnx
|
||||
- check and handle a pre-existing /usr/java/jre%version dir
|
||||
|
||||
* Mon Feb 19 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.0-1qilnx
|
||||
- new build under the Operating System Distributor License for Java (DLJ 1.1)
|
||||
|
||||
* Fri Feb 02 2007 Davide Madrisan <davide.madrisan@qilinux.it> 1.5-1qilnx
|
||||
- get download parameters from a sysconfig file
|
||||
|
||||
* Tue Oct 31 2006 Davide Madrisan <davide.madrisan@qilinux.it> 1.5.0-8qilnx
|
||||
- specfile updated to donwload latest jre version (1.5.0_09)
|
||||
|
||||
* Wed Jul 12 2006 Davide Madrisan <davide.madrisan@qilinux.it> 1.5.0-7qilnx
|
||||
- added "provides j2re" (needed by the limewire rpm)
|
||||
|
||||
* Mon Apr 03 2006 Davide Madrisan <davide.madrisan@qilinux.it> 1.5.0-6qilnx
|
||||
- updated javaurl
|
||||
|
||||
* Thu Feb 02 2006 Davide Madrisan <davide.madrisan@qilinux.it> 1.5.0-5qilnx
|
||||
- fixed symbolic link in %{_libdir}/mozilla/plugins
|
||||
|
||||
* Tue Aug 23 2005 Davide Madrisan <davide.madrisan@qilinux.it> 1.5.0-4qilnx
|
||||
- specfile updates for last jre version (1.5.0_04)
|
||||
|
||||
* Thu Jul 07 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.0-3qilnx
|
||||
- remove %{javapath}/.systemPrefs if found
|
||||
|
||||
* Wed Apr 20 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.0-2qilnx
|
||||
- enable resume of download
|
||||
- remove requirements and provides
|
||||
|
||||
* Wed Apr 20 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.0-1qilnx
|
||||
- specfile for new jre version (1.5.0)
|
||||
- added automatic download and build support (this is a non distributable package)
|
||||
|
||||
* Mon Jul 12 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.2-2qilnx
|
||||
- create symlinks for browser plugins to /usr/lib/mozilla/plugins
|
||||
|
||||
* Mon Oct 13 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.2-1qilnx
|
||||
- first build
|
@@ -1,7 +1,7 @@
|
||||
## VirtualBox Extension Pack
|
||||
|
||||
# package name (do not modify unless you know what you're doing)
|
||||
VIRTUALBOX_EXTENSION_PACK_PCK=Oracle_VM_VirtualBox_Extension_Pack-4.1.2-73507.vbox-extpack
|
||||
VIRTUALBOX_EXTENSION_PACK_PCK=Oracle_VM_VirtualBox_Extension_Pack-4.1.8.vbox-extpack
|
||||
|
||||
# package URL (do not modify unless you know what you're doing)
|
||||
VIRTUALBOX_EXTENSION_PACK_URL=http://download.virtualbox.org/virtualbox/4.1.2/
|
||||
VIRTUALBOX_EXTENSION_PACK_URL=http://download.virtualbox.org/virtualbox/4.1.8/
|
||||
|
@@ -46,13 +46,13 @@ cp %{S:0} LICENSE
|
||||
|
||||
%post
|
||||
VBoxManage extpack uninstall Oracle_VM_VirtualBox_Extension_Pack || true
|
||||
VBoxManage extpack install /opt/VirtualBox/extension/Oracle_VM_VirtualBox_Extension_Pack-%{pck_majver}-%{pck_minver}.vbox-extpack
|
||||
VBoxManage extpack install /opt/VirtualBox/extension/Oracle_VM_VirtualBox_Extension_Pack-%{pck_majver}%{?pck_minver:%pck_minver}.vbox-extpack
|
||||
# --replace not working
|
||||
:
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
/opt/VirtualBox/extension/Oracle_VM_VirtualBox_Extension_Pack-%{pck_majver}-%{pck_minver}.vbox-extpack
|
||||
/opt/VirtualBox/extension/Oracle_VM_VirtualBox_Extension_Pack-%{pck_majver}%{?pck_minver:%pck_minver}.vbox-extpack
|
||||
%doc LICENSE
|
||||
|
||||
%changelog
|
||||
|
@@ -82,7 +82,7 @@ rm -f $tmpfile
|
||||
curl --url $URL/$tarball -o $tarball || exit 1
|
||||
echo $tarball | sed 's/all-\([0-9]*\).tar.*/\1/' > VERSION_w32codecs
|
||||
|
||||
tar xjf $tarball && rm -f $tarball
|
||||
tar xf $tarball --strip-components=1 && rm -f $tarball
|
||||
|
||||
%build
|
||||
|
||||
|
@@ -1,4 +1,5 @@
|
||||
FLASHPLUGIN_VERSION=10.3.183.7
|
||||
FLASHPLUGIN_VERSION=11.2.202.238
|
||||
WIN32CODECS_VERSION=20110131
|
||||
SKYPE_VERSION=2.2.0.35
|
||||
VIRTUALBOX_EXTENSION_PACK_VERSION=4.1.2.73507
|
||||
SKYPE_VERSION=4.0.0.8
|
||||
VIRTUALBOX_EXTENSION_PACK_VERSION=4.1.8
|
||||
SUN_JAVA7_VERSION=7u6
|
||||
|
@@ -1,2 +0,0 @@
|
||||
Scripts::PM::Post:: "post-install.lua";
|
||||
Apt::Get::post-install "true";
|
@@ -1,12 +0,0 @@
|
||||
-- This script will perform operations after new packages have been installed
|
||||
--
|
||||
-- Author: Silvan Calarco <silvan.calarco@qilinux.it> Copyright (c) 2009
|
||||
--
|
||||
|
||||
-- Allow someone to disable this without removing the script.
|
||||
if confget("APT::Get::post-install/b", "true") == "false" then
|
||||
return
|
||||
end
|
||||
|
||||
os.execute("/usr/share/apt/scripts/post-install.sh")
|
||||
return
|
@@ -1,7 +0,0 @@
|
||||
#!/bin/bash
|
||||
[ -x /usr/bin/update-mime-database ] && update-mime-database /usr/share/mime >/dev/null
|
||||
IFS=":"
|
||||
for d in $XDG_DATA_DIRS; do
|
||||
[ -x /usr/bin/update-desktop-database ] && update-desktop-database -q $d/applications/ >/dev/null
|
||||
done
|
||||
exit 0
|
@@ -305,7 +305,7 @@
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Copyright (c) 2007-2010 by Silvan Calarco
|
||||
<string>Copyright (c) 2007-2011 by Silvan Calarco
|
||||
Released under the terms of the GNU GPL v3 license</string>
|
||||
</property>
|
||||
<property name="textFormat">
|
||||
@@ -426,128 +426,6 @@ This tool is also useful before the installation of a third party boot manager i
|
||||
<set>AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="ScriptObject">
|
||||
<property name="name">
|
||||
<cstring>setlabel</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>540</x>
|
||||
<y>40</y>
|
||||
<width>32</width>
|
||||
<height>32</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="populationText">
|
||||
<string></string>
|
||||
</property>
|
||||
<property name="associations" stdset="0">
|
||||
<stringlist>
|
||||
<string>@execBegin
|
||||
@if (@devicesbox.currentItem >= 0)
|
||||
currdev=@String.section(@devicesbox.item(@devicesbox.currentItem)," ",0)
|
||||
@showdevice.setText(@String.section(@devicesbox.item(@devicesbox.currentItem)," ",0))
|
||||
@dcop(@dcopid, KommanderIf, enableWidget(QString,bool), next, true)
|
||||
@BackBox.setChecked(true)
|
||||
|
||||
parent_udi=`hal-find-by-property --key block.device --string /dev/$currdev`
|
||||
#
|
||||
# set MBR combo box
|
||||
#
|
||||
dcop @dcopid KommanderIf "clear(QString)" mbrbox
|
||||
storages=`hal-find-by-capability --capability storage`
|
||||
dcop @dcopid KommanderIf "addListItem(QString,QString,int)" mbrbox "$currdev (@i18n("System partition"))" 0
|
||||
for udi in $storages; do
|
||||
device=`hal-get-property --udi $udi --key block.device`
|
||||
hotpluggable=`hal-get-property --udi $udi --key storage.hotpluggable` || hotpluggable="false"
|
||||
partscheme=`hal-get-property --udi $udi --key storage.partitioning_scheme`
|
||||
if [ "$partscheme" == "mbr" -a "$hotpluggable" != "true" ]; then
|
||||
dcop @dcopid KommanderIf "addListItem(QString,QString,int)" mbrbox "${device:5:5} (master boot record)" 0
|
||||
fi
|
||||
done
|
||||
dcop @dcopid KommanderIf "setCurrentItem(int)" 0
|
||||
@endif
|
||||
@execEnd
|
||||
@setBootableCheckbox.execute()</string>
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="ScriptObject">
|
||||
<property name="name">
|
||||
<cstring>scanDevices</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>540</x>
|
||||
<y>0</y>
|
||||
<width>32</width>
|
||||
<height>32</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="associations" stdset="0">
|
||||
<stringlist>
|
||||
<string>@devicesbox.clear
|
||||
@BackBox.setChecked(false)
|
||||
@NextBox.setChecked(false)
|
||||
@execBegin
|
||||
volumes=`hal-find-by-capability --capability volume`
|
||||
partlabel=
|
||||
|
||||
for udi in $volumes; do
|
||||
device=`hal-get-property --udi $udi --key block.device`
|
||||
parent_udi=`hal-get-property --udi $udi --key block.storage_device`
|
||||
hotpluggable=`hal-get-property --udi $parent_udi --key storage.hotpluggable` || hotpluggable="false"
|
||||
blocksize=`hal-get-property --udi $udi --key volume.block_size`
|
||||
numblocks=`hal-get-property --udi $udi --key volume.num_blocks`
|
||||
volsize=`expr $blocksize \* $numblocks / 1024 / 1024`
|
||||
volname=`hal-get-property --udi $udi --key volume.label`
|
||||
[ "$volname" ] || volname="unnamed"
|
||||
parttype=`hal-get-property --udi $udi --key volume.partition.type`
|
||||
[ "$parttype" ] || parttype="unknown"
|
||||
partscheme=`hal-get-property --udi $udi --key volume.partition.scheme`
|
||||
[ "$partscheme" ] || partscheme="unknown"
|
||||
fstype=`hal-get-property --udi $udi --key volume.fstype`
|
||||
[ "$fstype" ] || fstype="unformatted"
|
||||
is_mounted=`hal-get-property --udi $udi --key volume.is_mounted`
|
||||
[ "$is_mounted" = "true" ] || {
|
||||
mkdir /mnt/${device:5:5} && mount $device /mnt/${device:5:5}
|
||||
}
|
||||
mount_point=`hal-get-property --udi $udi --key volume.mount_point`
|
||||
add_info=""
|
||||
[ "$hotpluggable" = "true" ] && {
|
||||
add_info=",removable"
|
||||
[ @removablebox.checked == 1 ] || continue
|
||||
}
|
||||
if [ "$partscheme" == "mbr" -o "$partscheme" == "embr" ]; then
|
||||
partlabel="$partlabel<br>${device:5:5} $fstype $volname $volsize MB"
|
||||
case "$parttype" in
|
||||
0x82) ;;
|
||||
0x83)
|
||||
[ "$mount_point" -a -e $mount_point/etc/openmamba-release ] && {
|
||||
release=`cat $mount_point/etc/openmamba-release`
|
||||
dcop @dcopid KommanderIf "addListItem(QString,QString,int)" devicesbox "${device:5:5} $mount_point ($fstype,$volname,$volsize MB${add_info})" 0
|
||||
}
|
||||
;;
|
||||
*) ;;
|
||||
esac
|
||||
elif [ "$partscheme" == "gpt" -o "$partscheme" == "unknown" -a $volsize -gt 0 ]; then
|
||||
case "$fstype" in
|
||||
swap|iso9660) ;;
|
||||
ext2|ext3|reiserfs|unformatted)
|
||||
[ "$mount_point" -a -e $mount_point/etc/openmamba-release ] && {
|
||||
release=`cat $mount_point/etc/openmamba-release`
|
||||
dcop @dcopid KommanderIf "addListItem(QString,QString,int)" devicesbox "${device:5:5} $mount_point $volsize MB ($release)" 0
|
||||
}
|
||||
;;
|
||||
*) ;;
|
||||
esac
|
||||
fi
|
||||
done
|
||||
@execEnd
|
||||
</string>
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="GroupBox">
|
||||
<property name="name">
|
||||
<cstring>PartitionBox</cstring>
|
||||
@@ -601,27 +479,6 @@ done
|
||||
<set>WordBreak|AlignTop</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="Label">
|
||||
<property name="name">
|
||||
<cstring>showdevice</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>230</x>
|
||||
<y>340</y>
|
||||
<width>280</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string></string>
|
||||
</property>
|
||||
<property name="associations" stdset="0">
|
||||
<stringlist>
|
||||
<string></string>
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="Label">
|
||||
<property name="name">
|
||||
<cstring>Label3</cstring>
|
||||
@@ -667,6 +524,158 @@ done
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="Label">
|
||||
<property name="name">
|
||||
<cstring>showdevice</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>180</x>
|
||||
<y>340</y>
|
||||
<width>350</width>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string></string>
|
||||
</property>
|
||||
<property name="associations" stdset="0">
|
||||
<stringlist>
|
||||
<string></string>
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="ScriptObject">
|
||||
<property name="name">
|
||||
<cstring>scanDevices</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>540</x>
|
||||
<y>0</y>
|
||||
<width>32</width>
|
||||
<height>32</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="associations" stdset="0">
|
||||
<stringlist>
|
||||
<string>@devicesbox.clear
|
||||
@BackBox.setChecked(false)
|
||||
@NextBox.setChecked(false)
|
||||
@execBegin
|
||||
function get_udisks_key() {
|
||||
LANG=C udisks --show-info $1 | grep " $2:" | head -n1 | sed "s|[[:space:]]*$2:[[:space:]]*\(.*\)|\1|"
|
||||
}
|
||||
devices=`udisks --enumerate-device-files | grep -v /dev/disk | sort -n -r`
|
||||
partlabel=
|
||||
|
||||
for device in $devices; do
|
||||
native_path=`get_udisks_key $device native-path`
|
||||
[ -e $native_path/partition ] || continue
|
||||
is_system_internal=`get_udisks_key $device "system internal"`
|
||||
volsize=`get_udisks_key $device size`
|
||||
volsize=`expr $volsize / 1024 / 1024`
|
||||
volname=`get_udisks_key $device label`
|
||||
[ "$volname" ] || volname="unnamed"
|
||||
parttype=`get_udisks_key $device usage`
|
||||
[ "$parttype" ] || parttype="unknown"
|
||||
partscheme=`get_udisks_key $device scheme`
|
||||
[ "$partscheme" ] || partscheme="unknown"
|
||||
fstype=`get_udisks_key $device type`
|
||||
[ "$fstype" ] || fstype="unformatted"
|
||||
add_info=""
|
||||
is_mounted=`get_udisks_key $device "is mounted"`
|
||||
[ "$is_mounted" = "1" ] || {
|
||||
mkdir /mnt/${device:5:5} && mount $device /mnt/${device:5:5}
|
||||
}
|
||||
mount_point=`get_udisks_key $device "mount paths"`
|
||||
add_info=""
|
||||
[ "$is_system_internal" == "1" ] || {
|
||||
add_info=",removable"
|
||||
[ @removablebox.checked == 1 ] || continue
|
||||
}
|
||||
|
||||
if [ "$partscheme" == "mbr" -o "$partscheme" == "embr" ]; then
|
||||
partlabel="$partlabel<br>${device:5:5} $fstype $volname $volsize MB"
|
||||
case "$fstype" in
|
||||
ext2|ext3|ext4|reiserfs|reiser4)
|
||||
[ "$mount_point" -a -e $mount_point/etc/openmamba-release ] && {
|
||||
release=`cat $mount_point/etc/openmamba-release`
|
||||
dcop @dcopid KommanderIf "addListItem(QString,QString,int)" devicesbox "${device:5:5} $mount_point ($fstype,$volname,$volsize MB${add_info})" 0
|
||||
}
|
||||
;;
|
||||
*) ;;
|
||||
esac
|
||||
elif [ "$partscheme" == "gpt" -o "$partscheme" == "unknown" -a $volsize -gt 0 ]; then
|
||||
case "$fstype" in
|
||||
swap|iso9660) ;;
|
||||
ext2|ext3|ext4|reiserfs|reiser4)
|
||||
[ "$mount_point" -a -e $mount_point/etc/openmamba-release ] && {
|
||||
release=`cat $mount_point/etc/openmamba-release`
|
||||
dcop @dcopid KommanderIf "addListItem(QString,QString,int)" devicesbox "${device:5:5} $mount_point $volsize MB ($release)" 0
|
||||
}
|
||||
;;
|
||||
*) ;;
|
||||
esac
|
||||
fi
|
||||
done
|
||||
@execEnd
|
||||
</string>
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="ScriptObject">
|
||||
<property name="name">
|
||||
<cstring>setlabel</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>540</x>
|
||||
<y>40</y>
|
||||
<width>32</width>
|
||||
<height>32</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="populationText">
|
||||
<string></string>
|
||||
</property>
|
||||
<property name="associations" stdset="0">
|
||||
<stringlist>
|
||||
<string>@execBegin
|
||||
function get_udisks_key() {
|
||||
LANG=C udisks --show-info $1 | grep " $2:" | head -n1 | sed "s|[[:space:]]*$2:[[:space:]]*\(.*\)|\1|"
|
||||
}
|
||||
@if (@devicesbox.currentItem >= 0)
|
||||
currdev=@String.section(@devicesbox.item(@devicesbox.currentItem)," ",0)
|
||||
@showdevice.setText(@devicesbox.item(@devicesbox.currentItem))
|
||||
@dcop(@dcopid, KommanderIf, enableWidget(QString,bool), next, true)
|
||||
@BackBox.setChecked(true)
|
||||
|
||||
#
|
||||
# set MBR combo box
|
||||
#
|
||||
dcop @dcopid KommanderIf "clear(QString)" mbrbox
|
||||
devices=`udisks --enumerate-device-files | grep -v /dev/disk`
|
||||
dcop @dcopid KommanderIf "addListItem(QString,QString,int)" mbrbox "$currdev (@i18n("System partition"))" 0
|
||||
|
||||
for device in $devices; do
|
||||
native_path=`get_udisks_key $device native-path`
|
||||
[ -e $native_path/partition ] && continue
|
||||
is_system_internal=`get_udisks_key $device "system internal"`
|
||||
partscheme=`get_udisks_key $device scheme`
|
||||
if [ "$is_system_internal" == "1" -o "@removablebox.checked" == "1" ]; then
|
||||
[ "$partscheme" == "mbr" ] && \
|
||||
dcop @dcopid KommanderIf "addListItem(QString,QString,int)" mbrbox "${device:5:5} (master boot record)" 0
|
||||
fi
|
||||
done
|
||||
dcop @dcopid KommanderIf "setCurrentItem(int)" 0
|
||||
@endif
|
||||
@execEnd
|
||||
@setBootableCheckbox.execute()
|
||||
</string>
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="QWidget">
|
||||
@@ -837,41 +846,6 @@ done
|
||||
<set>WordBreak|AlignTop</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="ScriptObject">
|
||||
<property name="name">
|
||||
<cstring>setBootableCheckbox</cstring>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>520</x>
|
||||
<y>70</y>
|
||||
<width>32</width>
|
||||
<height>32</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="associations" stdset="0">
|
||||
<stringlist>
|
||||
<string>@execBegin
|
||||
mbrdevice=@String.section(@mbrbox.item(@mbrbox.currentItem)," ",0)
|
||||
mbrpart=${mbrdevice:3:2}
|
||||
if [ "$mbrpart" ]; then
|
||||
if [ $mbrpart -le 4 ]; then
|
||||
dcop @dcopid KommanderIf setEnabled bootableBox true
|
||||
else
|
||||
dcop @dcopid KommanderIf setEnabled bootableBox false
|
||||
dcop @dcopid KommanderIf setChecked bootableBox false
|
||||
fi
|
||||
else
|
||||
dcop @dcopid KommanderIf setEnabled bootableBox false
|
||||
fi
|
||||
@execEnd
|
||||
</string>
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="ListBox">
|
||||
<property name="name">
|
||||
<cstring>chainloadbox</cstring>
|
||||
@@ -907,6 +881,41 @@ fi
|
||||
<set>WordBreak|AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="ScriptObject">
|
||||
<property name="name">
|
||||
<cstring>setBootableCheckbox</cstring>
|
||||
</property>
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>520</x>
|
||||
<y>70</y>
|
||||
<width>32</width>
|
||||
<height>32</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="associations" stdset="0">
|
||||
<stringlist>
|
||||
<string>@execBegin
|
||||
mbrdevice=@String.section(@mbrbox.item(@mbrbox.currentItem)," ",0)
|
||||
mbrpart=${mbrdevice:3:2}
|
||||
if [ "$mbrpart" ]; then
|
||||
if [ $mbrpart -le 4 ]; then
|
||||
dcop @dcopid KommanderIf setEnabled bootableBox true
|
||||
else
|
||||
dcop @dcopid KommanderIf setEnabled bootableBox false
|
||||
dcop @dcopid KommanderIf setChecked bootableBox false
|
||||
fi
|
||||
else
|
||||
dcop @dcopid KommanderIf setEnabled bootableBox false
|
||||
fi
|
||||
@execEnd
|
||||
</string>
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="ScriptObject">
|
||||
<property name="name">
|
||||
@@ -927,38 +936,39 @@ fi
|
||||
@chainloadbox.clear
|
||||
@setBootableCheckbox.execute()
|
||||
@execBegin
|
||||
function get_udisks_key() {
|
||||
LANG=C udisks --show-info $1 | grep " $2:" | head -n1 | sed "s|[[:space:]]*$2:[[:space:]]*\(.*\)|\1|"
|
||||
}
|
||||
installdevice=@String.section(@devicesbox.item(@devicesbox.currentItem)," ",0)
|
||||
volumes=`hal-find-by-capability --capability volume`
|
||||
devices=`udisks --enumerate-device-files | grep -v /dev/disk | sort -n -r`
|
||||
partlabel=
|
||||
|
||||
for udi in $volumes; do
|
||||
device=`hal-get-property --udi $udi --key block.device`
|
||||
[ "${device:5:5}" = "$installdevice" ] && continue
|
||||
parent_udi=`hal-get-property --udi $udi --key block.storage_device`
|
||||
hotpluggable=`hal-get-property --udi $parent_udi --key storage.hotpluggable` || hotpluggable="false"
|
||||
blocksize=`hal-get-property --udi $udi --key volume.block_size`
|
||||
numblocks=`hal-get-property --udi $udi --key volume.num_blocks`
|
||||
volsize=`expr $blocksize \* $numblocks / 1024 / 1024`
|
||||
for device in $devices; do
|
||||
native_path=`get_udisks_key $device native-path`
|
||||
[ -e $native_path/partition ] || continue
|
||||
is_system_internal=`get_udisks_key $device "system internal"`
|
||||
volsize=`get_udisks_key $device size`
|
||||
volsize=`expr $volsize / 1024 / 1024`
|
||||
[ $volsize = 0 ] && continue
|
||||
volname=`hal-get-property --udi $udi --key volume.label`
|
||||
mount_point=`hal-get-property --udi $udi --key volume.mount_point`
|
||||
volname=`get_udisks_key $device label`
|
||||
[ "$volname" ] || volname="unnamed"
|
||||
parttype=`hal-get-property --udi $udi --key volume.partition.type`
|
||||
parttype=`get_udisks_key $device usage`
|
||||
[ "$parttype" ] || parttype="unknown"
|
||||
partscheme=`hal-get-property --udi $udi --key volume.partition.scheme`
|
||||
partscheme=`get_udisks_key $device scheme`
|
||||
[ "$partscheme" ] || partscheme="unknown"
|
||||
fstype=`hal-get-property --udi $udi --key volume.fstype`
|
||||
fstype=`get_udisks_key $device type`
|
||||
[ "$fstype" ] || fstype="unformatted"
|
||||
add_info=""
|
||||
[ "$hotpluggable" = "true" ] && {
|
||||
[ "$is_system_internal" = "1" ] || {
|
||||
add_info=",removable"
|
||||
[ @removablebox.checked == 1 ] || continue
|
||||
}
|
||||
|
||||
if [ "$partscheme" == "mbr" -o "$partscheme" == "embr" ]; then
|
||||
partlabel="$partlabel<br>${device:5:5} $fstype $volname $volsize MB"
|
||||
case "$parttype" in
|
||||
0x82) ;;
|
||||
0x83) ;;
|
||||
case "$fstype" in
|
||||
swap|iso9660|unformatted) ;;
|
||||
ext2|ext3|ext4|reiserfs|reiser4|unformatted) ;;
|
||||
*) dcop @dcopid KommanderIf "addListItem(QString,QString,int)" chainloadbox "${device:5:5} ($fstype,$volname,$volsize MB${add_info})" 0
|
||||
dcop @dcopid KommanderIf "setSelection" chainloadbox "${device:5:5} ($fstype,$volname,$volsize MB${add_info})"
|
||||
;;
|
||||
@@ -966,7 +976,7 @@ for udi in $volumes; do
|
||||
elif [ "$partscheme" == "gpt" -o "$partscheme" == "unknown" -a $volsize -gt 0 ]; then
|
||||
case "$fstype" in
|
||||
swap|iso9660|unformatted) ;;
|
||||
ext2|ext3|reiserfs) ;;
|
||||
ext2|ext3|ext4|reiserfs|reiser4) ;;
|
||||
*) dcop @dcopid KommanderIf "addListItem(QString,QString,int)" chainloadbox "${device:5:5} ($fstype,$volname,$volsize MB${add_info})" 0
|
||||
dcop @dcopid KommanderIf "setSelection" chainloadbox "${device:5:5} ($fstype,$volname,$volsize MB${add_info})"
|
||||
;;
|
||||
@@ -1025,6 +1035,33 @@ done
|
||||
<set>AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TextEdit">
|
||||
<property name="name">
|
||||
<cstring>installlog</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
<y>60</y>
|
||||
<width>540</width>
|
||||
<height>360</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="hScrollBarMode">
|
||||
<enum>AlwaysOn</enum>
|
||||
</property>
|
||||
<property name="textFormat">
|
||||
<enum>LogText</enum>
|
||||
</property>
|
||||
<property name="populationText">
|
||||
<string></string>
|
||||
</property>
|
||||
<property name="associations" stdset="0">
|
||||
<stringlist>
|
||||
<string></string>
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="ScriptObject">
|
||||
<property name="name">
|
||||
<cstring>launchinstall</cstring>
|
||||
@@ -1078,7 +1115,7 @@ _EOF
|
||||
|
||||
@if (@confirmBox.checked); then
|
||||
@dcop(@dcopid, KommanderIf, setEnabled(QString,bool), back, false)
|
||||
@exec("/usr/share/openmamba/bootrecover/bootrecover.sh -y @dcopid &> ~/.bootrecover.log")
|
||||
@exec("sudo /usr/share/openmamba/bootrecover/bootrecover.sh ~/.bootrecover.conf @dcopid `whoami` &> ~/.bootrecover.log")
|
||||
@execBegin
|
||||
dcop @dcopid KommanderIf setText installlog "`cat ~/.bootrecover.log`"
|
||||
@execEnd
|
||||
@@ -1113,33 +1150,6 @@ _EOF
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TextEdit">
|
||||
<property name="name">
|
||||
<cstring>installlog</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
<y>60</y>
|
||||
<width>540</width>
|
||||
<height>360</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="hScrollBarMode">
|
||||
<enum>AlwaysOn</enum>
|
||||
</property>
|
||||
<property name="textFormat">
|
||||
<enum>LogText</enum>
|
||||
</property>
|
||||
<property name="populationText">
|
||||
<string></string>
|
||||
</property>
|
||||
<property name="associations" stdset="0">
|
||||
<stringlist>
|
||||
<string></string>
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
<images>
|
||||
|
@@ -1,13 +1,12 @@
|
||||
# openmamba boot loader recovery script
|
||||
# Copyright (c) 2007-2010 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
# Copyright (c) 2007-2011 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
#
|
||||
# Released under the terms of the GNU GPLv3 License
|
||||
|
||||
VERSION=0.6
|
||||
VERSION=0.7
|
||||
TEXTDOMAIN=bootrecover
|
||||
TEXTDOMAINDIR=/opt/kde3/share/locale/
|
||||
INSTALL_DATE=`date +%Y%m%d-%H%M`
|
||||
INPUT_FILE=~/.bootrecover.conf
|
||||
LOG_FILE=/var/log/bootrecover-$INSTALL_DATE.log
|
||||
MOUNTPOINT=/mnt/install
|
||||
KERNEL_RELEASE=`uname -r`
|
||||
@@ -72,70 +71,23 @@ Installation time: $TIME_ELAPSED minutes"
|
||||
done
|
||||
}
|
||||
|
||||
function find_driver_for_udi() {
|
||||
local found_driver parent_udi
|
||||
export PATH=$PATH:/sbin:/usr/sbin:/opt/kde3/bin
|
||||
|
||||
parent_udi=$1
|
||||
while [ ! "$found_driver" -a "$parent_udi" != "/org/freedesktop/Hal/devices/computer" ]; do
|
||||
parent_udi=`hal-get-property --udi $parent_udi --key info.parent 2>/dev/null`
|
||||
[ "`hal-get-property --udi $parent_udi --key info.bus 2>/dev/null`" = "pci" ] &&
|
||||
found_driver=`hal-get-property --udi $parent_udi --key info.linux.driver 2>/dev/null`
|
||||
done
|
||||
if [ "$found_driver" ]; then
|
||||
echo $found_driver
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
function find_remapped_device() {
|
||||
|
||||
local REMAPPED_INSTALL_DEVICE
|
||||
|
||||
tempfile=`tempfile 2>/dev/null`
|
||||
mapfile=`tempfile 2>/dev/null`
|
||||
|
||||
# generate current volumes sorted list with driver information
|
||||
storages=`hal-find-by-capability --capability storage`
|
||||
for s in $storages; do
|
||||
device=`hal-get-property --udi $s --key block.device`
|
||||
linux_driver=`find_driver_for_udi $s`
|
||||
[ "${device:5:2}" = "sd" ] && \
|
||||
echo "${device:0:8} $linux_driver" >> $tempfile
|
||||
done
|
||||
# sort
|
||||
cat $tempfile|sort > $mapfile
|
||||
rm -f $tempfile
|
||||
|
||||
LETTERS=(a b c d e f g h i j k l m n o p q r s t u v w x y z)
|
||||
|
||||
CURR_DRIVE_LETTER=0
|
||||
while read line; do
|
||||
set -- $line
|
||||
[ "$1" = "$INSTALL_DISK_DEVICE" ] && REMAPPED_INSTALL_DEVICE="${INSTALL_DEVICE:0:7}${LETTERS[CURR_DRIVE_LETTER]}${INSTALL_DEVICE:8:2}"
|
||||
[ "$2" = "$INSTALL_DRIVER" ] && {
|
||||
DEV_NAME_ORIG=(${DEV_NAME_ORIG[*]} $1)
|
||||
DEV_NAME_DEST=(${DEV_NAME_DEST[*]} ${1:0:7}${LETTERS[CURR_DRIVE_LETTER]})
|
||||
let CURR_DRIVE_LETTER+=1
|
||||
}
|
||||
done < $mapfile
|
||||
[ "$REMAPPED_INSTALL_DEVICE" ] || REMAPPED_INSTALL_DEVICE=$INSTALL_DEVICE
|
||||
echo $REMAPPED_INSTALL_DEVICE
|
||||
|
||||
rm -f $mapfile
|
||||
rm -f $tmpfile
|
||||
}
|
||||
|
||||
DCOPID=$2
|
||||
INPUT_FILE=$1
|
||||
[ "$2" -a "$3" ] && DCOPID="--user $3 $2"
|
||||
|
||||
echo $"\
|
||||
openmamba boot loader recovery script - version $VERSION
|
||||
Copyright (c) 2007-2010 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
Copyright (c) 2007-2011 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
"
|
||||
|
||||
dcop_write $"Starting installation..." 5
|
||||
|
||||
[ $INPUT_FILE ] || {
|
||||
echo $"Error: this script must be called by bootloader.kmdr; aborting." >&2
|
||||
abort
|
||||
}
|
||||
|
||||
[ -r $INPUT_FILE ] || {
|
||||
echo $"Error: cannot read input file $INPUT_FILE; aborting." >&2
|
||||
abort
|
||||
@@ -166,9 +118,6 @@ MOUNTPOINT=$INSTALL_MOUNTPOINT
|
||||
abort
|
||||
}
|
||||
|
||||
REMAPPED_INSTALL_DEVICE=`find_remapped_device $INSTALL_DEVICE`
|
||||
echo $"Install device $INSTALL_DEVICE will be known as $REMAPPED_INSTALL_DEVICE in the installed system" | tee -a $LOG_FILE
|
||||
|
||||
dcop_write $"Binding system dirs to new mountpoint..." 73
|
||||
mount -o bind /dev $MOUNTPOINT/dev || {
|
||||
echo $"Error: could not mount $MOUNTPOINT/dev; aborting." >&2
|
||||
@@ -246,10 +195,6 @@ _EOF
|
||||
}
|
||||
|
||||
chroot $MOUNTPOINT update-grub | tee -a $LOGFILE
|
||||
|
||||
[ "${INSTALL_DEVICE}" != "${REMAPPED_INSTALL_DEVICE}" ] && \
|
||||
sed -i "s|root=/dev/${INSTALL_DEVICE:5:5}|root=/dev/${REMAPPED_INSTALL_DEVICE:5:5}|" \
|
||||
$MOUNTPOINT/boot/grub/grub.cfg
|
||||
else
|
||||
echo $"Info: skipping bootloader installation" | tee -a $LOG_FILE
|
||||
fi
|
||||
|
@@ -8,7 +8,4 @@ Exec=kmdr-executor /usr/share/openmamba/bootrecover/bootrecover.kmdr
|
||||
Icon=bootrecover
|
||||
Terminal=0
|
||||
Type=Application
|
||||
Categories=X-openmamba
|
||||
X-KDE-RootOnly=true
|
||||
X-KDE-SubstituteUID=true
|
||||
X-KDE-Username=root
|
||||
Categories=X-openmamba;
|
||||
|
@@ -44,9 +44,9 @@ msgstr ""
|
||||
|
||||
#: _from_rc.cc:12
|
||||
msgid ""
|
||||
"Copyright (c) 2007-2010 by Silvan Calarco\n"
|
||||
"Copyright (c) 2007-2011 by Silvan Calarco\n"
|
||||
"Released under the terms of the GNU GPL v3 license"
|
||||
msgstr "Copyright (c) 2007-2010 by Silvan Calarco\n"
|
||||
msgstr "Copyright (c) 2007-2011 by Silvan Calarco\n"
|
||||
"Expedido según los terminos de la licencia GNU GPL v3"
|
||||
|
||||
#: _from_rc.cc:9
|
||||
|
@@ -44,9 +44,9 @@ msgstr ""
|
||||
|
||||
#: _from_rc.cc:12
|
||||
msgid ""
|
||||
"Copyright (c) 2007-2010 by Silvan Calarco\n"
|
||||
"Copyright (c) 2007-2011 by Silvan Calarco\n"
|
||||
"Released under the terms of the GNU GPL v3 license"
|
||||
msgstr "Copyright (c) 2007-2010 by Silvan Calarco\n"
|
||||
msgstr "Copyright (c) 2007-2011 by Silvan Calarco\n"
|
||||
"Rilasciato secondo i termini della licenza GNU GPL v3"
|
||||
|
||||
#: _from_rc.cc:9
|
||||
|
BIN
desktop/desktop-common.tar.bz2
Normal file
BIN
desktop/desktop-common.tar.bz2
Normal file
Binary file not shown.
BIN
desktop/desktop-en.tar.bz2
Normal file
BIN
desktop/desktop-en.tar.bz2
Normal file
Binary file not shown.
BIN
desktop/desktop-es.tar.bz2
Normal file
BIN
desktop/desktop-es.tar.bz2
Normal file
Binary file not shown.
29
desktop/desktop-firsttime.sh.in
Normal file
29
desktop/desktop-firsttime.sh.in
Normal file
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# desktop.firsttime - Desktop firsttime script for @distroID@
|
||||
#
|
||||
# This file is called by startkde after the kpersonalizer has been
|
||||
# executed for first access configuration
|
||||
#
|
||||
# Copyright (c) 2005-2012 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
# Copyright (c) 2007 by Davide Madrisan <davide.madrisan@gmail.com>
|
||||
|
||||
if [ ! -e $HOME/Desktop/.directory ]; then
|
||||
|
||||
case "$LANG" in
|
||||
es*) LANG_ADD=es ;;
|
||||
fr*) LANG_ADD=fr ;;
|
||||
it*) LANG_ADD=it ;;
|
||||
*) LANG_ADD=en ;;
|
||||
esac
|
||||
|
||||
if [ -r @distrodesktopdir@/desktop-$LANG_ADD.tar.bz2 ]; then
|
||||
mkdir -p $HOME/Desktop
|
||||
( cd $HOME/Desktop >/dev/null
|
||||
tar xjf @distrodesktopdir@/desktop-common.tar.bz2
|
||||
tar xjf @distrodesktopdir@/desktop-$LANG_ADD.tar.bz2 )
|
||||
fi
|
||||
|
||||
touch $HOME/Desktop/.directory
|
||||
|
||||
fi
|
BIN
desktop/desktop-fr.tar.bz2
Normal file
BIN
desktop/desktop-fr.tar.bz2
Normal file
Binary file not shown.
BIN
desktop/desktop-it.tar.bz2
Normal file
BIN
desktop/desktop-it.tar.bz2
Normal file
Binary file not shown.
@@ -1,10 +0,0 @@
|
||||
# Configuration file for the PolicyKit Local Authority.
|
||||
#
|
||||
# DO NOT EDIT THIS FILE, it will be overwritten on update.
|
||||
#
|
||||
# See the pklocalauthority(8) man page for more information
|
||||
# about configuring the Local Authority.
|
||||
#
|
||||
|
||||
[Configuration]
|
||||
AdminIdentities=unix-group:sysadmin
|
@@ -12,3 +12,24 @@ Action=org.freedesktop.packagekit.*
|
||||
ResultAny=yes
|
||||
ResultInactive=no
|
||||
ResultActive=yes
|
||||
|
||||
[Normal Staff Permissions]
|
||||
Identity=unix-group:sysadmin
|
||||
Action=org.kde.ufw.*
|
||||
ResultAny=yes
|
||||
ResultInactive=no
|
||||
ResultActive=yes
|
||||
|
||||
[Normal Staff Permissions]
|
||||
Identity=unix-group:sysadmin
|
||||
Action=gufw.daemon.*
|
||||
ResultAny=yes
|
||||
ResultInactive=no
|
||||
ResultActive=yes
|
||||
|
||||
[Normal Staff Permissions]
|
||||
Identity=unix-group:sysadmin
|
||||
Action=org.freedesktop.NetworkManager.*
|
||||
ResultAny=yes
|
||||
ResultInactive=no
|
||||
ResultActive=yes
|
||||
|
1
etc/xprofile.d/qt-graphicssystem.sh
Normal file
1
etc/xprofile.d/qt-graphicssystem.sh
Normal file
@@ -0,0 +1 @@
|
||||
export QT_GRAPHICSSYSTEM=raster
|
@@ -1,3 +1,6 @@
|
||||
[Compositing]
|
||||
DisableChecks=true
|
||||
|
||||
[Windows]
|
||||
ElectricBorders=1
|
||||
ElectricBorderDelay=150
|
||||
|
@@ -7,7 +7,7 @@ Exec=kmdr-executor /usr/share/openmamba/mambabase/mambabase.kmdr
|
||||
Icon=mamba
|
||||
Terminal=0
|
||||
Type=Application
|
||||
Categories=X-openmamba
|
||||
Categories=X-openmamba;
|
||||
#X-KDE-RootOnly=true
|
||||
#X-KDE-SubstituteUID=true
|
||||
#X-KDE-Username=root
|
||||
|
@@ -7,7 +7,7 @@ Exec=kmdr-executor /usr/share/openmamba/mambabase/mambabase.kmdr
|
||||
Icon=mamba
|
||||
Terminal=0
|
||||
Type=Application
|
||||
Categories=X-openmamba
|
||||
Categories=X-openmamba;
|
||||
#X-KDE-RootOnly=true
|
||||
#X-KDE-SubstituteUID=true
|
||||
#X-KDE-Username=root
|
||||
|
@@ -102,7 +102,7 @@ msgstr ""
|
||||
|
||||
#: _from_rc.cc:17
|
||||
msgid "openmamba installation/updates"
|
||||
msgstr "instalación/actualización de openmamba"
|
||||
msgstr "Instalación/actualización de openmamba"
|
||||
|
||||
#: _from_rc.cc:18
|
||||
msgid "Off&ice packages (OpenOffice, Groupware, PDA Syncronization, ...)"
|
||||
|
@@ -102,7 +102,7 @@ msgstr ""
|
||||
|
||||
#: _from_rc.cc:17
|
||||
msgid "openmamba installation/updates"
|
||||
msgstr "installazioni/aggiornamenti di openmamba"
|
||||
msgstr "Installazioni/aggiornamenti di openmamba"
|
||||
|
||||
#: _from_rc.cc:18
|
||||
msgid "Off&ice packages (OpenOffice, Groupware, PDA Syncronization, ...)"
|
||||
|
@@ -1,13 +1,13 @@
|
||||
[Desktop Entry]
|
||||
Name=openmamba system report
|
||||
Name[it]=Report del systema openmamba
|
||||
Name[it]=Report del sistema openmamba
|
||||
GenericName=Creates a system report for debugging
|
||||
GenericName[it]=Genera un report del sistema
|
||||
Exec=kmdr-executor /usr/share/openmamba/mambareport/mambareport.kmdr
|
||||
Icon=mamba
|
||||
Terminal=0
|
||||
Type=Application
|
||||
Categories=X-openmamba
|
||||
Categories=X-openmamba;
|
||||
#X-KDE-RootOnly=true
|
||||
#X-KDE-SubstituteUID=true
|
||||
#X-KDE-Username=root
|
||||
|
@@ -50,7 +50,7 @@ function catfile() {
|
||||
|
||||
FILENAME=$1
|
||||
FILEDESC=$2
|
||||
|
||||
|
||||
for c in $FILENAME; do
|
||||
cat >> $TEMPFILE << _EOF
|
||||
|
||||
@@ -68,25 +68,16 @@ function tailfile() {
|
||||
|
||||
FILENAME=$1
|
||||
FILEDESC=$2
|
||||
|
||||
for c in $1; do
|
||||
|
||||
for c in $1; do
|
||||
cat >> $TEMPFILE << _EOF
|
||||
|
||||
****************************************************************
|
||||
* File '$c' (first lines): $FILEDESC
|
||||
* File '$c' (last 200 lines): $FILEDESC
|
||||
****************************************************************
|
||||
_EOF
|
||||
|
||||
head -n 100 ${ROOT}/$c >> $TEMPFILE
|
||||
|
||||
cat >> $TEMPFILE << _EOF
|
||||
|
||||
****************************************************************
|
||||
* File '$c' (last lines): $FILEDESC
|
||||
****************************************************************
|
||||
_EOF
|
||||
|
||||
tail -n 100 ${ROOT}/$c >> $TEMPFILE
|
||||
tail -n 200 ${ROOT}/$c >> $TEMPFILE
|
||||
done
|
||||
|
||||
}
|
||||
@@ -169,7 +160,7 @@ catfile /etc/openmamba-release "release information"
|
||||
catfile /etc/sysconfig/machine "machine information from BIOS"
|
||||
catfile /proc/cpuinfo "processor(s) information"
|
||||
catfile /proc/meminfo "System memory information"
|
||||
catcommand /usr/sbin/lspci -nn "PCI hardware information (short)"
|
||||
catcommand "/usr/sbin/lspci -nn" "PCI hardware information (short)"
|
||||
catcommand /usr/sbin/lsusb "USB hardware information"
|
||||
catcommand /sbin/lsmod "Loadel kernel modules"
|
||||
catcommand "rpm -qa|grep kernel-mamba" "Installed kernel packages"
|
||||
@@ -185,14 +176,20 @@ catfile /proc/cmdline "kernel startup command line"
|
||||
catcommand "ls -l /boot" "boot files"
|
||||
catfile /boot/grub/grub.cfg "GRUB configuration"
|
||||
catfile /var/log/dmesg.log "kernel startup messages"
|
||||
catcommand /bin/dmesg "last kernel messages"
|
||||
catfile "/etc/modprobe.d/*" "modules configuration"
|
||||
catcommand "/usr/sbin/lsinitrd /boot/initramfs-`uname -r`.img" "running kernel initial ramdisk"
|
||||
catcommand "lsinitrd /boot/initramfs-`uname -r`.img" "running kernel initial ramdisk"
|
||||
|
||||
# system boot problems
|
||||
catfile /var/log/initd.sysinit.start "system init logfile"
|
||||
catfile /var/log/initd.*.start "runlevel init logfile"
|
||||
catfile "/var/log/initd.3.start" "runlevel 3 init logfile"
|
||||
catfile "/var/log/initd.5.start" "runlevel 5 init logfile"
|
||||
catfile /var/log/postplug.log "system configuration tool"
|
||||
|
||||
# Suspend/Powersave
|
||||
catfile /var/log/pm-powersave.log "Current powersave logfile"
|
||||
catfile /var/log/pm-suspend.log "Last suspend logfile"
|
||||
|
||||
# Graphical subsystem
|
||||
catfile /var/log/Xorg.0.log "Xorg startup log"
|
||||
catfile /etc/X11/xorg.conf "Xorg configuration"
|
||||
@@ -202,7 +199,7 @@ tailfile $HOME/.xsession-errors "desktop session log"
|
||||
# Audio
|
||||
catfile "/proc/asound/card*/codec*" "Audio driver codecs"
|
||||
catfile "/etc/asound.conf" "Alsa configuration"
|
||||
catfile "/etc/asound.state" "Alsa mixer settings"
|
||||
catfile "/var/lib/alsa/asound.state" "Alsa mixer settings"
|
||||
|
||||
# Network
|
||||
catcommand "/sbin/ifconfig -a" "Network interfaces list"
|
||||
@@ -211,7 +208,13 @@ catcommand "/sbin/route -n" "Routing table"
|
||||
catfile "/etc/sysconfig/network" "General network configuration"
|
||||
catfile "/etc/resolv.conf" "DNS configuration"
|
||||
|
||||
# Disks
|
||||
for d in /dev/sd[a-z]; do
|
||||
catcommand "smartctl -ia $d" "S.M.A.R.T. status for device $d"
|
||||
done
|
||||
|
||||
# Installation
|
||||
catcommand "rpm -qa --last | head -n 100" "Last installed packages"
|
||||
catfile "/var/log/install-*" "Installation log"
|
||||
catfile /var/log/Xorg.5.log "Xorg installation test log"
|
||||
|
||||
|
@@ -27,6 +27,7 @@ INPUT_FILE=/root/.installer.conf
|
||||
#/opt/kde3/bin/dcopserver
|
||||
xinit /opt/kde3/bin/kmdr-executor /usr/share/openmamba/mambawelcome/mambawelcome.kmdr -- -br -dpi 100
|
||||
#/opt/kde3/bin/dcopserver_shutdown
|
||||
killall -9 dcopserver
|
||||
|
||||
[ -e /root/.mambawelcome-not-completed ] && {
|
||||
rm -f /root/.mambawelcome-not-completed
|
||||
|
@@ -44,6 +44,10 @@ Copyright (c) 2007-2010 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
|
||||
dcop_write $"Configuring..." 5
|
||||
|
||||
# update grub device mappings and config
|
||||
[ -e /usr/sbin/grub-mkdevicemap ] && /usr/sbin/grub-mkdevicemap -n
|
||||
/usr/sbin/update-grub
|
||||
|
||||
[ -r $INPUT_FILE ] || {
|
||||
echo $"Error: cannot read input file $INPUT_FILE; aborting." >&2
|
||||
abort
|
||||
@@ -159,10 +163,6 @@ sh -c "echo $INSTALL_ROOT_PASSWORD | passwd --stdin" || {
|
||||
sed -i "s|netbios name =.*|netbios name = $INSTALL_HOSTNAME|" /etc/samba/smb.conf
|
||||
}
|
||||
|
||||
# update grub device mappings and config
|
||||
/usr/sbin/grub-mkdevicemap -n
|
||||
/usr/sbin/update-grub
|
||||
|
||||
# configure suspend (from suspend rpm post script) and recreate mkinitramfs
|
||||
grep path_to_resume_device_file /etc/suspend.conf && {
|
||||
SWAPLINE=`/sbin/swapon -s |grep -m1 ^/dev/`
|
||||
|
@@ -11,4 +11,4 @@ Comment[it]=Messaggi del kernel durante l'avvio del sistema
|
||||
Comment[fr]=Messages du noyau lors du démarrage du système
|
||||
Exec=@distrobindir@/showlog /var/log/dmesg.log "Kernel init messages" agent
|
||||
Icon=utilities-log-viewer
|
||||
Categories=X-@distroID@-Logs
|
||||
Categories=X-@distroID@-Logs;
|
||||
|
@@ -11,4 +11,4 @@ Comment[it]=Informazioni sull'avvio dei servizi di runlevel 5
|
||||
Comment[fr]=Messages au démarrage des services du runlevel 5
|
||||
Exec=@distrobindir@/showlog /var/log/initd.5.start "Runlevel 5 init log" agent
|
||||
Icon=utilities-log-viewer
|
||||
Categories=X-@distroID@-Logs
|
||||
Categories=X-@distroID@-Logs;
|
||||
|
@@ -11,4 +11,4 @@ Comment[it]=Informazioni riguardo all'ultimo spegnimento del sistema
|
||||
Comment[fr]=Messages du système lors du dernier arrêt
|
||||
Exec=@distrobindir@/showlog /var/log/initd.0.stop "Last shutdown log" agent
|
||||
Icon=utilities-log-viewer
|
||||
Categories=X-@distroID@-Logs
|
||||
Categories=X-@distroID@-Logs;
|
||||
|
@@ -11,4 +11,4 @@ Comment[it]=Informazioni riguardo all'ultimo riavvio del sistema
|
||||
Comment[fr]=Messages du système lors du dernier redémarrage
|
||||
Exec=@distrobindir@/showlog /var/log/initd.6.stop "Last reboot log" agent
|
||||
Icon=utilities-log-viewer
|
||||
Categories=X-@distroID@-Logs
|
||||
Categories=X-@distroID@-Logs;
|
||||
|
@@ -11,4 +11,4 @@ Comment[it]=Messaggi di avvio del sistema openmamba
|
||||
Comment[fr]=Messages au démerrage du système openmamba
|
||||
Exec=@distrobindir@/showlog /var/log/initd.sysinit.start "System init log" agent
|
||||
Icon=utilities-log-viewer
|
||||
Categories=X-@distroID@-Logs
|
||||
Categories=X-@distroID@-Logs;
|
||||
|
@@ -12,7 +12,7 @@ Exec=@bindir@/openmamba-netsrpms b43-firmware
|
||||
Icon=network-wireless
|
||||
MimeType=
|
||||
Path=
|
||||
StartupNotify=true
|
||||
StartupNotify=false
|
||||
Terminal=false
|
||||
TerminalOptions=
|
||||
Type=Application
|
||||
|
@@ -12,7 +12,7 @@ Exec=@bindir@/openmamba-netsrpms flashplugin
|
||||
Icon=distromenu-flash
|
||||
MimeType=
|
||||
Path=
|
||||
StartupNotify=true
|
||||
StartupNotify=false
|
||||
Terminal=false
|
||||
TerminalOptions=
|
||||
Type=Application
|
||||
|
@@ -12,3 +12,4 @@ Comment[fr]=Installation du Java Runtime Environment (JRE) depuis le réseau
|
||||
Exec=@bindir@/openmamba-netsrpms jre
|
||||
Icon=distromenu-java
|
||||
Categories=X-@distroID@-NetInstall;
|
||||
StartupNotify=false
|
||||
|
@@ -12,3 +12,4 @@ Comment[fr]=Installation des polices MS TrueType pour le Web
|
||||
Exec=@bindir@/openmamba-netsrpms msttcorefonts
|
||||
Icon=fonts-package
|
||||
Categories=X-@distroID@-NetInstall;
|
||||
StartupNotify=false
|
||||
|
@@ -12,7 +12,7 @@ Exec=@bindir@/openmamba-netsrpms skype
|
||||
Icon=distromenu-skype
|
||||
MimeType=
|
||||
Path=
|
||||
StartupNotify=true
|
||||
StartupNotify=false
|
||||
Terminal=false
|
||||
TerminalOptions=
|
||||
Type=Application
|
||||
|
19
menu/applications/netinstall/sun-java7.desktop.in
Normal file
19
menu/applications/netinstall/sun-java7.desktop.in
Normal file
@@ -0,0 +1,19 @@
|
||||
[Desktop Entry]
|
||||
Name=Install Sun Java 7
|
||||
Name[es]=Instala Sun Java 7
|
||||
Name[fr]=Installation du Sun Java 7
|
||||
Name[it]=Installa Sun Java 7
|
||||
Comment=Install Sun Java 7 from network
|
||||
Comment[es]=Instala Sun Java 7 por red
|
||||
Comment[fr]=Installation du Sun Java 7 depuis le réseau
|
||||
Comment[it]=Installa Sun Java 7 dalla rete
|
||||
Encoding=UTF-8
|
||||
Exec=@bindir@/openmamba-netsrpms sun-java7
|
||||
Icon=distromenu-java
|
||||
MimeType=
|
||||
Path=
|
||||
StartupNotify=false
|
||||
Terminal=false
|
||||
TerminalOptions=
|
||||
Type=Application
|
||||
Categories=X-@distroID@-NetInstall;
|
@@ -12,7 +12,7 @@ Exec=@bindir@/openmamba-netsrpms virtualbox-extension-pack
|
||||
Icon=VBox
|
||||
MimeType=
|
||||
Path=
|
||||
StartupNotify=true
|
||||
StartupNotify=false
|
||||
Terminal=false
|
||||
TerminalOptions=
|
||||
Type=Application
|
||||
|
@@ -12,3 +12,4 @@ Comment[fr]=Installation et mise à jour des codecs multimédias Win32
|
||||
Exec=@bindir@/openmamba-netsrpms win32codecs
|
||||
Icon=applications-multimedia
|
||||
Categories=X-@distroID@-NetInstall;
|
||||
StartupNotify=false
|
||||
|
BIN
menu/icons/hicolor/32x32/apps/distromenu-java.png
Normal file
BIN
menu/icons/hicolor/32x32/apps/distromenu-java.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.8 KiB |
BIN
menu/icons/hicolor/48x48/apps/distromenu-java.png
Normal file
BIN
menu/icons/hicolor/48x48/apps/distromenu-java.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
BIN
menu/icons/hicolor/64x64/apps/distromenu-java.png
Normal file
BIN
menu/icons/hicolor/64x64/apps/distromenu-java.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.7 KiB |
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# netsrpm-install.sh - Build srpms that download sources from network
|
||||
#
|
||||
# Copyright (C) 2003-2011 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
# Copyright (C) 2003-2012 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
# Copyright (C) 2005 by Massimo Pintore <massimo.pintore@qilinux.it>
|
||||
# Copyright (C) 2005-2007 by Davide Madrisan <davide.madrisan@qilinux.it>
|
||||
|
||||
@@ -32,9 +32,9 @@ fi
|
||||
function check_if_already_installed() {
|
||||
rpm -q $1 &>/dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
notify-send -i $icon "$pckname" "$pckname: "$"already installed."
|
||||
notify-send -a $"Network software installation" -i $icon "$pckname" "$pckname: "$"already installed."
|
||||
else
|
||||
notify-send -i $icon "$pckname" $"There was an error installing"" $pckname!"
|
||||
notify-send -a $"Network software installation" -i $icon "$pckname" $"There was an error installing"" $pckname!"
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ for pckname in $PACKAGES; do
|
||||
[ $? -ne 0 ] && exit 1
|
||||
fi
|
||||
|
||||
notify-send -i $icon "$pckname" $"$pckname installation in progress..."
|
||||
notify-send -a $"Network software installation" -i $icon "$pckname" $"$pckname installation in progress..."
|
||||
|
||||
# build rpm
|
||||
echo "$me: "$"rebuilding package \`$SRPM_PATH'..."
|
||||
@@ -118,7 +118,7 @@ for pckname in $PACKAGES; do
|
||||
RPM_PATH=`find $tmpdir -name \*.rpm`
|
||||
|
||||
# install rpm
|
||||
sudo rpm -hUv --force $RPM_PATH
|
||||
sudo smart install -y $RPM_PATH
|
||||
if [ $? -gt 0 ]; then
|
||||
echo "$me: "$"error installing \`$SRPM_PATH'."" "$"Aborting..." >&2
|
||||
check_if_already_installed $pckname
|
||||
@@ -127,9 +127,9 @@ for pckname in $PACKAGES; do
|
||||
|
||||
rpm -q $pckname 2>/dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
notify-send -i $icon "$pckname" $"Installation of $pckname successfully completed."
|
||||
notify-send -a $"Network software installation" -i $icon "$pckname" $"Installation of $pckname successfully completed."
|
||||
else
|
||||
notify-send -i $icon "$pckname" $"There was an error installing $pckname!"
|
||||
notify-send -a $"Network software installation" -i $icon "$pckname" $"There was an error installing $pckname!"
|
||||
fi
|
||||
rm -rf $tmpdir $tmpfile
|
||||
|
||||
|
@@ -1,85 +0,0 @@
|
||||
# Italian translation of openmamba-usbinstall.
|
||||
# Copyright (C) 2009 Ercole 'ercolinux' Carpanetto
|
||||
# This file is distributed under the same license as the openmamba-usbinstall package.
|
||||
# Ercole 'ercolinux' Carpanetto <ercole69@gmail.com>, 2009.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: 1.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2009-12-01 23:12+0100\n"
|
||||
"PO-Revision-Date: 2009-12-01 23:12+0100\n"
|
||||
"Last-Translator: Ercole 'ercolinux' Carpanetto <ercole69@gmail.com>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: openmamba-usbinstall.sh:25
|
||||
msgid ""
|
||||
"Warning all the data on the usb key <b>${vendor[$chiave]} ${model[$chiave]}</"
|
||||
"b> with <b>${size[$chiave]} GB</b> will be destroyed!"
|
||||
msgstr ""
|
||||
"Attenzione tutti i dati sulla chiavetta <b>${vendor[$chiave]} ${model[$chiave]}</"
|
||||
"b> di <b>${size[$chiave]} GB</b> saranno cancellati!"
|
||||
|
||||
#: openmamba-usbinstall.sh:27
|
||||
msgid "openmamba installation on USB device"
|
||||
msgstr "Installazione di openmamba su dispositivo USB"
|
||||
|
||||
#: openmamba-usbinstall.sh:27
|
||||
msgid "Starting installation..."
|
||||
msgstr "Avvio dell'installazione..."
|
||||
|
||||
#: openmamba-usbinstall.sh:32
|
||||
msgid "Creating partitions..."
|
||||
msgstr "Creazione delle partizioni..."
|
||||
|
||||
#: openmamba-usbinstall.sh:51
|
||||
msgid "Formatting..."
|
||||
msgstr "Formattazione..."
|
||||
|
||||
#: openmamba-usbinstall.sh:55
|
||||
msgid "Mounting and file creation..."
|
||||
msgstr "Montaggio e creazione files..."
|
||||
|
||||
#: openmamba-usbinstall.sh:60
|
||||
msgid "Verifing files and eventually download from internet..."
|
||||
msgstr "Verifica dei files ed eventuale download da internet..."
|
||||
|
||||
#: openmamba-usbinstall.sh:63
|
||||
msgid ""
|
||||
"Please select the 'bootusb' archive or press Cancel to download it"
|
||||
msgstr ""
|
||||
"Seleziona l'archivio 'bootusb' o premi Cancella per scaricarlo"
|
||||
|
||||
#: openmamba-usbinstall.sh:66
|
||||
msgid "Please select the ISO image or press Cancel to download it"
|
||||
msgstr "Seleziona l'immagine ISO o premi Cancella per scaricarla"
|
||||
|
||||
#: openmamba-usbinstall.sh:72
|
||||
msgid "Installing files..."
|
||||
msgstr "Installazione dei files..."
|
||||
|
||||
#: openmamba-usbinstall.sh:76
|
||||
msgid "Installing bootloader..."
|
||||
msgstr "Installazione del bootloader..."
|
||||
|
||||
#: openmamba-usbinstall.sh:79
|
||||
msgid "Copying ISO image..."
|
||||
msgstr "Copia immagine ISO..."
|
||||
|
||||
#: openmamba-usbinstall.sh:116
|
||||
msgid "USB key missing"
|
||||
msgstr "Chiavetta USB non inserita"
|
||||
|
||||
#: openmamba-usbinstall.sh:116
|
||||
msgid "Please insert a USB key or press No"
|
||||
msgstr "Per favore inserisci una chiavetta USB o premi No"
|
||||
|
||||
#: openmamba-usbinstall.sh:128 openmamba-usbinstall.sh:131
|
||||
#: openmamba-usbinstall.sh:134
|
||||
msgid "Select the USB key on which you want to install openmamba"
|
||||
msgstr "Seleziona la chiavetta USB su cui installare openmamba"
|
||||
|
@@ -1,13 +0,0 @@
|
||||
[Desktop Entry]
|
||||
Name=openmamba USB installation
|
||||
Name[it]=Installazione di openmamba USB
|
||||
GenericName=Prepares an openmamba live system on a USB storage
|
||||
GenericName[it]=Prepara una chiavetta USB con openmamba live
|
||||
Exec=/usr/share/openmamba/usbinstall/usbinstall.sh
|
||||
Icon=mamba
|
||||
Terminal=0
|
||||
Type=Application
|
||||
Categories=X-openmamba
|
||||
X-KDE-RootOnly=true
|
||||
X-KDE-SubstituteUID=true
|
||||
X-KDE-Username=root
|
@@ -1,149 +0,0 @@
|
||||
#!/bin/bash
|
||||
# openmamba-usbinstall è uno script per la generazione automatica di una chiavetta di boot per openmamba snapshot.
|
||||
# Se i file necessari sono presenti sul disco fisso verranno utilizzati quelli altrimenti
|
||||
# scaricherà direttamente la versione attuale dal sito di openmamba.
|
||||
# se il file iso è presente nella home verrà usato direttamente altrimenti si aprirà un dialogo dove sarà possibile cercarlo.
|
||||
# (c) 2009 ercole 'ercolinux' carpanetto - ercole69@gmail.com
|
||||
# (c) 2009-2010 Silvan Calarco - silvan.calarco@mambasoft.it
|
||||
# rilasciato secondo la licenza GPL v.3
|
||||
|
||||
# per cambiare la versione della snapshot di openmamba modificare il valore qui sotto di conseguenza
|
||||
version=20091201
|
||||
version_cd=20091201
|
||||
fileiso="~/openmamba-livecd-it-snapshot-"$version_cd".i586.iso"
|
||||
filecpio=""~/openmamba-bootusb-it-snapshot-"$version".i586.cpio.gz""
|
||||
|
||||
#da qui in poi non c'è nulla da modificare
|
||||
|
||||
TEXTDOMAIN=usbinstall
|
||||
TEXTDOMAINDIR=/usr/share/locale/
|
||||
# formattazione della chiavetta e installazione dei file necessari al boot di openmamba
|
||||
|
||||
installa(){
|
||||
conferma=0
|
||||
chiave=$c
|
||||
kdialog --title $"openmamba installation on USB device" --yesno $"Warning all the data on the usb key <b>${vendor[$chiave]} ${model[$chiave]}</b> with <b>${size[$chiave]} GB</b> will be destroyed!" && conferma=1
|
||||
|
||||
if [ $conferma -eq 1 ]; then
|
||||
dcopRef=$(kdialog --geometry 450x140 --title $"openmamba installation on USB device" --progressbar $"Starting installation..." 12)
|
||||
qdbus $dcopRef org.freedesktop.DBus.Properties.Set org.kde.kdialog.ProgressDialog maximum 20
|
||||
|
||||
sudo umount ${device[$chiave]}1
|
||||
qdbus $dcopRef org.freedesktop.DBus.Properties.Set org.kde.kdialog.ProgressDialog value 1
|
||||
qdbus $dcopRef org.kde.kdialog.ProgressDialog.setLabelText $"Creating partitions..."
|
||||
sudo fdisk ${device[$chiave]} <<EOF
|
||||
d
|
||||
4
|
||||
d
|
||||
3
|
||||
d
|
||||
2
|
||||
d
|
||||
n
|
||||
p
|
||||
1
|
||||
1
|
||||
|
||||
a
|
||||
1
|
||||
w
|
||||
EOF
|
||||
qdbus $dcopRef org.freedesktop.DBus.Properties.Set org.kde.kdialog.ProgressDialog value 3
|
||||
qdbus $dcopRef org.kde.kdialog.ProgressDialog.setLabelText $"Formattazione..."
|
||||
disk=${device[$chiave]}1
|
||||
sudo mkfs.ext3 $disk -L openmamba_live
|
||||
qdbus $dcopRef org.freedesktop.DBus.Properties.Set org.kde.kdialog.ProgressDialog value 6
|
||||
qdbus $dcopRef org.kde.kdialog.ProgressDialog.setLabelText $"Mounting and file creation..."
|
||||
mkdir -p ~/tmpmamba
|
||||
sudo mount $disk ~/tmpmamba
|
||||
sudo chmod 777 ~/tmpmamba
|
||||
qdbus $dcopRef org.freedesktop.DBus.Properties.Set org.kde.kdialog.ProgressDialog value 10
|
||||
qdbus $dcopRef org.kde.kdialog.ProgressDialog.setLabelText $"Verifing files and eventually download from internet..."
|
||||
file=$filecpio
|
||||
if [ ! -f $file ]; then
|
||||
file=$(kdialog --title $"Please select the 'bootusb' archive or press Cancel to download it" --getopenfilename $HOME "openmamba*-bootusb-*.cpio.gz |openmamba files")
|
||||
echo $file
|
||||
if [ ! $file ]; then
|
||||
file="~/openmamba-bootusb-it-snapshot-"$version".i586.cpio.gz"
|
||||
wget http://www.openmamba.org/pub/openmamba/devel/media/bootusb/it/openmamba-bootusb-it-snapshot-$version.i586.cpio.gz
|
||||
fi
|
||||
fi
|
||||
cd ~/tmpmamba
|
||||
qdbus $dcopRef org.freedesktop.DBus.Properties.Set org.kde.kdialog.ProgressDialog value 13
|
||||
qdbus $dcopRef org.kde.kdialog.ProgressDialog.setLabelText $"Installing files..."
|
||||
gunzip -c < $file | cpio -i
|
||||
sudo extlinux --install boot
|
||||
qdbus $dcopRef org.freedesktop.DBus.Properties.Set org.kde.kdialog.ProgressDialog value 14
|
||||
qdbus $dcopRef org.kde.kdialog.ProgressDialog.setLabelText $"Installing bootloader..."
|
||||
sudo install-mbr -e 1 ${device[$chiave]}
|
||||
qdbus $dcopRef org.freedesktop.DBus.Properties.Set org.kde.kdialog.ProgressDialog value 15
|
||||
qdbus $dcopRef org.kde.kdialog.ProgressDialog.setLabelText $"Copying ISO image..."
|
||||
if [ ! -f $fileiso ];then
|
||||
fileiso=$(kdialog --title $"Please select the ISO image or press Cancel to download it" --getopenfilename $HOME "openmamba-*.iso |iso files")
|
||||
fi
|
||||
if [ ! $fileiso ];then
|
||||
sudo umount ~/tmpmamba
|
||||
cd
|
||||
qdbus $dcopRef org.kde.kdialog.ProgressDialog.close
|
||||
exit 0
|
||||
fi
|
||||
cp $fileiso ./
|
||||
ln -fs `basename $fileiso` ./openmamba-live.iso
|
||||
cd ..
|
||||
sudo umount ~/tmpmamba
|
||||
fi
|
||||
qdbus $dcopRef org.kde.kdialog.ProgressDialog.close
|
||||
exit 0
|
||||
}
|
||||
|
||||
scansione() {
|
||||
#scansione di hal alla ricerca di tutte le periferiche di archiviazione usb
|
||||
c=0
|
||||
for udi in $(/usr/bin/hal-find-by-capability --capability storage)
|
||||
do
|
||||
if [[ $(hal-get-property --udi $udi --key storage.removable) = "true" &&
|
||||
$(hal-get-property --udi $udi --key storage.drive_type) = "disk" ]]; then
|
||||
c=$((c+1))
|
||||
device[$c]=$(hal-get-property --udi $udi --key block.device)
|
||||
vendor[$c]=$(hal-get-property --udi $udi --key storage.vendor)
|
||||
model[$c]=$(hal-get-property --udi $udi --key storage.model)
|
||||
parent_udi=$(hal-find-by-property --key block.storage_device --string $udi)
|
||||
# mount[$c]=$(hal-get-property --udi $parent_udi --key volume.mount_point)
|
||||
# label[$c]=$(hal-get-property --udi $parent_udi --key volume.label)
|
||||
media_size[$c]=$(hal-get-property --udi $udi --key storage.removable.media_size)
|
||||
size[$c]=$(( ${media_size[$c]}/(1000*1000*1000)))
|
||||
fi
|
||||
done
|
||||
if [ $c -eq 0 ]; then
|
||||
t=$(kdialog --title $"USB key missing" --yesno $"Please insert a USB key or press No")
|
||||
if [ ! $t ]; then
|
||||
exit 0
|
||||
fi
|
||||
scansione
|
||||
fi
|
||||
}
|
||||
|
||||
menu(){
|
||||
chiave=""
|
||||
if [ $c -gt 1 ]; then
|
||||
case $c in
|
||||
2)
|
||||
chiave=$(kdialog --radiolist $"Select the USB key on which you want to install openmamba" 1 "${vendor[1]} ${model[1]} ${size[1]} GB" 1 2 "${vendor[2]} ${model[2]} ${size[2]} GB" 2)
|
||||
;;
|
||||
3)
|
||||
chiave=$(kdialog --radiolist $"Select the USB key on which you want to install openmamba" 1 "${vendor[1]} ${model[1]} ${size[1]} GB" 1 2 "${vendor[2]} ${model[2]} ${size[2]} GB" 2 3 "${vendor[3]} ${model[3]} ${size[3]} GB" 3)
|
||||
;;
|
||||
4)
|
||||
chiave=$(kdialog --radiolist $"Select the USB key on which you want to install openmamba" 1 "${vendor[1]} ${model[1]} ${size[1]} GB" 1 2 "${vendor[2]} ${model[2]} ${size[2]} GB" 2 3 "${vendor[3]} ${model[3]} ${size[3]} GB" 3 4 "${vendor[4]} ${model[4]} ${size[4]} GB" 4)
|
||||
;;
|
||||
esac
|
||||
if [ ! "$chiave" ]; then
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
installa
|
||||
}
|
||||
|
||||
scansione
|
||||
menu
|
||||
exit 0
|
@@ -6,7 +6,7 @@ Exec=kmdr-executor /usr/share/openmamba/xramdr/xramdr.kmdr
|
||||
Icon=mamba
|
||||
Terminal=0
|
||||
Type=Application
|
||||
Categories=X-openmamba
|
||||
Categories=X-openmamba;
|
||||
#X-KDE-RootOnly=true
|
||||
#X-KDE-SubstituteUID=true
|
||||
#X-KDE-Username=root
|
||||
|
Reference in New Issue
Block a user