Date: Mon, 28 Jan 2019 10:16:31 +0000 (UTC) From: Torsten Zuehlsdorff <tz@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r491472 - in head/www: . kiwix-tools kiwix-tools/files Message-ID: <201901281016.x0SAGVC9070097@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tz Date: Mon Jan 28 10:16:31 2019 New Revision: 491472 URL: https://svnweb.freebsd.org/changeset/ports/491472 Log: [new port] www/kiwix-tools Kiwix is an offline reader for web content archived in ZIM format. It is particularly tailored towards Wikipedia and other wikis. This package contains command-line Kiwix tools: a local HTTP server to serve content, and a set of tools to manage ZIM files. WWW: http://www.kiwix.org/ PR: 230316 Submitted by: Pavel Minaev <int19h@gmail.com> Added: head/www/kiwix-tools/ head/www/kiwix-tools/Makefile (contents, props changed) head/www/kiwix-tools/distinfo (contents, props changed) head/www/kiwix-tools/files/ head/www/kiwix-tools/files/kiwix_serve.in (contents, props changed) head/www/kiwix-tools/files/library.xml (contents, props changed) head/www/kiwix-tools/pkg-descr (contents, props changed) head/www/kiwix-tools/pkg-plist (contents, props changed) Modified: head/www/Makefile Modified: head/www/Makefile ============================================================================== --- head/www/Makefile Mon Jan 28 10:13:49 2019 (r491471) +++ head/www/Makefile Mon Jan 28 10:16:31 2019 (r491472) @@ -333,6 +333,7 @@ SUBDIR += kf5-khtml SUBDIR += kf5-kjs SUBDIR += kf5-kjsembed + SUBDIR += kiwix-tools SUBDIR += kohana SUBDIR += kurly SUBDIR += larbin Added: head/www/kiwix-tools/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/kiwix-tools/Makefile Mon Jan 28 10:16:31 2019 (r491472) @@ -0,0 +1,27 @@ +# $FreeBSD$ + +PORTNAME= kiwix-tools +DISTVERSION= 0.8.0 +CATEGORIES= www + +MAINTAINER= me@int19h.org +COMMENT= Command-line Kiwix tools + +LICENSE= GPLv3+ +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS= libkiwix.so:devel/kiwix-lib \ + libmicrohttpd.so:www/libmicrohttpd \ + libctpp2.so:textproc/ctpp2 \ + libzim.so:devel/libzim + +USES= meson pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= kiwix +USE_RC_SUBR= kiwix_serve + +post-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/share/kiwix + ${INSTALL_DATA} files/library.xml ${STAGEDIR}${PREFIX}/share/kiwix + +.include <bsd.port.mk> Added: head/www/kiwix-tools/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/kiwix-tools/distinfo Mon Jan 28 10:16:31 2019 (r491472) @@ -0,0 +1,3 @@ +TIMESTAMP = 1548657926 +SHA256 (kiwix-kiwix-tools-0.8.0_GH0.tar.gz) = 4cf3289670d42cdc9a5c9145544f9936aa0a2f125582b36ac843177f69487295 +SIZE (kiwix-kiwix-tools-0.8.0_GH0.tar.gz) = 223082 Added: head/www/kiwix-tools/files/kiwix_serve.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/kiwix-tools/files/kiwix_serve.in Mon Jan 28 10:16:31 2019 (r491472) @@ -0,0 +1,35 @@ +#!/bin/sh + +# $FreeBSD$ +# +# PROVIDE: kiwix_serve +# REQUIRE: LOGIN +# KEYWORD: shutdown +# +# Add these lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# kiwix_serve_enable (bool): Set to NO by default. +# Set it to YES to enable kiwix_serve. +# kiwix_serve_port (int): Port on which the daemon will handle HTTP +# requests. Set to 80 by default. +# kiwix_serve_library (path): XML file listing ZIM files for the daemon +# to serve. Use kiwix-manage to create one, +# and to add ZIM files to it. Set to +# %%PREFIX%%/share/kiwix/library.xml by default. + +. /etc/rc.subr + +name=kiwix_serve +rcvar=kiwix_serve_enable + +load_rc_config $name + +: ${kiwix_serve_enable:=NO} +: ${kiwix_serve_port=80} +: ${kiwix_serve_library="%%PREFIX%%/share/kiwix/library.xml"} + +command=%%PREFIX%%/bin/kiwix-serve +command_args="--daemon --port $kiwix_serve_port --library $kiwix_serve_library" + +run_rc_command "$1" Added: head/www/kiwix-tools/files/library.xml ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/kiwix-tools/files/library.xml Mon Jan 28 10:16:31 2019 (r491472) @@ -0,0 +1,4 @@ +<?xml version="1.0"?> +<!-- See kiwix-manage(1) on how to add downloaded ZIM files to the library. --> +<library version="20110515"> +</library> Added: head/www/kiwix-tools/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/kiwix-tools/pkg-descr Mon Jan 28 10:16:31 2019 (r491472) @@ -0,0 +1,7 @@ +Kiwix is an offline reader for web content archived in ZIM format. It is +particularly tailored towards Wikipedia and other wikis. + +This package contains command-line Kiwix tools: a local HTTP server to serve +content, and a set of tools to manage ZIM files. + +WWW: http://www.kiwix.org/ Added: head/www/kiwix-tools/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/kiwix-tools/pkg-plist Mon Jan 28 10:16:31 2019 (r491472) @@ -0,0 +1,9 @@ +bin/kiwix-manage +bin/kiwix-read +bin/kiwix-search +bin/kiwix-serve +man/fr/man1/kiwix-manage.1.gz +man/fr/man1/kiwix-serve.1.gz +man/man1/kiwix-manage.1.gz +man/man1/kiwix-serve.1.gz +share/kiwix/library.xml
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901281016.x0SAGVC9070097>