pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www Import gotosocial version 0.5.2 as www/gotosocial
details: https://anonhg.NetBSD.org/pkgsrc/rev/8c6a5c16e871
branches: trunk
changeset: 388458:8c6a5c16e871
user: nikita <nikita%pkgsrc.org@localhost>
date: Sun Nov 20 20:17:02 2022 +0000
description:
Import gotosocial version 0.5.2 as www/gotosocial
GoToSocial is an ActivityPub social network server written in Go.
With GoToSocial, you can keep in touch with syour friends, post,
read, and share images and articles.
GoToSocial provides a lightweight, costumizable and
safety-focused entryway to the Fediverse, and is comparabe
(but distinct from) existing projects such as Mastodon, Pleroma,
Friendica, and PixelFed.
diffstat:
www/Makefile | 3 +-
www/gotosocial/DESCR | 9 ++++
www/gotosocial/Makefile | 79 ++++++++++++++++++++++++++++++++++++++
www/gotosocial/PLIST | 74 +++++++++++++++++++++++++++++++++++
www/gotosocial/distinfo | 5 ++
www/gotosocial/files/gotosocial.sh | 49 +++++++++++++++++++++++
6 files changed, 218 insertions(+), 1 deletions(-)
diffs (253 lines):
diff -r da1067b01a51 -r 8c6a5c16e871 www/Makefile
--- a/www/Makefile Sun Nov 20 20:15:48 2022 +0000
+++ b/www/Makefile Sun Nov 20 20:17:02 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1647 2022/11/18 10:21:15 jperkin Exp $
+# $NetBSD: Makefile,v 1.1648 2022/11/20 20:17:02 nikita Exp $
#
COMMENT= Packages related to the World Wide Web
@@ -135,6 +135,7 @@
SUBDIR+= go-ffuf
SUBDIR+= go-minify
SUBDIR+= goaccess
+SUBDIR+= gotosocial
SUBDIR+= grafana
SUBDIR+= gtkasp2php
SUBDIR+= guile-haunt
diff -r da1067b01a51 -r 8c6a5c16e871 www/gotosocial/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/gotosocial/DESCR Sun Nov 20 20:17:02 2022 +0000
@@ -0,0 +1,9 @@
+GoToSocial is an ActivityPub social network server written in Go.
+
+With GoToSocial, you can keep in touch with syour friends, post,
+read, and share images and articles.
+
+GoToSocial provides a lightweight, costumizable and
+safety-focused entryway to the Fediverse, and is comparabe
+(but distinct from) existing projects such as Mastodon, Pleroma,
+Friendica, and PixelFed.
diff -r da1067b01a51 -r 8c6a5c16e871 www/gotosocial/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/gotosocial/Makefile Sun Nov 20 20:17:02 2022 +0000
@@ -0,0 +1,79 @@
+# $NetBSD: Makefile,v 1.1 2022/11/20 20:17:03 nikita Exp $
+
+DISTNAME= gotosocial-0.5.2-source-code
+PKGNAME= ${DISTNAME:S/-source-code//}
+MASTER_SITES= ${MASTER_SITE_GITHUB:=superseriousbusiness/}
+GITHUB_RELEASE= v0.5.2
+GITHUB_PROJECT= gotosocial
+CATEGORIES= www
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/superseriousbusiness/gotosocial/
+COMMENT= Fediverse server written in Go
+LICENSE= gnu-agpl-v3
+USE_TOOLS+= pax
+
+# release archive has no toplevel folder.
+EXTRACT_DIR= ${WRKDIR}/${PKGNAME}
+WRKSRC= ${EXTRACT_DIR}
+
+MAKE_ENV+= VERSION=${PKGVERSION_NOREV}
+#MAKE_ENV+= COMMIT=""
+BUILD_DEFS+= VARBASE
+
+.include "../../mk/bsd.prefs.mk"
+
+GOTOSOCIAL_USER?= gotosocial
+GOTOSOCIAL_GROUP?= gotosocial
+GOTOSOCIAL_CHROOT?= ${VARBASE}/chroot/gotosocial
+GOTOSOCIAL_DATA?= ${VARBASE}/www/gotosocial
+GOTOSOCIAL_DB?= ${VARBASE}/db/gotosocial
+
+PKG_GROUPS+= ${GOTOSOCIAL_GROUP}
+PKG_USERS+= ${GOTOSOCIAL_USER}:${GOTOSOCIAL_GROUP}
+
+EGDIR= ${PREFIX}/share/examples/${PKGBASE}
+PKG_SYSCONFSUBDIR= ${PKGBASE}
+
+RCD_SCRIPTS= gotosocial
+FILES_SUBST+= GOTOSOCIAL_CHROOT=${GOTOSOCIAL_CHROOT}
+FILES_SUBST+= GOTOSOCIAL_DATA=${GOTOSOCIAL_DATA}
+FILES_SUBST+= GOTOSOCIAL_DB=${GOTOSOCIAL_DB}
+FILES_SUBST+= GOTOSOCIAL_GROUP=${GOTOSOCIAL_GROUP}
+FILES_SUBST+= GOTOSOCIAL_USER=${GOTOSOCIAL_USER}
+FILES_SUBST+= EGDIR=${EGDIR}
+
+CONF_FILES+= ${EGDIR}/config.yaml ${PKG_SYSCONFDIR}/config.yaml
+
+SUBST_CLASSES+= cfg
+SUBST_MESSAGE.cfg= Fixing default paths in config
+SUBST_STAGE.cfg= pre-configure
+SUBST_FILES.cfg= example/config.yaml
+SUBST_SED.cfg= -e 's,./web/template/,${GOTOSOCIAL_DATA}/template/,g'
+SUBST_SED.cfg+= -e 's,./web/assets/,${GOTOSOCIAL_DATA}/assets/,g'
+SUBST_SED.cfg+= -e 's,./gotosocial/storage,"${GOTOSOCIAL_DB}/storage,g'
+
+# restricted to amd64:
+# https://gitlab.com/cznic/libc/-/issues/15
+# https://gitlab.com/cznic/libc/-/issues/12
+# https://gitlab.com/cznic/libc/-/issues/11
+# on FreeBSD, the modernc.org/* packages do not work on arm64:
+# "imports modernc.org/libc/errno: build constraints exclude all Go files in /usr/ports/net-im/gotosocial/work/gotosocial-0.5.2/vendor/modernc.org/libc/errno"
+ONLY_FOR_PLATFORM= *-*-x86_64
+
+do-build:
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} scripts/build.sh
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/gotosocial ${DESTDIR}/${PREFIX}/bin/
+ ${MKDIR} ${DESTDIR}/${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/example/config.yaml ${DESTDIR}/${EGDIR}/config.yaml
+ ${INSTALL_DATA} ${WRKSRC}/example/docker-compose/docker-compose.yaml ${DESTDIR}/${EGDIR}/docker-compose.yaml
+ ${INSTALL_DATA} ${WRKSRC}/example/gotosocial.service ${DESTDIR}/${EGDIR}/gotosocial.service
+ cd ${WRKSRC} && ${PAX} -rw web ${DESTDIR}/${EGDIR}
+
+do-test:
+ cd ${WRKSRC} && ./gotosocial --version
+
+.include "../../lang/go/go-module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r da1067b01a51 -r 8c6a5c16e871 www/gotosocial/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/gotosocial/PLIST Sun Nov 20 20:17:02 2022 +0000
@@ -0,0 +1,74 @@
+@comment $NetBSD: PLIST,v 1.1 2022/11/20 20:17:03 nikita Exp $
+bin/gotosocial
+share/examples/gotosocial/config.yaml
+share/examples/gotosocial/docker-compose.yaml
+share/examples/gotosocial/gotosocial.service
+share/examples/gotosocial/web/assets/Fork-Awesome/CONTRIBUTORS.md
+share/examples/gotosocial/web/assets/Fork-Awesome/LICENSES
+share/examples/gotosocial/web/assets/Fork-Awesome/css/fork-awesome.css
+share/examples/gotosocial/web/assets/Fork-Awesome/css/fork-awesome.min.css
+share/examples/gotosocial/web/assets/Fork-Awesome/css/fork-awesome.min.css.map
+share/examples/gotosocial/web/assets/Fork-Awesome/css/v5-compat.css
+share/examples/gotosocial/web/assets/Fork-Awesome/css/v5-compat.min.css
+share/examples/gotosocial/web/assets/Fork-Awesome/css/v5-compat.min.css.map
+share/examples/gotosocial/web/assets/Fork-Awesome/fonts/forkawesome-webfont.eot
+share/examples/gotosocial/web/assets/Fork-Awesome/fonts/forkawesome-webfont.svg
+share/examples/gotosocial/web/assets/Fork-Awesome/fonts/forkawesome-webfont.ttf
+share/examples/gotosocial/web/assets/Fork-Awesome/fonts/forkawesome-webfont.woff
+share/examples/gotosocial/web/assets/Fork-Awesome/fonts/forkawesome-webfont.woff2
+share/examples/gotosocial/web/assets/NotoSans-Bold.ttf
+share/examples/gotosocial/web/assets/NotoSans-Regular.ttf
+share/examples/gotosocial/web/assets/OFL.txt
+share/examples/gotosocial/web/assets/default_avatars/GoToSocial_icon1.png
+share/examples/gotosocial/web/assets/default_avatars/GoToSocial_icon2.png
+share/examples/gotosocial/web/assets/default_avatars/GoToSocial_icon3.png
+share/examples/gotosocial/web/assets/default_avatars/GoToSocial_icon4.png
+share/examples/gotosocial/web/assets/default_avatars/GoToSocial_icon5.png
+share/examples/gotosocial/web/assets/default_avatars/GoToSocial_icon6.png
+share/examples/gotosocial/web/assets/default_header.png
+share/examples/gotosocial/web/assets/logo.png
+share/examples/gotosocial/web/assets/mastodon.svg
+share/examples/gotosocial/web/assets/tusky.svg
+share/examples/gotosocial/web/source/.eslintrc.js
+share/examples/gotosocial/web/source/.gitignore
+share/examples/gotosocial/web/source/css/_colors.css
+share/examples/gotosocial/web/source/css/base.css
+share/examples/gotosocial/web/source/css/profile.css
+share/examples/gotosocial/web/source/css/status.css
+share/examples/gotosocial/web/source/dev-server.js
+share/examples/gotosocial/web/source/frontend/index.js
+share/examples/gotosocial/web/source/index.js
+share/examples/gotosocial/web/source/lib/split-css.js
+share/examples/gotosocial/web/source/lib/submit.js
+share/examples/gotosocial/web/source/package.json
+share/examples/gotosocial/web/source/panels/admin/README.md
+share/examples/gotosocial/web/source/panels/admin/blocks.js
+share/examples/gotosocial/web/source/panels/admin/index.js
+share/examples/gotosocial/web/source/panels/admin/settings.js
+share/examples/gotosocial/web/source/panels/admin/style.css
+share/examples/gotosocial/web/source/panels/base.css
+share/examples/gotosocial/web/source/panels/lib/oauth.js
+share/examples/gotosocial/web/source/panels/lib/panel.js
+share/examples/gotosocial/web/source/panels/user/basic.js
+share/examples/gotosocial/web/source/panels/user/index.js
+share/examples/gotosocial/web/source/panels/user/languages.js
+share/examples/gotosocial/web/source/panels/user/posts.js
+share/examples/gotosocial/web/source/panels/user/security.js
+share/examples/gotosocial/web/source/panels/user/style.css
+share/examples/gotosocial/web/source/yarn.lock
+share/examples/gotosocial/web/template/404.tmpl
+share/examples/gotosocial/web/template/authorize.tmpl
+share/examples/gotosocial/web/template/confirmed.tmpl
+share/examples/gotosocial/web/template/email_confirm_html.tmpl
+share/examples/gotosocial/web/template/email_confirm_text.tmpl
+share/examples/gotosocial/web/template/email_reset_html.tmpl
+share/examples/gotosocial/web/template/email_reset_text.tmpl
+share/examples/gotosocial/web/template/error.tmpl
+share/examples/gotosocial/web/template/footer.tmpl
+share/examples/gotosocial/web/template/frontend.tmpl
+share/examples/gotosocial/web/template/header.tmpl
+share/examples/gotosocial/web/template/index.tmpl
+share/examples/gotosocial/web/template/profile.tmpl
+share/examples/gotosocial/web/template/sign-in.tmpl
+share/examples/gotosocial/web/template/status.tmpl
+share/examples/gotosocial/web/template/thread.tmpl
diff -r da1067b01a51 -r 8c6a5c16e871 www/gotosocial/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/gotosocial/distinfo Sun Nov 20 20:17:02 2022 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2022/11/20 20:17:03 nikita Exp $
+
+BLAKE2s (gotosocial-0.5.2-source-code.tar.gz) = 895045b9320464f7507fa2476a0ebb0a32878090a5e34b4ac47575d5972640e6
+SHA512 (gotosocial-0.5.2-source-code.tar.gz) = fa6be579f34084708f6101a2ff36f0b009819d5c3955ebe3801a97a159e64776134346e06f9403e188de01b7fd82ea475eecd016692a102146acba6a6a68e660
+Size (gotosocial-0.5.2-source-code.tar.gz) = 52861407 bytes
diff -r da1067b01a51 -r 8c6a5c16e871 www/gotosocial/files/gotosocial.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/gotosocial/files/gotosocial.sh Sun Nov 20 20:17:02 2022 +0000
@@ -0,0 +1,49 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: gotosocial.sh,v 1.1 2022/11/20 20:17:03 nikita Exp $
+#
+# PROVIDE: gotosocial
+# REQUIRE: NETWORKING DAEMON
+# KEYWORD: chrootdir
+
+if @TEST@ -f @SYSCONFBASE@/rc.subr; then
+ . @SYSCONFBASE@/rc.subr
+fi
+
+name="gotosocial"
+rcvar=${name}
+
+command="@PREFIX@/bin/gotosocial"
+: ${gotosocial_config:=@PKG_SYSCONFDIR@/config.yaml}
+command_args="--config-path ${gotosocial_config} server start"
+required_files="${gotosocial_config}"
+
+start_precmd="gotosocial_precmd"
+
+gotosocial_precmd()
+{
+ if ! @TEST@ -f ${required_files}; then
+ warn "${required_files} does not exist."
+ return 1
+ fi
+ if ! @TEST@ -d @GOTOSOCIAL_CHROOT@; then
+ @MKDIR@ -m 0755 @GOTOSOCIAL_CHROOT@
+ fi
+ if ! @TEST@ -f @GOTOSOCIAL_DB@; then
+ @MKDIR@ -m 0755 @GOTOSOCIAL_DB@
+ fi
+ if ! @TEST@ -f @GOTOSOCIAL_DATA@; then
+ @MKDIR@ -m 0755 @GOTOSOCIAL_DATA@
+ fi
+ if ! @TEST@ -f @GOTOSOCIAL_DB@/storage/certs; then
+ @MKDIR@ -m 0755 @GOTOSOCIAL_DB@/storage/certs
+ fi
+ @CHOWN@ @GOTOSOCIAL_USER@:@GOTOSOCIAL_GROUP@ @GOTOSOCIAL_CHROOT@
+ # @CHOWN@ @GOTOSOCIAL_USER@:@GOTOSOCIAL_GROUP@ @GOTOSOCIAL_DATA@
+ @CP@ -R @EGDIR@/web/assets @GOTOSOCIAL_DATA@
+ #@CP@ -R @EGDIR@/web/source @GOTOSOCIAL_DATA@
+ @CP@ -R @EGDIR@/web/template @GOTOSOCIAL_DATA@
+}
+
+load_rc_config $name
+run_rc_command "$1"
Home |
Main Index |
Thread Index |
Old Index