automatic version update by autodist [release 585-1mamba;Tue Jul 09 2013]

This commit is contained in:
Automatic Build System 2024-01-05 18:48:45 +01:00
parent dc414922e4
commit 17f61a9725
5 changed files with 222 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# unetbootin # unetbootin
UNetbootin allows you to create bootable Live USB drives for many Linux distributions without burning a CD.

View File

@ -0,0 +1,14 @@
diff -Nru unetbootin-583.orig/unetbootin.cpp unetbootin-583/unetbootin.cpp
--- unetbootin-583.orig/unetbootin.cpp 2012-12-24 09:20:52.000000000 +0100
+++ unetbootin-583/unetbootin.cpp 2013-01-28 19:45:00.543025476 +0100
@@ -290,8 +290,8 @@
syslinuxcommand = "/usr/bin/syslinux";
else
syslinuxcommand = locatecommand("syslinux", tr("FAT32-formatted USB drive"), "syslinux");
- if (QFile::exists("/usr/bin/extlinux"))
- extlinuxcommand = "/usr/bin/extlinux";
+ if (QFile::exists("/sbin/extlinux"))
+ extlinuxcommand = "/sbin/extlinux";
else
extlinuxcommand = locatecommand("extlinux", tr("EXT2-formatted USB drive"), "syslinux");
#endif

View File

@ -0,0 +1,86 @@
diff -Nru unetbootin-583.orig/distrolst.cpp unetbootin-583/distrolst.cpp
--- unetbootin-583.orig/distrolst.cpp 2012-12-24 09:14:22.000000000 +0100
+++ unetbootin-583/distrolst.cpp 2013-02-03 14:37:53.338734805 +0100
@@ -762,6 +762,54 @@
kernelOpts = "rw vga=1 init=/linuxrc";
}
+if (nameDistro == "openmamba")
+{
+ if (isarch64)
+ {
+ cpuarch = "x86_64";
+ }
+ else
+ {
+ cpuarch = "i586";
+ }
+ QString milestone = nameVersion.section('_', 0,0);
+ QString repo = milestone;
+ if (milestone == "snapshot") {
+ repo = "devel";
+ }
+ QString part = nameVersion.section('_', 1,1);
+ QString lang = nameVersion.section('_', 2,2);
+ QString cpiotmpf = randtmpfile::getrandfilename(ubntmpf, "cpio");
+ QString cpiogztmpf = cpiotmpf + ".gz";
+ downloadfile(QString("http://www.openmamba.org/pub/openmamba/media/%1/%2/%3/openmamba-%2-%3-%4.%5.iso").arg(repo, part, lang, milestone, cpuarch), QString("%1openmamba-live.iso").arg(targetPath));
+ downloadfile(QString("http://www.openmamba.org/pub/openmamba/media/%1/bootusb/%2/openmamba-bootusb-%2-%3.%4.cpio.gz").arg(repo, lang, milestone, cpuarch), cpiogztmpf);
+ extractfile(QFileInfo(cpiotmpf).fileName(), cpiotmpf, cpiogztmpf);
+ callexternapp(sevzcommand, QString("-bd -aoa -o\"%1\" x \"%2\"").arg(QDir::toNativeSeparators(targetPath), QDir::toNativeSeparators(cpiotmpf)));
+#ifdef Q_OS_LINUX
+ isext2 = false;
+ if (!volidcommand.isEmpty())
+ {
+ if (callexternapp(volidcommand, QString("-t %2").arg(targetDev)).contains(QRegExp("(ext2|ext3|ext4)")))
+ isext2 = true;
+ }
+ else
+ {
+ QString tstrblk = callexternapp(blkidcommand, QString("-s TYPE %2").arg(targetDev));
+ if (tstrblk.contains('='))
+ {
+ if (tstrblk.contains(QRegExp("(ext2|ext3|ext4)")))
+ isext2 = true;
+ }
+ }
+#endif
+ if (isext2)
+ setLabel(targetDev, "openmamba_live");
+ else
+ // TODO: not ext2 installation is not supported yet
+ setLabel(targetDev, "OPENMAMBALV");
+ targetPath = targetPath + "/boot/";
+}
+
if (nameDistro == "openSUSE")
{
if (isarch64)
diff -Nru unetbootin-583.orig/distrover.cpp unetbootin-583/distrover.cpp
--- unetbootin-583.orig/distrover.cpp 2012-12-24 09:14:50.000000000 +0100
+++ unetbootin-583/distrover.cpp 2013-02-03 14:39:07.926980662 +0100
@@ -183,6 +183,24 @@
"<b>Description:</b> The Offline NT Password and Registry Editor can reset Windows passwords and edit the registry on Windows 2000-Vista.<br/>"
"<b>Install Notes:</b> NTPasswd is booted and run in live mode; no installation is required to use it.") <<
"2008.05.26" << "2011.05.11"));
+#ifdef Q_OS_LINUX
+distroselect->addItem("openmamba", (QStringList() << "livecd_en_milestone2" <<
+unetbootin::tr("<b>Homepage:</b> <a href=\"http://www.openmamba.org/\">http://www.openmamba.org</a><br/>"
+ "<b>Description:</b> openmamba is a fully-featured desktop and server distribution.<br/>"
+ "milestone2 is the latest stable release. snapshot are less stable but include the most up-to-date software releases.<br/>"
+ "livecd or livedvd are the most supported media based on the KDE4 desktop environment, livecd-light is a light LXDE based environment while livecd-gnome runs GNOME desktop.<br/>"
+ "<b>Install Notes:</b> the USB device must be formatted with an ext2/3/4 filesystem") <<
+ "milestone2_livecd_en" << "milestone2_livecd_it" << "milestone2_livecd_es" <<
+ "milestone2_livedvd_en" << "milestone2_livedvd_it" << "milestone2_livedvd_es" <<
+ "milestone2_livecd-light_en" << "milestone2_livecd-light_it" << "milestone2_livecd-light_es" <<
+ "milestone2_livecd-gnome_en" << "milestone2_livecd-gnome_it" << "milestone2_livecd-gnome_es" <<
+ "snapshot_livecd_en" << "snapshot_livecd_it" << "snapshot_livecd_es" <<
+ "snapshot_livecd_en_x64" << "snapshot_livecd_it_x64" << "snapshot_livecd_es_x64" <<
+ "snapshot_livedvd_en" << "snapshot_livedvd_it" << "snapshot_livedvd_es" <<
+ "snapshot_livecd-light_en" << "snapshot_livecd-light_en_x64" << "snapshot_livecd-light_it" <<
+ "snapshot_livecd-light_it_x64" << "snapshot_livecd-light_es" << "snapshot_livecd-light_es_x64" <<
+ "snapshot_livecd-gnome_en" << "snapshot_livecd-gnome_it" << "snapshot_livecd-gnome_es"));
+#endif
distroselect->addItem("openSUSE", (QStringList() << "11.1" <<
unetbootin::tr("<b>Homepage:</b> <a href=\"http://www.opensuse.org/\">http://www.opensuse.org</a><br/>"
"<b>Description:</b> openSUSE is a user-friendly Novell sponsored distribution.<br/>"

View File

@ -0,0 +1,32 @@
diff -Nru unetbootin-584.orig/unetbootin.cpp unetbootin-584/unetbootin.cpp
--- unetbootin-584.orig/unetbootin.cpp 2013-07-01 21:16:52.363527422 +0200
+++ unetbootin-584/unetbootin.cpp 2013-07-01 21:24:07.128189373 +0200
@@ -3366,6 +3366,8 @@
srcF.setFileName(QFile::exists("/usr/share/syslinux/memdisk") ? "/usr/share/syslinux/memdisk" : "/usr/lib/syslinux/memdisk");
else if (srcfName == "menu.c32")
srcF.setFileName(QFile::exists("/usr/share/syslinux/menu.c32") ? "/usr/share/syslinux/menu.c32" : "/usr/lib/syslinux/menu.c32");
+ else if (srcfName == "libutil.c32")
+ srcF.setFileName(QFile::exists("/usr/share/syslinux/libutil.c32") ? "/usr/share/syslinux/libutil.c32" : "/usr/lib/syslinux/libutil.c32");
else if (srcfName == "mbr.bin")
srcF.setFileName(QFile::exists("/usr/share/syslinux/mbr.bin") ? "/usr/share/syslinux/mbr.bin" : "/usr/lib/syslinux/mbr.bin");
else if (srcfName == "ubnsylnx")
@@ -4144,6 +4146,7 @@
if (!abssyslpathloc.startsWith("/"))
abssyslpathloc.prepend("/");
instIndvfl("menu.c32", QString("%1%2menu.c32").arg(targetPath).arg(syslpathloc));
+ instIndvfl("libutil.c32", QString("%1%2libutil.c32").arg(targetPath).arg(syslpathloc));
QString syslrealcfgloc = QString(locatedsyslinuxcfgfiles.at(j)).replace("isolinux.cfg", "syslinux.cfg").replace("extlinux.conf", "syslinux.cfg");
if (syslrealcfgloc != locatedsyslinuxcfgfiles.at(j))
{
@@ -4166,8 +4169,10 @@
if (!dontgeneratesyslinuxcfg && isext2)
QFile::copy(QString("%1syslinux.cfg").arg(targetPath), QString("%1extlinux.conf").arg(targetPath));
#endif
- if (!dontgeneratesyslinuxcfg)
+ if (!dontgeneratesyslinuxcfg) {
instIndvfl("menu.c32", QString("%1menu.c32").arg(targetPath));
+ instIndvfl("libutil.c32", QString("%1libutil.c32").arg(targetPath));
+ }
fininstall();
}

88
unetbootin.spec Normal file
View File

@ -0,0 +1,88 @@
Name: unetbootin
Version: 585
Release: 1mamba
Summary: Create bootable Live Linux USB drives without burning a CD
Group: Graphical Desktop/Applications/Utilities
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://unetbootin.sourceforge.net/
Source: http://downloads.sourceforge.net/project/unetbootin/UNetbootin/%{version}/unetbootin-source-%{version}.tar.gz
Patch0: unetbootin-583-extlinux-path.patch
Patch1: unetbootin-583-openmamba-2.patch
Patch2: unetbootin-584-syslinux-5.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libqt4-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
Requires: syslinux
Requires: util-linux
Requires: e2fsprogs
Requires: p7zip
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
UNetbootin allows you to create bootable Live USB drives for many Linux distributions without burning a CD.
%debug_package
%prep
%setup -q -c %{name}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%build
lrelease unetbootin.pro
qmake-qt4
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -D -m0755 unetbootin %{buildroot}%{_bindir}/unetbootin
install -D -m0644 unetbootin.desktop %{buildroot}%{_datadir}/applications/unetbootin.desktop
install -d -m0755 %{buildroot}%{_datadir}/unetbootin
cp unetbootin_*.qm %{buildroot}%{_datadir}/unetbootin/
install -d -m0755 %{buildroot}%{_datadir}/pixmaps
cp unetbootin_64.png %{buildroot}%{_datadir}/pixmaps/unetbootin.png
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/unetbootin
%{_datadir}/applications/unetbootin.desktop
%{_datadir}/pixmaps/unetbootin.png
%dir %{_datadir}/unetbootin
%{_datadir}/unetbootin/unetbootin_*.qm
%changelog
* Tue Jul 09 2013 Automatic Build System <autodist@mambasoft.it> 585-1mamba
- automatic version update by autodist
* Mon Jul 01 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 584-2mamba
- add a patch to install libutil.c32 required by syslinux 5
* Fri Jun 21 2013 Automatic Build System <autodist@mambasoft.it> 584-1mamba
- automatic version update by autodist
* Wed Feb 13 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 583-5mamba
- openmamba patch update: add support for x86_64 livecd
* Mon Feb 04 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 583-4mamba
- openmamba patch update: force overwrite of files extracted from bootusb archive
* Sun Feb 03 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 583-3mamba
- openmamba patch refined; only support linux builds for now because of ext* fs requirement
* Tue Jan 29 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 583-2mamba
- added a preliminary patch for openmamba support
* Mon Jan 28 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 583-1mamba
- package created by silvan using the webbuild interface