pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/www/gotosocial



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Mon Oct 21 11:18:34 UTC 2024

Modified Files:
        pkgsrc/www/gotosocial: Makefile PLIST distinfo options.mk
Added Files:
        pkgsrc/www/gotosocial/files/smf: manifest.xml

Log Message:
gotosocial: Update to 0.17.0.

Based on patch and files provided by Joel Carnat, with a bunch of additional
cleanups to use pkgsrc norms by myself.

The changelog is large, available in full from:

  https://github.com/superseriousbusiness/gotosocial/releases/tag/v0.17.0

Release highlights

  * Interaction policies: This release gives you the ability to set interaction
    policies on your statuses using the settings panel. Interaction policies
    let you determine who can reply to, like, or boost your statuses. You can
    accept or reject interactions as you wish; accepted replies will be added
    to your replies collection, and unwanted replies will be dropped. This
    feature is still a work-in-progress as we will almost certainly have some
    kinks to work out in terms of implementation etc, but we wanted to get it
    into people's hands as quickly as possible.

  * Much wider range of support for different media types: In this release
    we've embedded a webassembly build of ffmpeg into the GoToSocial binary, so
    that users can post many different types of media than previously,
    including mp3, flac, and other audio types, and many more video types.
    Admins: you don't need to have ffmpeg installed on your server for this to
    work.

  * Audio player: to complement the new media types, we adapted our current
    video player to also play audio, so people visiting your profile can play
    MP3s and FLACs. Album art is supported when embedded in the audio file!

  * Header/avatar alt text: You can now set alt-text for your avatar + header
    images, so that screenreader users visiting your profile can read a
    description of your beautiful face.

  * Better threading model for statuses: On the web view of a thread,
    conversations are now indented at different levels, to make it easier to
    see who's replying to whom.

  * Prefers-reduced-motion is now supported, so that folks with animations
    turned off in their operating system or browser aren't confronted with lots
    of animation when they open your profile.

  * Conversations view: You can now view a list of your direct message
    conversations, making it much easier to keep track of who you're talking
    to.

  * Import/export csv files: It's now possible to import Mastodon-compatible
    CSV files for accounts you follow and accounts you block, making it much
    easier to migrate across instances. Export of these files is supported too.

  * Exclusive lists: You can now mark lists as "exclusive", which means that
    posts from accounts in an exclusive list will show up only in that list and
    not in your home timeline.

  * Show/hide posts on your profile: Previously only Public posts were shown on
    your web profile. This is still the default, but you can now choose to show
    unlisted posts on your web profile too (the Mastodon default), or to show
    no posts at all.

  * Lots of new themes: solarized, brutalist, ecks pee, and more.

  * Store worker queue on restart: when you stop the instance, pending tasks
    are stored into the database, and loaded again when you start up the
    instance, so that no tasks get lost between restarts.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 pkgsrc/www/gotosocial/Makefile
cvs rdiff -u -r1.14 -r1.15 pkgsrc/www/gotosocial/PLIST
cvs rdiff -u -r1.18 -r1.19 pkgsrc/www/gotosocial/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/www/gotosocial/options.mk
cvs rdiff -u -r0 -r1.1 pkgsrc/www/gotosocial/files/smf/manifest.xml

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/www/gotosocial/Makefile
diff -u pkgsrc/www/gotosocial/Makefile:1.42 pkgsrc/www/gotosocial/Makefile:1.43
--- pkgsrc/www/gotosocial/Makefile:1.42 Fri Sep  6 18:49:00 2024
+++ pkgsrc/www/gotosocial/Makefile      Mon Oct 21 11:18:34 2024
@@ -1,29 +1,25 @@
-# $NetBSD: Makefile,v 1.42 2024/09/06 18:49:00 bsiegert Exp $
+# $NetBSD: Makefile,v 1.43 2024/10/21 11:18:34 jperkin Exp $
 
-GOTOVER=       0.16.0
-DISTNAME=      gotosocial-${GOTOVER}-source-code
-PKGREVISION=   4
-PKGNAME=       ${DISTNAME:S/-source-code//}
+DISTNAME=      gotosocial-0.17.0
 CATEGORIES=    www
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=superseriousbusiness/}
+GITHUB_TAG=    v${PKGVERSION_NOREV}
 
 MAINTAINER=    nikita%NetBSD.org@localhost
 HOMEPAGE=      https://github.com/superseriousbusiness/gotosocial/
 COMMENT=       Fediverse server written in Go
 LICENSE=       gnu-agpl-v3
-USE_TOOLS+=    pax tar
-
-DISTFILES=     gotosocial-${GOTOVER}-source-code.tar.gz
-DISTFILES+=    gotosocial_${GOTOVER}_web-assets.tar.gz
 
-SITES.gotosocial-${GOTOVER}-source-code.tar.gz= \
-       -https://github.com/superseriousbusiness/gotosocial/releases/download/v${GOTOVER}/gotosocial-${GOTOVER}-source-code.tar.gz
+USE_TOOLS+=    pax tar
 
-SITES.gotosocial_${GOTOVER}_web-assets.tar.gz= \
-       -https://github.com/superseriousbusiness/gotosocial/releases/download/v${GOTOVER}/gotosocial_${GOTOVER}_web-assets.tar.gz
+# It's not clear that the extra assets tarball is actually necessary, as the
+# source code already bundles 99% of the same files.  Verify that the addition
+# of "dist/" and "swagger.yaml" are worth the additional download and setup.
+ASSETS=                ${DISTNAME:S/-/_/}_web-assets.tar.gz
+DISTFILES:=    ${DEFAULT_DISTFILES} ${ASSETS}
+EXTRACT_ONLY=  ${DISTFILES}
 
-# release archive has no toplevel folder.
-EXTRACT_DIR=   ${WRKDIR}/${PKGNAME}
-WRKSRC=                ${EXTRACT_DIR}
+SITES.${ASSETS}=       ${MASTER_SITES:=${GITHUB_PROJECT}/releases/download/${GITHUB_TAG}/}
 
 MAKE_ENV+=     VERSION=${PKGVERSION_NOREV}
 BUILD_DEFS+=   VARBASE
@@ -68,27 +64,8 @@ SUBST_FILES.systemdpaths=    example/gotoso
 SUBST_SED.systemdpaths=                -e 's,/gotosocial/gotosocial,${PREFIX}/bin/gotosocial,g'
 SUBST_SED.systemdpaths+=       -e 's,config.yaml,${PKG_SYSCONFDIR}/config.yaml,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
-# https://github.com/superseriousbusiness/gotosocial/issues/1753
-# 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"
-# BUG: does not build on Sun
-# to unblock: https://github.com/ncruces/go-sqlite3/issues/85
-# Switched to wasmsqlite3, which is maybe still restricted to amd64 + aarch64?
-# There was initially an issue with that driver on the BSD family but that was resolved in the driver before we cut this release.
-# It's safe to use and expected to perform just fine.
-# We're currently keeping it behind a go build tag, wasmsqlite3, and we do consider it slightly experimental.
-# However, the plan is to switch to this Soon™ and a number of people including two of the maintainers run this build on their own instances without any issues.
-# quote from https://github.com/NetBSD/pkgsrc/issues/143
-#ONLY_FOR_PLATFORM=    *-*-x86_64
-
 do-build:
        cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} scripts/build.sh
-       # cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} && \
-       # go build -o gotosocial ./cmd/gotosocial
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/gotosocial ${DESTDIR}/${PREFIX}/bin/
@@ -96,8 +73,8 @@ do-install:
        ${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} && ${TAR} -xzf ${DISTDIR}/gotosocial_0.15.0_web-assets.tar.gz
        cd ${WRKSRC} && ${PAX} -rw web ${DESTDIR}/${EGDIR}
+       cd ${WRKDIR} && ${PAX} -rw web ${DESTDIR}/${EGDIR}
 
 do-test:
        cd ${WRKSRC} && ./gotosocial --version

Index: pkgsrc/www/gotosocial/PLIST
diff -u pkgsrc/www/gotosocial/PLIST:1.14 pkgsrc/www/gotosocial/PLIST:1.15
--- pkgsrc/www/gotosocial/PLIST:1.14    Sun Jun 16 16:52:43 2024
+++ pkgsrc/www/gotosocial/PLIST Mon Oct 21 11:18:34 2024
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.14 2024/06/16 16:52:43 nikita Exp $
+@comment $NetBSD: PLIST,v 1.15 2024/10/21 11:18:34 jperkin Exp $
 bin/gotosocial
 share/examples/gotosocial/config.yaml
 share/examples/gotosocial/docker-compose.yaml
@@ -17,13 +17,14 @@ share/examples/gotosocial/web/assets/For
 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/LICENSE
-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/activitypub_light.svg
+share/examples/gotosocial/web/assets/default_avatars/GoToSocial_icon1.webp
+share/examples/gotosocial/web/assets/default_avatars/GoToSocial_icon2.webp
+share/examples/gotosocial/web/assets/default_avatars/GoToSocial_icon3.webp
+share/examples/gotosocial/web/assets/default_avatars/GoToSocial_icon4.webp
+share/examples/gotosocial/web/assets/default_avatars/GoToSocial_icon5.webp
+share/examples/gotosocial/web/assets/default_avatars/GoToSocial_icon6.webp
+share/examples/gotosocial/web/assets/default_header.webp
 share/examples/gotosocial/web/assets/dist/_colors.css
 share/examples/gotosocial/web/assets/dist/about.css
 share/examples/gotosocial/web/assets/dist/base.css
@@ -38,20 +39,37 @@ share/examples/gotosocial/web/assets/dis
 share/examples/gotosocial/web/assets/dist/tag.css
 share/examples/gotosocial/web/assets/dist/thread.css
 share/examples/gotosocial/web/assets/feditext.svg
+share/examples/gotosocial/web/assets/fonts/Atkinson-Hyperlegible-Bold-102.woff
+share/examples/gotosocial/web/assets/fonts/Atkinson-Hyperlegible-Bold-102a.woff2
+share/examples/gotosocial/web/assets/fonts/Atkinson-Hyperlegible-BoldItalic-102.woff
+share/examples/gotosocial/web/assets/fonts/Atkinson-Hyperlegible-BoldItalic-102a.woff2
+share/examples/gotosocial/web/assets/fonts/Atkinson-Hyperlegible-Italic-102.woff
+share/examples/gotosocial/web/assets/fonts/Atkinson-Hyperlegible-Italic-102a.woff2
+share/examples/gotosocial/web/assets/fonts/Atkinson-Hyperlegible-Regular-102.woff
+share/examples/gotosocial/web/assets/fonts/Atkinson-Hyperlegible-Regular-102a.woff2
 share/examples/gotosocial/web/assets/fonts/OFL.txt
+share/examples/gotosocial/web/assets/fonts/noto-sans-mono-v30-latin-regular.woff2
 share/examples/gotosocial/web/assets/fonts/noto-sans-v27-latin-700.woff
 share/examples/gotosocial/web/assets/fonts/noto-sans-v27-latin-700.woff2
 share/examples/gotosocial/web/assets/fonts/noto-sans-v27-latin-regular.woff
 share/examples/gotosocial/web/assets/fonts/noto-sans-v27-latin-regular.woff2
 share/examples/gotosocial/web/assets/logo.png
 share/examples/gotosocial/web/assets/logo.svg
+share/examples/gotosocial/web/assets/logo.webp
 share/examples/gotosocial/web/assets/mastodon.svg
 share/examples/gotosocial/web/assets/plyr.svg
 share/examples/gotosocial/web/assets/swagger.yaml
 share/examples/gotosocial/web/assets/themes/blurple-dark.css
 share/examples/gotosocial/web/assets/themes/blurple-light.css
+share/examples/gotosocial/web/assets/themes/brutalist-dark.css
+share/examples/gotosocial/web/assets/themes/brutalist.css
+share/examples/gotosocial/web/assets/themes/ecks-pee.css
 share/examples/gotosocial/web/assets/themes/midnight-trip.css
+share/examples/gotosocial/web/assets/themes/moonlight-hunt.css
+share/examples/gotosocial/web/assets/themes/rain-forest.css
 share/examples/gotosocial/web/assets/themes/soft.css
+share/examples/gotosocial/web/assets/themes/solarized-dark.css
+share/examples/gotosocial/web/assets/themes/solarized-light.css
 share/examples/gotosocial/web/assets/themes/sunset-light.css
 share/examples/gotosocial/web/assets/tusky.svg
 share/examples/gotosocial/web/source/.browserslistrc
@@ -79,13 +97,13 @@ share/examples/gotosocial/web/source/set
 share/examples/gotosocial/web/source/settings/components/check-list.tsx
 share/examples/gotosocial/web/source/settings/components/combo-box.tsx
 share/examples/gotosocial/web/source/settings/components/error.tsx
-share/examples/gotosocial/web/source/settings/components/fake-profile.tsx
-share/examples/gotosocial/web/source/settings/components/fake-toot.tsx
 share/examples/gotosocial/web/source/settings/components/form/inputs.tsx
 share/examples/gotosocial/web/source/settings/components/form/mutation-button.tsx
 share/examples/gotosocial/web/source/settings/components/languages.tsx
 share/examples/gotosocial/web/source/settings/components/loading.tsx
 share/examples/gotosocial/web/source/settings/components/pageable-list.tsx
+share/examples/gotosocial/web/source/settings/components/profile.tsx
+share/examples/gotosocial/web/source/settings/components/status.tsx
 share/examples/gotosocial/web/source/settings/components/user-logout-card.tsx
 share/examples/gotosocial/web/source/settings/components/username.tsx
 share/examples/gotosocial/web/source/settings/index.tsx
@@ -121,21 +139,26 @@ share/examples/gotosocial/web/source/set
 share/examples/gotosocial/web/source/settings/lib/query/oauth/index.ts
 share/examples/gotosocial/web/source/settings/lib/query/query-modifiers.ts
 share/examples/gotosocial/web/source/settings/lib/query/transforms.ts
+share/examples/gotosocial/web/source/settings/lib/query/user/export-import.ts
 share/examples/gotosocial/web/source/settings/lib/query/user/index.ts
+share/examples/gotosocial/web/source/settings/lib/query/user/interactions.ts
 share/examples/gotosocial/web/source/settings/lib/types/account.ts
 share/examples/gotosocial/web/source/settings/lib/types/custom-emoji.ts
 share/examples/gotosocial/web/source/settings/lib/types/debug.ts
 share/examples/gotosocial/web/source/settings/lib/types/domain-permission.ts
 share/examples/gotosocial/web/source/settings/lib/types/http-header-permissions.ts
 share/examples/gotosocial/web/source/settings/lib/types/instance.ts
+share/examples/gotosocial/web/source/settings/lib/types/interaction.ts
 share/examples/gotosocial/web/source/settings/lib/types/migration.ts
 share/examples/gotosocial/web/source/settings/lib/types/perm.ts
 share/examples/gotosocial/web/source/settings/lib/types/query.ts
 share/examples/gotosocial/web/source/settings/lib/types/report.ts
 share/examples/gotosocial/web/source/settings/lib/types/rules.ts
+share/examples/gotosocial/web/source/settings/lib/types/status.ts
 share/examples/gotosocial/web/source/settings/lib/types/theme.ts
 share/examples/gotosocial/web/source/settings/lib/types/user.ts
 share/examples/gotosocial/web/source/settings/lib/util/domain-permission.ts
+share/examples/gotosocial/web/source/settings/lib/util/index.ts
 share/examples/gotosocial/web/source/settings/redux/checklist.ts
 share/examples/gotosocial/web/source/settings/redux/oauth.ts
 share/examples/gotosocial/web/source/settings/redux/store.ts
@@ -165,7 +188,6 @@ share/examples/gotosocial/web/source/set
 share/examples/gotosocial/web/source/settings/views/admin/router.tsx
 share/examples/gotosocial/web/source/settings/views/moderation/accounts/detail/actions.tsx
 share/examples/gotosocial/web/source/settings/views/moderation/accounts/detail/index.tsx
-share/examples/gotosocial/web/source/settings/views/moderation/accounts/detail/util.tsx
 share/examples/gotosocial/web/source/settings/views/moderation/accounts/index.tsx
 share/examples/gotosocial/web/source/settings/views/moderation/accounts/pending/index.tsx
 share/examples/gotosocial/web/source/settings/views/moderation/accounts/search/index.tsx
@@ -177,20 +199,32 @@ share/examples/gotosocial/web/source/set
 share/examples/gotosocial/web/source/settings/views/moderation/domain-permissions/process.tsx
 share/examples/gotosocial/web/source/settings/views/moderation/menu.tsx
 share/examples/gotosocial/web/source/settings/views/moderation/reports/detail.tsx
-share/examples/gotosocial/web/source/settings/views/moderation/reports/overview.tsx
+share/examples/gotosocial/web/source/settings/views/moderation/reports/search.tsx
 share/examples/gotosocial/web/source/settings/views/moderation/router.tsx
+share/examples/gotosocial/web/source/settings/views/user/emailpassword.tsx
+share/examples/gotosocial/web/source/settings/views/user/export-import/export.tsx
+share/examples/gotosocial/web/source/settings/views/user/export-import/import.tsx
+share/examples/gotosocial/web/source/settings/views/user/export-import/index.tsx
+share/examples/gotosocial/web/source/settings/views/user/interactions/detail.tsx
+share/examples/gotosocial/web/source/settings/views/user/interactions/index.tsx
+share/examples/gotosocial/web/source/settings/views/user/interactions/search.tsx
+share/examples/gotosocial/web/source/settings/views/user/interactions/util.tsx
 share/examples/gotosocial/web/source/settings/views/user/menu.tsx
 share/examples/gotosocial/web/source/settings/views/user/migration.tsx
+share/examples/gotosocial/web/source/settings/views/user/posts/basic-settings/index.tsx
+share/examples/gotosocial/web/source/settings/views/user/posts/index.tsx
+share/examples/gotosocial/web/source/settings/views/user/posts/interaction-policy-settings/basic.tsx
+share/examples/gotosocial/web/source/settings/views/user/posts/interaction-policy-settings/index.tsx
+share/examples/gotosocial/web/source/settings/views/user/posts/interaction-policy-settings/something-else.tsx
+share/examples/gotosocial/web/source/settings/views/user/posts/interaction-policy-settings/types.ts
 share/examples/gotosocial/web/source/settings/views/user/profile.tsx
 share/examples/gotosocial/web/source/settings/views/user/router.tsx
-share/examples/gotosocial/web/source/settings/views/user/settings.tsx
 share/examples/gotosocial/web/source/tsconfig.json
 share/examples/gotosocial/web/source/yarn.lock
 share/examples/gotosocial/web/template/404.tmpl
 share/examples/gotosocial/web/template/about.tmpl
 share/examples/gotosocial/web/template/authorize.tmpl
 share/examples/gotosocial/web/template/confirm_email.tmpl
-share/examples/gotosocial/web/template/confirmed.tmpl
 share/examples/gotosocial/web/template/confirmed_email.tmpl
 share/examples/gotosocial/web/template/domain-blocklist.tmpl
 share/examples/gotosocial/web/template/email_confirm.tmpl

Index: pkgsrc/www/gotosocial/distinfo
diff -u pkgsrc/www/gotosocial/distinfo:1.18 pkgsrc/www/gotosocial/distinfo:1.19
--- pkgsrc/www/gotosocial/distinfo:1.18 Sun Jun 16 16:52:43 2024
+++ pkgsrc/www/gotosocial/distinfo      Mon Oct 21 11:18:34 2024
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.18 2024/06/16 16:52:43 nikita Exp $
+$NetBSD: distinfo,v 1.19 2024/10/21 11:18:34 jperkin Exp $
 
-BLAKE2s (gotosocial-0.16.0-source-code.tar.gz) = 7becb76f1cc7931a325dc9a04304e8e035325dac3b150146232a087390d4e41e
-SHA512 (gotosocial-0.16.0-source-code.tar.gz) = 3e64a7046921dd80a85b30d7875fa8625b20b72c60aba46b18dcf247a3d8950fde15e11a9056274bb14543bc09a242cbf574f1ca1f924a3964f45aac8cb7ff11
-Size (gotosocial-0.16.0-source-code.tar.gz) = 81006194 bytes
-BLAKE2s (gotosocial_0.16.0_web-assets.tar.gz) = 13a55736e2a6a1492595740189e6d57d2f76382b8c2b27737fe4be2f247ddd72
-SHA512 (gotosocial_0.16.0_web-assets.tar.gz) = c09237e635a6b6236806c0a03e4584c117a857122d0f052eb319605d60b5090783cfddb3a568a5e31bc3ecdab7dfeb4b1db988501610ae01fac34ebc517c9f7e
-Size (gotosocial_0.16.0_web-assets.tar.gz) = 1568511 bytes
+BLAKE2s (gotosocial-0.17.0.tar.gz) = 50eb4184e4ff78037af61739db226e19810d5284c1c94eccd6b187fa77e796b5
+SHA512 (gotosocial-0.17.0.tar.gz) = 41e8a98d20b5263a9cd920da426aaa328ba9864b4540b42512a40edb6cfb8d22a3fd8ab599f000062512fcffc5533e3cb55399f82f8fb9a4ccec337a8dc4bfde
+Size (gotosocial-0.17.0.tar.gz) = 118019899 bytes
+BLAKE2s (gotosocial_0.17.0_web-assets.tar.gz) = 145945310448187f87f020ae2473fd7193f6efe54ab2d0fde1231c4a472ccf1a
+SHA512 (gotosocial_0.17.0_web-assets.tar.gz) = 79cbe33ff9f8412a59ef4f30ae6baa73b99937b63fe601304568c4ee31612ac911196704a0eb715b32126f8e57ece84ff40a1ae88f5768e2373c08c6bddc903a
+Size (gotosocial_0.17.0_web-assets.tar.gz) = 1876677 bytes
 SHA1 (patch-vendor_github.com_tdewolff_minify_v2_Makefile) = 2658c6597d4037b2f1ce1e2cf927a288146b21a3

Index: pkgsrc/www/gotosocial/options.mk
diff -u pkgsrc/www/gotosocial/options.mk:1.1 pkgsrc/www/gotosocial/options.mk:1.2
--- pkgsrc/www/gotosocial/options.mk:1.1        Tue Jun 18 09:25:24 2024
+++ pkgsrc/www/gotosocial/options.mk    Mon Oct 21 11:18:34 2024
@@ -1,11 +1,9 @@
-# $NetBSD: options.mk,v 1.1 2024/06/18 09:25:24 nikita Exp $
+# $NetBSD: options.mk,v 1.2 2024/10/21 11:18:34 jperkin Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.gotosocial
 PKG_SUPPORTED_OPTIONS= wasmsqlite3
 PKG_SUGGESTED_OPTIONS= wasmsqlite3
 
-#PLIST_VARS+=
-
 .include "../../mk/bsd.options.mk"
 
 .if !empty(PKG_OPTIONS:Mwasmsqlite3)

Added files:

Index: pkgsrc/www/gotosocial/files/smf/manifest.xml
diff -u /dev/null pkgsrc/www/gotosocial/files/smf/manifest.xml:1.1
--- /dev/null   Mon Oct 21 11:18:34 2024
+++ pkgsrc/www/gotosocial/files/smf/manifest.xml        Mon Oct 21 11:18:34 2024
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
+<service_bundle type='manifest' name='gotosocial:default'>
+  <service name='@SMF_PREFIX@/@SMF_NAME@' type='service' version='1'>
+    <create_default_instance enabled='false' />
+    <single_instance />
+    <dependency name='network' grouping='require_all' restart_on='none' type='service'>
+      <service_fmri value='svc:/milestone/network:default' />
+    </dependency>
+    <dependency name='fs-local' grouping='require_all' restart_on='none' type='service'>
+      <service_fmri value='svc:/system/filesystem/local:default' />
+    </dependency>
+    <method_context working_directory="@PREFIX@">
+      <method_credential user='@GOTOSOCIAL_USER@' group='@GOTOSOCIAL_GROUP@' />
+    </method_context>
+    <exec_method type='method' name='start'
+      exec='@PREFIX@/bin/gotosocial --config-path @PKG_SYSCONFDIR@/config.yaml server start'
+      timeout_seconds="60" />
+    <exec_method type='method' name='stop' exec=':kill' timeout_seconds="60" />
+    <template>
+      <common_name>
+        <loctext xml:lang='C'>GoToSocial ActivityPub server</loctext>
+      </common_name>
+      <documentation>
+        <doc_link name='homepage' uri='https://gotosocial.org/' />
+      </documentation>
+    </template>
+  </service>
+</service_bundle>



Home | Main Index | Thread Index | Old Index