pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

add aqemu



Module Name:	pkgsrc-wip
Committed By:	nia <nia%netbsd.org@localhost>
Pushed By:	nee
Date:		Sat Dec 12 15:31:10 2020 +0100
Changeset:	64b20195f1ac9f4de8d1b55b13a829b84b84fbe8

Modified Files:
	Makefile
Added Files:
	aqemu/DESCR
	aqemu/Makefile
	aqemu/PLIST
	aqemu/TODO
	aqemu/distinfo
	aqemu/patches/patch-src_System__Info.cpp

Log Message:
add aqemu

A GUI for virtual machines using QEMU as the backend.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=64b20195f1ac9f4de8d1b55b13a829b84b84fbe8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                 |  1 +
 aqemu/DESCR                              |  1 +
 aqemu/Makefile                           | 30 ++++++++++++
 aqemu/PLIST                              | 79 +++++++++++++++++++++++++++++++
 aqemu/TODO                               |  2 +
 aqemu/distinfo                           |  7 +++
 aqemu/patches/patch-src_System__Info.cpp | 80 ++++++++++++++++++++++++++++++++
 7 files changed, 200 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 7aad2ee58c..402b200797 100644
--- a/Makefile
+++ b/Makefile
@@ -164,6 +164,7 @@ SUBDIR+=	apel-git
 SUBDIR+=	apinger
 SUBDIR+=	apstget
 SUBDIR+=	apvlv
+SUBDIR+=	aqemu
 SUBDIR+=	aquaria
 SUBDIR+=	ar7
 SUBDIR+=	arabeyes-qr-ttf
diff --git a/aqemu/DESCR b/aqemu/DESCR
new file mode 100644
index 0000000000..e00b1e5280
--- /dev/null
+++ b/aqemu/DESCR
@@ -0,0 +1 @@
+A GUI for virtual machines using QEMU as the backend.
diff --git a/aqemu/Makefile b/aqemu/Makefile
new file mode 100644
index 0000000000..b4c6313179
--- /dev/null
+++ b/aqemu/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD$
+
+DISTNAME=	aqemu-0.9.2
+CATEGORIES=	emulators
+MASTER_SITES=	${MASTER_SITE_GITHUB:=tobimensch/}
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/tobimensch/aqemu
+COMMENT=	GUI for virtual machines using QEMU as the backend
+LICENSE=	gnu-gpl-v2
+
+USE_CMAKE=	yes
+USE_LANGUAGES=	c c++
+USE_TOOLS+=	pkg-config
+
+SUBST_CLASSES+=		paths
+SUBST_STAGE.paths=	pre-configure
+SUBST_FILES.paths+=	CMakeLists.txt
+SUBST_FILES.paths+=	src/main.cpp
+SUBST_SED.paths+=	-e "s,/usr/local,${PREFIX},g"
+SUBST_SED.paths+=	-e "s,share/man/man1,${PKGMANDIR}/man1,g"
+
+pre-configure:
+	${LN} -sf ${QTDIR}/bin/rcc ${TOOLS_DIR}/bin/rcc
+
+.include "../../net/libvncserver/buildlink3.mk"
+.include "../../sysutils/desktop-file-utils/buildlink3.mk"
+.include "../../x11/qt5-qtbase/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/aqemu/PLIST b/aqemu/PLIST
new file mode 100644
index 0000000000..a21b3cf95a
--- /dev/null
+++ b/aqemu/PLIST
@@ -0,0 +1,79 @@
+@comment $NetBSD$
+bin/aqemu
+man/man1/aqemu.1
+share/applications/aqemu.desktop
+share/aqemu/docs/links.html
+share/aqemu/icons.rcc
+share/aqemu/os_icons/alt.png
+share/aqemu/os_icons/aptosid.png
+share/aqemu/os_icons/arch.png
+share/aqemu/os_icons/asp.png
+share/aqemu/os_icons/bodhi.png
+share/aqemu/os_icons/calculate.png
+share/aqemu/os_icons/centos.png
+share/aqemu/os_icons/chakra.png
+share/aqemu/os_icons/clearos.png
+share/aqemu/os_icons/damnsmalllinux.png
+share/aqemu/os_icons/debian.png
+share/aqemu/os_icons/dragonfly.png
+share/aqemu/os_icons/fedora.png
+share/aqemu/os_icons/freebsd.png
+share/aqemu/os_icons/frugalware.png
+share/aqemu/os_icons/fuduntu.png
+share/aqemu/os_icons/gentoo.png
+share/aqemu/os_icons/gnewsense.png
+share/aqemu/os_icons/knoppix.png
+share/aqemu/os_icons/knoppix_v2.png
+share/aqemu/os_icons/kubuntu.png
+share/aqemu/os_icons/kubuntu_v2.png
+share/aqemu/os_icons/lubuntu.png
+share/aqemu/os_icons/lunar.png
+share/aqemu/os_icons/mac.png
+share/aqemu/os_icons/mageia.png
+share/aqemu/os_icons/mandriva.png
+share/aqemu/os_icons/mepis.png
+share/aqemu/os_icons/minix.png
+share/aqemu/os_icons/mint.png
+share/aqemu/os_icons/netbsd.png
+share/aqemu/os_icons/novell.png
+share/aqemu/os_icons/openbsd.png
+share/aqemu/os_icons/opensolaris.png
+share/aqemu/os_icons/pclinuxos.png
+share/aqemu/os_icons/puppy.png
+share/aqemu/os_icons/redhat.png
+share/aqemu/os_icons/sabayon.png
+share/aqemu/os_icons/scientific.png
+share/aqemu/os_icons/slackware.png
+share/aqemu/os_icons/slackware_v2.png
+share/aqemu/os_icons/solaris.png
+share/aqemu/os_icons/suse-novell.png
+share/aqemu/os_icons/suse.png
+share/aqemu/os_icons/symphony.png
+share/aqemu/os_icons/ubuntu.png
+share/aqemu/os_icons/ubuntu_v2.png
+share/aqemu/os_icons/vector.png
+share/aqemu/os_icons/xubuntu.png
+share/aqemu/os_templates/FreeBSD 4.aqvmt
+share/aqemu/os_templates/FreeBSD 7.aqvmt
+share/aqemu/os_templates/FreeBSD 8.aqvmt
+share/aqemu/os_templates/Linux 2.0.aqvmt
+share/aqemu/os_templates/Linux 2.4.aqvmt
+share/aqemu/os_templates/Linux 2.6 x86_64.aqvmt
+share/aqemu/os_templates/Linux 2.6.aqvmt
+share/aqemu/os_templates/MacOS X x86.aqvmt
+share/aqemu/os_templates/Windows 2000.aqvmt
+share/aqemu/os_templates/Windows 7 x64.aqvmt
+share/aqemu/os_templates/Windows 7.aqvmt
+share/aqemu/os_templates/Windows 9X.aqvmt
+share/aqemu/os_templates/Windows Vista x64.aqvmt
+share/aqemu/os_templates/Windows Vista.aqvmt
+share/aqemu/os_templates/Windows XP x64.aqvmt
+share/aqemu/os_templates/Windows XP.aqvmt
+share/aqemu/shared_images.rcc
+share/doc/aqemu/AUTHORS.bz2
+share/doc/aqemu/CHANGELOG.bz2
+share/doc/aqemu/README.bz2
+share/doc/aqemu/TODO.bz2
+share/pixmaps/aqemu.png
+share/pixmaps/aqemu_48x48.png
+share/pixmaps/aqemu_64x64.png
diff --git a/aqemu/TODO b/aqemu/TODO
new file mode 100644
index 0000000000..3dcc0caa09
--- /dev/null
+++ b/aqemu/TODO
@@ -0,0 +1,2 @@
+- Make this work at runtime on NetBSD (some vlan problems...)
+- Add NVMM and HAXM support
diff --git a/aqemu/distinfo b/aqemu/distinfo
new file mode 100644
index 0000000000..8382de42c5
--- /dev/null
+++ b/aqemu/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (aqemu-0.9.2.tar.gz) = ad8b0f7f77c3da2ce7aae80c8a06809dbf15b67a
+RMD160 (aqemu-0.9.2.tar.gz) = c511d9b36610b6c67ec069ec2666edb32778964c
+SHA512 (aqemu-0.9.2.tar.gz) = 9d4808172ee1be82509956560e4d3f9ee349fedd920342146083cc9bc79ef51fc95937c64f20ffb13e2849c577f95f59b5b65271d6e29e2d2e1ec2d1562006ba
+Size (aqemu-0.9.2.tar.gz) = 1373465 bytes
+SHA1 (patch-src_System__Info.cpp) = b63ca1b68225c19ed2224595b6a7d4e4d0f3b9ea
diff --git a/aqemu/patches/patch-src_System__Info.cpp b/aqemu/patches/patch-src_System__Info.cpp
new file mode 100644
index 0000000000..12b319a450
--- /dev/null
+++ b/aqemu/patches/patch-src_System__Info.cpp
@@ -0,0 +1,80 @@
+$NetBSD$
+
+Add NetBSD support bits.
+
+--- src/System_Info.cpp.orig	2016-05-31 12:34:02.000000000 +0000
++++ src/System_Info.cpp
+@@ -2732,6 +2732,73 @@ bool System_Info::Update_Host_USB()
+ 
+ #endif // FreeBSD
+ 
++#ifdef Q_OS_NETBSD
++
++#include <uvm/uvm_extern.h>
++#include <sys/sysctl.h>
++#include <QDir>
++#include <QFileInfoList>
++
++void System_Info::Get_Free_Memory_Size( int &allRAM, int &freeRAM )
++{
++	int mib[] = { CTL_VM, VM_UVMEXP2 };
++	struct uvmexp_sysctl uvmexp;
++	size_t ssize;
++
++	ssize = sizeof(uvmexp);
++	memset(&uvmexp, 0, ssize);
++
++	if (sysctl(mib, 2, &uvmexp, &ssize, NULL, 0) < 0)
++	{
++		AQError( "void  System_Info::Get_Free_Memory_Size( int &allRAM, int &freeRAM )",
++				 "Cannot Get Information on Memory! (vm.uvmexp2)" );
++	}
++
++	allRAM = (uvmexp.npages * uvmexp.pagesize / 1024) / 1024;
++	freeRAM = (uvmexp.free * uvmexp.pagesize / 1024) / 1024;
++}
++
++QStringList System_Info::Get_Host_FDD_List()
++{
++	// Find Floppy's
++	QDir dev_dir( "/dev/" );
++	QFileInfoList devices = dev_dir.entryInfoList( QStringList("fd*"), QDir::System, QDir::Name );
++	
++	QStringList tmp_list;
++	
++	for( int d = 0; d < devices.count(); ++d )
++	{
++		tmp_list << devices[d].absoluteFilePath();
++	}
++	
++	return tmp_list;
++}
++
++QStringList System_Info::Get_Host_CDROM_List()
++{
++	// Find CD-ROM's
++	QDir dev_dir( "/dev/" );
++	QFileInfoList devices = dev_dir.entryInfoList( QStringList("cd*"), QDir::System, QDir::Name );
++	
++	QStringList tmp_list;
++	
++	for( int d = 0; d < devices.count(); ++d )
++	{
++		tmp_list << devices[d].absoluteFilePath();
++	}
++	
++	return tmp_list;
++}
++
++bool System_Info::Update_Host_USB()
++{
++	AQError( "System_Info::Update_Host_USB()",
++			 "Not implemented!" );
++	return false;
++}
++
++#endif // NetBSD
++
+ #ifdef Q_OS_WIN32
+ 
+ #include <windows.h>


Home | Main Index | Thread Index | Old Index