www/writefreely: Pick patch to fix segmentation fault

Selectively picking patch from upstream to fix a segmentation fault. Adding
sample configuration to workaround the problem.

PR:		268809
Reported by:	trash@nazileaks.eu
This commit is contained in:
Robert Clausecker 2023-01-30 09:41:05 +01:00 committed by Fernando Apesteguía
parent 006eb3b4af
commit 7625d4e4e5
4 changed files with 24 additions and 3 deletions

View File

@ -1,11 +1,18 @@
PORTNAME= writefreely
DISTVERSIONPREFIX= v
DISTVERSION= 0.13.2
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= www textproc
MASTER_SITES= https://code.as/core/socks/archive/v1.0.0.tar.gz?dummy=/:core_socks
DISTFILES= core-socks-v1.0.0.tar.gz:core_socks
DIST_SUBDIR= writeas
PATCH_SITES= https://github.com/writefreely/writefreely/commit/
PATCHFILES= 99d72881cf833326f02d86a8896bbd2b8156327b.diff:-p1
MAINTAINER= fuz@fuz.su
COMMENT= Clean, Markdown-based publishing platform made for writers
WWW= https://writefreely.org
MAINTAINER= fuz@fuz.su
COMMENT= Clean, Markdown-based publishing platform made for writers
@ -96,7 +103,7 @@ GH_TUPLE= aymerick:douceur:v0.2.0:aymerick_douceur/vendor/github.com/aymerick/do
USE_RC_SUBR= writefreely
GO_TARGET= ./cmd/writefreely
SUB_FILES= pkg-message
SUB_FILES= config.ini.sample pkg-message
USERS= writefreely
GROUPS= writefreely
@ -149,6 +156,7 @@ do-install-DOCS-on:
post-install:
${MKDIR} ${STAGEDIR}${WWWDIR}/keys
${INSTALL_DATA} ${WRKDIR}/config.ini.sample ${STAGEDIR}${WWWDIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} pages ${STAGEDIR}${WWWDIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} static ${STAGEDIR}${WWWDIR}
${INSTALL_DATA} ${WRKDIR}/css/*.css ${STAGEDIR}${WWWDIR}/static/css/

View File

@ -1,4 +1,4 @@
TIMESTAMP = 1668161444
TIMESTAMP = 1674562387
SHA256 (writeas/core-socks-v1.0.0.tar.gz) = 9d199f31b9fcaa97b4c52483f16e226fe7b40a0014b6070788f415cff29f2c32
SIZE (writeas/core-socks-v1.0.0.tar.gz) = 11604
SHA256 (writeas/writefreely-css-0.13.2.tar.gz) = 099ad7bb876e9cef2155af71df65825cd8776beb66de523430169c2eb52adf88
@ -153,3 +153,5 @@ SHA256 (writeas/writefreely-go-nodeinfo-v1.2.0_GH0.tar.gz) = bcf74cbb4ff56cab570
SIZE (writeas/writefreely-go-nodeinfo-v1.2.0_GH0.tar.gz) = 3560
SHA256 (writeas/writefreely-documentation-v0.13.1_GH0.tar.gz) = 071263600c4aeba84f12a5794eb7c59f70b3bee6f1a7d0757ab0f50c3cc25f38
SIZE (writeas/writefreely-documentation-v0.13.1_GH0.tar.gz) = 19082
SHA256 (writeas/99d72881cf833326f02d86a8896bbd2b8156327b.diff) = eaa803e2e34323e8e6ea90ec666b3769330fd8baf0a6f444b2275a8352f58b26
SIZE (writeas/99d72881cf833326f02d86a8896bbd2b8156327b.diff) = 2580

View File

@ -0,0 +1,10 @@
; Preliminary configuration file. Run
;
; %%PREFIX%%/etc/rc.d/writefreely setup
;
; to set up writefreely.
[server]
templates_parent_dir = %%WWWDIR%%
static_parent_dir = %%WWWDIR%%
pages_parent_dir = %%WWWDIR%%
keys_parent_dir = %%WWWDIR%%

View File

@ -21,6 +21,7 @@ bin/writefreely
%%PORTDOCS%%%%DOCSDIR%%/writer/static.md
%%PORTDOCS%%%%DOCSDIR%%/writer/writing.md
@dir(writefreely,writefreely,) %%WWWDIR%%
@sample(writefreely,writefreely,) %%WWWDIR%%/config.ini.sample
%%WWWDIR%%/pages/404-general.tmpl
%%WWWDIR%%/pages/404.tmpl
%%WWWDIR%%/pages/410.tmpl