From owner-svn-ports-head@freebsd.org Mon Jan 28 10:16:33 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2D5EB14AE76A; Mon, 28 Jan 2019 10:16:33 +0000 (UTC) (envelope-from tz@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C7D5E8462C; Mon, 28 Jan 2019 10:16:32 +0000 (UTC) (envelope-from tz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B528B1E242; Mon, 28 Jan 2019 10:16:32 +0000 (UTC) (envelope-from tz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x0SAGWX7070103; Mon, 28 Jan 2019 10:16:32 GMT (envelope-from tz@FreeBSD.org) Received: (from tz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x0SAGVC9070097; Mon, 28 Jan 2019 10:16:31 GMT (envelope-from tz@FreeBSD.org) Message-Id: <201901281016.x0SAGVC9070097@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tz set sender to tz@FreeBSD.org using -f From: Torsten Zuehlsdorff Date: Mon, 28 Jan 2019 10:16:31 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: tz X-SVN-Commit-Paths: in head/www: . kiwix-tools kiwix-tools/files X-SVN-Commit-Revision: 491472 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: C7D5E8462C X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_SHORT(-0.98)[-0.976,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jan 2019 10:16:33 -0000 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 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 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 @@ + + + + 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