From a3290c935f03381241d169f6c537f467b4b8c7b1 Mon Sep 17 00:00:00 2001 From: gutteridge Date: Sat, 25 Apr 2020 18:24:57 +0000 Subject: lxqt-sudo: add new package, version 0.14.1 lxqt-sudo is a graphical front-end of the sudo and su commands. (Packaged in wip by pin@, final review by myself.) --- security/lxqt-sudo/DESCR | 4 ++++ security/lxqt-sudo/Makefile | 31 +++++++++++++++++++++++++++ security/lxqt-sudo/PLIST | 35 +++++++++++++++++++++++++++++++ security/lxqt-sudo/distinfo | 7 +++++++ security/lxqt-sudo/patches/patch-sudo.cpp | 20 ++++++++++++++++++ 5 files changed, 97 insertions(+) create mode 100644 security/lxqt-sudo/DESCR create mode 100644 security/lxqt-sudo/Makefile create mode 100644 security/lxqt-sudo/PLIST create mode 100644 security/lxqt-sudo/distinfo create mode 100644 security/lxqt-sudo/patches/patch-sudo.cpp (limited to 'security/lxqt-sudo') diff --git a/security/lxqt-sudo/DESCR b/security/lxqt-sudo/DESCR new file mode 100644 index 00000000000..6af4d26222b --- /dev/null +++ b/security/lxqt-sudo/DESCR @@ -0,0 +1,4 @@ +lxqt-sudo is a graphical front-end of commands `sudo` +and `su` respectively. As such it enables regular users +to launch applications with permissions of other users, +including root. diff --git a/security/lxqt-sudo/Makefile b/security/lxqt-sudo/Makefile new file mode 100644 index 00000000000..1aa1e1b7363 --- /dev/null +++ b/security/lxqt-sudo/Makefile @@ -0,0 +1,31 @@ +# $NetBSD: Makefile,v 1.1 2020/04/25 18:24:57 gutteridge Exp $ + +DISTNAME= lxqt-sudo-0.14.1 +CATEGORIES= security +MASTER_SITES= https://downloads.lxqt.org/downloads/lxqt-sudo/0.14.1/ +EXTRACT_SUFX= .tar.xz + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://lxqt.org/ +COMMENT= LXQt GUI frontend for sudo +LICENSE= gnu-lgpl-v2.1 + +USE_CMAKE= yes +USE_TOOLS+= pkg-config +USE_LANGUAGES= c c++ + +CONFIGURE_DIRS= build +CMAKE_ARG_PATH= .. + +CMAKE_ARGS+= -DMSK_INSTALL_INCLUDES=/include + +pre-configure: + ${MKDIR} -p ${WRKSRC}/build + +TOOL_DEPENDS+= lxqt-build-tools-[0-9]*:../../devel/lxqt-build-tools +TOOL_DEPENDS+= qt5-qttools-[0-9]*:../../x11/qt5-qttools +DEPENDS+= sudo-[0-9]*:../../security/sudo + +.include "../../x11/qt5-qtbase/buildlink3.mk" +.include "../../x11/liblxqt/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/security/lxqt-sudo/PLIST b/security/lxqt-sudo/PLIST new file mode 100644 index 00000000000..309fdc58ddc --- /dev/null +++ b/security/lxqt-sudo/PLIST @@ -0,0 +1,35 @@ +@comment $NetBSD: PLIST,v 1.1 2020/04/25 18:24:57 gutteridge Exp $ +bin/lxqt-sudo +bin/lxsu +bin/lxsudo +man/man1/lxqt-sudo.1 +man/man1/lxsu.1 +man/man1/lxsudo.1 +share/lxqt/translations/lxqt-sudo/lxqt-sudo_ar.qm +share/lxqt/translations/lxqt-sudo/lxqt-sudo_ca.qm +share/lxqt/translations/lxqt-sudo/lxqt-sudo_cs.qm +share/lxqt/translations/lxqt-sudo/lxqt-sudo_cy.qm +share/lxqt/translations/lxqt-sudo/lxqt-sudo_da.qm +share/lxqt/translations/lxqt-sudo/lxqt-sudo_de.qm +share/lxqt/translations/lxqt-sudo/lxqt-sudo_el.qm +share/lxqt/translations/lxqt-sudo/lxqt-sudo_es.qm +share/lxqt/translations/lxqt-sudo/lxqt-sudo_fi.qm +share/lxqt/translations/lxqt-sudo/lxqt-sudo_fr.qm +share/lxqt/translations/lxqt-sudo/lxqt-sudo_gl.qm +share/lxqt/translations/lxqt-sudo/lxqt-sudo_he.qm +share/lxqt/translations/lxqt-sudo/lxqt-sudo_hu.qm +share/lxqt/translations/lxqt-sudo/lxqt-sudo_id.qm +share/lxqt/translations/lxqt-sudo/lxqt-sudo_it.qm +share/lxqt/translations/lxqt-sudo/lxqt-sudo_ja.qm +share/lxqt/translations/lxqt-sudo/lxqt-sudo_lt.qm +share/lxqt/translations/lxqt-sudo/lxqt-sudo_nb_NO.qm +share/lxqt/translations/lxqt-sudo/lxqt-sudo_nl.qm +share/lxqt/translations/lxqt-sudo/lxqt-sudo_pl.qm +share/lxqt/translations/lxqt-sudo/lxqt-sudo_pt.qm +share/lxqt/translations/lxqt-sudo/lxqt-sudo_ru.qm +share/lxqt/translations/lxqt-sudo/lxqt-sudo_sk.qm +share/lxqt/translations/lxqt-sudo/lxqt-sudo_tr.qm +share/lxqt/translations/lxqt-sudo/lxqt-sudo_uk.qm +share/lxqt/translations/lxqt-sudo/lxqt-sudo_vi.qm +share/lxqt/translations/lxqt-sudo/lxqt-sudo_zh_CN.qm +share/lxqt/translations/lxqt-sudo/lxqt-sudo_zh_TW.qm diff --git a/security/lxqt-sudo/distinfo b/security/lxqt-sudo/distinfo new file mode 100644 index 00000000000..7bf0fc2a9b2 --- /dev/null +++ b/security/lxqt-sudo/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2020/04/25 18:24:57 gutteridge Exp $ + +SHA1 (lxqt-sudo-0.14.1.tar.xz) = ba74c8b6047f8095fe825426e9d29abfaf34bf23 +RMD160 (lxqt-sudo-0.14.1.tar.xz) = bd712eb673239877759b1c3c88bc15592961adf4 +SHA512 (lxqt-sudo-0.14.1.tar.xz) = b2741ead9c03c2dddf878b7658316ad0ce170068aca413b48b2f614e6ee09e7494e9907f7bf46de09c84e50b75cd523b059d47f9a0d2be11b340824475ca9222 +Size (lxqt-sudo-0.14.1.tar.xz) = 30692 bytes +SHA1 (patch-sudo.cpp) = fbbc7cabe06d896ecb0ed2734f92d314ac9515c5 diff --git a/security/lxqt-sudo/patches/patch-sudo.cpp b/security/lxqt-sudo/patches/patch-sudo.cpp new file mode 100644 index 00000000000..a866b6e4f53 --- /dev/null +++ b/security/lxqt-sudo/patches/patch-sudo.cpp @@ -0,0 +1,20 @@ +$NetBSD: patch-sudo.cpp,v 1.1 2020/04/25 18:24:57 gutteridge Exp $ + +Make pty header conditional on Linux + +--- sudo.cpp.orig 2019-02-23 23:40:30.000000000 +0000 ++++ sudo.cpp +@@ -38,7 +38,13 @@ + #include + #include + #include ++#if defined(Q_OS_LINUX) + #include ++#else ++#include ++#include ++#include ++#endif + #include + #include + #include -- cgit v1.2.3