Date: Fri, 8 Nov 2024 02:44:45 GMT From: Jose Alonso Cardenas Marquez <acm@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 344d75f100ce - main - sysutils/py-appjail-gui: New port: Graphical User Interface for AppJail Message-ID: <202411080244.4A82ijEU003948@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by acm: URL: https://cgit.FreeBSD.org/ports/commit/?id=344d75f100ce138017c84fad8292ab4624e8dd34 commit 344d75f100ce138017c84fad8292ab4624e8dd34 Author: Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org> AuthorDate: 2024-11-08 02:43:30 +0000 Commit: Jose Alonso Cardenas Marquez <acm@FreeBSD.org> CommitDate: 2024-11-08 02:43:30 +0000 sysutils/py-appjail-gui: New port: Graphical User Interface for AppJail AppJail GUI is the graphical user interface for AppJail and Director, designed to be minimalistic, clean and with a basic plugin system. It can be used as a desktop application thanks to pywebview or simply through the web browser like any other NiceGUI application. WWW: https://github.com/DtxdF/appjail-gui PR: 282613 --- sysutils/Makefile | 1 + sysutils/py-appjail-gui/Makefile | 37 +++++++++++++++++ sysutils/py-appjail-gui/distinfo | 3 ++ sysutils/py-appjail-gui/files/appjail_gui.in | 59 ++++++++++++++++++++++++++++ sysutils/py-appjail-gui/pkg-descr | 4 ++ 5 files changed, 104 insertions(+) diff --git a/sysutils/Makefile b/sysutils/Makefile index 97666541984b..0661ed205774 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -1010,6 +1010,7 @@ SUBDIR += py-ansible-core SUBDIR += py-ansible-lint SUBDIR += py-ansible-runner + SUBDIR += py-appjail-gui SUBDIR += py-azure-cli SUBDIR += py-azure-cli-acr SUBDIR += py-azure-cli-base diff --git a/sysutils/py-appjail-gui/Makefile b/sysutils/py-appjail-gui/Makefile new file mode 100644 index 000000000000..ce9e02e5127d --- /dev/null +++ b/sysutils/py-appjail-gui/Makefile @@ -0,0 +1,37 @@ +PORTNAME= appjail-gui +DISTVERSIONPREFIX= v +DISTVERSION= 0.1.0 +CATEGORIES= sysutils www python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= DtxdF@disroot.org +COMMENT= Graphical User Interface for AppJail +WWW= https://github.com/DtxdF/${PORTNAME} + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}commentjson>=0:devel/py-commentjson@${PY_FLAVOR} + +USES= python +USE_GITHUB= yes +GH_ACCOUNT= DtxdF +USE_PYTHON= autoplist distutils + +USE_RC_SUBR= appjail_gui + +NO_ARCH= yes + +SUB_LIST= PYTHON_CMD=${PYTHON_CMD} + +OPTIONS_DEFAULT= NICEGUI_GUI +OPTIONS_SINGLE= NICEGUI +OPTIONS_SINGLE_NICEGUI= NICEGUI_GUI NICEGUI_NOGUI + +NICEGUI_GUI_DESC= Use www/py-nicegui +NICEGUI_NOGUI_DESC= Use www/py-nicegui-nogui + +NICEGUI_GUI_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nicegui>=0:www/py-nicegui@${PY_FLAVOR} +NICEGUI_NOGUI_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nicegui-nogui>=0:www/py-nicegui-nogui@${PY_FLAVOR} + +.include <bsd.port.mk> diff --git a/sysutils/py-appjail-gui/distinfo b/sysutils/py-appjail-gui/distinfo new file mode 100644 index 000000000000..d68d59a456fb --- /dev/null +++ b/sysutils/py-appjail-gui/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1730960790 +SHA256 (DtxdF-appjail-gui-v0.1.0_GH0.tar.gz) = 9c0c5e99e6eb2baa42896179686f498f19c1ae9fe8843ec266e0b511dd0202b8 +SIZE (DtxdF-appjail-gui-v0.1.0_GH0.tar.gz) = 477039 diff --git a/sysutils/py-appjail-gui/files/appjail_gui.in b/sysutils/py-appjail-gui/files/appjail_gui.in new file mode 100644 index 000000000000..80452c544764 --- /dev/null +++ b/sysutils/py-appjail-gui/files/appjail_gui.in @@ -0,0 +1,59 @@ +#!/bin/sh +# +# PROVIDE: appjail_gui +# REQUIRE: NETWORKING LOGIN +# KEYWORD: shutdown +# +# Configuration settings for appjail-gui in /etc/rc.conf +# +# appjail_gui_enable (bool): Enable appjail_gui. (default=NO) +# appjail_gui_user (str): User to run appjail-gui. (default=root) +# appjail_gui_log (str): Send stdout/stderr to a file. (default=/var/log/appjail_gui/appjail_gui.log) +# appjail_gui_flags (str): Flags used for appjail-gui. (default=) +# + +. /etc/rc.subr + +name=appjail_gui +rcvar=appjail_gui_enable + +load_rc_config $name + +: ${appjail_gui_enable:=NO} +: ${appjail_gui_user:=root} +: ${appjail_gui_log:=/var/log/${name}.log} + +pidfile="/var/run/${name}/${name}.pid" +procname="%%PREFIX%%/bin/appjail-gui" +command_interpreter="%%PYTHON_CMD%%" +start_precmd="appjail_gui_precmd" +start_cmd="appjail_gui_start" + +appjail_gui_precmd() +{ + local piddir + piddir=`dirname "${pidfile}"` + + if [ ! -d "${piddir}" ]; then + mkdir -p "${piddir}" + chown "${appjail_gui_user}" "${piddir}" + fi + + if [ ! -f "${appjail_gui_log}" ]; then + install -o ${appjail_gui_user} -m 640 /dev/null ${appjail_gui_log} + fi +} + +appjail_gui_start() +{ + echo "Starting appjail-gui." + /usr/sbin/daemon -c \ + -p "${pidfile}" \ + -o "${appjail_gui_log}" \ + -u "${appjail_gui_user}" \ + "${command_interpreter}" \ + "${procname}" \ + ${appjail_gui_flags} +} + +run_rc_command "$1" diff --git a/sysutils/py-appjail-gui/pkg-descr b/sysutils/py-appjail-gui/pkg-descr new file mode 100644 index 000000000000..49b6a43b01bc --- /dev/null +++ b/sysutils/py-appjail-gui/pkg-descr @@ -0,0 +1,4 @@ +AppJail GUI is the graphical user interface for AppJail and Director, +designed to be minimalistic, clean and with a basic plugin system. +It can be used as a desktop application thanks to pywebview or +simply through the web browser like any other NiceGUI application.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202411080244.4A82ijEU003948>