diff --git a/www/authelia/Makefile b/www/authelia/Makefile index fe7ac3e31ed1..20a88b2245ca 100644 --- a/www/authelia/Makefile +++ b/www/authelia/Makefile @@ -1,36 +1,36 @@ PORTNAME= authelia DISTVERSIONPREFIX= v DISTVERSION= 4.39.20 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= www MASTER_SITES= https://github.com/authelia/authelia/releases/download/v${DISTVERSION}/:public_html DISTFILES= authelia-${DISTVERSIONFULL}-public_html${EXTRACT_SUFX}:public_html # html root directory needs to be built in a special way MAINTAINER= yuri@FreeBSD.org COMMENT= Single sign-on multi-factor portal for web apps WWW= https://www.authelia.com/ \ https://github.com/authelia/authelia LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE USES= cpe go:1.26+,modules GO_MODULE= github.com/authelia/authelia/v4 GO_TARGET= ./cmd/${PORTNAME} USER= root # 'nobody' doesn't work well because authelia attempts to remove files, etc. SUB_LIST= USER=${USER} SUB_FILES= pkg-message USE_RC_SUBR= ${PORTNAME} post-patch: # extract -public-html @${RM} -r ${WRKSRC}/internal/server/public_html @${MV} ${WRKDIR}/public_html ${WRKSRC}/internal/server @${CP} -r ${WRKSRC}/api ${WRKSRC}/internal/server/public_html/api post-install: # install the config file ${INSTALL_DATA} ${WRKSRC}/config.template.yml ${STAGEDIR}${PREFIX}/etc/authelia.yml.sample ${INSTALL_DATA} ${FILESDIR}/simplified-authelia.yml ${STAGEDIR}${PREFIX}/etc .include diff --git a/www/authelia/files/authelia.in b/www/authelia/files/authelia.in index a787924f9294..1ae1c1a8ef4c 100644 --- a/www/authelia/files/authelia.in +++ b/www/authelia/files/authelia.in @@ -1,25 +1,25 @@ #!/bin/sh # PROVIDE: authelia # REQUIRE: DAEMON NETWORKING # KEYWORD: shutdown # Add the following lines to /etc/rc.conf to enable authelia: # authelia_enable : set to "YES" to enable the daemon, default is "NO" . /etc/rc.subr name=authelia rcvar=authelia_enable load_rc_config $name authelia_enable=${authelia_enable:-"NO"} logfile="/var/log/${name}.log" procname=%%PREFIX%%/bin/authelia command="/usr/sbin/daemon" -command_args="-u %%USER%% -o ${logfile} -t ${name} %%PREFIX%%/bin/authelia --config %%PREFIX%%/etc/authelia.yml" +command_args="-u %%USER%% -o ${logfile} -t ${name} %%PREFIX%%/bin/authelia --config %%PREFIX%%/etc/authelia.yml --config.experimental.filters template" run_rc_command "$1"