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

Collapse All | Expand All

(-)www/kiwix-tools/Makefile (+27 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	kiwix-tools
4
DISTVERSION=	0.8.0
5
CATEGORIES=	www
6
7
MAINTAINER=	me@int19h.org
8
COMMENT=	Command-line Kiwix tools
9
10
LICENSE=	GPLv3+
11
LICENSE_FILE=	${WRKSRC}/COPYING
12
13
LIB_DEPENDS=	libkiwix.so:devel/kiwix-lib \
14
		libmicrohttpd.so:www/libmicrohttpd \
15
		libctpp2.so:textproc/ctpp2 \
16
		libzim.so:devel/libzim
17
18
USES=		meson pkgconfig
19
USE_GITHUB=	yes
20
GH_ACCOUNT=	kiwix
21
USE_RC_SUBR=	kiwix_serve
22
23
post-install:
24
	${MKDIR} ${STAGEDIR}${PREFIX}/share/kiwix
25
	${INSTALL_DATA} files/library.xml ${STAGEDIR}${PREFIX}/share/kiwix
26
27
.include <bsd.port.mk>
(-)www/kiwix-tools/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1548657926
2
SHA256 (kiwix-kiwix-tools-0.8.0_GH0.tar.gz) = 4cf3289670d42cdc9a5c9145544f9936aa0a2f125582b36ac843177f69487295
3
SIZE (kiwix-kiwix-tools-0.8.0_GH0.tar.gz) = 223082
(-)www/kiwix-tools/files/kiwix_serve.in (+35 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# $FreeBSD$
4
#
5
# PROVIDE: kiwix_serve
6
# REQUIRE: LOGIN
7
# KEYWORD: shutdown
8
#
9
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
10
# to enable this service:
11
#
12
# kiwix_serve_enable (bool):	Set to NO by default.
13
#				Set it to YES to enable kiwix_serve.
14
# kiwix_serve_port (int):	Port on which the daemon will handle HTTP
15
#				requests. Set to 80 by default.
16
# kiwix_serve_library (path):	XML file listing ZIM files for the daemon
17
#				to serve. Use kiwix-manage to create one,
18
#				and to add ZIM files to it. Set to
19
#				%%PREFIX%%/share/kiwix/library.xml by default.
20
21
. /etc/rc.subr
22
23
name=kiwix_serve
24
rcvar=kiwix_serve_enable
25
26
load_rc_config $name
27
28
: ${kiwix_serve_enable:=NO}
29
: ${kiwix_serve_port=80}
30
: ${kiwix_serve_library="%%PREFIX%%/share/kiwix/library.xml"}
31
32
command=%%PREFIX%%/bin/kiwix-serve
33
command_args="--daemon --port $kiwix_serve_port --library $kiwix_serve_library"
34
35
run_rc_command "$1"
(-)www/kiwix-tools/files/library.xml (+4 lines)
Line 0 Link Here
1
<?xml version="1.0"?>
2
<!-- See kiwix-manage(1) on how to add downloaded ZIM files to the library. -->
3
<library version="20110515">
4
</library>
(-)www/kiwix-tools/pkg-descr (+7 lines)
Line 0 Link Here
1
Kiwix is an offline reader for web content archived in ZIM format. It is
2
particularly tailored towards Wikipedia and other wikis.
3
4
This package contains command-line Kiwix tools: a local HTTP server to serve
5
content, and a set of tools to manage ZIM files.
6
7
WWW: http://www.kiwix.org/
(-)www/kiwix-tools/pkg-plist (+9 lines)
Line 0 Link Here
1
bin/kiwix-manage
2
bin/kiwix-read
3
bin/kiwix-search
4
bin/kiwix-serve
5
man/fr/man1/kiwix-manage.1.gz
6
man/fr/man1/kiwix-serve.1.gz
7
man/man1/kiwix-manage.1.gz
8
man/man1/kiwix-serve.1.gz
9
share/kiwix/library.xml

Return to bug 230316