pkgsrc-WIP-changes archive

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

jitsi-meet: adapt and install additional configuration files



Module Name:	pkgsrc-wip
Committed By:	Pierre Pronchery <khorben%defora.org@localhost>
Pushed By:	khorben
Date:		Sat Nov 21 05:18:12 2020 +0100
Changeset:	d5bec5109efe539c7d02127c3340c67b80bf1060

Modified Files:
	jitsi-meet/Makefile
	jitsi-meet/PLIST

Log Message:
jitsi-meet: adapt and install additional configuration files

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=d5bec5109efe539c7d02127c3340c67b80bf1060

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

diffstat:
 jitsi-meet/Makefile | 21 ++++++++++++++++++++-
 jitsi-meet/PLIST    |  4 ++++
 2 files changed, 24 insertions(+), 1 deletion(-)

diffs:
diff --git a/jitsi-meet/Makefile b/jitsi-meet/Makefile
index 1e5845b0d6..f2db382339 100644
--- a/jitsi-meet/Makefile
+++ b/jitsi-meet/Makefile
@@ -17,7 +17,18 @@ CONF_FILES=	${EGDIR}/config.js ${PKG_SYSCONFDIR}/jitsi/meet/config.js
 CONF_FILES+=	${EGDIR}/interface_config.js ${PKG_SYSCONFDIR}/jitsi/meet/interface_config.js
 CONF_FILES+=	${EGDIR}/title.html ${PKG_SYSCONFDIR}/jitsi/meet/title.html
 
-INSTALLATION_DIRS=	${EGDIR}
+INSTALLATION_DIRS=	${EGDIR} share/examples/jitsi-meet
+
+BUILD_DEFS+=	VARBASE
+
+SUBST_CLASSES+=		paths
+SUBST_STAGE.paths=	pre-configure
+SUBST_FILES.paths=	doc/example-config-files/nginx.conf.example
+SUBST_FILES.paths+=	doc/example-config-files/jitsi.example.com.example
+SUBST_FILES.paths+=	doc/example-config-files/prosody.cfg.lua.example
+SUBST_SED.paths=	-e 's,/etc/,${PKG_SYSCONFDIR},g'
+SUBST_SED.paths+=	-e 's,/srv/.*;,${PREFIX}/${EGDIR};,g'
+SUBST_SED.paths+=	-e 's,/var/,${VARBASE},g'
 
 do-configure:
 	cd ${WRKSRC} && \
@@ -25,6 +36,14 @@ do-configure:
 
 post-install:
 	${RUN} ${TAR} -C ${DESTDIR}${PREFIX}/share -xjf ${WRKSRC}/jitsi-meet.tar.bz2
+	${INSTALL_DATA} ${WRKSRC}/doc/example-config-files/config.js.example \
+		${DESTDIR}${PREFIX}/share/examples/jitsi-meet/config.js
+	${INSTALL_DATA} ${WRKSRC}/doc/example-config-files/jitsi.example.com.example \
+		${DESTDIR}${PREFIX}/share/examples/jitsi-meet/jitsi.example.com
+	${INSTALL_DATA} ${WRKSRC}/doc/example-config-files/nginx.conf.example \
+		${DESTDIR}${PREFIX}/share/examples/jitsi-meet/nginx.conf
+	${INSTALL_DATA} ${WRKSRC}/doc/example-config-files/prosody.cfg.lua.example \
+		${DESTDIR}${PREFIX}/share/examples/jitsi-meet/prosody.cfg.lua
 
 .include "../../wip/jitsi-meet/Makefile.common"
 .include "../../lang/nodejs/buildlink3.mk"
diff --git a/jitsi-meet/PLIST b/jitsi-meet/PLIST
index 22cd696a32..a8103d7689 100644
--- a/jitsi-meet/PLIST
+++ b/jitsi-meet/PLIST
@@ -1,4 +1,8 @@
 @comment $NetBSD$
+share/examples/jitsi-meet/config.js
+share/examples/jitsi-meet/jitsi.example.com
+share/examples/jitsi-meet/nginx.conf
+share/examples/jitsi-meet/prosody.cfg.lua
 share/jitsi-meet/ConferenceEvents.js
 share/jitsi-meet/LICENSE
 share/jitsi-meet/analytics-ga.js


Home | Main Index | Thread Index | Old Index