Upgrade to v0.3.1 - use the release tarball (suggested by tedu@) - add MESSAGE and update README with database upgrade info
changelog === 0.3.1 Delayed Reaction + Fix a crash in the markdown parser. + Fix some missing notifications. === 0.3.0 Imperfect Future + Subscribe to post for comment notifications. + Very basic search feature. + Syntax highlighting for code blocks. + More consistently useful logging. + Experimental filters. + Inline images in posts. + Cleaner UI and navigation. + Dark mode. + Improved URL scheme. + Previews for picture groups. + Normalize some links (youtube only atm). + Improved federation. + Include replies collection in posts. + Background refresh. + Group chat. + A little more tag support. + Nicer online help. + Detect recent duplicate links. + Site alerts, woop, woop. + Initial support for featured posts. + Notifications for most events.
Index: Makefile =================================================================== RCS file: /cvs/ports/www/azorius/Makefile,v retrieving revision 1.2 diff -u -p -r1.2 Makefile --- Makefile 17 Aug 2023 06:43:17 -0000 1.2 +++ Makefile 31 Aug 2023 18:36:43 -0000 @@ -1,11 +1,6 @@ -COMMENT = Link aggregator and comment site via ActivityPub - -MODGO_MODNAME = humungus.tedunangst.com/r/azorius -MODGO_VERSION = v0.2.0 -REVISION = 0 - -DISTNAME = azorius-${MODGO_VERSION} +COMMENT = link aggregator and comment site via ActivityPub +DISTNAME = azorius-0.3.1 CATEGORIES = www HOMEPAGE = https://humungus.tedunangst.com/r/azorius @@ -17,34 +12,33 @@ MAINTAINER = Horia Racoviceanu <horia@r PERMIT_PACKAGE = Yes WANTLIB += c pthread sqlite3 -LIB_DEPENDS = databases/sqlite3 + +MASTER_SITES = ${HOMEPAGE}/d/ +EXTRACT_SUFX = .tgz MODULES = lang/go +LIB_DEPENDS = databases/sqlite3 NO_TEST = Yes +ALL_TARGET = humungus.tedunangst.com/r/azorius DOCDIR ?= ${PREFIX}/share/doc/azorius EXAMPLESDIR = ${PREFIX}/share/examples/azorius post-install: -.for m in azorius.1 azorius.8 intro.1 - mandoc -T html -O style=mandoc.css,man=%N.%S.html ${WRKSRC}/docs/${m} >\ - ${WRKSRC}/docs/${m}.html -.endfor -.for p in 1 8 - ${INSTALL_MAN} ${WRKSRC}/docs/azorius.${p} \ - ${PREFIX}/man/man${p} - rm ${WRKSRC}/docs/*.${p} + ${INSTALL_MAN} ${MODGO_WORKSPACE}/src/${ALL_TARGET}/docs/azorius.8 \ + ${PREFIX}/man/man8 +.for p in 1 7 8 + rm ${MODGO_WORKSPACE}/src/${ALL_TARGET}/docs/*.${p} .endfor ${INSTALL_DATA_DIR} ${DOCDIR} - ${INSTALL_DATA} ${WRKSRC}/{LICENSE,README,docs/*} \ + ${INSTALL_DATA} \ + ${MODGO_WORKSPACE}/src/${ALL_TARGET}/{LICENSE,README,docs/*} \ ${DOCDIR}/ ${INSTALL_DATA_DIR} ${EXAMPLESDIR}/views - ${INSTALL_DATA} ${WRKSRC}/views/* \ + ${INSTALL_DATA} ${MODGO_WORKSPACE}/src/${ALL_TARGET}/views/* \ ${EXAMPLESDIR}/views/ - ${INSTALL_DATA} ${WRKSRC}/schema.sql \ + ${INSTALL_DATA} ${MODGO_WORKSPACE}/src/${ALL_TARGET}/schema.sql \ ${EXAMPLESDIR}/ - -.include "modules.inc" .include <bsd.port.mk> Index: distinfo =================================================================== RCS file: /cvs/ports/www/azorius/distinfo,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 distinfo --- distinfo 15 Aug 2023 15:52:41 -0000 1.1.1.1 +++ distinfo 31 Aug 2023 18:36:43 -0000 @@ -1,70 +1,2 @@ -SHA256 (azorius-v0.2.0.zip) = UEhM+8N0CYkvqg+DQcTQpPRONnaP4sxX63oEvBu6/L8= -SHA256 (go_modules/github.com/gorilla/mux/@v/v1.8.0.mod) = R/lPOCkTbcy7qn88QRD3QNs3/5Dd555rM2xzLh/ajZw= -SHA256 (go_modules/github.com/gorilla/mux/@v/v1.8.0.zip) = dkGRHgCvnJHwiYaDMwZ8nLmlhwLSyeqCHuN0lACRw4U= -SHA256 (go_modules/golang.org/x/crypto/@v/v0.0.0-20220411220226-7b82a4e95df4.mod) = ryyI7r/wPjoq/ssbA2afxU6dEiyI97Ls/tBR7F28i7s= -SHA256 (go_modules/golang.org/x/crypto/@v/v0.10.0.mod) = LAC5Gxo4OLTluAFtx+6AEL7pCK+ErVH30bgs956frN0= -SHA256 (go_modules/golang.org/x/crypto/@v/v0.10.0.zip) = Lk+bct9vSAp0RIOxTWuMutmP8GY5mXmsdP8dxbdOm+w= -SHA256 (go_modules/golang.org/x/image/@v/v0.0.0-20220413100746-70e8d0d3baa9.mod) = nu8CAh0Fw+xzR8OlkUVT26GjhHozfk0fzte2LJK6LVk= -SHA256 (go_modules/golang.org/x/image/@v/v0.0.0-20220413100746-70e8d0d3baa9.zip) = J4GhqY0Yr2ws7mUwM8KhJtMrYLuOAcb9pvxh35Tw5ZU= -SHA256 (go_modules/golang.org/x/net/@v/v0.0.0-20211112202133-69e39bad7dc2.mod) = +pFfXQIs+wy4Zaou4306d0G0BvhOtKg3hi4pzGmrTvQ= -SHA256 (go_modules/golang.org/x/net/@v/v0.0.0-20220425223048-2871e0cb64e4.mod) = q58hDgTR/37XvDHV6gn0xXfNXtz9gYQKuKV4oIJDS3Q= -SHA256 (go_modules/golang.org/x/net/@v/v0.10.0.mod) = 07fiNv8J5jIr5IkXAhbgGNMiGGLxoFPctj5T6rhTPBc= -SHA256 (go_modules/golang.org/x/net/@v/v0.10.0.zip) = +S+bJlUiam0BWvenYnmhH7VWeOQQuFGxWPyEZUb4BzM= -SHA256 (go_modules/golang.org/x/sys/@v/v0.0.0-20201119102817-f84b799fce68.mod) = GBl56L1X0tngZBgtqGyaYRGqaXVeiI8IQx7OR0Kuw0M= -SHA256 (go_modules/golang.org/x/sys/@v/v0.0.0-20210423082822-04245dca01da.mod) = GBl56L1X0tngZBgtqGyaYRGqaXVeiI8IQx7OR0Kuw0M= -SHA256 (go_modules/golang.org/x/sys/@v/v0.0.0-20210615035016-665e8c7367d1.mod) = 8DMzMJb+GY8xUd7tk/LeunTlC7/nc5E0BFvDt85KUCQ= -SHA256 (go_modules/golang.org/x/sys/@v/v0.0.0-20211216021012-1d35b9e2eb4e.mod) = 8DMzMJb+GY8xUd7tk/LeunTlC7/nc5E0BFvDt85KUCQ= -SHA256 (go_modules/golang.org/x/sys/@v/v0.8.0.mod) = 8DMzMJb+GY8xUd7tk/LeunTlC7/nc5E0BFvDt85KUCQ= -SHA256 (go_modules/golang.org/x/sys/@v/v0.9.0.mod) = 8DMzMJb+GY8xUd7tk/LeunTlC7/nc5E0BFvDt85KUCQ= -SHA256 (go_modules/golang.org/x/sys/@v/v0.9.0.zip) = OzfIdTTrq/nRpg7wPaFoBfEpNAi8r4t8u6nWRu2gfX8= -SHA256 (go_modules/golang.org/x/term/@v/v0.0.0-20201126162022-7de9c90e9dd1.mod) = TLqxT3cGdxsnHZlaGzzBMf5aJGqtx+5tG6bwvYlHgfo= -SHA256 (go_modules/golang.org/x/term/@v/v0.0.0-20210927222741-03fcf44c2211.mod) = dAeU4pFPXMh+JWVsWEMiKyxlZlghIF9FYyoEd8jT95s= -SHA256 (go_modules/golang.org/x/term/@v/v0.8.0.mod) = XTYtaoNFP3Akcl6CTAXFlJYk749MsT9dfj1Lfxygsyc= -SHA256 (go_modules/golang.org/x/term/@v/v0.9.0.mod) = Wi2XadlxLw3n6DPKDO5iWibh8vvt+sp0huFBzs9+CUw= -SHA256 (go_modules/golang.org/x/term/@v/v0.9.0.zip) = tObSrJdzJiXu5YH0f+SiEl3YZo/ihXlLrBqaGn/T8eM= -SHA256 (go_modules/golang.org/x/text/@v/v0.10.0.mod) = FR5qGDlJHEtQ3+nDNFHwYyjVUYvY7koAYd4Ct60zL7I= -SHA256 (go_modules/golang.org/x/text/@v/v0.10.0.zip) = U+Txr0Nx547HF/oaKRnrn7+xskx0NVTP0AXuQ2OIzuI= -SHA256 (go_modules/golang.org/x/text/@v/v0.3.6.mod) = +7eojtFAUV55Dsp6EP/TGcl4axHGpsfln4D3+ze7RUI= -SHA256 (go_modules/golang.org/x/text/@v/v0.3.7.mod) = xF1mkIlCe8RjXQexhfm5aAMy0cSMdbPEnLcVuBoEpbA= -SHA256 (go_modules/golang.org/x/text/@v/v0.9.0.mod) = Q29ZLne1k7AvvqN04jrTNpyGI/8NKckd594eZnLbmkE= -SHA256 (go_modules/golang.org/x/tools/@v/v0.0.0-20180917221912-90fa682c2a6e.mod) = oOAvBnj+Ytw8S0vHf6kSybcN4Q+p988veq0DNzkrUq8= -SHA256 (go_modules/golang.org/x/tools/@v/v0.0.0-20180917221912-90fa682c2a6e.zip) = ZnP+BmYvy+5fJG8Sr47YYDKL8I/QFv1JCYfNdqyxtP4= -SHA256 (go_modules/humungus.tedunangst.com/r/go-sqlite3/@v/v1.1.3.mod) = I+35egOEa7dGqTguXModzeCZ2c7N3ZyblsFV3rLHnZI= -SHA256 (go_modules/humungus.tedunangst.com/r/go-sqlite3/@v/v1.1.3.zip) = Z10poBps042iiHTlQWWAkwYZSXng6haIEDv+N7b2FM4= -SHA256 (go_modules/humungus.tedunangst.com/r/webs/@v/v0.6.65.mod) = UgYnJGCeSHDwRDgQZkFMkMjvOZ3fpFJqzaliHfLHuXM= -SHA256 (go_modules/humungus.tedunangst.com/r/webs/@v/v0.6.65.zip) = C5rF/hdw2H76KZqIjLcGvy4P3SOe6o5zA67eELrX050= -SIZE (azorius-v0.2.0.zip) = 124576 -SIZE (go_modules/github.com/gorilla/mux/@v/v1.8.0.mod) = 39 -SIZE (go_modules/github.com/gorilla/mux/@v/v1.8.0.zip) = 57100 -SIZE (go_modules/golang.org/x/crypto/@v/v0.0.0-20220411220226-7b82a4e95df4.mod) = 255 -SIZE (go_modules/golang.org/x/crypto/@v/v0.10.0.mod) = 188 -SIZE (go_modules/golang.org/x/crypto/@v/v0.10.0.zip) = 1780916 -SIZE (go_modules/golang.org/x/image/@v/v0.0.0-20220413100746-70e8d0d3baa9.mod) = 69 -SIZE (go_modules/golang.org/x/image/@v/v0.0.0-20220413100746-70e8d0d3baa9.zip) = 5104628 -SIZE (go_modules/golang.org/x/net/@v/v0.0.0-20211112202133-69e39bad7dc2.mod) = 179 -SIZE (go_modules/golang.org/x/net/@v/v0.0.0-20220425223048-2871e0cb64e4.mod) = 179 -SIZE (go_modules/golang.org/x/net/@v/v0.10.0.mod) = 123 -SIZE (go_modules/golang.org/x/net/@v/v0.10.0.zip) = 1564890 -SIZE (go_modules/golang.org/x/sys/@v/v0.0.0-20201119102817-f84b799fce68.mod) = 33 -SIZE (go_modules/golang.org/x/sys/@v/v0.0.0-20210423082822-04245dca01da.mod) = 33 -SIZE (go_modules/golang.org/x/sys/@v/v0.0.0-20210615035016-665e8c7367d1.mod) = 33 -SIZE (go_modules/golang.org/x/sys/@v/v0.0.0-20211216021012-1d35b9e2eb4e.mod) = 33 -SIZE (go_modules/golang.org/x/sys/@v/v0.8.0.mod) = 33 -SIZE (go_modules/golang.org/x/sys/@v/v0.9.0.mod) = 33 -SIZE (go_modules/golang.org/x/sys/@v/v0.9.0.zip) = 1898437 -SIZE (go_modules/golang.org/x/term/@v/v0.0.0-20201126162022-7de9c90e9dd1.mod) = 95 -SIZE (go_modules/golang.org/x/term/@v/v0.0.0-20210927222741-03fcf44c2211.mod) = 95 -SIZE (go_modules/golang.org/x/term/@v/v0.8.0.mod) = 67 -SIZE (go_modules/golang.org/x/term/@v/v0.9.0.mod) = 67 -SIZE (go_modules/golang.org/x/term/@v/v0.9.0.zip) = 19924 -SIZE (go_modules/golang.org/x/text/@v/v0.10.0.mod) = 197 -SIZE (go_modules/golang.org/x/text/@v/v0.10.0.zip) = 8620307 -SIZE (go_modules/golang.org/x/text/@v/v0.3.6.mod) = 97 -SIZE (go_modules/golang.org/x/text/@v/v0.3.7.mod) = 97 -SIZE (go_modules/golang.org/x/text/@v/v0.9.0.mod) = 215 -SIZE (go_modules/golang.org/x/tools/@v/v0.0.0-20180917221912-90fa682c2a6e.mod) = 26 -SIZE (go_modules/golang.org/x/tools/@v/v0.0.0-20180917221912-90fa682c2a6e.zip) = 2687668 -SIZE (go_modules/humungus.tedunangst.com/r/go-sqlite3/@v/v1.1.3.mod) = 44 -SIZE (go_modules/humungus.tedunangst.com/r/go-sqlite3/@v/v1.1.3.zip) = 11546 -SIZE (go_modules/humungus.tedunangst.com/r/webs/@v/v0.6.65.mod) = 224 -SIZE (go_modules/humungus.tedunangst.com/r/webs/@v/v0.6.65.zip) = 47007 +SHA256 (azorius-0.3.1.tgz) = H/fvzvn1ChtQVEIgmVUwXkW/+x5VQKcBjAg1h7QD/lY= +SIZE (azorius-0.3.1.tgz) = 314468 Index: modules.inc =================================================================== RCS file: modules.inc diff -N modules.inc --- modules.inc 15 Aug 2023 15:52:41 -0000 1.1.1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,26 +0,0 @@ -MODGO_MODULES = \ - github.com/gorilla/mux v1.8.0 \ - golang.org/x/crypto v0.10.0 \ - golang.org/x/image v0.0.0-20220413100746-70e8d0d3baa9 \ - golang.org/x/net v0.10.0 \ - golang.org/x/sys v0.9.0 \ - golang.org/x/term v0.9.0 \ - golang.org/x/text v0.10.0 \ - golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e \ - humungus.tedunangst.com/r/go-sqlite3 v1.1.3 \ - humungus.tedunangst.com/r/webs v0.6.65 -MODGO_MODFILES = \ - golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 \ - golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 \ - golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 \ - golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 \ - golang.org/x/sys v0.0.0-20210423082822-04245dca01da \ - golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1 \ - golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e \ - golang.org/x/sys v0.8.0 \ - golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 \ - golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 \ - golang.org/x/term v0.8.0 \ - golang.org/x/text v0.3.6 \ - golang.org/x/text v0.3.7 \ - golang.org/x/text v0.9.0 Index: pkg/MESSAGE =================================================================== RCS file: pkg/MESSAGE diff -N pkg/MESSAGE --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ pkg/MESSAGE 31 Aug 2023 18:36:43 -0000 @@ -0,0 +1 @@ +The database has changed since version 0.2.0. See the pkg-readme. Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/www/azorius/pkg/PLIST,v retrieving revision 1.2 diff -u -p -r1.2 PLIST --- pkg/PLIST 17 Aug 2023 06:43:17 -0000 1.2 +++ pkg/PLIST 31 Aug 2023 18:36:43 -0000 @@ -12,19 +12,20 @@ @mode @owner @group -@man man/man1/azorius.1 @man man/man8/azorius.8 share/doc/azorius/ share/doc/azorius/LICENSE share/doc/azorius/README +share/doc/azorius/activitypub.7.html +@sample ${LOCALSTATEDIR}/azorius/docs/activitypub.7.html share/doc/azorius/azorius.1.html @sample ${LOCALSTATEDIR}/azorius/docs/azorius.1.html share/doc/azorius/azorius.8.html @sample ${LOCALSTATEDIR}/azorius/docs/azorius.8.html +share/doc/azorius/filters.1.html +@sample ${LOCALSTATEDIR}/azorius/docs/filters.1.html share/doc/azorius/intro.1.html @sample ${LOCALSTATEDIR}/azorius/docs/intro.1.html -share/doc/azorius/mandoc.css -@sample ${LOCALSTATEDIR}/azorius/docs/mandoc.css share/doc/pkg-readmes/${PKGSTEM} share/examples/azorius/ share/examples/azorius/schema.sql @@ -34,8 +35,14 @@ share/examples/azorius/views/about.html @sample ${LOCALSTATEDIR}/azorius/views/about.html share/examples/azorius/views/account.html @sample ${LOCALSTATEDIR}/azorius/views/account.html +share/examples/azorius/views/accountfilters.html +@sample ${LOCALSTATEDIR}/azorius/views/accountfilters.html +share/examples/azorius/views/accountheader.html +@sample ${LOCALSTATEDIR}/azorius/views/accountheader.html share/examples/azorius/views/admin.html @sample ${LOCALSTATEDIR}/azorius/views/admin.html +share/examples/azorius/views/adminfilters.html +@sample ${LOCALSTATEDIR}/azorius/views/adminfilters.html share/examples/azorius/views/admingroups.html @sample ${LOCALSTATEDIR}/azorius/views/admingroups.html share/examples/azorius/views/adminheader.html @@ -56,12 +63,16 @@ share/examples/azorius/views/error.html @sample ${LOCALSTATEDIR}/azorius/views/error.html share/examples/azorius/views/formcomment.html @sample ${LOCALSTATEDIR}/azorius/views/formcomment.html +share/examples/azorius/views/formfilter.html +@sample ${LOCALSTATEDIR}/azorius/views/formfilter.html share/examples/azorius/views/formgroup.html @sample ${LOCALSTATEDIR}/azorius/views/formgroup.html share/examples/azorius/views/formpost.html @sample ${LOCALSTATEDIR}/azorius/views/formpost.html share/examples/azorius/views/fragcomment.html @sample ${LOCALSTATEDIR}/azorius/views/fragcomment.html +share/examples/azorius/views/groupchat.html +@sample ${LOCALSTATEDIR}/azorius/views/groupchat.html share/examples/azorius/views/groupreports.html @sample ${LOCALSTATEDIR}/azorius/views/groupreports.html share/examples/azorius/views/groups.html @@ -72,6 +83,8 @@ share/examples/azorius/views/headergroup @sample ${LOCALSTATEDIR}/azorius/views/headergroups.html share/examples/azorius/views/headeronegroup.html @sample ${LOCALSTATEDIR}/azorius/views/headeronegroup.html +share/examples/azorius/views/help.html +@sample ${LOCALSTATEDIR}/azorius/views/help.html share/examples/azorius/views/homepage.html @sample ${LOCALSTATEDIR}/azorius/views/homepage.html share/examples/azorius/views/icon.png @@ -86,6 +99,8 @@ share/examples/azorius/views/newgroup.ht @sample ${LOCALSTATEDIR}/azorius/views/newgroup.html share/examples/azorius/views/newpost.html @sample ${LOCALSTATEDIR}/azorius/views/newpost.html +share/examples/azorius/views/notifs.html +@sample ${LOCALSTATEDIR}/azorius/views/notifs.html share/examples/azorius/views/onecomment.html @sample ${LOCALSTATEDIR}/azorius/views/onecomment.html share/examples/azorius/views/onegroup.html Index: pkg/README =================================================================== RCS file: /cvs/ports/www/azorius/pkg/README,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 README --- pkg/README 15 Aug 2023 15:52:41 -0000 1.1.1.1 +++ pkg/README 31 Aug 2023 18:36:43 -0000 @@ -30,3 +30,21 @@ azorius# rcctl enable azorius azorius# rcctl start azorius Azorius at https://azorius.example.com + +Database Upgrade +================ + +If you are upgrading from a version before 0.2.0, you will need to upgrade +the database format: + +Stop the old azorius process. +azorius# rcctl stop azorius + +Perform the upgrade with the upgrade command. +azorius# doas -su _azorius +azorius$ umask 077; cd ${LOCALSTATEDIR}/azorius && cp azorius.db backup.db +azorius$ azorius upgrade +azorius$ exit + +Restart. +azorius# rcctl start azorius Index: pkg/azorius.rc =================================================================== RCS file: /cvs/ports/www/azorius/pkg/azorius.rc,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 azorius.rc --- pkg/azorius.rc 15 Aug 2023 15:52:41 -0000 1.1.1.1 +++ pkg/azorius.rc 31 Aug 2023 18:36:43 -0000 @@ -1,7 +1,8 @@ #!/bin/ksh daemon="${TRUEPREFIX}/bin/azorius" -daemon_flags="-datadir ${LOCALSTATEDIR}/azorius -viewdir ${LOCALSTATEDIR}/azorius" +daemon_flags="-datadir ${LOCALSTATEDIR}/azorius -viewdir \ + ${LOCALSTATEDIR}/azorius" daemon_logger="daemon.info" daemon_user="_azorius"