diff --git a/net-im/gotosocial/Makefile b/net-im/gotosocial/Makefile index 74964af430bd..fb0ff7e70bb0 100644 --- a/net-im/gotosocial/Makefile +++ b/net-im/gotosocial/Makefile @@ -1,58 +1,58 @@ PORTNAME= gotosocial DISTVERSIONPREFIX= v -DISTVERSION= 0.2.2 +DISTVERSION= 0.3.4 CATEGORIES= net-im MAINTAINER= me+freebsd@igalic.co COMMENT= Golang fediverse server LICENSE= AGPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE ONLY_FOR_ARCHS= amd64 # Note: we don't use go:modules, because this project vendors all deps USES= go USE_RC_SUBR= ${PORTNAME} USE_GITHUB= yes GH_ACCOUNT= superseriousbusiness # When rebuilding yourself, please set this: -#GH_TAGNAME= 40be88ec609c9b5352cbb7d38fd70ff7c6a233a5 +#GH_TAGNAME= f848aaa81f04666dae29e0bb85ccf31d30574de7 USERS= gotosocial GROUPS= gotosocial DBDIR= /var/db/${PORTNAME} SUB_LIST= DBDIR="${DBDIR}" \ GROUP="${GROUPS}" \ USER="${USERS}" \ WWWDIR="${WWWDIR}" PLIST_SUB= WWWDIR="${WWWDIR}" # patch sample config for people who set a custom prefix .if "${PREFIX}" != "${LOCALBASE}" post-patch: @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' \ ${WRKSRC}/example/config.yaml .endif do-build: @(cd ${WRKSRC} && ${SETENV} \ VERSION=${DISTVERSION} COMMIT=${GH_TAGNAME} scripts/build.sh ) do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} \ ${STAGEDIR}${PREFIX}/bin/ ${MKDIR} ${STAGEDIR}${DOCSDIR} .for x in LICENSE README.md ${INSTALL_DATA} ${WRKSRC}/${x} \ ${STAGEDIR}${DOCSDIR} .endfor ${MKDIR} ${STAGEDIR}${ETCDIR} ${INSTALL_DATA} ${WRKSRC}/example/config.yaml \ ${STAGEDIR}${ETCDIR}/config.yaml.sample (cd ${WRKSRC}/web && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/ \ "! ( -path */gotosocial-styling* )") .include diff --git a/net-im/gotosocial/distinfo b/net-im/gotosocial/distinfo index 461eac9e5ab7..6ab84459863c 100644 --- a/net-im/gotosocial/distinfo +++ b/net-im/gotosocial/distinfo @@ -1,4 +1,3 @@ -TIMESTAMP = 1649099212 -SHA256 (superseriousbusiness-gotosocial-v0.2.2_GH0.tar.gz) = 73e83a9c6b3d104c621888176f5a554382ea372b0997b819e29a0389e515d6f4 -SIZE (superseriousbusiness-gotosocial-v0.2.2_GH0.tar.gz) = 40573276 - +TIMESTAMP = 1653574184 +SHA256 (superseriousbusiness-gotosocial-v0.3.4_GH0.tar.gz) = 2bc7baadd3e79d79e6628314ddfb4c6ef135729bf7488384e804f66d67e45961 +SIZE (superseriousbusiness-gotosocial-v0.3.4_GH0.tar.gz) = 48532595 diff --git a/net-im/gotosocial/files/gotosocial.in b/net-im/gotosocial/files/gotosocial.in index 8e768672c3d3..fcfd961adcf5 100755 --- a/net-im/gotosocial/files/gotosocial.in +++ b/net-im/gotosocial/files/gotosocial.in @@ -1,49 +1,49 @@ #!/bin/sh # PROVIDE: gotosocial # REQUIRE: DAEMON # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf to enable GotoSocial # # gotosocial_enable (bool): Set it to YES to enable gotosocial. # Default is "NO". # gotosocial_user (user): Set user to run gotosocial. # Default is "gotosocial". # gotosocial_group (group): Set group to run gotosocial. # Default is "gotosocial". # gotosocial_config (file): Set gotosocial config file. # Default is "%%PREFIX%%/etc/gotosocial/config.yaml". # gotosocial_dir (dir): Set DB and certificate storage dir # Default is "/var/db/gotosocial/". . /etc/rc.subr name=gotosocial rcvar=gotosocial_enable desc="Golang fediverse server" load_rc_config "$name" : ${gotosocial_enable:=NO} : ${gotosocial_config:=%%PREFIX%%/etc/gotosocial/config.yaml} : ${gotosocial_user=%%USER%%} : ${gotosocial_group=%%GROUP%%} : ${gotosocial_dir=%%DBDIR%%} procname="%%PREFIX%%/bin/${name}" command=/usr/sbin/daemon -command_args="-c -T ${name} ${procname} --config-path ${gotosocial_config} server start" +command_args="-c -S -T ${name} ${procname} --config-path ${gotosocial_config} server start" start_precmd="${name}_prestart" gotosocial_prestart() { if [ ! -d ${gotosocial_dir} ]; then install -d -m 0750 -o ${gotosocial_user} -g ${gotosocial_group} \ ${gotosocial_dir} ${gotosocial_dir}/certs fi } run_rc_command "$1" diff --git a/net-im/gotosocial/pkg-plist b/net-im/gotosocial/pkg-plist index 1196663d0ef5..3ed021ac1e03 100644 --- a/net-im/gotosocial/pkg-plist +++ b/net-im/gotosocial/pkg-plist @@ -1,36 +1,44 @@ @sample etc/gotosocial/config.yaml.sample %%WWWDIR%%/assets/base.css %%WWWDIR%%/assets/colors.css %%WWWDIR%%/assets/Fork-Awesome/CONTRIBUTORS.md %%WWWDIR%%/assets/Fork-Awesome/css/fork-awesome.css %%WWWDIR%%/assets/Fork-Awesome/css/fork-awesome.min.css %%WWWDIR%%/assets/Fork-Awesome/css/fork-awesome.min.css.map %%WWWDIR%%/assets/Fork-Awesome/css/v5-compat.css %%WWWDIR%%/assets/Fork-Awesome/css/v5-compat.min.css %%WWWDIR%%/assets/Fork-Awesome/css/v5-compat.min.css.map %%WWWDIR%%/assets/Fork-Awesome/fonts/forkawesome-webfont.eot %%WWWDIR%%/assets/Fork-Awesome/fonts/forkawesome-webfont.svg %%WWWDIR%%/assets/Fork-Awesome/fonts/forkawesome-webfont.ttf %%WWWDIR%%/assets/Fork-Awesome/fonts/forkawesome-webfont.woff %%WWWDIR%%/assets/Fork-Awesome/fonts/forkawesome-webfont.woff2 %%WWWDIR%%/assets/Fork-Awesome/LICENSES %%WWWDIR%%/assets/logo.png %%WWWDIR%%/assets/status.css %%WWWDIR%%/assets/tusky.svg +%%WWWDIR%%/assets/default_avatars/GoToSocial_icon1.svg +%%WWWDIR%%/assets/default_avatars/GoToSocial_icon2.svg +%%WWWDIR%%/assets/default_avatars/GoToSocial_icon3.svg +%%WWWDIR%%/assets/default_avatars/GoToSocial_icon4.svg +%%WWWDIR%%/assets/default_avatars/GoToSocial_icon5.svg +%%WWWDIR%%/assets/default_avatars/GoToSocial_icon6.svg +%%WWWDIR%%/assets/profile.css +%%WWWDIR%%/template/profile.tmpl %%WWWDIR%%/template/404.tmpl %%WWWDIR%%/template/authorize.tmpl %%WWWDIR%%/template/confirmed.tmpl %%WWWDIR%%/template/email_confirm_html.tmpl %%WWWDIR%%/template/email_confirm_text.tmpl %%WWWDIR%%/template/email_reset_html.tmpl %%WWWDIR%%/template/email_reset_text.tmpl %%WWWDIR%%/template/error.tmpl %%WWWDIR%%/template/footer.tmpl %%WWWDIR%%/template/header.tmpl %%WWWDIR%%/template/index.tmpl %%WWWDIR%%/template/sign-in.tmpl %%WWWDIR%%/template/status.tmpl %%WWWDIR%%/template/thread.tmpl bin/gotosocial share/doc/gotosocial/LICENSE share/doc/gotosocial/README.md