pkgsrc-WIP-changes archive

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

Add AusweisApp2. Might run on non-macOS.



Module Name:	pkgsrc-wip
Committed By:	Amitai Schleier <schmonz-web-git%schmonz.com@localhost>
Pushed By:	schmonz
Date:		Wed Nov 3 17:17:08 2021 +0100
Changeset:	0dde65c912515bfa23575dca2fa6f9703ecddac1

Added Files:
	ausweisapp2/DESCR
	ausweisapp2/Makefile
	ausweisapp2/PLIST
	ausweisapp2/TODO
	ausweisapp2/distinfo
	ausweisapp2/patches/patch-cmake_Helper.cmake
	ausweisapp2/patches/patch-cmake_Install.cmake
	ausweisapp2/patches/patch-cmake_Tools.cmake

Log Message:
Add AusweisApp2. Might run on non-macOS.

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

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

diffstat:
 ausweisapp2/DESCR                             |  7 ++++
 ausweisapp2/Makefile                          | 31 ++++++++++++++++
 ausweisapp2/PLIST                             |  3 ++
 ausweisapp2/TODO                              |  5 +++
 ausweisapp2/distinfo                          |  8 +++++
 ausweisapp2/patches/patch-cmake_Helper.cmake  | 17 +++++++++
 ausweisapp2/patches/patch-cmake_Install.cmake | 51 +++++++++++++++++++++++++++
 ausweisapp2/patches/patch-cmake_Tools.cmake   | 31 ++++++++++++++++
 8 files changed, 153 insertions(+)

diffs:
diff --git a/ausweisapp2/DESCR b/ausweisapp2/DESCR
new file mode 100644
index 0000000000..76fc066975
--- /dev/null
+++ b/ausweisapp2/DESCR
@@ -0,0 +1,7 @@
+AusweisApp2 establishes a secure connection between your card reader,
+your German ID card or residence permit, and the service provider to
+which you wish to identify yourself online. AusweisApp2 can also view
+your data as stored on the online ID.
+
+It is being developed on behalf of the German Federal Ministry of
+the Interior.
diff --git a/ausweisapp2/Makefile b/ausweisapp2/Makefile
new file mode 100644
index 0000000000..8c201ceafa
--- /dev/null
+++ b/ausweisapp2/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD$
+
+GITHUB_PROJECT=	AusweisApp2
+DISTNAME=	${GITHUB_PROJECT}-${GITHUB_RELEASE}
+PKGNAME=	${DISTNAME:tl}
+CATEGORIES=	security
+MASTER_SITES=	${MASTER_SITE_GITHUB:=Governikus/}
+GITHUB_RELEASE=	1.22.2
+
+MAINTAINER=	schmonz%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/Governikus/AusweisApp2/
+COMMENT=	Authenticate with your German ID or residence permit
+LICENSE=	eupl-v1.1 # XXX it's really 1.2
+
+USE_CMAKE=	yes
+CMAKE_ARGS+=	-DVENDOR=${PKGBASE}
+CMAKE_ARGS+=	-DFORCE_SOURCE_BUILD=ON
+
+USE_LANGUAGES=	c++
+
+CFLAGS+=	-I${PREFIX}/include/PCSC
+
+.include "../../security/openssl/buildlink3.mk"
+.include "../../security/pcsc-lite/buildlink3.mk"
+.include "../../x11/qt5-qtconnectivity/buildlink3.mk"
+.include "../../x11/qt5-qtdeclarative/buildlink3.mk"
+.include "../../x11/qt5-qtquickcontrols2/buildlink3.mk"
+.include "../../x11/qt5-qtsvg/buildlink3.mk"
+.include "../../x11/qt5-qttools/buildlink3.mk"
+.include "../../x11/qt5-qtwebsockets/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/ausweisapp2/PLIST b/ausweisapp2/PLIST
new file mode 100644
index 0000000000..227465546d
--- /dev/null
+++ b/ausweisapp2/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+bin/AusweisApp2
+man/man1/AusweisApp2.1
diff --git a/ausweisapp2/TODO b/ausweisapp2/TODO
new file mode 100644
index 0000000000..fa15119ede
--- /dev/null
+++ b/ausweisapp2/TODO
@@ -0,0 +1,5 @@
+Doesn't start on macOS, trying to load random resources from
+${PREFIX}/bin or whatever. Probably need to find and fix more cases
+where upstream assumes MAC means MACAPP. (pkgsrc doesn't want MACAPP.)
+
+Does it work on NetBSD as is, or nearly so?
diff --git a/ausweisapp2/distinfo b/ausweisapp2/distinfo
new file mode 100644
index 0000000000..6e27f16821
--- /dev/null
+++ b/ausweisapp2/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+BLAKE2s (AusweisApp2-1.22.2.tar.gz) = 029fc52e67755543c72e79ec1549584723ac3fccd4ac83a2a3fe8ec5917c20c3
+SHA512 (AusweisApp2-1.22.2.tar.gz) = c33c049e7d90b40a7f4942fca90c78374289bd402939162ba30a025b7e47188f4e50a2498909be91ecd4ae2a658ca4742d05c00426c5cdfabbf1deb846a70270
+Size (AusweisApp2-1.22.2.tar.gz) = 10933161 bytes
+SHA1 (patch-cmake_Helper.cmake) = 8302d55644908b0a3edcde58b267ac5b2ad63b5c
+SHA1 (patch-cmake_Install.cmake) = 961629929022476fc4a2c73e649518a79055b9ae
+SHA1 (patch-cmake_Tools.cmake) = 6e9c28f0a6c5c6cde25791e9d71a8ed8cb538b47
diff --git a/ausweisapp2/patches/patch-cmake_Helper.cmake b/ausweisapp2/patches/patch-cmake_Helper.cmake
new file mode 100644
index 0000000000..b4b78affed
--- /dev/null
+++ b/ausweisapp2/patches/patch-cmake_Helper.cmake
@@ -0,0 +1,17 @@
+$NetBSD$
+
+Don't build a .app just because we're on macOS.
+
+--- cmake/Helper.cmake.orig	2021-03-31 09:24:50.000000000 +0000
++++ cmake/Helper.cmake
+@@ -289,6 +289,10 @@ if(APPLE AND NOT IOS)
+ 	set(MAC true)
+ endif()
+ 
++if(FALSE AND MAC)
++	set(MACAPP true)
++endif()
++
+ if(UNIX AND NOT ANDROID AND NOT APPLE AND NOT CYGWIN AND NOT BSD)
+ 	set(LINUX true)
+ endif()
diff --git a/ausweisapp2/patches/patch-cmake_Install.cmake b/ausweisapp2/patches/patch-cmake_Install.cmake
new file mode 100644
index 0000000000..637c479199
--- /dev/null
+++ b/ausweisapp2/patches/patch-cmake_Install.cmake
@@ -0,0 +1,51 @@
+$NetBSD$
+
+Don't build a .app just because we're on macOS.
+
+--- cmake/Install.cmake.orig	2021-03-31 09:24:50.000000000 +0000
++++ cmake/Install.cmake
+@@ -3,7 +3,7 @@
+ # It will be included by ./src/CMakeLists.txt
+ ################################################
+ 
+-if(MAC)
++if(MACAPP)
+ 	set(DEFAULT_FILE_DESTINATION ${PROJECT_NAME}.app/Contents/Resources)
+ 	set(TRANSLATION_DESTINATION ${DEFAULT_FILE_DESTINATION}/translations)
+ else()
+@@ -46,7 +46,7 @@ set(DEPENDENCY_CHECK "
+ 
+ 
+ # qt qml plugins (fixup_bundle needs to know this to fetch their dependencies)
+-if((WIN32 OR MAC) AND TARGET ${Qt}::Qml)
++if((WIN32 OR MACAPP) AND TARGET ${Qt}::Qml)
+ 	set(modules QtQuick QtQuick.2 QtQml QtGraphicalEffects Qt)
+ 	if(WIN32)
+ 		list(APPEND modules QtWinExtras)
+@@ -113,7 +113,7 @@ if(WIN32)
+ 
+ 
+ 
+-elseif(MAC)
++elseif(MACAPP)
+ 	set(MACOS_BUNDLE_MACOS_DIR ${DEFAULT_FILE_DESTINATION}/../MacOS)
+ 	set(MACOS_BUNDLE_PLUGINS_DIR ${DEFAULT_FILE_DESTINATION}/../PlugIns)
+ 	set(MACOS_BUNDLE_FRAMEWORKS_DIR ${DEFAULT_FILE_DESTINATION}/../Frameworks)
+@@ -274,7 +274,7 @@ endif()
+ 
+ 
+ 
+-if(LINUX OR WIN32 OR MAC)
++if(LINUX OR WIN32 OR MACAPP)
+ 	option(SELFPACKER "Compress executable with self packer like UPX")
+ 	if(SELFPACKER)
+ 		find_package(SelfPackers)
+@@ -315,7 +315,7 @@ if(SIGNTOOL_CMD)
+ 
+ 	configure_file(${CMAKE_DIR}/SignFiles.cmake.in ${CMAKE_BINARY_DIR}/SignFiles.cmake @ONLY)
+ 
+-	if(MAC)
++	if(MACAPP)
+ 		option(OSX_TIMESTAMP "Timestamp the application bundle" ON)
+ 
+ 		install(CODE
diff --git a/ausweisapp2/patches/patch-cmake_Tools.cmake b/ausweisapp2/patches/patch-cmake_Tools.cmake
new file mode 100644
index 0000000000..00b970f7ab
--- /dev/null
+++ b/ausweisapp2/patches/patch-cmake_Tools.cmake
@@ -0,0 +1,31 @@
+$NetBSD$
+
+Don't pick up Doxygen or Java just because they're there.
+
+--- cmake/Tools.cmake.orig	2021-03-31 09:24:50.000000000 +0000
++++ cmake/Tools.cmake
+@@ -58,7 +58,7 @@ endif()
+ # Doxygen (http://www.doxygen.org)
+ # http://www.stack.nl/~dimitri/doxygen/manual/config.html
+ find_package(Doxygen)
+-if(DOXYGEN_FOUND)
++if(FALSE AND DOXYGEN_FOUND)
+ 	set(DOXYGEN_BIN_DIR "${PROJECT_BINARY_DIR}/doxygen")
+ 	set(DOXYGEN_CMD ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/Doxyfile)
+ 	set(DOXYGEN_CFG ${PROJECT_SOURCE_DIR}/Doxyfile.in)
+@@ -512,13 +512,13 @@ if(INKSCAPE AND APPLE AND NOT IOS)
+ 	endif()
+ endif()
+ 
+-if(NOT JAVA_EXECUTABLE)
++if(FALSE AND NOT JAVA_EXECUTABLE)
+ 	find_package(Java COMPONENTS Runtime)
+ 	if(Java_JAVA_EXECUTABLE)
+ 		set(JAVA_EXECUTABLE "${Java_JAVA_EXECUTABLE}")
+ 	endif()
+ endif()
+-if(JAVA_EXECUTABLE)
++if(FALSE AND JAVA_EXECUTABLE)
+ 	find_file(PLANTUML plantuml.jar PATHS ENV HOME NO_DEFAULT_PATH)
+ 	if(PLANTUML)
+ 		message(STATUS "Target uml.statemachines is available using: ${PLANTUML}")


Home | Main Index | Thread Index | Old Index