Compare commits
152 Commits
Author | SHA1 | Date | |
---|---|---|---|
e1c6ee3da4 | |||
fade0ce2f2 | |||
a1aacd0104 | |||
e429fbd4ab | |||
9e74f43f42 | |||
84bdb98f7b | |||
d8bfa1b69c | |||
e613b469ed | |||
17d323c6e2 | |||
2b4a063515 | |||
c24675b49d | |||
78ed5444e7 | |||
4630a296ea | |||
207637a07f | |||
e9a856fbaf | |||
7dfc259021 | |||
68359bfefc | |||
3ff2f1d0a5 | |||
c541abef36 | |||
3bc111f2ec | |||
6ab5fbcea0 | |||
6053b4e71d | |||
bb12feebb0 | |||
daaf9f8c15 | |||
1223c76d16 | |||
94b6be73c5 | |||
70792decbe | |||
4ce9faebf4 | |||
ce3fe6e353 | |||
9921ba0e3d | |||
231726aa2d | |||
8190dd1f1e | |||
59afeb3e06 | |||
1a528e18d1 | |||
6d6e72bc35 | |||
d96f76cfb0 | |||
a5280e1c2c | |||
dcdb576efe | |||
deb176ea16 | |||
04f0aaaf5c | |||
20a3059e4f | |||
04cfbb356d | |||
ce9a6d734c | |||
8713ca8727 | |||
a16817070f | |||
4a232df254 | |||
1b60656c73 | |||
03fbd206a5 | |||
f909f4450b | |||
476c1e42b0 | |||
091b8290ba | |||
0b5540707d | |||
a8672f6db8 | |||
9f67d99d87 | |||
627a6c97f5 | |||
e2a9b882df | |||
ea16cf3903 | |||
fbd9612b03 | |||
693471c548 | |||
8bfb8d05d3 | |||
5311088a1d | |||
b5aa9a1b0a | |||
6f9a1a9820 | |||
d104a8c9ec | |||
f49cad7a27 | |||
fcfb26109d | |||
f80c5acb9c | |||
493b87818b | |||
9cf1a6e2d7 | |||
c00fd0fdd5 | |||
f119e237ab | |||
2ff85e02e8 | |||
a53e689c7f | |||
948fdf45a6 | |||
3932be0528 | |||
e525be013d | |||
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 | |||
9e32604293 | |||
904013d087 | |||
b0edff7160 | |||
fd9a15dea5 | |||
2022cd034d | |||
fbce9e4d67 | |||
3bdc53ec71 | |||
ec96420c4c | |||
67bc5ff37a | |||
29ffd249fe | |||
5c226aef0b | |||
3729032b57 | |||
27ba74d54b | |||
30093dd189 |
127
Makefile
@@ -1,14 +1,26 @@
|
||||
# Makefile for openmamba-desktop-base
|
||||
# Copyright (C) 2004-2009 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
# Makefile for desktop-base-openmamba package
|
||||
# Copyright (C) 2004-2014 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
# Copyright (C) 2005-2007 by Davide Madrisan <davide.madrisan@gmail.com>
|
||||
|
||||
include VERSION
|
||||
include SRPMSVERSIONS
|
||||
|
||||
ARCH:=`uname -i`
|
||||
|
||||
ifeq ($(ARCH), arm)
|
||||
SRPMSVERSIONSFILE = SRPMSVERSIONS.arm
|
||||
pck_srpms = b43-firmware sun-java7
|
||||
else
|
||||
SRPMSVERSIONSFILE = SRPMSVERSIONS
|
||||
pck_srpms = flashplugin msttcorefonts win32codecs skype b43-firmware virtualbox-extension-pack sun-java7 spotify
|
||||
endif
|
||||
include $(SRPMSVERSIONSFILE)
|
||||
|
||||
PACKAGE = desktop-base-openmamba
|
||||
|
||||
DISTROID = openmamba
|
||||
|
||||
WITHKDE3 := 1
|
||||
WITHKDE3TOOLS := 1
|
||||
|
||||
RPM_VENDOR = openmamba
|
||||
RPM_DISTRIBUTION = openmamba
|
||||
RPM_DISTROEXT = mamba
|
||||
@@ -37,35 +49,33 @@ 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
|
||||
xdg_mergedmenudir = $(xdg_menudir)/applications-merged
|
||||
systemdsystemdir = /lib/systemd/system
|
||||
|
||||
distrorootdir = ${datadir}/$(DISTROid)
|
||||
distrobindir = ${distrorootdir}/bin
|
||||
distrosrpmsdir = ${distrorootdir}/SRPMS
|
||||
distrokdedir = ${distrorootdir}/kde
|
||||
distrodesktopdir = ${distrorootdir}/desktop
|
||||
srcdir = .
|
||||
|
||||
INSTALL = /usr/bin/install
|
||||
@@ -74,32 +84,33 @@ 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
|
||||
|
||||
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)
|
||||
pck_catalogs3 := $(wildcard openmamba-update/po/*.po)
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .in .po .mo
|
||||
|
||||
.in:; @echo "generating $@..."; \
|
||||
if [ "$(ARCH)" != "x86_64" -a "$(ARCH)" != "arm" ]; then ARCH=i386; else ARCH=$(ARCH); fi; \
|
||||
sed "s,@distroID@,$(DISTROID),g;\
|
||||
s,@distroid@,$(DISTROid),g;\
|
||||
s,@distroicon@,$(DISTROICON),g;\
|
||||
s,@arch@,$$ARCH,g;\
|
||||
s,@distribution@,$(RPM_DISTRIBUTION),g;\
|
||||
s,@distroext@,$(RPM_DISTROEXT),g;\
|
||||
s,@vendor@,$(RPM_VENDOR),g;\
|
||||
@@ -107,13 +118,10 @@ 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,@skypever@,${SKYPE_VERSION},g" $< > $@
|
||||
s,@screensaver@,${SCREENSAVER},g" $< > $@
|
||||
|
||||
all: dist-update locales
|
||||
|
||||
@@ -148,9 +156,9 @@ install-locales: locales
|
||||
@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";\
|
||||
dir="$(DESTDIR)$(datadir)/locale/$$lang/LC_MESSAGES";\
|
||||
$(INSTALL_DIR) $$dir;\
|
||||
$(INSTALL_DATA) $${f/.po/.mo} $$dir/usbinstall.mo;\
|
||||
$(INSTALL_DATA) $${f/.po/.mo} $$dir/openmamba-update.mo;\
|
||||
done
|
||||
|
||||
install-kde-distro-addons: dist-update
|
||||
@@ -159,16 +167,24 @@ 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/profile.d $(DESTDIR)$(sysconfdir)/
|
||||
cp -r etc/sudoers.d $(DESTDIR)$(sysconfdir)/
|
||||
cp -r etc/sysconfig $(DESTDIR)$(sysconfdir)/
|
||||
cp -r etc/xprofile.d $(DESTDIR)$(sysconfdir)/
|
||||
chmod 755 $(DESTDIR)$(sysconfdir)/profile.d/*.sh
|
||||
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)/
|
||||
@@ -176,8 +192,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)
|
||||
@@ -200,48 +216,64 @@ install-distromenu: dist-update
|
||||
install-srpms:
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(distrosrpmsdir)
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(sysconfigdir)
|
||||
@cat SRPMSVERSIONS > $(DESTDIR)$(sysconfigdir)/$(SYSCONFIGFILE)
|
||||
@cat $(SRPMSVERSIONSFILE) > $(DESTDIR)$(sysconfigdir)/$(SYSCONFIGFILE)
|
||||
for pck in $(pck_srpms); do\
|
||||
rpmbuild -bs SRPMS/$$pck/$${pck}.spec \
|
||||
--define="_sourcedir `pwd`/SRPMS/$$pck" \
|
||||
--define="_srcrpmdir $(DESTDIR)$(distrosrpmsdir)" || exit 1;\
|
||||
cp -a SRPMS/$$pck $(DESTDIR)$(distrosrpmsdir); \
|
||||
rm -f $(DESTDIR)$(distrosrpmsdir)/$$pck/distroutils.sysconfig*; \
|
||||
rm -f $(DESTDIR)$(distrosrpmsdir)/$$pck/*.spec.in; \
|
||||
cat SRPMS/$$pck/$(pck_sysconfigfile) >> \
|
||||
$(DESTDIR)$(sysconfigdir)/$(SYSCONFIGFILE);\
|
||||
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_DIR) $(DESTDIR)$(systemdsystemdir)
|
||||
$(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_SCRIPT) mambawelcome/mambawelcome-init $(DESTDIR)$(mambawelcomedatadir)/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
|
||||
ln -s ../init.d/mambawelcome $(DESTDIR)$(sysconfdir)/rc.d/rc5.d/S99mambawelcome
|
||||
$(INSTALL_DATA) kde/config/kcmfonts $(DESTDIR)$(kdeconfigdir)/kcmfonts
|
||||
$(INSTALL_DATA) kde/config/kdeglobals $(DESTDIR)$(kdeconfigdir)/kdeglobals
|
||||
$(INSTALL_DATA) mambawelcome/mambawelcome.service $(DESTDIR)$(systemdsystemdir)/mambawelcome.service
|
||||
$(INSTALL_DATA) mambawelcome/mambawelcome.target $(DESTDIR)$(systemdsystemdir)/mambawelcome.target
|
||||
endif
|
||||
|
||||
install-xramdr:
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(xramdrdatadir)
|
||||
@@ -250,20 +282,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)
|
||||
@@ -274,15 +302,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
|
||||
|
@@ -1,6 +1,6 @@
|
||||
Name: b43-firmware
|
||||
Version: 1
|
||||
Release: 1@distroext@
|
||||
Version: @SRPMVERSION@
|
||||
Release: @SRPMRELEASE@
|
||||
Epoch: 1
|
||||
Summary: Broadcom firmware files for the b43 and b43legacy drivers
|
||||
Group: System/Kernel and Hardware
|
||||
@@ -22,6 +22,7 @@ Broadcom firmware files for the b43 and b43legacy drivers.
|
||||
%setup -c -n %{name}-%{version} -T
|
||||
|
||||
[ -r /etc/sysconfig/@sysconfigfile@ ] || exit 1
|
||||
declare -A SRPMVERSION SRPMRELEASE
|
||||
. /etc/sysconfig/@sysconfigfile@
|
||||
|
||||
[ "${B43_FIRMWARE_PCK}" ] || exit 1
|
||||
|
@@ -1,7 +1,7 @@
|
||||
## Broadcom B43 firmware
|
||||
|
||||
# package name (do not modify unless you know what you're doing)
|
||||
B43_FIRMWARE_PCK=broadcom-wl-4.150.10.5.tar.bz2
|
||||
B43_FIRMWARE_PCK=broadcom-wl-${SRPMVERSION["b43-firmware"]}.tar.bz2
|
||||
|
||||
# package URL (do not modify unless you know what you're doing)
|
||||
B43_FIRMWARE_URL=http://mirror2.openwrt.org/sources/
|
||||
|
@@ -1,13 +0,0 @@
|
||||
## Adobe Flash Plugin
|
||||
|
||||
# package name (do not modify unless you know what you're doing)
|
||||
#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
|
||||
|
||||
# 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/
|
7
SRPMS/flashplugin/distroutils.sysconfig.in
Normal file
@@ -0,0 +1,7 @@
|
||||
## Adobe Flash Plugin
|
||||
|
||||
# package name (do not modify unless you know what you're doing)
|
||||
FLASH_PLUGIN_PCK=install_flash_player_11_linux.@arch@.tar.gz
|
||||
|
||||
# package URL (do not modify unless you know what you're doing)
|
||||
FLASH_PLUGIN_URL=http://fpdownload.macromedia.com/get/flashplayer/pdc/${SRPMVERSION["flashplugin"]}/
|
@@ -1,6 +1,6 @@
|
||||
Name: flashplugin
|
||||
Version: @flashpluginver@
|
||||
Release: 1@distroext@
|
||||
Version: @SRPMVERSION@
|
||||
Release: @SRPMRELEASE@
|
||||
Epoch: 1
|
||||
Summary: Macromedia Flash plugin for web browsers
|
||||
Group: Applications/Web
|
||||
@@ -24,6 +24,7 @@ Macromedia Flash plugin for web browsers.
|
||||
%setup -c -n %{name}-%{version} -D -T
|
||||
|
||||
[ -r /etc/sysconfig/@sysconfigfile@ ] || exit 1
|
||||
declare -A SRPMVERSION SRPMRELEASE
|
||||
. /etc/sysconfig/@sysconfigfile@
|
||||
|
||||
[ "${FLASH_PLUGIN_PCK}" ] || exit 1
|
||||
|
@@ -1,189 +0,0 @@
|
||||
Sun JRE installation - please read carefully
|
||||
============================================
|
||||
|
||||
Sun Microsystems, Inc. Binary Code License Agreement
|
||||
|
||||
READ THE TERMS OF THIS AGREEMENT AND ANY PROVIDED SUPPLEMENTAL LICENSE
|
||||
TERMS (COLLECTIVELY "AGREEMENT") CAREFULLY BEFORE OPENING THE SOFTWARE
|
||||
MEDIA PACKAGE. BY OPENING THE SOFTWARE MEDIA PACKAGE, YOU AGREE TO THE
|
||||
TERMS OF THIS AGREEMENT. IF YOU ARE ACCESSING THE SOFTWARE
|
||||
ELECTRONICALLY, INDICATE YOUR ACCEPTANCE OF THESE TERMS BY SELECTING
|
||||
THE "ACCEPT" BUTTON AT THE END OF THIS AGREEMENT. IF YOU DO NOT AGREE
|
||||
TO ALL THESE TERMS, PROMPTLY RETURN THE UNUSED SOFTWARE TO YOUR PLACE
|
||||
OF PURCHASE FOR A REFUND OR, IF THE SOFTWARE IS ACCESSED
|
||||
ELECTRONICALLY, SELECT THE "DECLINE" BUTTON AT THE END OF THIS
|
||||
AGREEMENT.
|
||||
|
||||
1. LICENSE TO USE. Sun grants you a non-exclusive and
|
||||
non-transferable license for the internal use only of the accompanying
|
||||
software and documentation and any error corrections provided by Sun
|
||||
(collectively "Software"), by the number of users and the class of
|
||||
computer hardware for which the corresponding fee has been paid.
|
||||
|
||||
2. RESTRICTIONS Software is confidential and copyrighted. Title to
|
||||
Software and all associated intellectual property rights is retained by
|
||||
Sun and/or its licensors. Except as specifically authorized in any
|
||||
Supplemental License Terms, you may not make copies of Software, other
|
||||
than a single copy of Software for archival purposes. Unless
|
||||
enforcement is prohibited by applicable law, you may not modify,
|
||||
decompile, or reverse engineer Software. You acknowledge that Software
|
||||
is not designed, licensed or intended for use in the design,
|
||||
construction, operation or maintenance of any nuclear facility. Sun
|
||||
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 Sun or its licensors is granted under this Agreement. "
|
||||
3. LIMITED WARRANTY. Sun warrants to you that for a period of ninety
|
||||
(90) days from the date of purchase, as evidenced by a copy of the
|
||||
receipt, the media on which Software is furnished (if any) will be free
|
||||
of defects in materials and workmanship under normal use. Except for
|
||||
the foregoing, Software is provided "AS IS". Your exclusive remedy and
|
||||
Sun's entire liability under this limited warranty will be at Sun's
|
||||
option to replace Software media or refund the fee paid for Software.
|
||||
|
||||
4. DISCLAIMER OF WARRANTY. UNLESS SPECIFIED IN THIS AGREEMENT, ALL
|
||||
EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
|
||||
INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
|
||||
PARTICULAR PURPOSE OR NON-INFRINGEMENT ARE DISCLAIMED, EXCEPT TO THE
|
||||
EXTENT THAT THESE DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.
|
||||
|
||||
5. LIMITATION OF LIABILITY. TO THE EXTENT NOT PROHIBITED BY LAW, IN
|
||||
NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE,
|
||||
PROFIT OR DATA, OR FOR SPECIAL, INDIRECT, CONSEQUENTIAL, INCIDENTAL OR
|
||||
PUNITIVE DAMAGES, HOWEVER CAUSED REGARDLESS OF THE THEORY OF LIABILITY,
|
||||
ARISING OUT OF OR RELATED TO THE USE OF OR INABILITY TO USE SOFTWARE,
|
||||
EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. In no
|
||||
event will Sun's liability to you, whether in contract, tort (including
|
||||
negligence), or otherwise, exceed the amount paid by you for Software
|
||||
under this Agreement. The foregoing limitations will apply even if the
|
||||
above stated warranty fails of its essential purpose.
|
||||
|
||||
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 Sun if you fail to comply with any provision of this Agreement.
|
||||
Upon Termination, you must destroy all copies of Software.
|
||||
|
||||
7. Export Regulations. All Software and technical data delivered
|
||||
under this Agreement are subject to US export control laws and may be
|
||||
subject to export or import regulations in other countries. You agree
|
||||
to comply strictly with all such laws and regulations and acknowledge
|
||||
that you have the responsibility to obtain such licenses to export,
|
||||
re-export, or import as may be required after delivery to you.
|
||||
|
||||
8. U.S. Government Restricted 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 will be only as set forth in
|
||||
this Agreement; this is in accordance with 48 CFR 227.7201 through
|
||||
227.7202-4 (for Department of Defense (DOD) acquisitions) and with 48
|
||||
CFR 2.101 and 12.212 (for non-DOD acquisitions).
|
||||
|
||||
9. Governing Law. Any action related to this Agreement will be
|
||||
governed by California law and controlling U.S. federal law. No choice
|
||||
of law rules of any jurisdiction will apply.
|
||||
|
||||
10. 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.
|
||||
|
||||
11. Integration. This Agreement is the entire agreement between you
|
||||
and Sun 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.
|
||||
|
||||
For inquiries please contact: Sun Microsystems, Inc. 901 San Antonio
|
||||
Road, Palo Alto, California 94303
|
||||
|
||||
JAVATM 2 RUNTIME ENVIRONMENT VERSION 1.3
|
||||
SUPPLEMENTAL LICENSE TERMS
|
||||
|
||||
These supplemental license terms ("Supplemental Terms") add to or
|
||||
modify the terms of the Binary Code License Agreement (collectively,
|
||||
the "Agreement"). Capitalized terms not defined in these Supplemental
|
||||
Terms shall have the same meanings ascribed to them in the Agreement.
|
||||
These Supplemental Terms shall supersede any inconsistent or
|
||||
conflicting terms in the Agreement, or in any license contained within
|
||||
the Software.
|
||||
|
||||
1. License to Distribute. Subject to the terms and conditions of this
|
||||
Agreement, including, but not limited to, Section 2 (Redistributables)
|
||||
and Section 3 (Java Technology Restrictions) of these Supplemental
|
||||
Terms, Sun grants you a non-exclusive, non-transferable, limited
|
||||
license to reproduce and distribute the Software in binary code form
|
||||
only, provided that you (i) distribute the Software complete and
|
||||
unmodified, only as part of, and for the sole purpose of running your
|
||||
Java applet or application ("Program") into which the Software is
|
||||
incorporated, (ii) do not distribute additional software intended to
|
||||
replace any component(s) of the Software, (iii) do not remove or alter
|
||||
any proprietary legends or notices contained in the Software, (iv) only
|
||||
distribute the Program subject to a license agreement that protects
|
||||
Sun's interests consistent with the terms contained in this Agreement,
|
||||
and (v) agree to defend and indemnify Sun 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.
|
||||
|
||||
2. Redistributables. In addition to the license granted in Paragraph 1
|
||||
above, Sun grants you a non-exclusive, non-transferable, limited
|
||||
license to reproduce and distribute, only as part of Software, those
|
||||
files specifically identified as redistributable in the Software
|
||||
"README" file (the "Redistributables") provided that: (a) you
|
||||
distribute the Redistributables complete and unmodified (unless
|
||||
otherwise specified in the applicable README file), and only bundled as
|
||||
part of the JavaTM applets and applications that you develop (the
|
||||
"Programs:); (b) you do not distribute additional software intended to
|
||||
supersede any component(s) of the Redistributables; (c) you do not
|
||||
remove or alter any proprietary legends or notices contained in or on
|
||||
the Redistributables; (d) you only distribute the Redistributables
|
||||
pursuant to a license agreement that protects Sun's interests
|
||||
consistent with the terms contained in the Agreement; and (e) you
|
||||
agree to defend and indemnify Sun and its licensor! s 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.
|
||||
|
||||
3. Java Technology Restrictions. You may not modify the Java Platform
|
||||
Interface ("JPI", identified as classes contained within the "java"
|
||||
package or any subpackages of the "java" package), by creating
|
||||
additional classes within the JPI or otherwise causing the addition to
|
||||
or modification of the classes in the JPI. In the event that you
|
||||
create an additional class and associated API(s) which (i) extends the
|
||||
functionality of a Java platform, and (ii) is exposed to third party
|
||||
software developers for the purpose of developing additional software
|
||||
which invokes such additional API, you must promptly publish broadly an
|
||||
accurate specification for such API for free use by all developers.
|
||||
You may not create, or authorize your licensees to create additional
|
||||
classes, interfaces, or subpackages that are in any way identified as
|
||||
"java", "javax", "sun" or similar convention as specified by Sun in any
|
||||
class file naming convention.
|
||||
|
||||
4. Trademarks and Logos. You acknowledge and agree as between you and
|
||||
Sun that Sun owns the Java trademark and all Java-related trademarks,
|
||||
service marks, logos and other brand designations including the Coffee
|
||||
Cup logo and Duke logo ("Java Marks"), and you agree to comply with the
|
||||
Sun Trademark and Logo Usage Requirements currently located at
|
||||
http://www.sun.com/policies/trademarks. Any use you make of the Java
|
||||
Marks inures to Sun's benefit.
|
||||
|
||||
5. Source Code. Software may contain source code that is provided
|
||||
solely for reference purposes pursuant to the terms of this Agreement.
|
||||
Source code may not be redistributed.
|
||||
|
||||
6. Termination. Sun may terminate this Agreement immediately should any
|
||||
Software become, or in Sun's opinion be likely to become, the subject
|
||||
of a claim of infringement of a patent, trade secret, copyright or
|
||||
other intellectual property right.
|
||||
|
||||
============================================
|
||||
|
||||
Press the "I agree" button if you have read and understood this text and accept to download and install the SUN Java Runtime Environment (JRE).
|
||||
|
||||
Press "I do not agree" if you want this script to terminate immediately without performing any futher operation
|
@@ -1,9 +0,0 @@
|
||||
## Java Runtime Environment (JRE)
|
||||
|
||||
#download parameters (do not modify unless you know what you're doing)
|
||||
JRE_VER=6
|
||||
JRE_ARCH=i586
|
||||
JRE_NSVER=7
|
||||
JRE_URL=http://mirror.ncc.up.pt/Java/Java${JRE_VER}/JRE
|
||||
JRE_PCK=jre-${JRE_VER}-linux-${JRE_ARCH}.bin
|
||||
|
@@ -1,13 +0,0 @@
|
||||
# @distroID@ configuration:
|
||||
# Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
# Davide Madrisan <davide.madrisan@qilinux.it>
|
||||
#
|
||||
# Java Environment definitions for @distroID@
|
||||
#
|
||||
if ! echo ${PATH} |grep -q /usr/java/jre/bin ; then
|
||||
PATH="$PATH:/usr/java/jre/bin"
|
||||
fi
|
||||
|
||||
JAVA_HOME=/usr/java/jre
|
||||
|
||||
export JAVA_HOME
|
@@ -1,140 +0,0 @@
|
||||
Name: jre
|
||||
Version: 0.9
|
||||
Release: 1@distroext@
|
||||
Epoch: 1
|
||||
Summary: The Java Runtime Environment
|
||||
Group: System/Libraries/Java
|
||||
Vendor: @vendor@
|
||||
Distribution: @distribution@
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: http://java.sun.com
|
||||
Source0: java-profile
|
||||
Source1: LICENSE
|
||||
License: JAVA
|
||||
Obsoletes: j2re
|
||||
Provides: j2re = %{version}
|
||||
AutoReqProv: no
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
The Java Runtime Environment consists of the Java virtual machine, the Java
|
||||
platform core classes, and supporting files.
|
||||
It is the runtime part of the Java SDK, but without the development tools
|
||||
such as compilers and debuggers.
|
||||
|
||||
%prep
|
||||
%setup -q -D -T -c
|
||||
[ -r /etc/sysconfig/@sysconfigfile@ ] || exit 1
|
||||
. /etc/sysconfig/@sysconfigfile@
|
||||
|
||||
[ -z "$JRE_URL" -o -z "$JRE_PCK" ] && exit 1
|
||||
|
||||
# get the file list available at %{URL}...
|
||||
wget -nv --timeout=5 --tries=2 -c ${JRE_URL}/${JRE_PCK} || {
|
||||
rm -f $JRE_PCK
|
||||
wget -nv --timeout=5 --tries=2 --progress=bar ${JRE_URL}/${JRE_PCK};
|
||||
}
|
||||
|
||||
#find . -name ${JRE_PCK}* -exec mv {} ${JRE_PCK} \;
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||
|
||||
[ -r /etc/sysconfig/@sysconfigfile@ ] || exit 1
|
||||
. /etc/sysconfig/@sysconfigfile@
|
||||
|
||||
[ -z "$JRE_URL" -o -z "$JRE_PCK" ] && exit 1
|
||||
|
||||
install -d %{buildroot}%{_prefix}/java
|
||||
pushd %{buildroot}%{_prefix}/java
|
||||
|
||||
MORE="-400" sh %{_builddir}/%{name}-%{version}/${JRE_PCK} << EOF
|
||||
yes
|
||||
EOF
|
||||
|
||||
popd
|
||||
|
||||
javapath="$(\
|
||||
find %{buildroot}%{_prefix}/java/ -maxdepth 1 -name jre\* -type d | \
|
||||
sed "s|^%{buildroot}||" 2>/dev/null)"
|
||||
|
||||
[ "$javapath" ] || exit 1
|
||||
|
||||
ln -s ${javapath} %{buildroot}%{_prefix}/java/jre
|
||||
|
||||
install -d %{buildroot}%{_sysconfdir}/profile.d
|
||||
cp %{S:0} %{buildroot}%{_sysconfdir}/profile.d/java.sh
|
||||
|
||||
# see <http://www.java.com/it/download/help/5000010500.xml#install>
|
||||
install -d %{buildroot}%{_libdir}/mozilla/plugins
|
||||
ln -s %{_prefix}/java/jre/plugin/i386/ns${JRE_NSVER}/libjavaplugin_oji.so \
|
||||
%{buildroot}%{_libdir}/mozilla/plugins
|
||||
ln -s %{_prefix}/java/jre/plugin/i386/ns${JRE_NSVER}/libjavaplugin_oji.so \
|
||||
%{buildroot}%{_libdir}/mozilla/plugins/libjavaplugin.so
|
||||
|
||||
#ln -s /usr/java/jre/plugin/i386/ns7-gcc29/libjavaplugin_oji.so \
|
||||
# %{buildroot}%{_libdir}/mozilla/plugins
|
||||
|
||||
rm -rf %{buildroot}${javapath}/.systemPrefs
|
||||
|
||||
# get the list of the installed files
|
||||
find %{buildroot}${javapath} \( -type f -or -type l \) | \
|
||||
sed "s|^%{buildroot}||" > jrefiles.list
|
||||
echo "%dir ${javapath}" >> jrefiles.list
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ]; then
|
||||
# new install
|
||||
if ! echo ${PATH} | grep -q /usr/java/jre/bin; then
|
||||
export PATH="$PATH:/usr/java/jre/bin"
|
||||
fi
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%files -f jrefiles.list
|
||||
%defattr(-,root,root)
|
||||
%{_prefix}/java/jre
|
||||
%{_libdir}/mozilla/plugins/libjavaplugin_oji.so
|
||||
%{_libdir}/mozilla/plugins/libjavaplugin.so
|
||||
%{_sysconfdir}/profile.d/java.sh
|
||||
|
||||
%changelog
|
||||
* Fri Feb 02 2007 Davide Madrisan <davide.madrisan@qilinux.it> 0.9-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@qilinux.it> 1.5.0-3qilnx
|
||||
- remove %{javapath}/.systemPrefs if found
|
||||
|
||||
* Wed Apr 20 2005 Silvan Calarco <silvan.calarco@qilinux.it> 1.5.0-2qilnx
|
||||
- enable resume of download
|
||||
- remove requirements and provides
|
||||
|
||||
* Wed Apr 20 2005 Silvan Calarco <silvan.calarco@qilinux.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@qilinux.it> 1.4.2-2qilnx
|
||||
- create symlinks for browser plugins to /usr/lib/mozilla/plugins
|
||||
|
||||
* Mon Oct 13 2003 Silvan Calarco <silvan.calarco@qilinux.it> 1.4.2-1qilnx
|
||||
- first build
|
@@ -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
|
||||
|
@@ -13,8 +13,8 @@
|
||||
%define name msttcorefonts
|
||||
|
||||
Name: %{name}
|
||||
Version: 1.3
|
||||
Release: 7@distroext@
|
||||
Version: @SRPMVERSION@
|
||||
Release: @SRPMRELEASE@
|
||||
Summary: TrueType core fonts for the web
|
||||
Group: Graphical Desktop/Fonts
|
||||
Vendor: @vendor@
|
||||
|
@@ -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
|
||||
|
@@ -1,18 +1,19 @@
|
||||
Name: skype
|
||||
Version: @skypever@
|
||||
Release: 2@distroext@
|
||||
Version: @SRPMVERSION@
|
||||
Release: @SRPMRELEASE@
|
||||
Epoch: 1
|
||||
Summary: An Internet voice and video communication software
|
||||
Group: Graphical Desktop/Applications/Internet
|
||||
Vendor: @vendor@
|
||||
Distribution: @distribution@
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: http://macromedia.rediris.es/
|
||||
URL: http://www.skype.com
|
||||
Source: LICENSE
|
||||
License: Non Distributable
|
||||
BuildPrereq: wget
|
||||
BuildPrereq: /usr/bin/tempfile
|
||||
# NOTE: requires the backward compatible version of the libstdc++ library
|
||||
Requires: pulseaudio
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
@@ -38,15 +39,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,6 +65,37 @@ cp %{S:0} LICENSE
|
||||
|
||||
rm -fr ${tmpdir}
|
||||
|
||||
# create a v4l1_compat desktop link
|
||||
cat > %{buildroot}%{_datadir}/applications/skype-v4l1.desktop << _EOF
|
||||
[Desktop Entry]
|
||||
Name=Skype (v4l1 webcam compatibility)
|
||||
Name[it]=Skype (compatibilità webcam v4l1)
|
||||
Comment=Skype Internet Telephony
|
||||
Exec=LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype
|
||||
Icon=skype.png
|
||||
Terminal=0
|
||||
Type=Application
|
||||
Encoding=UTF-8
|
||||
Categories=Network;Application;
|
||||
MimeType=x-scheme-handler/skype;
|
||||
X-KDE-Protocols=skype
|
||||
_EOF
|
||||
|
||||
cat > %{buildroot}%{_datadir}/applications/skype-v4l2.desktop << _EOF
|
||||
[Desktop Entry]
|
||||
Name=Skype (v4l2 webcam fixes)
|
||||
Name[it]=Skype (correzioni webcam v4l2)
|
||||
Comment=Skype Internet Telephony
|
||||
Exec=LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so skype
|
||||
Icon=skype.png
|
||||
Terminal=0
|
||||
Type=Application
|
||||
Encoding=UTF-8
|
||||
Categories=Network;Application;
|
||||
MimeType=x-scheme-handler/skype;
|
||||
X-KDE-Protocols=skype
|
||||
_EOF
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||
|
||||
@@ -75,6 +103,8 @@ rm -fr ${tmpdir}
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/skype
|
||||
%{_datadir}/applications/skype.desktop
|
||||
%{_datadir}/applications/skype-v4l1.desktop
|
||||
%{_datadir}/applications/skype-v4l2.desktop
|
||||
%{_datadir}/icons/skype.png
|
||||
%{_datadir}/pixmaps/skype.png
|
||||
%dir %{_datadir}/skype
|
||||
@@ -84,7 +114,10 @@ rm -fr ${tmpdir}
|
||||
%doc LICENSE README
|
||||
|
||||
%changelog
|
||||
* Thu Sep 10 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2-2mamba
|
||||
* Mon Dec 10 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.0.20-1mamba
|
||||
- added v4l1 and v4l2 webcam compatibility desktop entries
|
||||
|
||||
* Thu Sep 10 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.0.47-2mamba
|
||||
- specfile fixed for 2.1.0.47
|
||||
|
||||
* Wed May 28 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.0.68-1mamba
|
||||
|
188
SRPMS/spotify/LICENSE
Normal file
@@ -0,0 +1,188 @@
|
||||
Spotify Terms and Conditions of Use
|
||||
Effective as from 20 June 2013
|
||||
|
||||
Introductions
|
||||
Changes to the Agreements
|
||||
Enjoying Spotify
|
||||
3.1 Subscriptions
|
||||
3.2 Codes and other Limited Offers
|
||||
3.3 Trials
|
||||
Licence and assignment
|
||||
Third Party Applications
|
||||
User generated content
|
||||
Consideration
|
||||
User Guidelines
|
||||
Copyright infringement
|
||||
Technology limitations and modifications
|
||||
Brand accounts
|
||||
Export control
|
||||
Payments, cancellations and cooling off
|
||||
Term and termination
|
||||
Warranty
|
||||
Limitation
|
||||
Entire agreement
|
||||
Severability
|
||||
Choice of law, mandatory arbitration and venue
|
||||
Local Country chart
|
||||
Hello, and welcome to our Terms and Conditions of Use. This is important and affects your legal rights, so please read them and our Privacy Policy carefully. We hope you’re sitting comfortably. Here we go…
|
||||
|
||||
1. Introductions
|
||||
Thanks for choosing Spotify (“Spotify”, “we”, “us”, “our”). By using the Spotify service, websites, or software applications (together, the “Spotify Service” or “Service”), including by purchasing or receiving Codes or Limited Offers, you are entering into a binding contract with our local company in your country of residence (your “Local Country”) if applicable or the company listed in this chart. Your agreement with us includes these Terms and Conditions of Use (“Terms”) and our Privacy Policy (together with the Mobile Terms where applicable, the “Agreements”). If you don’t agree with these Terms, then please don’t use the Service.
|
||||
|
||||
We’re pleased to make our Service available to you. The Spotify Service includes social and interactive features. Learn more about the Spotify Service here.
|
||||
|
||||
In order to use the Spotify Service, you need to (a) be 18 or older, or be 13 or older and have your parent or guardian’s consent to these Terms, (b) have the power to enter a binding contract with us and are not barred from doing so under any applicable laws, and (c) be resident in the Local Country. You also warrant that any registration information that you submit to Spotify is true, accurate and complete, and you agree to keep it that way at all times.
|
||||
|
||||
2. Changes to the Agreements
|
||||
Occasionally we may, in our discretion, make changes to the Spotify Service and Agreements. When we make changes to the Agreements that we consider material, we’ll notify you through the Service. By continuing to use the Service after those changes are made, you are expressing and acknowledging your acceptance of the changes.
|
||||
|
||||
3. Enjoying Spotify
|
||||
Here’s some information about all the ways you can enjoy Spotify.
|
||||
|
||||
3.1 Subscriptions
|
||||
Spotify account holders may access the Spotify Service by any of our several Subscriptions:
|
||||
|
||||
Free Service: an ad-based, free-of-charge service;
|
||||
Unlimited Service: a subscription fee-based service;
|
||||
Premium Service: an ad-free, subscription fee-based service which enables you to listen to music while not connected to the internet, among other features; or
|
||||
Mobile Service: via a supported mobile handset.
|
||||
The Premium Service permits you to store cached content on up to three (3) personal computers, mobile handsets and/or other relevant devices (collectively “Devices”) while your Premium Service subscription is active. You may not transfer copies of cached content to any other device via any means. By using the Mobile Service, you agree to accept the Mobile Terms and to register for the Service as a mobile subscriber. The Premium Service and the Unlimited Service are hereinafter referred to as “Paid Subscriptions”
|
||||
|
||||
3.2 Codes and other Limited Offers
|
||||
If you have purchased a code sold by or on behalf of Spotify for access to the Unlimited Service or Premium Service for the time period indicated on your email, card or paper receipt (“Code”), or if you are accessing the service through some other limited offer which you received or purchased from Spotify (“Limited Offer”), these Agreements apply to your access to the Service. Any separate sets of terms and conditions presented to you along with the Code or other Limited Offer also apply to your access to the Service using the Code or Limited Offer.
|
||||
|
||||
Subject to any rights you may have under Section 12, Codes are only redeemable in the country where you purchased such Code, not redeemable for cash and may not be returned for a cash refund, exchanged, resold or used to purchase other Codes.
|
||||
|
||||
3.3 Trials
|
||||
From time to time, we may offer trials of the Premium Service and/or Mobile Service for a specified period without payment (a “Trial”). Spotify reserves the right, in its absolute discretion, to determine your eligibility for a Trial, and to withdraw or to modify a Trial at any time without prior notice and with no liability.
|
||||
|
||||
For some Trials, we’ll require you to provide your payment details to start the Trial. At the end of such Trials, we may automatically start to charge you for the Premium Service on the first day following the end of the Trial, on a recurring monthly basis. By providing your payment details in conjunction with the Trial, you agree to this charge. If you do not want this charge, you must change your Subscription to the Free Service through your Spotify account’s settings before the end of the Trial.
|
||||
|
||||
4. Licence and assignment
|
||||
The Spotify Service and the content provided through it are the property of Spotify or Spotify's licensors, and we grant you a limited, non-exclusive, revocable licence to make personal, non-commercial (except as permitted under Section 11) use of the Spotify Service and to receive the media content made available through the Spotify Service in your Local Country, based on the Subscription or Trial, you have selected (the “Licence”). This Licence shall remain in effect for a period of 20 years unless terminated by you or Spotify.
|
||||
|
||||
The Spotify software applications are licensed, not sold, to you, and Spotify retains ownership of all copies of the Spotify software applications even after installation on your Devices. Spotify may assign these Agreements or any part of them without restrictions. You may not assign these Agreements or any part of them, nor transfer or sub-licence your rights under this Licence, to any third party.
|
||||
|
||||
All Spotify trademarks, service marks, trade names, logos, domain names, and any other features of the Spotify brand are the sole property of Spotify. This Licence does not grant you any rights to use the Spotify trademarks, service marks, trade names, logos, domain names, or any other features of the Spotify brand, whether for commercial or non-commercial use.
|
||||
|
||||
You agree to abide by our User Guidelines and not to use the Spotify Service (including but not limited to its content) in any manner not expressly permitted by the Terms.
|
||||
|
||||
Third party software libraries included in the Spotify Service are licensed to you either under these Terms, or under the relevant third party software library’s licence terms as published in the help or settings section of our desktop and mobile client and on our website.
|
||||
|
||||
5. Third Party Applications
|
||||
The Spotify Service provides a platform for third party applications, websites and services to make available products and services to you (“Third Party Applications”), and your use of these Third Party Applications is subject to their terms of use. You understand and agree that Spotify is not responsible or liable for the behavior, features, or content of any Third Party Application.
|
||||
|
||||
6. User generated content
|
||||
Spotify users may post, upload and/or contribute (“post”) content to the Service, including pictures, text and playlist compilations (“User Content”). You are solely responsible for any User Content you provide and for any consequences thereof. You represent that you have the right to post any User Content which you post to the Service, and that such User Content, or its use by us as contemplated by this Agreement, does not: (a) violate these Agreements, applicable law, or the intellectual property or publicity rights of others; or (b) imply any affiliation, endorsement, approval or cooperation with you or your User Content by Spotify or any artist, band, label, entity or individual without express written consent from such individual or entity. You grant us a non-exclusive, transferable, sub-licensable, royalty-free, worldwide license to use any User Content that you post on or in connection with Spotify. This license lasts until you terminate your Spotify account, except in the case of User Content that you have published, made public and/or share with others. Aside from the rights specifically granted herein, you retain ownership of all rights, including intellectual property rights, in the User Content that you post to the Spotify Service, except that, where applicable under Local Country law, you agree to waive your right to be identified as the author of any User Content on the Spotify Service and your right to object to derogatory treatment of such User Content.
|
||||
|
||||
Spotify does not monitor, review, or edit User Content, but reserves the right to remove or disable access to any User Content for any or no reason, including but not limited to, User Content that, in Spotify’s sole discretion, violates these Agreements. Spotify may take these actions without prior notification to you. Removal or disabling of access to User Content shall be at our sole discretion, and we do not promise to remove or disable access to any specific User Content.
|
||||
|
||||
Spotify is not responsible for User Content nor does it endorse any opinion contained in User Content. If you believe that any User Content infringes your intellectual property rights, please click here, or if you believe that any User Content does not comply with the User Guidelines (Section 8 below) or that your rights under applicable law have been otherwise infringed by any User Content, please contact us at legal-feedback@spotify.com.
|
||||
|
||||
7. Consideration
|
||||
In consideration for the rights granted to you under these Terms, you grant us the right (a) to allow the Spotify Service to use the processor, bandwidth and storage hardware on your Device in order to facilitate the operation of the Service, (b) to provide advertising and other information to you, if you subscribe to the Free Service, and (c) to allow our business partners to do the same.
|
||||
|
||||
You grant Spotify a non-exclusive, transferable, sub-licensable, royalty-free, perpetual, worldwide licence to use, reproduce, make available to the public, publish, translate and distribute any User Content that you post on or otherwise provide through the Spotify Service.
|
||||
|
||||
These Terms are not intended to grant rights to anyone except you and Spotify, and in no event shall these Terms create any third party beneficiary rights. Any failure by Spotify to enforce these Terms or any provision thereof shall not waive Spotify’s right to do so.
|
||||
|
||||
8. User Guidelines
|
||||
We’ve established a few ground rules for you to follow when using the Service, to make sure Spotify stays enjoyable for everyone. Please follow these rules and encourage other users to do the same.
|
||||
|
||||
Spotify respects intellectual property rights and expects you to do the same. This means, for example, that the following is not permitted: (a) Copying, reproducing, “ripping”, recording, or making available to the public any part of the Spotify Services or content delivered to you via the Spotify Services, or otherwise any making use of the Spotify Service which is not expressly permitted under these Terms; (b) using the Spotify service to import or copy any local files you do not have the legal right to import or copy in this way; (c) reverse-engineering, decompiling, disassembling, modification or creating derivative works based on the Spotify Services or any part thereof; (d) circumventing any technology used by Spotify, its licensors, or any third party to protect content accessible through the Service; (e) renting or leasing of any part of the Services; (f) circumventing of any territorial restrictions applied by Spotify; (g) artificially increasing play count or otherwise manipulating the Services by using a script or other automated process; (h) removing or altering any copyright, trademark or other intellectual property notices contained on or provided through the Spotify Service; (i) providing your password to any other person or using any other person’s user name and password.
|
||||
|
||||
Please respect Spotify and other users of the Spotify Service. Don’t engage in any activity on the Service or upload User Content, including registering and/or using a username, which is or includes material that (a) is offensive, abusive, defamatory, pornographic or obscene; (b) is illegal, or intended to promote or commit an illegal act of any kind, including but not limited to, violations of intellectual property rights, privacy rights or proprietary rights of Spotify or a third party; (c) includes personal data of third parties or is intended to solicit such personal data, (d) includes malicious content such as malware, trojan horses or viruses, or otherwise interferes with any user’s access to the Service; (e) is intended or does harass or bully other users; (f) impersonates or misrepresents your affiliation with another user, person or entity, or is otherwise fraudulent, false, deceptive, or misleading; (g) uses automated means to artificially promote content; (h) involves the transmission of unsolicited mass mailing (“spam”), junk mail, chain letter, or similar, including through the Spotify inbox; (i) involves commercial or sales activities, such as advertising, contests, sweepstakes, or pyramid schemes; (j) promotes commercial products or services (except as permitted under Section 11); (k) interferes with the Spotify Service, tampers with or attempts to probe, scan, or test for vulnerabilities in the Service or Spotify’s computer systems or network, or breaches any of Spotify’s security or authentication measures, or (l) conflicts with the Agreement, as determined by Spotify. You agree that Spotify may also reclaim your username for any reason.
|
||||
|
||||
Please be thoughtful about what you make public on Spotify. The Spotify Service includes social and interactive features, including the ability to post User Content, share content, and make certain information about you public, as further described in your account settings. Remember that shared or publicly available information may be used and re-shared by other users on Spotify or across the web, so please use Spotify carefully and manage your account settings regularly. Spotify has no responsibility for your choices to make any actions or material public on the Service.
|
||||
|
||||
Your password protects your user account, and you are solely responsible for keeping your password confidential and secure. You understand that you are responsible for all use of your username and password on the Service. If your username or password is lost or stolen, or if you believe there has been unauthorized access to your account by third parties, please notify us immediately and change your password as soon as possible.
|
||||
|
||||
9. Copyright infringement
|
||||
Spotify respects the rights of intellectual property owners. For details on Spotify’s copyright policy, please click here.
|
||||
|
||||
10. Technology limitations and modifications
|
||||
Spotify will make reasonable efforts to keep the Spotify Service operational. However, certain technical difficulties or maintenance may, from time to time, result in temporary interruptions. Spotify reserves the right, periodically and at any time, to modify or discontinue, temporarily or permanently, functions and features of the Spotify Service, with or without notice, all without liability to you for any interruption, modification, or discontinuation of the Spotify Service or any function or feature thereof. You understand and agree that Spotify has no obligation to maintain, support, upgrade, or update the Service, or to provide all or any specific content through the Service.
|
||||
|
||||
11. Brand Accounts
|
||||
If you establish a Spotify account on behalf of a company, organization, entity or brand (a “Brand Account”): (a) the terms “you” and “your”, as used throughout the Terms, apply to both you and the Brand (as defined below), as applicable; and (b) the following additional terms apply to your use of the Spotify Service for such purposes (the “Brand Account Terms”). To the extent of a conflict between these Brand Account Terms and the rest of the Terms, these Brand Account Terms shall apply, solely with respect to your Brand Account.
|
||||
|
||||
If you open a Brand Account, you represent and warrant that you are authorized to grant all permissions and licenses provided in these Terms and to bind the applicable company, organization, entity or brand (the “Brand”) to these Terms. Spotify has no obligation to promote the Brand Account profile or Brand Playlists (as defined below) and reserves the right to remove or disable access to a Brand’s User Content or profile, consistent with these Terms.
|
||||
|
||||
In addition to the User Guidelines set forth in Section 8, the following additional guidelines apply to the Brand’s use of the Spotify Service under a Brand Account:
|
||||
|
||||
Brand Playlists.“Brand Playlist” means any song compilation that a Brand creates using the Spotify Service. Unless the Brand has obtained all necessary rights and authorizations from all applicable artists, composers, publishers, labels and other relevant third parties with respect to a Brand Playlist: (a) the Brand Playlist may not be used for commercial or promotional purposes; (b) the name of the Brand Playlist may not include the Brand’s name or the name of any specific entity, brand product, or service; and (c) the Brand Playlists must consist of at least 20 songs and may not include more than one track by a single artist or band.
|
||||
Following. Unless the Brand has obtained all necessary rights and authorizations from the applicable user: (a) the Brand may only follow users who first follow the Brand; (b) the Brand may not follow artists; and (c) the Brand may not follow a user in any manner that implies an endorsement or relationship between the Brand and the followed user. Spotify reserves the right to request that a Brand cease following any user(s), for any reason, in Spotify’s sole discretion. In such event, the Brand must cease following such user(s).
|
||||
Sharing. Unless the Brand has obtained all necessary rights and authorizations from all applicable artists, composers, labels and other third parties: (a) the Brand may only share (including but not limited to posting and messaging on an automatic or individual basis) Brand Playlists complying with the Brand Playlist requirements above , but not individual songs; and (b) the Brand may not use the Spotify Play Button to embed Brand Playlists on the Brand’s website(s), Facebook page(s) or other assets (but the Brand may use a Spotify link or Spotify Follow button on such assets complying with the Brand Playlist requirements above).
|
||||
12. Export control
|
||||
Spotify’s products may be subject to U.S. export and reexport control laws and regulations, including the Export Administration Regulations (“EAR”) maintained by the U.S. Department of Commerce, trade and economic sanctions maintained by the Treasury Department’s Office of Foreign Assets Control (“OFAC”), and the International Traffic in Arms Regulations (“ITAR”) maintained by the Department of State. You warrant that you are (1) not located in Cuba, Iran, North Korea, Sudan, or Syria, and (2) are not a denied party as specified in the regulations listed above.
|
||||
|
||||
You agree to comply with all applicable export and reexport control laws and regulations, including the EAR, trade and economic sanctions maintained by OFAC, and the ITAR. Specifically, you agree that you shall not – directly or indirectly – sell, export, reexport, transfer, divert, or otherwise dispose of any products, software, or technology (including products derived from or based on such technology) received from Spotify under these Agreements to any destination, entity, or person prohibited by the laws or regulations of the United States, without obtaining prior authorization from the competent government authorities as required by those laws and regulations. This export control clause shall survive termination or cancellation of these Agreements.
|
||||
|
||||
13. Payments, cancellations and cooling off
|
||||
If you reside in a Local Country which is part of the European Union and have purchased a Paid Subscription or Code online, you have the right to change your mind and receive a full refund within fourteen (14) days of purchase (the “Cooling-off Period”), but only if you have not logged in or otherwise redeemed or started to consume them.
|
||||
|
||||
If you have a Paid Subscription, your payment to Spotify will automatically renew at the end of the subscription period, unless you cancel your Paid Subscription through your subscription page before the end of the current subscription period. The cancellation will take effect the day after the last day of the current subscription period, and you will be downgraded to the Free Service. However, if you cancel your payment and/or terminate the Terms after the Cooling-off Period is over (where applicable), and/or before the end of the subscription period, we will not refund any subscription fees already paid to us.
|
||||
|
||||
Spotify may change the price for the Paid Subscriptions from time to time, and will communicate any price changes to you. Price changes for Paid Subscriptions will take effect at the start of the next subscription period following the date of the price change. By continuing to use the Spotify Service after the price change takes effect, you accept the new price.
|
||||
|
||||
14. Term and termination
|
||||
These Terms will continue to apply to you until terminated by either you or Spotify. Spotify may terminate the Terms or suspend your access to the Spotify Service at any time, including in the event of your actual or suspected unauthorised use of the Spotify Service or non-compliance with the Terms. If you or Spotify terminate the Terms, or if Spotify suspends your access to the Spotify Service, you agree that Spotify shall have no liability or responsibility to you and Spotify will not refund any amounts that you have already paid, to the fullest extent permitted under applicable law. To learn how to terminate your Spotify account, please go here.
|
||||
|
||||
15. Warranty
|
||||
We endeavor to provide the best service we can, but you understand and agree that THE SPOTIFY SERVICE IS PROVIDED “AS IS”, WITHOUT EXPRESS OR IMPLIED WARRANTY OR CONDITION OF ANY KIND. YOU USE THE SPOTIFY SERVICE AT YOUR OWN RISK. SPOTIFY DISCLAIMS ANY WARRANTIES OR CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.
|
||||
|
||||
In addition, Spotify does not warrant, endorse, guarantee or assume responsibility for any Third Party Applications, Third Party Application content, User Content, or any other product or service advertised or offered by a third party on or through the Spotify Service or any hyperlinked website, or featured in any banner or other advertising. You understand and agree that Spotify is not responsible or liable for any transaction between you and third-party providers of Third Party Applications or products or services advertised on or through the Spotify Service. As with any purchase of a product or service through any medium or in any environment, you should use your judgment and exercise caution where appropriate. No advice or information whether oral or in writing obtained by you from Spotify shall create any warranty on behalf of Spotify in this regard. Some aspects of this section may not apply in some jurisdictions.
|
||||
|
||||
16. Limitation
|
||||
You agree that, to the extent permitted by applicable law, your sole and exclusive remedy for any problems or dissatisfaction with the Spotify Service, the Third Party Applications or the Third Party Application content is to uninstall any Spotify software and to stop using the Spotify Service, the Third Party Applications or the Third Party Application content.
|
||||
|
||||
TO THE FULLEST EXTENT PERMITTED BY LAW, IN NO EVENT WILL SPOTIFY, ITS OFFICERS, SHAREHOLDERS, EMPLOYEES, AGENTS, DIRECTORS, SUBSIDIARIES, AFFILIATES, SUCCESSORS, ASSIGNS, SUPPLIERS OR LICENSORS BE LIABLE FOR (i) ANY INDIRECT, SPECIAL, INCIDENTAL, PUNITIVE, EXEMPLARY OR CONSEQUENTIAL (INCLUDING LOSS OF USE, DATA, BUSINESS, OR PROFITS) DAMAGES, ARISING OUT OF THE USE OR INABILITY TO USE THE SPOTIFY SERVICE, THIRD PARTY APPLICATIONS OR THIRD PARTY APPLICATION CONTENT, REGARDLESS OF LEGAL THEORY, WITHOUT REGARD TO WHETHER SPOTIFY HAS BEEN WARNED OF THE POSSIBILITY OF THOSE DAMAGES, AND EVEN IF A REMEDY FAILS OF ITS ESSENTIAL PURPOSE; (ii) AGGREGATE LIABILITY FOR ALL CLAIMS RELATING TO THE SPOTIFY SERVICE, THIRD PARTY APPLICATIONS OR THIRD PARTY APPLICATION CONTENT MORE THAN THE AMOUNTS PAID BY YOU TO SPOTIFY DURING THE PRIOR THREE MONTHS IN QUESTION.
|
||||
|
||||
Nothing in these Agreements removes or limits Spotify’s liability for fraud, fraudulent misrepresentation, death or personal injury caused by its negligence. Some aspects of this section may not apply in some jurisdictions.
|
||||
|
||||
17. Entire agreement
|
||||
These Agreements constitute all the terms and conditions agreed upon between you and Spotify and supersede any prior agreements in relation to the subject matter of these Agreements, whether written or oral. Any additional or different terms or conditions in relation to the subject matter of the Agreements in any written or oral communication from you to Spotify are void. You represent that you have not accepted the Agreements in reliance on any oral or written representations made by Spotify that are not contained in the Agreements.
|
||||
|
||||
Please note, however, that other aspects of your use of the Spotify Service may be governed by additional agreements. That could include, for example, access to the Spotify Community for customer support, access to the Spotify Service as a result of a gift card, or free or discounted Trials. You will agree to separate terms and conditions in those circumstances, which are listed in full here. Those terms and conditions shall govern only with regard to the aspect of the Service to which they apply, and are distinct from and supplemental to these Agreements, and do not supersede these Agreements. To the extent that there is any conflict between those agreements and these Agreements, these Agreements shall control, except as otherwise provided in these Terms.
|
||||
|
||||
Occasionally we may offer you the chance to participate in sweepstakes, contests, and surveys (“Special Promotions”) through the Service. Special Promotions may be governed by terms and conditions that are separate from these Terms. If the provisions of a Special Promotion’s terms and conditions conflict with these Terms, those separate terms and conditions shall prevail.
|
||||
|
||||
18. Severability
|
||||
Should any provision of the Terms be held invalid or unenforceable for any reason or to any extent, such invalidity or enforceability shall not in any manner affect or render invalid or unenforceable the remaining provisions of the Terms, and the application of that provision shall be enforced to the extent permitted by law.
|
||||
|
||||
19. Choice of law, mandatory arbitration and venue
|
||||
Unless otherwise required by a mandatory law of a member state of the European Union or any other jurisdiction, these Agreements are subject to the law of the State of California, United States, without regard to choice or conflicts of law principles. Further, you and Spotify agree to the exclusive jurisdiction of the state and federal courts in San Francisco County, California or New York, New York to resolve any dispute, claim or controversy that arises in connection with these Agreements.
|
||||
|
||||
If you are a United States user, the following mandatory arbitration provisions also apply to you:
|
||||
|
||||
You and Spotify agree that any dispute, claim or controversy arising out of or relating in any way to the Spotify Service or your use thereof, including our Agreements, shall be determined by mandatory binding arbitration. You agree that the U.S. Federal Arbitration Act governs the interpretation and enforcement of this provision, and that you and Spotify are each waiving the right to a trial by jury and the right to participate in a class or multi-party action. This arbitration provision shall survive termination of these Agreements and the termination of your Spotify account. The arbitration will be governed by the Commercial Arbitration Rules and the Supplementary Procedures for Consumer Related Disputes of the American Arbitration Association (the “AAA Rules”), as modified by these Agreements, and as administered by the AAA. You and Spotify agree that these Agreements involve interstate commerce and are subject to the Federal Arbitration Act.
|
||||
You and Spotify agree that (a) any claims seeking to enforce, protect, or determine the validity or ownership of any intellectual property rights, and (b) any claims related to allegations of theft, piracy or unauthorized use of the Spotify Service are NOT subject to mandatory arbitration. Instead, you and Spotify agree that these claims (including but not limited to claims for injunctive or equitable relief) shall be exclusively decided by courts of competent jurisdiction in San Francisco County, California or New York, New York, and that applicable California and/or Federal law shall govern, without regard to choice of law principles.
|
||||
YOU AND SPOTIFY AGREE THAT EACH MAY BRING CLAIMS AGAINST THE OTHER ONLY IN YOUR OR ITS INDIVIDUAL CAPACITY, AND NOT AS A CLASS MEMBER OR IN ANY REPRESENTATIVE CAPACITY OR PROCEEDING. Further, no arbitrator shall consolidate any other person’s claims with your claims, and may not otherwise preside over any form of a multi-party or class proceeding. If this specific provision is found to be unenforceable in any way, then the entirety of this arbitration section shall be null and void. The arbitrator may not award declaratory or injunctive relief.
|
||||
Any arbitration must be commenced by filing a demand for arbitration with the AAA within ONE (1) YEAR after the date the party asserting the claim first knows or reasonably should know of the act, omission or default giving rise to the claim; and there shall be no right to any remedy for any claim not asserted within that time period. If applicable law prohibits a one-year limitations period for asserting claims, any claim must be asserted within the shortest time period permitted by applicable law. Your arbitration fees and your share of arbitrator compensation will be limited to those fees set forth in the AAA's Consumer Rules with the remainder paid by Spotify. Any arbitration costs or fees deemed “excessive” will be paid by Spotify.
|
||||
20. Local Country chart
|
||||
This chart details the Spotify entity with which you are contracting by accepting these Agreements, depending on your Local Country of residence.
|
||||
|
||||
Local Country of Residence Spotify entity
|
||||
Australia or New Zealand Spotify Australia PTY. Ltd., registration number ACN 154 200 941
|
||||
Austria Spotify Austria GmbH, registration number FN 354148 g
|
||||
Belgium Spotify NV, registration number 0841.023.949
|
||||
Denmark Spotify Denmark ApS, registration number 33785348
|
||||
Finland Spotify Finland Oy, registration number 2388862-0
|
||||
France Spotify France SAS, registration number 51193072900013
|
||||
Germany Spotify GmbH, registration number HRB 114 530 B
|
||||
Liechtenstein, Luxembourg, Monaco and Andorra Spotify AB, registration number 556703-7485
|
||||
Netherlands Spotify Netherlands B.V., registration number 34388788
|
||||
Norway Spotify Norway AS, registration number 994 445 820
|
||||
Spain Spotify Spain S.L, registration number B85346294
|
||||
Sweden Spotify Sweden AB, registration number 556786-5729
|
||||
Switzerland Spotify Switzerland AG, registration number CH-020.3.037.242-8
|
||||
United Kingdom or Ireland Spotify Limited, registration number 06436047
|
||||
USA Spotify USA Inc, registered in Delaware with registration number 4664052
|
||||
Thank you for reading our Terms. We hope you enjoy Spotify.
|
||||
|
||||
Copyright © 2012 Spotify AB. All rights reserved.
|
||||
|
||||
Spotify USA Inc., 45 W. 18th Street,
|
||||
7th Floor
|
||||
New York, NY 10011
|
||||
USA
|
0
SRPMS/spotify/distroutils.sysconfig
Normal file
BIN
SRPMS/spotify/spotify-make-20140117.zip
Normal file
88
SRPMS/spotify/spotify.spec.in
Normal file
@@ -0,0 +1,88 @@
|
||||
#% define spotify_make_ver 20130831git
|
||||
Name: spotify
|
||||
Version: @SRPMVERSION@
|
||||
Release: @SRPMRELEASE@
|
||||
Summary: Listen to music using Spotify
|
||||
Group: Graphical Desktop/Applications/Multimedia
|
||||
Vendor: @vendor@
|
||||
Distribution: @distribution@
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: https://www.spotify.com/us/download/previews/
|
||||
## GITSOURCE https://github.com/leamas/spotify-make.git master
|
||||
Source: https://github.com/leamas/spotify-make.git/master/spotify-make-%{version}.zip
|
||||
Source1: LICENSE
|
||||
License: Not distributable
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
Listen to music using Spotify.
|
||||
|
||||
%prep
|
||||
%setup -q -n spotify-make-master
|
||||
|
||||
%build
|
||||
./configure \
|
||||
--prefix=/opt/spotify \
|
||||
--mandir=%{_mandir}
|
||||
|
||||
make download
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
%makeinstall
|
||||
|
||||
install -d -m0755 %{buildroot}%{_datadir}
|
||||
mv %{buildroot}/opt/spotify/share/applications %{buildroot}%{_datadir}
|
||||
mv %{buildroot}/opt/spotify/share/icons %{buildroot}%{_datadir}
|
||||
|
||||
install -d -m0755 %{buildroot}%{_bindir}
|
||||
ln -s /opt/spotify/bin/spotify %{buildroot}%{_bindir}/spotify
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%pre
|
||||
if [ $1 -ge 1 ]; then
|
||||
rm -f /opt/spotify/share/spotify-client/Data/locales
|
||||
rm -f /opt/spotify/share/spotify-client/Data/resources.zip
|
||||
rm -f /opt/spotify/lib/spotify-client/Data
|
||||
fi
|
||||
:
|
||||
|
||||
%post
|
||||
if [ $1 -ge 1 ]; then
|
||||
gtk-update-icon-cache --ignore-theme-index %{_datadir}/icons/hicolor
|
||||
desktop-file-validate %{_datadir}/applications/spotify.desktop
|
||||
update-desktop-database %{_datadir}/applications
|
||||
fi
|
||||
:
|
||||
|
||||
%postun
|
||||
if [ $1 -eq 0 ]; then
|
||||
gtk-update-icon-cache --ignore-theme-index %{_datadir}/icons/hicolor
|
||||
desktop-file-validate %{_datadir}/applications/spotify.desktop
|
||||
update-desktop-database %{_datadir}/applications
|
||||
fi
|
||||
:
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/spotify
|
||||
%{_datadir}/applications/spotify.desktop
|
||||
%{_datadir}/icons/hicolor/*/apps/spotify-client.png
|
||||
%dir /opt/spotify
|
||||
%dir /opt/spotify/bin
|
||||
/opt/spotify/bin/spotify
|
||||
%dir /opt/spotify/lib
|
||||
%dir /opt/spotify/lib/spotify-client
|
||||
/opt/spotify/lib/spotify-client/*
|
||||
%dir /opt/spotify/share
|
||||
%dir /opt/spotify/share/spotify-client/
|
||||
/opt/spotify/share/spotify-client/*
|
||||
%{_mandir}/man1/spotify.1.gz
|
||||
|
||||
%changelog
|
||||
* Sat Aug 31 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.1.55.gbdd3b79.203-1mamba
|
||||
- package created by silvan using the webbuild interface
|
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
741
SRPMS/sun-java7/sun-java7.spec.in
Normal file
@@ -0,0 +1,741 @@
|
||||
%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}_%{MINOR}
|
||||
%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: @SRPMVERSION@
|
||||
Release: @SRPMRELEASE@
|
||||
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%2F; oraclelicense=accept-securebackup-cookie" \
|
||||
http://download.oracle.com/otn-pub/java/jdk/%{version}-b13/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%2F; oraclelicense=accept-securebackup-cookie" \
|
||||
http://download.oracle.com/otn-pub/java/jdk/%{version}-b13/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%2F; oraclelicense=accept-securebackup-cookie" \
|
||||
http://download.oracle.com/otn-pub/java/jdk/%{version}-b13/jdk-%{version}-linux-arm-vfp-sflt.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
|
||||
|
||||
# Remove requirements for old ffmpeg libraries
|
||||
rm -f %{buildroot}%{_jvmdir}/%{jredir}/lib/*/fxavcodecplugin-52.so
|
||||
|
||||
%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*
|
||||
%{_mandir}/man1/apt-sun7.1*
|
||||
%{_mandir}/man1/extcheck-sun7.1*
|
||||
%{_mandir}/man1/idlj-sun7.1*
|
||||
%{_mandir}/man1/jar-sun7.1*
|
||||
%{_mandir}/man1/jarsigner-sun7.1*
|
||||
%{_mandir}/man1/javac-sun7.1*
|
||||
%{_mandir}/man1/javadoc-sun7.1*
|
||||
%ifnarch arm
|
||||
%{_mandir}/man1/javafxpackager-sun7.1*
|
||||
%endif
|
||||
%{_mandir}/man1/javah-sun7.1*
|
||||
%{_mandir}/man1/javap-sun7.1*
|
||||
%{_mandir}/man1/jcmd-sun7.1*
|
||||
%{_mandir}/man1/jconsole-sun7.1*
|
||||
%{_mandir}/man1/jdb-sun7.1*
|
||||
%{_mandir}/man1/jhat-sun7.1*
|
||||
%{_mandir}/man1/jinfo-sun7.1*
|
||||
%{_mandir}/man1/jmap-sun7.1*
|
||||
%{_mandir}/man1/jmc-sun7.1*
|
||||
%{_mandir}/man1/jps-sun7.1*
|
||||
%{_mandir}/man1/jrunscript-sun7.1*
|
||||
%{_mandir}/man1/jsadebugd-sun7.1*
|
||||
%{_mandir}/man1/jstack-sun7.1*
|
||||
%{_mandir}/man1/jstat-sun7.1*
|
||||
%{_mandir}/man1/jstatd-sun7.1*
|
||||
%{_mandir}/man1/jvisualvm-sun7.1*
|
||||
%{_mandir}/man1/native2ascii-sun7.1*
|
||||
%{_mandir}/man1/policytool-sun7.1*
|
||||
%{_mandir}/man1/rmic-sun7.1*
|
||||
%{_mandir}/man1/schemagen-sun7.1*
|
||||
%{_mandir}/man1/serialver-sun7.1*
|
||||
%{_mandir}/man1/wsgen-sun7.1*
|
||||
%{_mandir}/man1/wsimport-sun7.1*
|
||||
%{_mandir}/man1/xjc-sun7.1*
|
||||
%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/amd64
|
||||
%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/javafx.policy
|
||||
%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
|
||||
%dir %{_jvmdir}/%{jredir}/lib/jfr
|
||||
%{_jvmdir}/%{jredir}/lib/jfr/*
|
||||
%{_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*
|
||||
%{_mandir}/man1/javaws-sun7.1*
|
||||
%{_mandir}/man1/keytool-sun7.1*
|
||||
%{_mandir}/man1/orbd-sun7.1*
|
||||
%{_mandir}/man1/pack200-sun7.1*
|
||||
%{_mandir}/man1/rmid-sun7.1*
|
||||
%{_mandir}/man1/rmiregistry-sun7.1*
|
||||
%{_mandir}/man1/servertool-sun7.1*
|
||||
%{_mandir}/man1/tnameserv-sun7.1*
|
||||
%{_mandir}/man1/unpack200-sun7.1*
|
||||
%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
|
||||
* Fri Mar 26 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 7u51-2mamba
|
||||
- update wget download string (see https://ivan-site.com/2012/05/download-oracle-java-jre-jdk-using-a-script/)
|
||||
- dont' install fxavcodecplugin-52.so to remove dependencies on old libav library; fxavcodecplugin-53.so is provided requiring ffmpeg0
|
||||
|
||||
* Fri Jan 17 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 7u51-1mamba
|
||||
- update to 7u51
|
||||
|
||||
* Sun Nov 03 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 7u45-1mamba
|
||||
- update to 7u45
|
||||
|
||||
* Wed Apr 10 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 7u17-1mamba
|
||||
- update to 7u17
|
||||
|
||||
* 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
|
34
SRPMS/virtualbox-extension-pack/LICENSE
Normal file
@@ -0,0 +1,34 @@
|
||||
VirtualBox PUEL terms and conditions
|
||||
License version 8, April 19, 2010
|
||||
|
||||
ORACLE CORPORATION (“ORACLE”) IS WILLING TO LICENSE THE PRODUCT (AS DEFINED IN § 1 BELOW) TO YOU ONLY UPON THE CONDITION THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS VIRTUALBOX PERSONAL USE AND EVALUATION LICENSE AGREEMENT (“AGREEMENT”). PLEASE READ THE AGREEMENT CAREFULLY. BY DOWNLOADING OR INSTALLING THIS PRODUCT, YOU ACCEPT THE FULL TERMS OF THIS AGREEMENT.
|
||||
|
||||
IF YOU ARE AGREEING TO THIS LICENSE ON BEHALF OF AN ENTITY OTHER THAN AN INDIVIDUAL PERSON, YOU REPRESENT THAT YOU ARE BINDING AND HAVE THE RIGHT TO BIND THE ENTITY TO THE TERMS AND CONDITIONS OF THIS AGREEMENT.
|
||||
|
||||
§ 1 Subject of Agreement. “Product”, as referred to in this Agreement, shall be the binary software package “Oracle VM VirtualBox,” which Product allows for creating multiple virtual computers, each with different operating systems (“Guest Computers”), on a physical computer with a specific operating system (“Host Computer”), to allow for installing and executing these Guest Computers simultaneously. The Product consists of executable files in machine code for the Solaris, Windows, Linux, and Mac OS X operating systems as well as other data files as required by the executable files at run-time and documentation in electronic form. The Product includes all documentation and updates provided to You by Oracle under this Agreement and the terms of this Agreement will apply to all such documentation and updates unless a different license is provided with an update or documentation.
|
||||
|
||||
§ 2 Grant of license. (1) Oracle grants you a personal, non-exclusive, non-transferable, limited license without fees to reproduce, install, execute, and use internally the Product a Host Computer for your Personal Use, Educational Use, or Evaluation. “Personal Use” requires that you use the Product on the same Host Computer where you installed it yourself and that no more than one client connect to that Host Computer at a time for the purpose of displaying Guest Computers remotely. “Educational use” is any use in an academic institution (schools, colleges and universities, by teachers and students). “Evaluation” means testing the Product for a reasonable period (that is, normally for a few weeks); after expiry of that term, you are no longer permitted to evaluate the Product.
|
||||
|
||||
(2) The “VirtualBox Guest Additions” are a set of drivers and utilities that are shipped as a subset of the Product for the purpose of being installed inside a Guest Computer to improve its performance and cooperation with the rest of the Product. In addition to and independent of the rights granted by subsection 1, Oracle allows you to install, execute, copy and redistribute a) unmodified copies of the ISO installation medium of the VirtualBox Guest Additions as shipped with the Product and b) the VirtualBox Guest Additions together with the Guest Computer into which they have been installed.
|
||||
|
||||
§ 3 Restrictions and Reservation of Rights. (1) Any use beyond the provisions of § 2 is prohibited. The Product and copies thereof provided to you under this Agreement are copyrighted and licensed, not sold, to you by Oracle. Oracle reserves all copyrights and other intellectual property rights. This includes, but is not limited to, the right to modify, make available or public, rent out, lease, lend or otherwise distribute the Product. This does not apply as far as applicable law may require otherwise or if Oracle grants you additional rights of use in a separate agreement in writing.
|
||||
|
||||
(2) You may not do any of the following: (a) modify the Product. However if the documentation accompanying Product lists specific portions of Product, such as header files, class libraries, reference source code, and/or redistributable files, that may be handled differently, you may do so only as provided in the documentation; (b) rent, lease, lend or encumber the Product; (c) remove or alter any proprietary legends or notices contained in the Product; or (d) decompile, or reverse engineer the Product (unless enforcement of this restrictions is prohibited by applicable law).
|
||||
|
||||
(3) The Product is not designed, licensed or intended for use in the design, construction, operation or maintenance of any nuclear facility and Oracle and its licensors disclaim any express or implied warranty of fitness for such uses.
|
||||
|
||||
(4) 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.
|
||||
|
||||
§ 4 Termination. The Agreement is effective on the Date you receive the Product and remains effective until terminated. Your rights under this Agreement will terminate immediately without notice from Oracle if you materially breach it or take any action in derogation of Oracle's and/or its licensors' rights to Product. Oracle may terminate this Agreement should any Product become, or in Oracle's reasonable opinion likely to become, the subject of a claim of intellectual property infringement or trade secret misappropriation. Upon termination, you will cease use of, and destroy, Product and confirm compliance in writing to Oracle. Sections 3-9, inclusive, will survive termination of the Agreement.
|
||||
|
||||
§ 5 Disclaimer of Warranty. TO THE EXTENT NOT PROHIBITED BY APPLICABLE LAW, ORACLE PROVIDES THE PRODUCT “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, EXCEPT TO THE EXTENT THAT THESE DISCLAIMERS ARE HELD TO BE LEGALLY INVALID. The entire risk as to the quality and performance of the Product is with you. Should it prove defective, you assume the cost of all necessary servicing, repair, or correction. In addition, Oracle shall be allowed to provide updates to the Product in urgent cases. You are then obliged to install such updates. Such an urgent case includes, but is not limited to, a claim of rights to the Product by a third party.
|
||||
|
||||
§ 6 Limitation of Liability. TO THE EXTENT NOT PROHIBITED BY APPLICABLE LAW, IN NO EVENT WILL ORACLE OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR SPECIAL, INDIRECT, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF OR RELATED TO THE USE OF OR INABILITY TO USE PRODUCT, EVEN IF ORACLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. In no event will Oracle's liability to you, whether in contract, tort (including negligence), or otherwise, exceed the amount paid by you for Product under this Agreement. Some states do not allow the exclusion of incidental or consequential damages, so some of the terms above may not be applicable to you.
|
||||
|
||||
§ 7 Third Party Code. Portions of Product may be provided with notices and open source licenses from communities and third parties that govern the use of those portions, and any licenses granted hereunder do not alter any rights and obligations You may have under such open source licenses, however, the disclaimer of warranty and limitation of liability provisions in this Agreement will apply to all the Product.
|
||||
|
||||
§ 8 Export Regulations. All Product, documents, technical data, and any other materials delivered under this Agreement are subject to U.S. export control laws and may be subject to export or import regulations in other countries. You agree to comply strictly with these laws and regulations and acknowledge that you have the responsibility to obtain any licenses to export, re-export, or import as may be required after delivery to you.
|
||||
|
||||
§ 9 U.S. Government Restricted Rights. If Product 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 Product and accompanying documentation will be only as set forth in this Agreement; this is in accordance with 48 CFR 227.7201 through 227.7202-4 (for Department of Defense (DOD) acquisitions) and with 48 CFR 2.101 and 12.212 (for non-DOD acquisitions).
|
||||
|
||||
§ 10 Miscellaneous. 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. 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. Course of dealing and other standard business conditions of the parties or the industry shall not apply. This Agreement is governed by the substantive and procedural laws of California and you and Oracle agree to submit to the exclusive jurisdiction of, and venue in, the courts in San Francisco, San Mateo, or Santa Clara counties in California in any dispute arising out of or relating to this Agreement.
|
7
SRPMS/virtualbox-extension-pack/distroutils.sysconfig.in
Normal file
@@ -0,0 +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-${SRPMVERSION["virtualbox-extension-pack"]}.vbox-extpack
|
||||
|
||||
# package URL (do not modify unless you know what you're doing)
|
||||
VIRTUALBOX_EXTENSION_PACK_URL=http://download.virtualbox.org/virtualbox/${SRPMVERSION["virtualbox-extension-pack"]}/
|
@@ -0,0 +1,60 @@
|
||||
%define pck_majver %(echo %version | cut -d. -f1-3)
|
||||
%define pck_minver %(echo %version | cut -d. -f4)
|
||||
Name: virtualbox-extension-pack
|
||||
Version: @SRPMVERSION@
|
||||
Release: @SRPMRELEASE@
|
||||
Epoch: 1
|
||||
Summary: VirtualBox Extension Pack
|
||||
Group: Applications/Emulators
|
||||
Vendor: @vendor@
|
||||
Distribution: @distribution@
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: http://www.virtualbox.org/
|
||||
Source: LICENSE
|
||||
License: Not Distributable
|
||||
Requires(post):VirtualBox
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
VirtualBox Extension Pack.
|
||||
|
||||
%prep
|
||||
%setup -c -n %{name}-%{version} -T
|
||||
|
||||
[ -r /etc/sysconfig/@sysconfigfile@ ] || exit 1
|
||||
. /etc/sysconfig/@sysconfigfile@
|
||||
|
||||
[ "${VIRTUALBOX_EXTENSION_PACK_PCK}" ] || exit 1
|
||||
[ "${VIRTUALBOX_EXTENSION_PACK_URL}" ] || exit 1
|
||||
|
||||
wget -nv --timeout=10 --tries=2 \
|
||||
${VIRTUALBOX_EXTENSION_PACK_URL}${VIRTUALBOX_EXTENSION_PACK_PCK} -O ${VIRTUALBOX_EXTENSION_PACK_PCK}
|
||||
|
||||
[ -f ${VIRTUALBOX_EXTENSION_PACK_PCK} ] || exit 1
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||
. /etc/sysconfig/@sysconfigfile@
|
||||
|
||||
install -D -m0644 ${VIRTUALBOX_EXTENSION_PACK_PCK} %{buildroot}/opt/VirtualBox/extension/${VIRTUALBOX_EXTENSION_PACK_PCK}
|
||||
cp %{S:0} LICENSE
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||||
|
||||
%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:%pck_minver}.vbox-extpack --replace
|
||||
# not working
|
||||
:
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
/opt/VirtualBox/extension/Oracle_VM_VirtualBox_Extension_Pack-%{pck_majver}%{?pck_minver:%pck_minver}.vbox-extpack
|
||||
%doc LICENSE
|
||||
|
||||
%changelog
|
||||
* Tue Aug 16 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 4.1.2.73507-1mamba
|
||||
- specfile created
|
@@ -12,8 +12,8 @@
|
||||
%define alt_url10 ftp://ftp10.mplayerhq.hu/MPlayer/releases/codecs/
|
||||
|
||||
Name: win32codecs
|
||||
Version: @win32codecsver@
|
||||
Release: 1@distroext@
|
||||
Version: @SRPMVERSION@
|
||||
Release: @SRPMRELEASE@
|
||||
Summary: Win32 native dll codecs
|
||||
Group: System/Multimedia
|
||||
Vendor: @vendor@
|
||||
@@ -69,20 +69,20 @@ rm -f $tmpfile
|
||||
|
||||
[ "$tarball" ] || exit 1
|
||||
|
||||
# check if the latest version is already installed
|
||||
if [ -r %{win32dir}/VERSION_w32codecs ]; then
|
||||
currver="$(cat %{win32dir}/VERSION_w32codecs)"
|
||||
case "$tarball" in
|
||||
"all-${currver}.tar.bz2")
|
||||
echo "the latest version is already installed"
|
||||
exit 1 ;;
|
||||
esac
|
||||
fi
|
||||
## check if the latest version is already installed
|
||||
#if [ -r %{win32dir}/VERSION_w32codecs ]; then
|
||||
# currver="$(cat %{win32dir}/VERSION_w32codecs)"
|
||||
# case "$tarball" in
|
||||
# "all-${currver}.tar.bz2")
|
||||
# echo "the latest version is already installed"
|
||||
# exit 1 ;;
|
||||
# esac
|
||||
#fi
|
||||
|
||||
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,3 +1,24 @@
|
||||
FLASHPLUGIN_VERSION=10.3.181.26
|
||||
WIN32CODECS_VERSION=20110131
|
||||
SKYPE_VERSION=2.2.0.25
|
||||
# b43-firmware
|
||||
SRPMVERSION["b43-firmware"]=4.150.10.5
|
||||
SRPMRELEASE["b43-firmware"]=1mamba
|
||||
# flashplugin
|
||||
SRPMVERSION["flashplugin"]=11.2.202.394
|
||||
SRPMRELEASE["flashplugin"]=1mamba
|
||||
# msttcorefonts
|
||||
SRPMVERSION["msttcorefonts"]=1.3
|
||||
SRPMRELEASE["msttcorefonts"]=7mamba
|
||||
# skype
|
||||
SRPMVERSION["skype"]=4.3.0.37
|
||||
SRPMRELEASE["skype"]=2mamba
|
||||
# spotify
|
||||
SRPMVERSION["spotify"]=20140117
|
||||
SRPMRELEASE["spotify"]=1mamba
|
||||
# sun-java7
|
||||
SRPMVERSION["sun-java7"]=7u51
|
||||
SRPMRELEASE["sun-java7"]=2mamba
|
||||
# virtualbox-extension-pack
|
||||
SRPMVERSION["virtualbox-extension-pack"]=4.3.12
|
||||
SRPMRELEASE["virtualbox-extension-pack"]=1mamba
|
||||
# win32codecs
|
||||
SRPMVERSION["win32codecs"]=20110131
|
||||
SRPMRELEASE["win32codecs"]=1mamba
|
||||
|
2
SRPMSVERSIONS.arm
Normal file
@@ -0,0 +1,2 @@
|
||||
SRPMVERSION["sun-java7"]=7u51
|
||||
SRPMRELEASE["sun-java7"]=2mamba
|
@@ -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>
|
||||
@@ -579,49 +457,6 @@ done
|
||||
<string></string>
|
||||
</stringlist>
|
||||
</property>
|
||||
<widget class="Label">
|
||||
<property name="name">
|
||||
<cstring>Label24</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>30</y>
|
||||
<width>540</width>
|
||||
<height>40</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Please, select the openmamba system partition where you want the boot loader to be installed from.</string>
|
||||
</property>
|
||||
<property name="textFormat">
|
||||
<enum>RichText</enum>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<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>
|
||||
@@ -646,6 +481,49 @@ done
|
||||
<set>AlignVCenter|AlignLeft</set>
|
||||
</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 class="Label">
|
||||
<property name="name">
|
||||
<cstring>Label24</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>30</y>
|
||||
<width>540</width>
|
||||
<height>40</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Please, select the openmamba system partition where you want the boot loader to be installed from.</string>
|
||||
</property>
|
||||
<property name="textFormat">
|
||||
<enum>RichText</enum>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>WordBreak|AlignTop</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="ListBox">
|
||||
<property name="name">
|
||||
<cstring>devicesbox</cstring>
|
||||
@@ -668,6 +546,146 @@ done
|
||||
</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|"
|
||||
}
|
||||
function get_udisks_key_last() {
|
||||
LANG=C udisks --show-info $1 | grep " $2:" | tail -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`
|
||||
if [ -e $native_path/partition ]; then
|
||||
partition_label=`get_udisks_key_last $device label`
|
||||
if [ "${partition_label:0:3}" = "EFI" ]; then
|
||||
dcop @dcopid KommanderIf "addListItem(QString,QString,int)" mbrbox "${device:5:5} (@i18n("EFI system partition"))" 0
|
||||
fi
|
||||
else
|
||||
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
|
||||
fi
|
||||
done
|
||||
dcop @dcopid KommanderIf "setCurrentItem(int)" 0
|
||||
@endif
|
||||
@execEnd
|
||||
@setBootableCheckbox.execute()
|
||||
</string>
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="QWidget">
|
||||
<property name="name">
|
||||
@@ -700,6 +718,44 @@ done
|
||||
<set>AlignCenter</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>530</x>
|
||||
<y>0</y>
|
||||
<width>32</width>
|
||||
<height>32</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="associations" stdset="0">
|
||||
<stringlist>
|
||||
<string>@BackBox.setChecked(true)
|
||||
@NextBox.setChecked(true)
|
||||
@execBegin
|
||||
mbrstring=@String.section(@mbrbox.item(@mbrbox.currentItem)," ",1)
|
||||
mbrdevice=@String.section(@mbrbox.item(@mbrbox.currentItem)," ",0)
|
||||
mbrpart=${mbrdevice:3:2}
|
||||
if [ "$mbrpart" -a "${mbrstring/EFI}" = "${mbrstring}" ]; 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="ButtonGroup">
|
||||
<property name="name">
|
||||
<cstring>BootloaderBox</cstring>
|
||||
@@ -723,6 +779,25 @@ done
|
||||
<property name="title">
|
||||
<string>Bootloader configuration</string>
|
||||
</property>
|
||||
<widget class="Label">
|
||||
<property name="name">
|
||||
<cstring>Label29_2</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>20</y>
|
||||
<width>531</width>
|
||||
<height>40</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Please select where you want to install the boot manager.</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>WordBreak|AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLayoutWidget">
|
||||
<property name="name">
|
||||
<cstring>Layout5_2</cstring>
|
||||
@@ -730,7 +805,7 @@ done
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>330</y>
|
||||
<y>60</y>
|
||||
<width>530</width>
|
||||
<height>26</height>
|
||||
</rect>
|
||||
@@ -802,180 +877,6 @@ done
|
||||
</widget>
|
||||
</hbox>
|
||||
</widget>
|
||||
<widget class="Label">
|
||||
<property name="name">
|
||||
<cstring>Label3_2_2_2</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>70</y>
|
||||
<width>290</width>
|
||||
<height>24</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Please select the boot menu options:</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="Label">
|
||||
<property name="name">
|
||||
<cstring>Label28</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>30</y>
|
||||
<width>540</width>
|
||||
<height>40</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Below is a list of other operating systems found on this computer, you may configure them to appear as a choice when the computer starts.</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<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>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>100</y>
|
||||
<width>540</width>
|
||||
<height>170</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="selectionMode">
|
||||
<enum>Multi</enum>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="Label">
|
||||
<property name="name">
|
||||
<cstring>Label29_2</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>280</y>
|
||||
<width>531</width>
|
||||
<height>40</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Please select where you want to install the boot manager.</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>WordBreak|AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="ScriptObject">
|
||||
<property name="name">
|
||||
<cstring>scanbootloader</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>10</y>
|
||||
<width>32</width>
|
||||
<height>32</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="associations" stdset="0">
|
||||
<stringlist>
|
||||
<string>@BackBox.setChecked(true)
|
||||
@NextBox.setChecked(true)
|
||||
@chainloadbox.clear
|
||||
@setBootableCheckbox.execute()
|
||||
@execBegin
|
||||
installdevice=@String.section(@devicesbox.item(@devicesbox.currentItem)," ",0)
|
||||
volumes=`hal-find-by-capability --capability volume`
|
||||
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`
|
||||
[ $volsize = 0 ] && continue
|
||||
volname=`hal-get-property --udi $udi --key volume.label`
|
||||
mount_point=`hal-get-property --udi $udi --key volume.mount_point`
|
||||
[ "$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"
|
||||
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) ;;
|
||||
*) 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})"
|
||||
;;
|
||||
esac
|
||||
elif [ "$partscheme" == "gpt" -o "$partscheme" == "unknown" -a $volsize -gt 0 ]; then
|
||||
case "$fstype" in
|
||||
swap|iso9660|unformatted) ;;
|
||||
ext2|ext3|reiserfs) ;;
|
||||
*) 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})"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
done
|
||||
@execEnd</string>
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="QWidget">
|
||||
@@ -1025,94 +926,6 @@ done
|
||||
<set>AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="ScriptObject">
|
||||
<property name="name">
|
||||
<cstring>launchinstall</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
<y>20</y>
|
||||
<width>32</width>
|
||||
<height>32</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="associations" stdset="0">
|
||||
<stringlist>
|
||||
<string>@NextBox.setChecked(false)
|
||||
@execBegin
|
||||
conffile=~/.bootrecover.conf
|
||||
cat > $conffile << _EOF
|
||||
#
|
||||
# openmamba installation file
|
||||
#
|
||||
# created by openmamba bootrecover wizard
|
||||
#
|
||||
_EOF
|
||||
@dcop(@dcopid, KommanderIf, enableWidget(QString,bool), back,false)
|
||||
|
||||
installdevice=@String.section(@devicesbox.item(@devicesbox.currentItem)," ",0)
|
||||
mountpoint=@String.section(@devicesbox.item(@devicesbox.currentItem)," ",1)
|
||||
mbrdevice=@String.section(@mbrbox.item(@mbrbox.currentItem)," ",0)
|
||||
|
||||
IFS=$'\n'
|
||||
CHAINLOAD_SELECTED=(`dcop @dcopid KommanderIf selection chainloadbox`)
|
||||
for i in ${CHAINLOAD_SELECTED[*]}; do
|
||||
chainloaddevices="/dev/${i:0:4} $chainloaddevices"
|
||||
done
|
||||
IFS=$' \t\n'
|
||||
|
||||
cat >>$conffile << _EOF
|
||||
INSTALL_DEVICE='/dev/$installdevice'
|
||||
INSTALL_MOUNTPOINT='$mountpoint'
|
||||
INSTALL_BOOTLOADER_DEVICE='/dev/$mbrdevice'
|
||||
INSTALL_BOOTLOADER_DEVICE_SETBOOTABLE=@bootableBox.checked
|
||||
INSTALL_BOOTLOADER_CHAINLOAD=($chainloaddevices)
|
||||
_EOF
|
||||
@execEnd
|
||||
|
||||
@if (@Message.question(@i18n("Boot loader from") @String.section(@devicesbox.item(@devicesbox.currentItem)," ",0) @i18n("will installed to ") @mbrbox.item(@mbrbox.currentItem).
|
||||
@i18n("OK to continue?"), @i18n("Warning"), @i18n("OK"), @i18n("Abort")) == 1)
|
||||
@confirmBox.setChecked(true)
|
||||
@endif
|
||||
|
||||
@if (@confirmBox.checked); then
|
||||
@dcop(@dcopid, KommanderIf, setEnabled(QString,bool), back, false)
|
||||
@exec("/usr/share/openmamba/bootrecover/bootrecover.sh -y @dcopid &> ~/.bootrecover.log")
|
||||
@execBegin
|
||||
dcop @dcopid KommanderIf setText installlog "`cat ~/.bootrecover.log`"
|
||||
@execEnd
|
||||
@endif
|
||||
|
||||
@if (!@confirmBox.checked); then
|
||||
@Message.info(@i18n("Installation aborted."))
|
||||
@dcop(@dcopid, MainApplication-Interface, quit())
|
||||
@endif
|
||||
|
||||
@BackBox.setChecked(false)
|
||||
</string>
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="ScriptObject">
|
||||
<property name="name">
|
||||
<cstring>ScriptObject7</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>540</x>
|
||||
<y>20</y>
|
||||
<width>32</width>
|
||||
<height>32</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="associations" stdset="0">
|
||||
<stringlist>
|
||||
<string>dcop @dcopid KommanderIf setText installlog "`cat ~/.bootrecover.log`"
|
||||
</string>
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="TextEdit">
|
||||
<property name="name">
|
||||
<cstring>installlog</cstring>
|
||||
@@ -1140,6 +953,101 @@ _EOF
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="ScriptObject">
|
||||
<property name="name">
|
||||
<cstring>ScriptObject7</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>540</x>
|
||||
<y>20</y>
|
||||
<width>32</width>
|
||||
<height>32</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="associations" stdset="0">
|
||||
<stringlist>
|
||||
<string>dcop @dcopid KommanderIf setText installlog "`cat ~/.bootrecover.log`"
|
||||
</string>
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="ScriptObject">
|
||||
<property name="name">
|
||||
<cstring>launchinstall</cstring>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
<y>20</y>
|
||||
<width>32</width>
|
||||
<height>32</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="associations" stdset="0">
|
||||
<stringlist>
|
||||
<string>@NextBox.setChecked(false)
|
||||
@execBegin
|
||||
conffile=~/.bootrecover.conf
|
||||
cat > $conffile << _EOF
|
||||
#
|
||||
# openmamba installation file
|
||||
#
|
||||
# created by openmamba bootrecover wizard
|
||||
#
|
||||
_EOF
|
||||
|
||||
@dcop(@dcopid, KommanderIf, enableWidget(QString,bool), back,false)
|
||||
|
||||
installdevice=@String.section(@devicesbox.item(@devicesbox.currentItem)," ",0)
|
||||
mountpoint=@String.section(@devicesbox.item(@devicesbox.currentItem)," ",1)
|
||||
mbrstring="@mbrbox.item(@mbrbox.currentItem)"
|
||||
if [ "${mbrstring/EFI}" != "${mbrstring}" ]; then
|
||||
efidevice=/dev/@String.section(@mbrbox.item(@mbrbox.currentItem)," ",0)
|
||||
else
|
||||
mbrdevice=/dev/@String.section(@mbrbox.item(@mbrbox.currentItem)," ",0)
|
||||
fi
|
||||
|
||||
IFS=$'\n'
|
||||
CHAINLOAD_SELECTED=(`dcop @dcopid KommanderIf selection chainloadbox`)
|
||||
for i in ${CHAINLOAD_SELECTED[*]}; do
|
||||
chainloaddevices="/dev/${i:0:4} $chainloaddevices"
|
||||
done
|
||||
IFS=$' \t\n'
|
||||
|
||||
cat >>$conffile << _EOF
|
||||
INSTALL_DEVICE='/dev/$installdevice'
|
||||
INSTALL_MOUNTPOINT='$mountpoint'
|
||||
INSTALL_BOOTLOADER_DEVICE='$mbrdevice'
|
||||
INSTALL_BOOTLOADER_DEVICE_EFI='$efidevice'
|
||||
INSTALL_BOOTLOADER_DEVICE_SETBOOTABLE=@bootableBox.checked
|
||||
INSTALL_BOOTLOADER_CHAINLOAD=($chainloaddevices)
|
||||
_EOF
|
||||
@execEnd
|
||||
|
||||
@if (@Message.question(@i18n("Boot loader from") @String.section(@devicesbox.item(@devicesbox.currentItem)," ",0) @i18n("will installed to ") @mbrbox.item(@mbrbox.currentItem).
|
||||
@i18n("OK to continue?"), @i18n("Warning"), @i18n("OK"), @i18n("Abort")) == 1)
|
||||
@confirmBox.setChecked(true)
|
||||
@endif
|
||||
|
||||
@if (@confirmBox.checked); then
|
||||
@dcop(@dcopid, KommanderIf, setEnabled(QString,bool), back, false)
|
||||
@exec("sudo /usr/share/openmamba/bootrecover/bootrecover.sh ~/.bootrecover.conf @dcopid `whoami` &> ~/.bootrecover.log")
|
||||
@execBegin
|
||||
dcop @dcopid KommanderIf setText installlog "`cat ~/.bootrecover.log`"
|
||||
@execEnd
|
||||
@endif
|
||||
|
||||
@if (!@confirmBox.checked); then
|
||||
@Message.info(@i18n("Installation aborted."))
|
||||
@dcop(@dcopid, MainApplication-Interface, quit())
|
||||
@endif
|
||||
|
||||
@BackBox.setChecked(false)
|
||||
</string>
|
||||
</stringlist>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
<images>
|
||||
@@ -1175,12 +1083,6 @@ _EOF
|
||||
<receiver>setBootableCheckbox</receiver>
|
||||
<slot>execute()</slot>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>bootableBox</sender>
|
||||
<signal>widgetOpened()</signal>
|
||||
<receiver>scanbootloader</receiver>
|
||||
<slot>execute()</slot>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>NextBox</sender>
|
||||
<signal>widgetOpened()</signal>
|
||||
|
@@ -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
|
||||
@@ -185,26 +134,63 @@ mount -o bind /proc $MOUNTPOINT/proc || {
|
||||
abort
|
||||
}
|
||||
|
||||
if [ "$INSTALL_BOOTLOADER_DEVICE" ]; then
|
||||
|
||||
if [ "$INSTALL_BOOTLOADER_DEVICE" -o "$INSTALL_BOOTLOADER_DEVICE_EFI" ]; then
|
||||
|
||||
for k in $MOUNTPOINT/boot/vmlinuz-*; do
|
||||
KVER=${k/\/boot\/vmlinuz-}
|
||||
KVER=${k/*\/boot\/vmlinuz-}
|
||||
dcop_write $"Recreating initramfs for $KVER kernel..." 82
|
||||
echo $"Recreating initramfs for $KVER kernel" | tee -a $LOG_FILE
|
||||
chroot $MOUNTPOINT mkinitrd -f /boot/initramfs-${KVER}.img ${KVER}
|
||||
done
|
||||
|
||||
dcop_write $"Installing bootloader on $INSTALL_BOOTLOADER_DEVICE..." 90
|
||||
echo $"Installing grub bootloader on $INSTALL_BOOTLOADER_DEVICE" | tee -a $LOG_FILE
|
||||
if [ "$INSTALL_BOOTLOADER_DEVICE_EFI" ]; then
|
||||
# EFI
|
||||
dcop_write $"Installing bootloader on ""$INSTALL_BOOTLOADER_DEVICE_EFI (EFI)..." 90
|
||||
echo $"Installing grub bootloader on ""$INSTALL_BOOTLOADER_DEVICE_EFI (EFI)" | tee -a $LOG_FILE
|
||||
[ -e $MOUNTPOINT/boot/efi ] || mkdir -p $MOUNTPOINT/boot/efi
|
||||
mount $INSTALL_BOOTLOADER_DEVICE_EFI $MOUNTPOINT/boot/efi
|
||||
grub-install --root-directory=$MOUNTPOINT --efi-directory=$MOUNTPOINT/boot/efi --target=x86_64-efi \
|
||||
--bootloader-id="openmamba Boot Manager" --recheck --no-floppy
|
||||
umount $MOUNTPOINT/boot/efi
|
||||
|
||||
grub-install $INSTALL_BOOTLOADER_DEVICE --root-directory=$MOUNTPOINT --recheck --no-floppy
|
||||
INSTALL_BOOTLOADER_DEVICE_EFI_BYID=$INSTALL_BOOTLOADER_DEVICE_EFI
|
||||
for f in `ls /dev/disk/by-id/*`; do
|
||||
if [ "$INSTALL_BOOTLOADER_DEVICE_EFI" = "`readlink -f $f`" ]; then
|
||||
INSTALL_BOOTLOADER_DEVICE_EFI_BYID=$f
|
||||
break
|
||||
fi
|
||||
done
|
||||
sed -i "/^GRUB_INSTALL_DEVICE.*/d" $MOUNTPOINT/etc/sysconfig/grub
|
||||
cat >> $MOUNTPOINT/etc/sysconfig/grub << _EOF
|
||||
GRUB_INSTALL_DEVICE_EFI=$INSTALL_BOOTLOADER_DEVICE_EFI_BYID
|
||||
_EOF
|
||||
|
||||
[ "$INSTALL_BOOTLOADER_DEVICE_SETBOOTABLE" = "1" -a \
|
||||
"${INSTALL_BOOTLOADER_DEVICE:8:2}" ] && {
|
||||
parted ${INSTALL_BOOTLOADER_DEVICE:0:8} \
|
||||
set ${INSTALL_BOOTLOADER_DEVICE:8:2} boot on || \
|
||||
echo $"Warning: there was an error setting bootloader partition as bootable." >&2
|
||||
}
|
||||
else
|
||||
# BIOS
|
||||
dcop_write $"Installing bootloader on $INSTALL_BOOTLOADER_DEVICE..." 90
|
||||
echo $"Installing grub bootloader on $INSTALL_BOOTLOADER_DEVICE" | tee -a $LOG_FILE
|
||||
grub-install $INSTALL_BOOTLOADER_DEVICE --root-directory=$MOUNTPOINT --target=i386-pc --recheck --no-floppy
|
||||
|
||||
INSTALL_BOOTLOADER_DEVICE_BYID=$INSTALL_BOOTLOADER_DEVICE
|
||||
for f in `ls /dev/disk/by-id/*`; do
|
||||
if [ "$INSTALL_BOOTLOADER_DEVICE" = "`readlink -f $f`" ]; then
|
||||
INSTALL_BOOTLOADER_DEVICE_BYID=$f
|
||||
break
|
||||
fi
|
||||
done
|
||||
sed -i "/^GRUB_INSTALL_DEVICE.*/d" $MOUNTPOINT/etc/sysconfig/grub
|
||||
cat >> $MOUNTPOINT/etc/sysconfig/grub << _EOF
|
||||
GRUB_INSTALL_DEVICE=$INSTALL_BOOTLOADER_DEVICE_EFI_BYID
|
||||
_EOF
|
||||
|
||||
[ "$INSTALL_BOOTLOADER_DEVICE_SETBOOTABLE" = "1" -a \
|
||||
"${INSTALL_BOOTLOADER_DEVICE:8:2}" ] && {
|
||||
parted ${INSTALL_BOOTLOADER_DEVICE:0:8} \
|
||||
set ${INSTALL_BOOTLOADER_DEVICE:8:2} boot on || \
|
||||
echo $"Warning: there was an error setting bootloader partition as bootable." >&2
|
||||
}
|
||||
fi
|
||||
|
||||
[ "$INSTALL_BOOTLOADER_CHAINLOAD" ] && {
|
||||
# configure boot chainloader for e.g. windows
|
||||
@@ -239,6 +225,7 @@ if [ "$INSTALL_BOOTLOADER_DEVICE" ]; then
|
||||
GRUB_OTHER_TITLES=(${GRUB_OTHER_TITLES[*]} "\"Windows on $GRUB_OTHER_DEV\"")
|
||||
fi
|
||||
done
|
||||
sed -i "/^GRUB_OTHER_.*/d" $MOUNTPOINT/etc/sysconfig/grub
|
||||
cat >> $MOUNTPOINT/etc/sysconfig/grub << _EOF
|
||||
GRUB_OTHER_DEVICES=(${GRUB_OTHER_DEVICES[*]})
|
||||
GRUB_OTHER_TITLES=(${GRUB_OTHER_TITLES[*]})
|
||||
@@ -246,10 +233,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
|
||||
@@ -262,7 +245,7 @@ fi
|
||||
umount $MOUNTPOINT/dev
|
||||
umount $MOUNTPOINT/sys
|
||||
umount $MOUNTPOINT/proc
|
||||
umount $MOUNTPOINT
|
||||
sync
|
||||
finished
|
||||
|
||||
echo $"Installation done. You can now reboot to start the freshly installed system." | tee -a $LOG_FILE
|
||||
|
@@ -1,270 +0,0 @@
|
||||
# openmamba boot loader recovery script
|
||||
# Copyright (c) 2007-2010 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
#
|
||||
# Released under the terms of the GNU GPLv3 License
|
||||
|
||||
VERSION=0.6
|
||||
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`
|
||||
|
||||
function abort() {
|
||||
[ "$DCOPID" ] && {
|
||||
dcop $DCOPID KommanderIf setText progressText $"Installation aborted; press Next to see the error log."
|
||||
dcop $DCOPID KommanderIf setText finallabel $"Installation aborted :-("
|
||||
dcop $DCOPID KommanderIf setEnabled next true
|
||||
}
|
||||
exit 1
|
||||
}
|
||||
|
||||
function finished() {
|
||||
[ "$DCOPID" ] && {
|
||||
dcop $DCOPID KommanderIf setText progressText $"Installation completed; press Next to continue."
|
||||
dcop $DCOPID KommanderIf setText progressBar 100
|
||||
dcop $DCOPID KommanderIf setText installTopLabel $"Installation completed."
|
||||
dcop $DCOPID KommanderIf setText installInfoLabel ""
|
||||
dcop $DCOPID KommanderIf setEnabled next true
|
||||
dcop $DCOPID KommanderIf setEnabled ProgressGroupBox true
|
||||
}
|
||||
exit 1
|
||||
}
|
||||
|
||||
function dcop_write() {
|
||||
[ "$DCOPID" ] && {
|
||||
dcop $DCOPID KommanderIf setText progressText "$1"
|
||||
dcop $DCOPID KommanderIf setText progressBar $2
|
||||
}
|
||||
}
|
||||
|
||||
function apt_parser() {
|
||||
while read line; do
|
||||
[ "$DCOPID" ] && {
|
||||
echo $line
|
||||
dcop $DCOPID KommanderIf setText progressText2 "$line"
|
||||
}
|
||||
done
|
||||
}
|
||||
|
||||
cp_parser_count=0
|
||||
date_start=`date +%s`
|
||||
|
||||
function cp_parser() {
|
||||
while read line; do
|
||||
let cp_parser_count+=1
|
||||
if [ $cp_parser_count -ge 100 ]; then
|
||||
[ "$DCOPID" ] && {
|
||||
CP_LINE=`echo ${line/*$MOUNTPOINT/}`
|
||||
MOUNT_SPACE=`du -sh $MOUNTPOINT`
|
||||
MOUNT_SPACE=${MOUNT_SPACE/$MOUNTPOINT/}
|
||||
let TIME_ELAPSED=\(`date +%s`-$date_start\)/60
|
||||
|
||||
dcop $DCOPID KommanderIf setText progressText2 $"\
|
||||
Copying: '$CP_LINE
|
||||
${MOUNT_SPACE}bytes copied
|
||||
Installation time: $TIME_ELAPSED minutes"
|
||||
}
|
||||
cp_parser_count=0
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
function find_driver_for_udi() {
|
||||
local found_driver parent_udi
|
||||
|
||||
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
|
||||
|
||||
echo $"\
|
||||
openmamba boot loader recovery script - version $VERSION
|
||||
Copyright (c) 2007-2010 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
"
|
||||
|
||||
dcop_write $"Starting installation..." 5
|
||||
|
||||
[ -r $INPUT_FILE ] || {
|
||||
echo $"Error: cannot read input file $INPUT_FILE; aborting." >&2
|
||||
abort
|
||||
}
|
||||
|
||||
. $INPUT_FILE
|
||||
|
||||
[ $INSTALL_DEVICE ] || {
|
||||
echo $"Error: installation device is not defined in $INPUT_FILE; aborting." >&2
|
||||
abort
|
||||
}
|
||||
|
||||
INSTALL_DISK_DEVICE=${INSTALL_DEVICE:0:8}
|
||||
MOUNTPOINT=$INSTALL_MOUNTPOINT
|
||||
|
||||
[ -d $MOUNTPOINT ] || {
|
||||
echo $"Error: mount point $MOUNTPOINT does not exist or is not a directory; aborting." >&2
|
||||
abort
|
||||
}
|
||||
|
||||
[ -e $MOUNTPOINT/etc/openmamba-release ] || {
|
||||
echo $"Error: file $MOUNTPOINT/etc/openmamba-release does not exist; aborting." >&2
|
||||
abort
|
||||
}
|
||||
|
||||
[ -e $MOUNTPOINT/usr/sbin/grub-install ] || {
|
||||
echo $"Error: file $MOUNTPOINT/usr/sbin/grub-install missing; aborting." >&2
|
||||
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
|
||||
abort
|
||||
}
|
||||
|
||||
mount -o bind /sys $MOUNTPOINT/sys || {
|
||||
echo $"Error: could not mount $MOUNTPOINT/sys; aborting." >&2
|
||||
abort
|
||||
}
|
||||
|
||||
mount -o bind /proc $MOUNTPOINT/proc || {
|
||||
echo $"Error: could not mount $MOUNTPOINT/proc; aborting." >&2
|
||||
abort
|
||||
}
|
||||
|
||||
if [ "$INSTALL_BOOTLOADER_DEVICE" ]; then
|
||||
|
||||
for k in $MOUNTPOINT/boot/vmlinuz-*; do
|
||||
KVER=${k/\/boot\/vmlinuz-}
|
||||
dcop_write $"Recreating initramfs for $KVER kernel..." 82
|
||||
echo $"Recreating initramfs for $KVER kernel" | tee -a $LOG_FILE
|
||||
chroot mkinitrd -f /boot/initramfs-${KVER}.img ${KVER}
|
||||
done
|
||||
|
||||
dcop_write $"Installing bootloader on $INSTALL_BOOTLOADER_DEVICE..." 90
|
||||
echo $"Installing grub bootloader on $INSTALL_BOOTLOADER_DEVICE" | tee -a $LOG_FILE
|
||||
|
||||
grub-install $INSTALL_BOOTLOADER_DEVICE --root-directory=$MOUNTPOINT --recheck --no-floppy
|
||||
|
||||
[ "$INSTALL_BOOTLOADER_DEVICE_SETBOOTABLE" = "1" -a \
|
||||
"${INSTALL_BOOTLOADER_DEVICE:8:2}" ] && {
|
||||
parted ${INSTALL_BOOTLOADER_DEVICE:0:8} \
|
||||
set ${INSTALL_BOOTLOADER_DEVICE:8:2} boot on || \
|
||||
echo $"Warning: there was an error setting bootloader partition as bootable." >&2
|
||||
}
|
||||
|
||||
[ "$INSTALL_BOOTLOADER_CHAINLOAD" ] && {
|
||||
# configure boot chainloader for e.g. windows
|
||||
GRUB_OTHER_TITLES=()
|
||||
for i in ${INSTALL_BOOTLOADER_CHAINLOAD[*]}; do
|
||||
# FIXME: missing conversion from device to grub (hdx,y) form
|
||||
unset ID_FS_UUID
|
||||
eval `blkid $i -o udev`
|
||||
if [ "$ID_FS_UUID" ]; then
|
||||
if [ "$ID_FS_TYPE" = "ntfs" ]; then
|
||||
[ "$ID_FS_LABEL" ] &&
|
||||
ID_FS_LABEL="Windows ($ID_FS_LABEL)" || ID_FS_LABEL="Windows"
|
||||
elif [ "${ID_FS_TYPE:0:3}" = "fat" ]; then
|
||||
[ "$ID_FS_LABEL" ] &&
|
||||
ID_FS_LABEL="Win/DOS ($ID_FS_LABEL)" || ID_FS_LABEL="Windows/DOS"
|
||||
else
|
||||
[ "$ID_FS_LABEL" ] &&
|
||||
ID_FS_LABEL="Other OS ($ID_FS_LABEL)" || ID_FS_LABEL="Other OS"
|
||||
fi
|
||||
[ "$ID_FS_LABEL" ] || ID_FS_LABEL="W"
|
||||
GRUB_OTHER_DEVICES=(${GRUB_OTHER_DEVICES[*]} /dev/disk/by-uuid/$ID_FS_UUID)
|
||||
GRUB_OTHER_TITLES=(${GRUB_OTHER_TITLES[*]} "\"$ID_FS_LABEL\"")
|
||||
else
|
||||
GRUB_OTHER_DEV=$i
|
||||
for o in `seq 1 ${#DEV_NAME_ORIG[*]}`; do
|
||||
[ "${DEV_NAME_ORIG[o-1]}" = "${i:5:3}" ] && {
|
||||
GRUB_OTHER_DEV=${DEV_NAME_DEST[o-1]}${i:8:2}
|
||||
break
|
||||
}
|
||||
done
|
||||
GRUB_OTHER_DEVICES=(${GRUB_OTHER_DEVICES[*]} $GRUB_OTHER_DEV)
|
||||
GRUB_OTHER_TITLES=(${GRUB_OTHER_TITLES[*]} "\"Windows on $GRUB_OTHER_DEV\"")
|
||||
fi
|
||||
done
|
||||
cat >> $MOUNTPOINT/etc/sysconfig/grub << _EOF
|
||||
GRUB_OTHER_DEVICES=(${GRUB_OTHER_DEVICES[*]})
|
||||
GRUB_OTHER_TITLES=(${GRUB_OTHER_TITLES[*]})
|
||||
_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
|
||||
|
||||
## MBR backup
|
||||
#echo "Installing MBR record on $INSTALL_DISK_DEVICE" | tee -a $LOG_FILE
|
||||
#dd if=$INSTALL_DISK_DEVICE of=$MOUNTPOINT/boot/mbr-backup bs=1 count=512
|
||||
#install-mbr $INSTALL_DISK_DEVICE
|
||||
|
||||
umount $MOUNTPOINT/dev
|
||||
umount $MOUNTPOINT/sys
|
||||
umount $MOUNTPOINT/proc
|
||||
umount $MOUNTPOINT
|
||||
finished
|
||||
|
||||
echo $"Installation done. You can now reboot to start the freshly installed system." | tee -a $LOG_FILE
|
||||
|
||||
exit 0
|
@@ -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-en.tar.bz2
Normal file
BIN
desktop/desktop-es.tar.bz2
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-it.tar.bz2
Normal file
@@ -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,31 @@ 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
|
||||
|
||||
[Normal Staff Permissions]
|
||||
Identity=unix-group:sysadmin
|
||||
Action=org.kde.kcontrol.kcmclock.*
|
||||
ResultAny=yes
|
||||
ResultInactive=no
|
||||
ResultActive=yes
|
||||
|
1
etc/prelink.conf.d/skype.conf
Normal file
@@ -0,0 +1 @@
|
||||
-b /usr/bin/skype
|
9
etc/profile.d/proxy.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#
|
||||
# openmamba system-wide proxy configuration
|
||||
#
|
||||
[ -e /etc/sysconfig/proxy ] && . /etc/sysconfig/proxy
|
||||
[ "$http_proxy" ] && export HTTP_PROXY=$http_proxy
|
||||
[ "$https_proxy" ] && export HTTPS_PROXY=$https_proxy
|
||||
[ "$ftp_proxy" ] && export FTP_PROXY=$ftp_proxy
|
||||
[ "$socks_proxy" ] && export SOCKS_PROXY=$socks_proxy
|
||||
[ "$no_proxy" ] && export NO_PROXY=$no_proxy
|
1
etc/sudoers.d/proxy
Normal file
@@ -0,0 +1 @@
|
||||
Defaults env_keep += "ftp_proxy http_proxy https_proxy socks_proxy no_proxy FTP_PROXY HTTP_PROXY HTTPS_PROXY SOCKS_PROXY NO_PROXY"
|
17
etc/sysconfig/proxy
Normal file
@@ -0,0 +1,17 @@
|
||||
# System proxy configuration file
|
||||
|
||||
# Here some examples:
|
||||
|
||||
# http_proxy=http://proxy.example.com:8080
|
||||
# https_proxy=http://proxy.example.com:8080
|
||||
# ftp_proxy=http://proxy.example.com:8080
|
||||
# socks_proxy=http://proxy.example.com:8080
|
||||
# no_proxy=localhost,127.0.0.1
|
||||
|
||||
# http_proxy=http://user:password@proxy.example.com:3128
|
||||
# https_proxy=http://user:password@proxy.example.com:3128
|
||||
# ftp_proxy=http://user:password@proxy.example.com:3128
|
||||
|
||||
# http_proxy=http://domain\\user:password@proxy.example.com:8080
|
||||
# https_proxy=http://domain\\user:password@proxy.example.com:8080
|
||||
# ftp_proxy=http://domain\\user:password@proxy.example.com:8080
|
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
|
||||
|
@@ -397,7 +397,7 @@ Released under the terms of the GNU GPL v3 license</string>
|
||||
URL_OPTIONS="$URL_OPTIONS&newinst=1"
|
||||
}
|
||||
dcop @dcopid KommanderIf setChecked BackBox false
|
||||
/usr/bin/curl --connect-timeout 30 -f http://www.openmamba.org/distribution/services/check.html$URL_OPTIONS
|
||||
/usr/bin/wget -T 30 http://www.openmamba.org/distribution/services/check.html$URL_OPTIONS -o /dev/null
|
||||
RET=$?
|
||||
if [ $RET -eq 0 ]; then
|
||||
dcop @dcopid KommanderIf setVisible checkButton false
|
||||
|
@@ -92,17 +92,15 @@ if [ "$INSTALL_BASE" = "1" ]; then
|
||||
dcop_write $"Removing packages that are no longer needed..." 10
|
||||
rpm -q msysklogd >/dev/null && apt_get_parsed remove -y msysklogd
|
||||
|
||||
# first time: remove mamba from user autostart
|
||||
[ -e /home/$USER/.kde/Autostart/mambabase.desktop ] && {
|
||||
rm -f /home/$USER/.kde/Autostart/mambabase.desktop
|
||||
[ -e /home/$USER/.kde/share/config/ktiprc ] && \
|
||||
rm -f /home/$USER/.kde/share/config/ktiprc
|
||||
}
|
||||
[ -e /home/$USER/.kde4/Autostart/mambabase.desktop ] && \
|
||||
rm -f /home/$USER/.kde4/Autostart/mambabase.desktop
|
||||
|
||||
dcop_write $"Installing/updating openmamba base packages..." 15
|
||||
rpm -q --whatprovides $BASE_PKGS >/dev/null || apt_get_parsed install -y $BASE_PKGS
|
||||
|
||||
# first time: remove mambabase from autostart
|
||||
[ -e /home/$USER/.kde4/Autostart/mambabase.desktop ] && \
|
||||
rm -f /home/$USER/.kde4/Autostart/mambabase.desktop
|
||||
# ugly workaround: don't have permissions to rm file in /etc/xdg/autostart
|
||||
[ -e /etc/xdg/autostart/mambabase.desktop ] && \
|
||||
> /etc/xdg/autostart/mambabase.desktop
|
||||
fi
|
||||
|
||||
if [ "$INSTALL_UPDATE" = "1" ]; then
|
||||
|
@@ -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
|
||||
|
@@ -850,7 +850,7 @@ problemtext=`echo @problem.text() | sed "s|\"|\\\"|"`
|
||||
SYSTEM_MANUFACTURER=`dcop @dcopid KommanderIf text Manufacturer` \
|
||||
SYSTEM_PRODUCT_NAME=`dcop @dcopid KommanderIf text Product` \
|
||||
SYSTEM_SERIAL_NUMBER=`dcop @dcopid KommanderIf text Serial` \
|
||||
kdesudo openmamba-makereport @repdir.text() $HOME $inputfile &> $errfile
|
||||
pkexec openmamba-makereport @repdir.text() $HOME $inputfile &> $errfile
|
||||
ret=$?
|
||||
if [ $ret -eq 0 ]; then
|
||||
dcop @dcopid KommanderIf setChecked NextBox true
|
||||
|
@@ -2,35 +2,29 @@
|
||||
#
|
||||
# openmamba system report generation tool
|
||||
#
|
||||
# Copyrgiht (c) 2008-2010 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
# Copyright (c) 2008-2013 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
#
|
||||
|
||||
VERSION=0.7
|
||||
VERSION=20110807
|
||||
TEMPFILE=`tempfile`
|
||||
|
||||
. ${ROOT}/etc/sysconfig/machine
|
||||
|
||||
[ ! "$SYSTEM_MANUFACTURER" -o "$SYSTEM_MANUFACTURER" = "System manufacturer" ] && {
|
||||
echo -n "Please enter the name of the system manufacturer: "
|
||||
read SYSTEM_MANUFACTURER
|
||||
SYSTEM_MANUFACTURER=unknown
|
||||
}
|
||||
|
||||
[ ! "$SYSTEM_PRODUCT_NAME" -o "$SYSTEM_PRODUCT_NAME" = "System Product Name" ] && {
|
||||
echo -n "Please enter the name of the system product name: "
|
||||
read SYSTEM_PRODUCT_NAME
|
||||
SYSTEM_PRODUCT_NAME=unknown
|
||||
}
|
||||
|
||||
[ ! "$SYSTEM_SERIAL_NUMBER" -o "$SYSTEM_SERIAL_NUMBER" = "System Serial Number" ] && {
|
||||
echo -n "Please enter the name of the system serial number: "
|
||||
read SYSTEM_SERIAL_NUMBER
|
||||
SYSTEM_SERIAL_NUMBER=unknown
|
||||
}
|
||||
|
||||
SYSTEM_MANUFACTURER=`echo $SYSTEM_MANUFACTURER | tr ' ' _`
|
||||
SYSTEM_MANUFACTURER=`echo $SYSTEM_MANUFACTURER | tr '-' _`
|
||||
SYSTEM_PRODUCT_NAME=`echo $SYSTEM_PRODUCT_NAME | tr ' ' _`
|
||||
SYSTEM_PRODUCT_NAME=`echo $SYSTEM_PRODUCT_NAME | tr '-' _`
|
||||
SYSTEM_SERIAL_NUMBER=`echo $SYSTEM_SERIAL_NUMBER | tr ' ' _`
|
||||
SYSTEM_SERIAL_NUMBER=`echo $SYSTEM_SERIAL_NUMBER | tr '-' _`
|
||||
SYSTEM_MANUFACTURER=`echo $SYSTEM_MANUFACTURER | tr ' ' _ | tr '-' _ | tr '/' _`
|
||||
SYSTEM_PRODUCT_NAME=`echo $SYSTEM_PRODUCT_NAME | tr ' ' _ | tr '-' _ | tr '/' _`
|
||||
SYSTEM_SERIAL_NUMBER=`echo $SYSTEM_SERIAL_NUMBER | tr ' ' _ | tr '-' _ | tr '/' _`
|
||||
|
||||
REPORTNAME="openmamba-report-$SYSTEM_MANUFACTURER-$SYSTEM_PRODUCT_NAME-$SYSTEM_SERIAL_NUMBER.txt"
|
||||
|
||||
@@ -50,7 +44,7 @@ function catfile() {
|
||||
|
||||
FILENAME=$1
|
||||
FILEDESC=$2
|
||||
|
||||
|
||||
for c in $FILENAME; do
|
||||
cat >> $TEMPFILE << _EOF
|
||||
|
||||
@@ -68,25 +62,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
|
||||
|
||||
}
|
||||
@@ -138,7 +123,7 @@ _EOF
|
||||
}
|
||||
|
||||
echo "openmamba report generation tool $VERSION"
|
||||
echo "Copyright (c) 2008-2010 by Silvan Calarco"
|
||||
echo "Copyright (c) 2008-2013 by Silvan Calarco"
|
||||
echo
|
||||
|
||||
[ $UID = 0 ] || {
|
||||
@@ -169,11 +154,12 @@ 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"
|
||||
catcommand "ls -l /etc/alternatives" "System alternatives"
|
||||
tailfile /var/log/messages "system messages log"
|
||||
|
||||
# process/memory information
|
||||
catcommand "top -b -n1" "Top running processes"
|
||||
@@ -184,33 +170,45 @@ 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"
|
||||
catinitramfs /boot/initramfs*.img "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"
|
||||
|
||||
# graphical desktop startup
|
||||
# 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"
|
||||
catcommand "DISPLAY=:0 /usr/bin/glxinfo" "GLX information"
|
||||
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"
|
||||
catcommand "/usr/sbin/iwconfig" "Wireless interfaces list"
|
||||
catcommand "/sbin/route -n" "Routing table"
|
||||
tailfile "/var/log/wicd/wicd.log" "WICD log file"
|
||||
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"
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# mambawelcome - start mambawelcome on first time system execution
|
||||
# Copyright (c) 2007-2009 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
# Copyright (c) 2007-2013 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
|
||||
if [ $UID != 0 ]; then
|
||||
echo "$0: must be superuser." >&2
|
||||
@@ -27,10 +27,14 @@ 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 ] && {
|
||||
if [ -e /root/.mambawelcome-not-completed ]; then
|
||||
rm -f /root/.mambawelcome-not-completed
|
||||
halt
|
||||
}
|
||||
poweroff
|
||||
else
|
||||
systemctl disable mambawelcome.target
|
||||
systemctl isolate graphical.target
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
12
mambawelcome/mambawelcome.service
Normal file
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=openmamba 2nd stage installation welcome dialog
|
||||
Conflicts=getty@tty1.service
|
||||
After=systemd-user-sessions.service getty@tty1.service plymouth-quit.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/share/openmamba/mambawelcome/mambawelcome
|
||||
Restart=always
|
||||
IgnoreSIGPIPE=no
|
||||
|
||||
[Install]
|
||||
WantedBy=mambawelcome.target
|
@@ -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
|
||||
@@ -68,6 +72,7 @@ dcop_write $"Configuring users and host..." 50
|
||||
echo $"Configuring users and host" | tee -a $LOG_FILE
|
||||
# configure user
|
||||
[ "$INSTALL_USER" ] && {
|
||||
userdel -rf liveuser
|
||||
useradd $INSTALL_USER \
|
||||
-c "$INSTALL_USER_FULLNAME" \
|
||||
-G audio,filesharing,sysadmin,packager,lpadmin,video,nopermfs || {
|
||||
@@ -115,9 +120,10 @@ echo $"Configuring users and host" | tee -a $LOG_FILE
|
||||
#mkdir /home/$INSTALL_USER/Desktop
|
||||
chmod 711 /home/$INSTALL_USER
|
||||
#cp /usr/share/openmamba/installer/*.txt /home/$INSTALL_USER/Desktop/
|
||||
mkdir -p /home/$INSTALL_USER/.kde4/Autostart
|
||||
cp /usr/share/openmamba/mambabase/mambabase-autostart.desktop /home/$INSTALL_USER/.kde4/Autostart/mambabase.desktop
|
||||
chmod 711 /home/$INSTALL_USER/.kde4/Autostart/mambabase.desktop
|
||||
|
||||
cp /usr/share/openmamba/mambabase/mambabase-autostart.desktop /etc/xdg/autostart/mambabase.desktop
|
||||
chown $INSTALL_USER /etc/xdg/autostart/mambabase.desktop
|
||||
chmod 644 /etc/xdg/autostart/mambabase.desktop
|
||||
|
||||
# create home kde configuration directory
|
||||
mkdir -p /home/$INSTALL_USER/.kde4/share/config
|
||||
@@ -143,13 +149,15 @@ sh -c "echo $INSTALL_ROOT_PASSWORD | passwd --stdin" || {
|
||||
|
||||
# set hostname and domain
|
||||
[[ "$INSTALL_HOSTNAME" ]] && {
|
||||
hostname $INSTALL_HOSTNAME
|
||||
sed -i "s|HOSTNAME=.*|HOSTNAME=$INSTALL_HOSTNAME|" \
|
||||
/etc/sysconfig/network
|
||||
|
||||
[[ "$INSTALL_DOMAIN" ]] || INSTALL_DOMAIN="localdomain"
|
||||
sed -i "s|\(127\.0\.0\.1\W*\)\(.*\)|\1 $INSTALL_HOSTNAME.$INSTALL_DOMAIN $INSTALL_HOSTNAME localhost.localdomain localhost|" \
|
||||
/etc/hosts
|
||||
if [ "${INSTALL_HOSTNAME/.*}" != "${INSTALL_HOSTNAME}" -o "${INSTALL_DOMAIN}" = "localdomain" ]; then
|
||||
hostnamectl set-hostname $INSTALL_HOSTNAME
|
||||
if [ "${INSTALL_DOMAIN}" != "localdomain" ]; then
|
||||
sed -i "s|\(127\.0\.0\.1\W*\)\(.*\)|\1 $INSTALL_HOSTNAME.$INSTALL_DOMAIN $INSTALL_HOSTNAME localhost.localdomain localhost|" \
|
||||
/etc/hosts
|
||||
fi
|
||||
elif [ "${INSTALL_DOMAIN}" != "localdomain" ]; then
|
||||
hostnamectl set-hostname $INSTALL_HOSTNAME.$INSTALL_DOMAIN
|
||||
fi
|
||||
}
|
||||
|
||||
# set samba configuration file
|
||||
@@ -158,10 +166,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/`
|
||||
|
17
mambawelcome/mambawelcome.target
Normal file
@@ -0,0 +1,17 @@
|
||||
# This file is part of systemd.
|
||||
#
|
||||
# systemd is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU Lesser General Public License as published by
|
||||
# the Free Software Foundation; either version 2.1 of the License, or
|
||||
# (at your option) any later version.
|
||||
|
||||
[Unit]
|
||||
Description=Mambawelcome 2nd stage install target
|
||||
Documentation=man:systemd.special(7)
|
||||
Requires=multi-user.target
|
||||
After=multi-user.target
|
||||
Conflicts=rescue.target
|
||||
AllowIsolate=yes
|
||||
|
||||
[Install]
|
||||
Alias=default.target
|
@@ -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/spotify.desktop.in
Normal file
@@ -0,0 +1,19 @@
|
||||
[Desktop Entry]
|
||||
Name=Install Spotify
|
||||
Name[es]=Instala Spotify
|
||||
Name[fr]=Installation du Spotify
|
||||
Name[it]=Installa Spotify
|
||||
Comment=Install Spotify from network
|
||||
Comment[es]=Instala Spotify por red
|
||||
Comment[fr]=Installation du Spotify depuis le réseau
|
||||
Comment[it]=Installa Spotify dalla rete
|
||||
Encoding=UTF-8
|
||||
Exec=@bindir@/openmamba-netsrpms spotify
|
||||
Icon=distromenu-spotify
|
||||
MimeType=
|
||||
Path=
|
||||
StartupNotify=false
|
||||
Terminal=false
|
||||
TerminalOptions=
|
||||
Type=Application
|
||||
Categories=X-@distroID@-NetInstall;
|
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;
|
@@ -0,0 +1,19 @@
|
||||
[Desktop Entry]
|
||||
Name=Install VirtualBox Extension Pack
|
||||
Name[es]=Instala el VirtualBox Extension Pack
|
||||
Name[fr]=Installation du VirtualBox Extension Pack
|
||||
Name[it]=Installa il VirtualBox Extension Pack
|
||||
Comment=Install VirtualBox Extension Pack from network
|
||||
Comment[es]=Instala el VirtualBox Extension Pack por red
|
||||
Comment[fr]=Installation du VirtualBox Extension Pack depuis le réseau
|
||||
Comment[it]=Installa il VirtualBox Extension Pack dalla rete
|
||||
Encoding=UTF-8
|
||||
Exec=@bindir@/openmamba-netsrpms virtualbox-extension-pack
|
||||
Icon=VBox
|
||||
MimeType=
|
||||
Path=
|
||||
StartupNotify=false
|
||||
Terminal=false
|
||||
TerminalOptions=
|
||||
Type=Application
|
||||
Categories=X-@distroID@-NetInstall;
|
@@ -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/128x128/apps/distromenu-spotify.png
Normal file
After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 613 B After Width: | Height: | Size: 706 B |
Before Width: | Height: | Size: 738 B After Width: | Height: | Size: 1.1 KiB |
BIN
menu/icons/hicolor/24x24/apps/distromenu-spotify.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
menu/icons/hicolor/256x256/apps/distromenu-spotify.png
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
menu/icons/hicolor/32x32/apps/distromenu-java.png
Normal file
After Width: | Height: | Size: 4.8 KiB |
BIN
menu/icons/hicolor/32x32/apps/distromenu-spotify.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 992 B After Width: | Height: | Size: 1.4 KiB |
BIN
menu/icons/hicolor/48x48/apps/distromenu-java.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
menu/icons/hicolor/48x48/apps/distromenu-spotify.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 2.4 KiB |
BIN
menu/icons/hicolor/64x64/apps/distromenu-java.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
menu/icons/hicolor/64x64/apps/distromenu-spotify.png
Normal file
After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 2.7 KiB |
@@ -2,10 +2,12 @@
|
||||
#
|
||||
# netsrpm-install.sh - Build srpms that download sources from network
|
||||
#
|
||||
# Copyright (C) 2003-2011 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
# Copyright (C) 2003-2014 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>
|
||||
|
||||
TEXTDOMAINDIR=/usr/share/locale/
|
||||
TEXTDOMAIN=openmamba-update
|
||||
me="${0##*/}"
|
||||
DISTRO_SRPMS_DIR=/usr/share/openmamba/SRPMS
|
||||
rpmdir=$(rpm --eval=%{_rpmdir} 2>/dev/null)
|
||||
@@ -13,17 +15,22 @@ rpmdir=$(rpm --eval=%{_rpmdir} 2>/dev/null)
|
||||
while [ "$1" ]; do
|
||||
case $1 in
|
||||
-c) CHECK_MODE=1 ;;
|
||||
-f) FORCE_MODE=1 ;;
|
||||
-u) UPGRADE_MODE=1 ;;
|
||||
-h|--help) PACKAGES= ; break ;;
|
||||
-*) echo $"Error: invalid option $1; aborting."; exit 1 ;;
|
||||
*) PACKAGES="$PACKAGES $1"
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
if [ -z "$PACKAGES" ]; then
|
||||
echo "Usage:
|
||||
$me [-c] pkgname ...
|
||||
echo $"Usage:
|
||||
$me [options...] pkgname ...
|
||||
|
||||
Options:
|
||||
-c: only check and exit (returns: 0: up-to-date; 1: needs update; 2: not installed)
|
||||
-f: force reinstallation if already installed
|
||||
-u: only upgrade if already installed
|
||||
"
|
||||
exit 255
|
||||
@@ -32,28 +39,26 @@ fi
|
||||
function check_if_already_installed() {
|
||||
rpm -q $1 &>/dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
notify-send -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" "$pckname: "$"already installed."
|
||||
fi
|
||||
}
|
||||
|
||||
declare -A SRPMVERSION SRPMRELEASE
|
||||
. /etc/sysconfig/netsrpminstall || exit 1
|
||||
|
||||
for pckname in $PACKAGES; do
|
||||
|
||||
icon=`grep Icon= /usr/share/applications/openmamba-$pckname.desktop | sed "s|Icon=||"`
|
||||
SRPM_PATH=$DISTRO_SRPMS_DIR/${pckname}
|
||||
SPEC_PATHNAME=$SRPM_PATH/${pckname}.spec
|
||||
|
||||
SRPM_NAME=`\
|
||||
find $DISTRO_SRPMS_DIR \
|
||||
-regex ".*/${pckname//+/\\+}-[^-]*-[^-]*" -printf "%f " 2>/dev/null`
|
||||
|
||||
[ "$SRPM_NAME" ] || {
|
||||
echo "$me: $pckname is missing in $DISTRO_SRPMS_DIR; aborting."
|
||||
[ -r "$SPEC_PATHNAME" ] || {
|
||||
echo $"$me: $pckname is missing in $DISTRO_SRPMS_DIR; aborting."
|
||||
exit 255
|
||||
}
|
||||
|
||||
SRPM_VERSION=`\
|
||||
echo $SRPM_NAME | \
|
||||
sed "s|${pckname//+/\\+}-\([^-]*-[^-]*\).src.rpm|\1|" 2>/dev/null`
|
||||
icon=`grep Icon= /usr/share/applications/openmamba-$pckname.desktop | sed "s|Icon=||"`
|
||||
|
||||
SRPM_VERSION=${SRPMVERSION[${pckname}]}-${SRPMRELEASE[${pckname}]}
|
||||
|
||||
RPM_INSTALLED=`rpm -q $pckname`
|
||||
[ $? -eq 0 ] || RPM_INSTALLED=
|
||||
@@ -62,9 +67,9 @@ for pckname in $PACKAGES; do
|
||||
echo $RPM_INSTALLED | \
|
||||
sed "s|${pckname//+/\\+}-\([^-]*-[^-]*\)\..*|\1|" 2>/dev/null`
|
||||
|
||||
echo "Package name: $pckname"
|
||||
echo "Installed version: $RPM_INSTALLED_VERSION"
|
||||
echo "Last version: $SRPM_VERSION"
|
||||
echo $"Package name: $pckname"
|
||||
echo $"Installed version: $RPM_INSTALLED_VERSION"
|
||||
echo $"Last version: $SRPM_VERSION"
|
||||
echo
|
||||
|
||||
if [ "$RPM_INSTALLED_VERSION" != "$SRPM_VERSION" ]; then
|
||||
@@ -73,71 +78,79 @@ for pckname in $PACKAGES; do
|
||||
elif [ "$UPGRADE_MODE" ]; then
|
||||
continue
|
||||
fi
|
||||
elif [ "$UPGRADE_MODE" ]; then
|
||||
elif [ ! "$FORCE_MODE" ]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
if [ ! "$CHECK_MODE" ]; then
|
||||
SRPM_PATH=${DISTRO_SRPMS_DIR}/${SRPM_NAME}
|
||||
|
||||
if [ ! -f $SRPM_PATH ]; then
|
||||
echo "$me: "$"missing SRPM \`$SRPM_PATH'."" "$"Aborting..." >&2
|
||||
exit 255
|
||||
if [ -f ${SRPM_PATH}/LICENSE ]; then
|
||||
if [ "$DISPLAY" ]; then
|
||||
license-dialog ${SRPM_PATH}/LICENSE
|
||||
[ $? -ne 0 ] && exit 1
|
||||
else
|
||||
echo $"You must accept the following license terms:"
|
||||
echo
|
||||
more ${SRPM_PATH}/LICENSE
|
||||
echo -n $"Do you agree with the above license terms [y/N]? "
|
||||
read ans
|
||||
[ "$ans" = "Y" -o "$ans" = "y" ] || exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
tmpfile=`mktemp -q -t $me.XXXXXXXX` || {
|
||||
echo "$me: error: cannot create temporary files; aborting."
|
||||
exit 255
|
||||
}
|
||||
|
||||
tmpdir=`mktemp -d -q -t $me.XXXXXXXX` || {
|
||||
echo "$me: error: cannot create temporary directory; aborting."
|
||||
exit 255
|
||||
}
|
||||
|
||||
# get license agreement
|
||||
( rpm2cpio $SRPM_PATH > $tmpfile &&
|
||||
cd $tmpdir &&
|
||||
cpio --quiet --extract --make-directories < $tmpfile ) 2>/dev/null
|
||||
|
||||
if [ -f $tmpdir/LICENSE ]; then
|
||||
license-dialog $tmpdir/LICENSE
|
||||
[ $? -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'..."
|
||||
rpmbuild --rebuild $SRPM_PATH --define="%_rpmdir $tmpdir"
|
||||
tmpfile=`mktemp -q -t $me.XXXXXXXX` || {
|
||||
echo "$me: "$"error: cannot create temporary files; aborting."
|
||||
exit 255
|
||||
}
|
||||
|
||||
tmpdir=`mktemp -d -q -t $me.XXXXXXXX` || {
|
||||
echo "$me: "$"error: cannot create temporary directory; aborting."
|
||||
exit 255
|
||||
}
|
||||
|
||||
echo "$me: "$"rebuilding package \`$pckname'..."
|
||||
|
||||
sed "s|@SRPMVERSION@|${SRPMVERSION[${pckname}]}|g;s|@SRPMRELEASE@|${SRPMRELEASE[${pckname}]}|g" \
|
||||
${SPEC_PATHNAME} >> $tmpfile
|
||||
|
||||
rpmbuild --ba \
|
||||
--define="%_rpmdir $tmpdir" \
|
||||
--define="%_sourcedir ${SRPM_PATH}" \
|
||||
$tmpfile
|
||||
|
||||
if [ $? -gt 0 ]; then
|
||||
echo "$me: "$"error rebuilding \`$SRPM_PATH'."" "$"Aborting..." >&2
|
||||
check_if_already_installed $pckname
|
||||
echo "$me: "$"error rebuilding \`$pckname'."" "$"Aborting..." >&2
|
||||
notify-send -a $"Network software installation" -i $icon "$pckname" $"There was an error installing"" $pckname!"
|
||||
exit 255
|
||||
fi
|
||||
RPM_PATH=`find $tmpdir -name \*.rpm`
|
||||
|
||||
# install rpm
|
||||
sudo rpm -hUv --force $RPM_PATH
|
||||
if [ "$FORCE_MODE" = "1" ]; then
|
||||
sudo smart remove -y $pckname
|
||||
fi
|
||||
sudo smart install -y $RPM_PATH
|
||||
if [ $? -gt 0 ]; then
|
||||
echo "$me: "$"error installing \`$SRPM_PATH'."" "$"Aborting..." >&2
|
||||
echo "$me: "$"error installing \`$RPM_PATH'."" "$"Aborting..." >&2
|
||||
check_if_already_installed $pckname
|
||||
exit 255
|
||||
fi
|
||||
|
||||
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
|
||||
|
||||
fi
|
||||
done
|
||||
|
||||
[ "$UPDATE_NEEDED" ] && {
|
||||
echo "Update needed."
|
||||
if [ "$CHECK_MODE" -a "$UPDATE_NEEDED" ]; then
|
||||
echo $"Update needed."
|
||||
exit 1
|
||||
}
|
||||
fi
|
||||
exit 0
|
||||
|
@@ -35,7 +35,7 @@ script_name="$(basename $0 2>/dev/null)"
|
||||
|
||||
function usage() {
|
||||
|
||||
echo "Usage: $script_name [OPTION][groupname ..]
|
||||
echo $"Usage: $script_name [OPTION][groupname ..]
|
||||
|
||||
Options:
|
||||
-f, --full
|
||||
@@ -77,7 +77,7 @@ while [ "$1" ]; do
|
||||
shift
|
||||
done
|
||||
|
||||
[ "$list_mode" ] && echo "Available installation groups (*=installed,+=needs update):"
|
||||
[ "$list_mode" ] && echo $"Available installation groups (*=installed,+=needs update):"
|
||||
for i in `seq 1 ${#PKG_GROUPS[*]}`; do
|
||||
eval instpkgs=(\$`echo ${PKG_GROUPS[$i-1]}`)
|
||||
totpkgs=`expr $totpkgs + ${#instpkgs[*]}`
|
||||
@@ -117,14 +117,14 @@ if [ "$installnames" ]; then
|
||||
done
|
||||
done
|
||||
elif [ "$needupdategroups" ]; then
|
||||
echo -n "The following groups need to be updated: "
|
||||
echo -n $"The following groups need to be updated: "
|
||||
for n in $needupdategroups; do
|
||||
echo -n "${PKG_NAMES[$n]} "
|
||||
installgroups="$installgroups $n"
|
||||
done
|
||||
echo
|
||||
[ "$assume_yes" ] || {
|
||||
echo -n "Proceed with update [Y/n]?"
|
||||
echo -n $"Proceed with update [Y/n]?"
|
||||
read ans
|
||||
[ "$ans" = "n" -o "$ans" = "N" ] && exit 0
|
||||
}
|
||||
|
132
openmamba-update/po/it.po
Normal file
@@ -0,0 +1,132 @@
|
||||
#: openmamba-netsrpms:21
|
||||
msgid "Error: invalid option $1; aborting."
|
||||
msgstr "Errore: opzione $1 non valida; uscita."
|
||||
#: openmamba-netsrpms:28
|
||||
msgid ""
|
||||
"Usage:\n"
|
||||
"$me [options...] pkgname ...\n"
|
||||
"\n"
|
||||
"Options:\n"
|
||||
"-c: only check and exit (returns: 0: up-to-date; 1: needs update; 2: not installed)\n"
|
||||
"-f: force reinstallation if already installed\n"
|
||||
"-u: only upgrade if already installed\n"
|
||||
""
|
||||
msgstr ""
|
||||
"Uso:\n"
|
||||
"$me [opzioni...] pkgname ...\n"
|
||||
"\n"
|
||||
"Opzioni:\n"
|
||||
"-c: controlla soltanto ed esci (ritorna: 0: aggiornato; 1: richiede aggiornamento; 2: non installato)\n"
|
||||
"-f: forza la reinstallazione se già installato\n"
|
||||
"-u: aggiorna soltanto se già installato\n"
|
||||
""
|
||||
#: openmamba-netsrpms:42
|
||||
msgid "Network software installation"
|
||||
msgstr "Installazione di software dalla rete"
|
||||
#: openmamba-netsrpms:42
|
||||
msgid "already installed."
|
||||
msgstr "già installato"
|
||||
#: openmamba-netsrpms:55
|
||||
msgid "$me: $pckname is missing in $DISTRO_SRPMS_DIR; aborting."
|
||||
msgstr "$me: $pckname non è presente in $DISTRO_SRPMS_DIR; uscita."
|
||||
#: openmamba-netsrpms:70
|
||||
msgid "Package name: $pckname"
|
||||
msgstr "Nome pacchetto: $pckname"
|
||||
#: openmamba-netsrpms:71
|
||||
msgid "Installed version: $RPM_INSTALLED_VERSION"
|
||||
msgstr "Versione installata: $RPM_INSTALLED_VERSION"
|
||||
#: openmamba-netsrpms:72
|
||||
msgid "Last version: $SRPM_VERSION"
|
||||
msgstr "Ultima versione: $SRPM_VERSION"
|
||||
#: openmamba-netsrpms:89
|
||||
msgid "missing SRPM \\`$SRPM_PATH'."
|
||||
msgstr "SRPM mancante \\`$SRPM_PATH'."
|
||||
#: openmamba-netsrpms:89
|
||||
msgid "Aborting..."
|
||||
msgstr "Uscita..."
|
||||
#: openmamba-netsrpms:94
|
||||
msgid "error: cannot create temporary files; aborting."
|
||||
msgstr "errore: non posso creare files temporanei; uscita."
|
||||
#: openmamba-netsrpms:99
|
||||
msgid "error: cannot create temporary directory; aborting."
|
||||
msgstr "errore: non posso creare una cartella temporanea; uscita."
|
||||
#: openmamba-netsrpms:113
|
||||
msgid "You must accept the following license terms:"
|
||||
msgstr "Devi accettare i termini della seguente licenza:"
|
||||
#: openmamba-netsrpms:116
|
||||
msgid "Do you agree with the above license terms [y/N]? "
|
||||
msgstr "Accetti i suddetti termini di licenza [s/N]? "
|
||||
#: openmamba-netsrpms:122
|
||||
msgid "$pckname installation in progress..."
|
||||
msgstr "Installazione di $pckname in corso..."
|
||||
#: openmamba-netsrpms:125
|
||||
msgid "rebuilding package \\`$SRPM_PATH'..."
|
||||
msgstr "ricreazione del pacchetto \\`$SRPM_PATH'..."
|
||||
#: openmamba-netsrpms:128
|
||||
msgid "error rebuilding \\`$SRPM_PATH'."
|
||||
msgstr "errore nella ricreazione di \\`$SRPM_PATH'."
|
||||
#: openmamba-netsrpms:129
|
||||
msgid "There was an error installing"
|
||||
msgstr "C'è stato un errore nell'installazione di"
|
||||
#: openmamba-netsrpms:140
|
||||
msgid "error installing \\`$RPM_PATH'."
|
||||
msgstr "errore nell'installazione di \\`$RPM_PATH'."
|
||||
#: openmamba-netsrpms:147
|
||||
msgid "Installation of $pckname successfully completed."
|
||||
msgstr "Installazione di $pckname completata con successo."
|
||||
#: openmamba-netsrpms:149
|
||||
msgid "There was an error installing $pckname!"
|
||||
msgstr "C'è stato un errore nell'installazione di $pckname!"
|
||||
#: openmamba-netsrpms:157
|
||||
msgid "Update needed."
|
||||
msgstr "Aggiornamento necessario."
|
||||
#: openmamba-update:28
|
||||
msgid ""
|
||||
"openmamba update script - version $VERSION\n"
|
||||
"Copyright (c) 2011 by Silvan Calarco <silvan.calarco@mambasoft.it>\n"
|
||||
""
|
||||
msgstr ""
|
||||
"Script di aggiornamento di openmamba - versione $VERSION\n"
|
||||
"Copyright (c) 2011 by Silvan Calarco <silvan.calarco@mambasoft.it>\n"
|
||||
""
|
||||
#: openmamba-update:38
|
||||
msgid ""
|
||||
"Usage: $script_name [OPTION][groupname ..]\n"
|
||||
"\n"
|
||||
"Options:\n"
|
||||
" -f, --full\n"
|
||||
" Perform a full update\n"
|
||||
" -h, --help\n"
|
||||
" Display this message.\n"
|
||||
" -l, --list\n"
|
||||
" List available groups and exit\n"
|
||||
" -v, --verbose\n"
|
||||
" Produce mode verbose output\n"
|
||||
" -y, --assume-yes\n"
|
||||
" Assume yes to all answers"
|
||||
msgstr ""
|
||||
"Uso: $script_name [OPZIONE][nomegruppo ..]\n"
|
||||
"\n"
|
||||
"Opzioni:\n"
|
||||
" -f, --full\n"
|
||||
" Effettua un aggiornamento completo\n"
|
||||
" -h, --help\n"
|
||||
" Mostra questo messaggio.\n"
|
||||
" -l, --list\n"
|
||||
" Elenca i gruppi disponibili ed esci\n"
|
||||
" -v, --verbose\n"
|
||||
" Produci un output dettagliato\n"
|
||||
" -y, --assume-yes\n"
|
||||
" Assumi 'si' a tutte le risposte"
|
||||
#: openmamba-update:80
|
||||
msgid "Available installation groups (*=installed,+=needs update):"
|
||||
msgstr "Gruppi di installazione disponibili (*=installato,+=richiede aggiornamento):"
|
||||
#: openmamba-update:120
|
||||
msgid "The following groups need to be updated: "
|
||||
msgstr "I seguenti gruppi necessitano di essere aggiornati: "
|
||||
#: openmamba-update:127
|
||||
msgid "Proceed with update [Y/n]?"
|
||||
msgstr "Procedere con l'aggiornamento [S/n]?"
|
||||
#: openmamba-update:143
|
||||
msgid "Installing: ${finalinstalllist[*]}"
|
||||
msgstr "Installazione: ${finalinstalllist[*]}"
|
@@ -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
|
||||
|