From 23a61e1d598118ce77ca4fafb80129d70f5e92b1 Mon Sep 17 00:00:00 2001 From: Ben Wilber Date: Fri, 12 Apr 2024 04:54:36 +0000 Subject: [PATCH] add x11/xsecurelock --- x11/xsecurelock/Makefile | 62 +++++++++++++++++++++++++++++++++++++++ x11/xsecurelock/distinfo | 3 ++ x11/xsecurelock/pkg-descr | 3 ++ x11/xsecurelock/pkg-plist | 17 +++++++++++ 4 files changed, 85 insertions(+) create mode 100644 x11/xsecurelock/Makefile create mode 100644 x11/xsecurelock/distinfo create mode 100644 x11/xsecurelock/pkg-descr create mode 100644 x11/xsecurelock/pkg-plist diff --git a/x11/xsecurelock/Makefile b/x11/xsecurelock/Makefile new file mode 100644 index 000000000000..087b591d8cac --- /dev/null +++ b/x11/xsecurelock/Makefile @@ -0,0 +1,62 @@ +PORTNAME= xsecurelock +PORTVERSION= 1.9.0 +DISTVERSIONPREFIX= v +CATEGORIES= x11 + +MAINTAINER= ben@desync.com +COMMENT= X11 screen locker with focus on security (and fun) +WWW= https://github.com/google/xsecurelock + +LICENSE= APACHE20 + +USES= autoreconf localbase xorg pkgconfig +USE_XORG= x11 xmuu xcomposite xft xrandr xorgproto xscrnsaver +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --with-pam-service-name=${XSECURELOCK_PAM_SERVICE} \ + --without-pandoc +PORTDOCS= README.md +PORTEXAMPLES= doc/examples/* + +USE_GITHUB= yes +GH_ACCOUNT= google + +OPTIONS_DEFINE= DOCS EXAMPLES MPLAYER MPV XSCREENSAVER +OPTIONS_MULTI= AUTHPROTO +OPTIONS_MULTI_AUTHPROTO= HTPASSWD PAM PAMTESTER +OPTIONS_DEFAULT= DOCS EXAMPLES PAM MPV PAM XSCREENSAVER +OPTIONS_SUB= yes + +HTPASSWD_DESC= Authenticate using an .htpasswd style file (authproto_htpasswd) +HTPASSWD_CONFIGURE_WITH= htpasswd=${LOCALBASE}/bin/htpasswd +HTPASSWD_RUN_DEPENDS= ${LOCALBASE}/bin/htpasswd:www/apache24 + +PAM_DESC= Authenticate via PAM (authproto_pam) +PAM_CONFIGURE_WITH= pam + +PAMTESTER_DESC= Authenticate via pamtester (authproto_pamtester) +PAMTESTER_CONFIGURE_WITH= pamtester=${LOCALBASE}/bin/pamtester +PAMTESTER_RUN_DEPENDS= pamtester:security/pamtester + +MPLAYER_DESC= Support mplayer as a screensaver (saver_mplayer) +MPLAYER_CONFIGURE_WITH= mpv=${LOCALBASE}/bin/mplayer +MPLAYER_RUN_DEPENDS= ${LOCALBASE}/bin/mplayer:multimedia/mplayer + +MPV_DESC= Support mpv as a screensaver (saver_mpv) +MPV_CONFIGURE_WITH= mpv=${LOCALBASE}/bin/mpv +MPV_RUN_DEPENDS= ${LOCALBASE}/bin/mpv:multimedia/mpv + +XSCREENSAVER_DESC= Support xscreensaver as a.. screensaver (saver_xscreensaver) +XSCREENSAVER_CONFIGURE_WITH= xscreensaver=${LOCALBASE}/libexec/xscreensaver +XSCREENSAVER_RUN_DEPENDS= xscreensaver:x11/xscreensaver + +XSECURELOCK_PAM_SERVICE?= other + +post-patch: + @${ECHO} 'const char *const git_version = "'${DISTVERSIONPREFIX}${PORTVERSION}-freebsd'";' \ + > ${WRKSRC}/version.c + +post-install: + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${MV} ${STAGEDIR}${DOCSDIR}/examples/* ${STAGEDIR}${EXAMPLESDIR}/ + +.include diff --git a/x11/xsecurelock/distinfo b/x11/xsecurelock/distinfo new file mode 100644 index 000000000000..e4dbd250ee28 --- /dev/null +++ b/x11/xsecurelock/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1712873801 +SHA256 (google-xsecurelock-v1.9.0_GH0.tar.gz) = 22aca05799326681bf296a288182d7b28066ff2d4db26d09bd7b2dfe8405269e +SIZE (google-xsecurelock-v1.9.0_GH0.tar.gz) = 117317 diff --git a/x11/xsecurelock/pkg-descr b/x11/xsecurelock/pkg-descr new file mode 100644 index 000000000000..58890c40111f --- /dev/null +++ b/x11/xsecurelock/pkg-descr @@ -0,0 +1,3 @@ +XSecureLock is an X11 screen lock utility designed with the primary goal of +security. Security is achieved using a modular design to avoid the usual +pitfalls of screen locking utility design on X11. diff --git a/x11/xsecurelock/pkg-plist b/x11/xsecurelock/pkg-plist new file mode 100644 index 000000000000..023979309144 --- /dev/null +++ b/x11/xsecurelock/pkg-plist @@ -0,0 +1,17 @@ +bin/xsecurelock +libexec/xsecurelock/auth_x11 +%%PAMTESTER%%libexec/xsecurelock/authproto_pamtester +%%HTPASSWD%%libexec/xsecurelock/authproto_htpasswd +libexec/xsecurelock/dimmer +libexec/xsecurelock/pgrp_placeholder +libexec/xsecurelock/saver_blank +%%MPV%%libexec/xsecurelock/saver_mpv +%%MPLAYER%%libexec/xsecurelock/saver_mplayer +libexec/xsecurelock/saver_multiplex +%%XSCREENSAVER%%libexec/xsecurelock/saver_xscreensaver +libexec/xsecurelock/until_nonidle +%%PORTDOCS%%%%DOCSDIR%%/CONTRIBUTING +%%PORTDOCS%%%%DOCSDIR%%/LICENSE +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/saver_livestreams +@mode 4555 +%%PAM%%libexec/xsecurelock/authproto_pam -- 2.44.0