From 086c9974374b5fca352ba02d90e20f5648000e44 Mon Sep 17 00:00:00 2001 From: Kai Knoblich Date: Mon, 2 Sep 2019 11:52:44 +0000 Subject: security/spass{-qt5}: Update to 3.2 * Introduce security/spass-qt5 as a slave port that contains only the GUI version which was added with the 3.1 release. * Use the latest commit d38d173 to make use of the WITH_GUI boolean flag that enables the GUI/CLI-only build. Changelog since 3.0: * Minor tweaks for the CLI version * Additional Qt5 GUI version PR: 238621 Submitted by: Thomas Merkel (initial patch) Reviewed by: mat (portmgr, to determine if FLAVORS can be used or not) Differential Revision: https://reviews.freebsd.org/D21084 --- security/Makefile | 1 + security/spass-qt5/Makefile | 18 ++++++++++++++++++ security/spass/Makefile | 18 +++++++++++------- security/spass/distinfo | 5 +++-- 4 files changed, 33 insertions(+), 9 deletions(-) create mode 100644 security/spass-qt5/Makefile (limited to 'security') diff --git a/security/Makefile b/security/Makefile index 94cd892189b9..a6d50ef6817a 100644 --- a/security/Makefile +++ b/security/Makefile @@ -1227,6 +1227,7 @@ SUBDIR += softhsm2 SUBDIR += sops SUBDIR += spass + SUBDIR += spass-qt5 SUBDIR += spike-proxy SUBDIR += spybye SUBDIR += sqlmap diff --git a/security/spass-qt5/Makefile b/security/spass-qt5/Makefile new file mode 100644 index 000000000000..a4dd22a9ce46 --- /dev/null +++ b/security/spass-qt5/Makefile @@ -0,0 +1,18 @@ +# $FreeBSD$ + +PKGNAMESUFFIX= -qt5 + +COMMENT= Secure password generator with a true RNG (Qt5 GUI) + +USES= qmake:no_env qt:5 +USE_QT= buildtools_build core gui widgets + +MASTERDIR= ${.CURDIR}/../spass + +PLIST_FILES= bin/spass-qt + +# Delete the CLI-only binary which is already provided via security/spass +post-install: + ${RM} ${STAGEDIR}${PREFIX}/bin/spass + +.include "${MASTERDIR}/Makefile" diff --git a/security/spass/Makefile b/security/spass/Makefile index bc8481c2bf0e..2917be3b98a2 100644 --- a/security/spass/Makefile +++ b/security/spass/Makefile @@ -1,12 +1,13 @@ # $FreeBSD$ PORTNAME= spass -PORTVERSION= 3.0 -PORTREVISION= 16 +DISTVERSIONPREFIX= v +DISTVERSION= 3.2-5 +DISTVERSIONSUFFIX= -gd38d173 CATEGORIES= security MAINTAINER= ports@FreeBSD.org -COMMENT= Secure password generator with a true random number generator +COMMENT?= Secure password generator with a true random number generator LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/COPYING @@ -14,14 +15,17 @@ LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= ${LOCALBASE}/include/boost/format.hpp:devel/boost-libs LIB_DEPENDS= libboost_program_options.so:devel/boost-libs +USES+= cmake compiler:c++11-lang USE_GITHUB= yes GH_ACCOUNT= guyru -GH_TAGNAME= cb0de64 - -USES= cmake compiler:c++11-lang CMAKE_ARGS= -DWITH_ALSA:BOOL=off -DWITH_OSS:BOOL=on -PLIST_FILES= bin/spass +PLIST_FILES?= bin/spass + +# Disable the Qt5 GUI if we build the master port +.if !defined(PKGNAMESUFFIX) +CMAKE_ARGS+= -DWITH_GUI:BOOL=off +.endif .include diff --git a/security/spass/distinfo b/security/spass/distinfo index b1af8e9082f1..225b22ba8d11 100644 --- a/security/spass/distinfo +++ b/security/spass/distinfo @@ -1,2 +1,3 @@ -SHA256 (guyru-spass-3.0-cb0de64_GH0.tar.gz) = 3b3bd505f03645838125377d9db5e2a3bac339c2aba2ed36ff5d95aec1d525ca -SIZE (guyru-spass-3.0-cb0de64_GH0.tar.gz) = 47733 +TIMESTAMP = 1564168089 +SHA256 (guyru-spass-v3.2-5-gd38d173_GH0.tar.gz) = af2fac7c18e8dea881d65bcf780bfd777353e1aa402462c67a9b6c4e37d71dfa +SIZE (guyru-spass-v3.2-5-gd38d173_GH0.tar.gz) = 53482 -- cgit v1.2.3