View | Details | Raw Unified | Return to bug 250705 | Differences between
and this patch

Collapse All | Expand All

(-)b/net-im/biboumi/Makefile (+91 lines)
Added Link Here
1
PORTNAME=	biboumi
2
DISTVERSION=	9.0
3
CATEGORIES=	net-im
4
MASTER_SITES=	https://git.louiz.org/biboumi/snapshot/
5
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
6
7
MAINTAINER=	samir@noir.im
8
COMMENT=	XMPP gateway to IRC
9
10
LICENSE=	ZLIB
11
12
LIB_DEPENDS=	libexpat.so:textproc/expat2 \
13
		libuuid.so:misc/e2fsprogs-libuuid
14
15
USES=		cmake iconv localbase:ldflags pkgconfig python:build tar:xz
16
17
USE_GITHUB=	nodefault
18
GH_TUPLE=	catchorg:Catch2:v2.2.1:catch/external/src/catch
19
20
CMAKE_ARGS=	-DWITHOUT_SYSTEMD=1
21
22
OPTIONS_DEFINE=		DOCS LIBIDN PGSQL SQLITE3 TLS UDNS
23
OPTIONS_DEFAULT=	LIBIDN PGSQL SQLITE3 TLS UDNS
24
25
LIBIDN_DESC=		Stringprep functionality, to provide JIDs for IRC users
26
PGSQL_DESC=		Store users' options and messages in PostgreSQL
27
SQLITE3_DESC=		Store users' options and messages in SQLite
28
TLS_DESC=		Support TLS connections to IRC servers
29
UDNS_DESC=		Asynchronously resolve domain names, for better performances
30
31
DOCS_BUILD_DEPENDS=	sphinx-build:textproc/py-sphinx \
32
			${PYTHON_PKGNAMEPREFIX}sphinx_rtd_theme>0:textproc/py-sphinx_rtd_theme
33
DOCS_PORTDOCS=		*
34
35
LIBIDN_LIB_DEPENDS=	libidn.so:dns/libidn
36
LIBIDN_CMAKE_ON=	-DWITH_LIBIDN=1
37
LIBIDN_CMAKE_OFF=	-DWITHOUT_LIBIDN=1
38
39
PGSQL_USES=		pgsql
40
PGSQL_CMAKE_ON=		-DWITH_POSTGRESQL=1
41
PGSQL_CMAKE_OFF=	-DWITHOUT_POSTGRESQL=1
42
43
SQLITE3_USES=		sqlite:3
44
SQLITE3_CMAKE_ON=	-DWITH_SQLITE3=1
45
SQLITE3_CMAKE_OFF=	-DWITHOUT_SQLITE3=1
46
47
TLS_LIB_DEPENDS=	libbotan-2.so:security/botan2
48
TLS_LIB_DEPENDS_OFF=	libgcrypt.so:security/libgcrypt
49
TLS_RUN_DEPENDS_ON=	ca_root_nss>0:security/ca_root_nss
50
TLS_CMAKE_ON=		-DWITH_BOTAN=1
51
TLS_CMAKE_OFF=		-DWITHOUT_BOTAN=1
52
53
UDNS_LIB_DEPENDS=	libudns.so:dns/udns
54
UDNS_CMAKE_ON=		-DWITH_UDNS=1
55
UDNS_CMAKE_OFF=		-DWITHOUT_UDNS=1
56
57
USERS=		biboumi
58
GROUPS=		${USERS}
59
60
USE_RC_SUBR=	biboumi
61
SUB_LIST=	USER=${USERS} GROUP=${GROUPS}
62
PLIST_SUB=	${SUB_LIST}
63
SUB_FILES=	pkg-message
64
65
post-patch:
66
	${REINPLACE_CMD} -e 's,GIT_REPOSITORY.*Catch.git",SOURCE_DIR "${WRKSRC}/external/src/catch",' ${WRKSRC}/CMakeLists.txt
67
68
post-build:
69
	cd ${WRKSRC}/doc && ${MAKE} man
70
71
post-build-DOCS-on:
72
	cd ${WRKSRC}/doc && ${MAKE} html
73
74
do-install:
75
	${INSTALL_PROGRAM} ${WRKDIR}/.build/biboumi ${STAGEDIR}${PREFIX}/bin
76
	${MKDIR} ${STAGEDIR}${PREFIX}/etc/biboumi
77
	${INSTALL_DATA} ${WRKSRC}/conf/biboumi.cfg ${STAGEDIR}${ETCDIR}/biboumi.cfg.sample
78
79
post-install:
80
	${MKDIR} ${STAGEDIR}/var/db/biboumi
81
	${MKDIR} ${STAGEDIR}/var/run/biboumi
82
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
83
	${INSTALL_DATA} ${WRKSRC}/conf/*policy.txt ${STAGEDIR}${EXAMPLESDIR}
84
	${INSTALL_MAN} ${WRKSRC}/doc/_build/man/*.1 ${STAGEDIR}${PREFIX}/man/man1
85
86
post-install-DOCS-on:
87
	${MKDIR} ${STAGEDIR}${DOCSDIR}
88
	(cd ${WRKSRC}/doc/_build/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \
89
		"! -name .buildinfo")
90
91
.include <bsd.port.mk>
(-)b/net-im/biboumi/distinfo (+5 lines)
Added Link Here
1
TIMESTAMP = 1625177638
2
SHA256 (biboumi-9.0.tar.xz) = 1eff9a9110830e056e434e4edf3a33de52c6d092a3db4877b5531513627e7ecb
3
SIZE (biboumi-9.0.tar.xz) = 161192
4
SHA256 (catchorg-Catch2-v2.2.1_GH0.tar.gz) = 3938bc896f8de570bc56d25606fc128437ee53590a95cf3e005710176a1a1ce4
5
SIZE (catchorg-Catch2-v2.2.1_GH0.tar.gz) = 487804
(-)b/net-im/biboumi/files/biboumi.in (+37 lines)
Added Link Here
1
#!/bin/sh
2
3
#
4
# PROVIDE: biboumi
5
# REQUIRE: LOGIN
6
# KEYWORD: shutdown
7
#
8
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
9
# to enable this service:
10
#
11
# biboumi_enable (bool):        Set to NO by default.
12
#                               Set it to YES to enable biboumi.
13
# biboumi_config (path):        Set to %%PREFIX%%/etc/biboumi/biboumi.cfg
14
#                               by default.
15
16
. /etc/rc.subr
17
18
name=biboumi
19
rcvar=biboumi_enable
20
pidfile="/var/run/biboumi/biboumi.pid"
21
procname="%%PREFIX%%/bin/biboumi"
22
23
load_rc_config $name
24
25
: ${biboumi_enable:="NO"}
26
: ${biboumi_config="%%PREFIX%%/etc/biboumi/biboumi.cfg"}
27
28
command="/usr/sbin/daemon"
29
command_args="-p ${pidfile} -f ${procname} ${biboumi_config}"
30
extra_commands="reload"
31
required_files="$biboumi_config"
32
sig_reload="USR1"
33
34
biboumi_user="%%USER%%"
35
biboumi_group="%%GROUP%%"
36
37
run_rc_command "$1"
(-)b/net-im/biboumi/files/patch-doc_Makefile (+11 lines)
Added Link Here
1
--- doc/Makefile.orig	2020-10-24 17:19:42 UTC
2
+++ doc/Makefile
3
@@ -16,5 +16,5 @@ help:
4
5
 # Catch-all target: route all unknown targets to Sphinx using the new
6
 # "make mode" option.  $(O) is meant as a shortcut for $(SPHINXOPTS).
7
-%: Makefile
8
-	@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
9
\ No newline at end of file
10
+.DEFAULT: Makefile
11
+	@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
(-)b/net-im/biboumi/files/pkg-message.in (+5 lines)
Added Link Here
1
Regarding TLS connections to IRC servers, settings can be customized globally or
2
per server. This is done using policy txt files, examples can be found in
3
%%PREFIX%%/share/examples/biboumi/.
4
5
ca_file (in biboumi.cfg) should be set to %%PREFIX%%/share/certs/ca-root-nss.crt
(-)b/net-im/biboumi/pkg-descr (+5 lines)
Added Link Here
1
Biboumi is a Free, Libre and Open Source XMPP gateway that connects to IRC
2
servers and translates between the two protocols. Its goal is to let XMPP users
3
take part in IRC discussions, using their favourite XMPP client.
4
5
WWW: https://biboumi.louiz.org/
(-)b/net-im/biboumi/pkg-plist (+10 lines)
Added Link Here
1
bin/biboumi
2
man/man1/biboumi.1.gz
3
@sample %%ETCDIR%%/biboumi.cfg.sample %%ETCDIR%%/biboumi.cfg
4
@dir(%%USER%%,%%GROUP%%) /var/db/biboumi
5
@dir(%%USER%%,%%GROUP%%) /var/run/biboumi
6
%%EXAMPLESDIR%%/policy.txt
7
%%EXAMPLESDIR%%/irc.gimp.org.policy.txt
8
%%EXAMPLESDIR%%/irc.gnome.org.policy.txt
9
%%EXAMPLESDIR%%/irc.mozilla.org.policy.txt
10
%%EXAMPLESDIR%%/irc.ppirc.net.policy.txt

Return to bug 250705