Index: www/kiwix-tools/Makefile =================================================================== --- www/kiwix-tools/Makefile (nonexistent) +++ www/kiwix-tools/Makefile (working copy) @@ -0,0 +1,27 @@ +# $FreeBSD$ + +PORTNAME= kiwix-tools +DISTVERSION= 0.7.0 +CATEGORIES= www + +MAINTAINER= int19h@gmail.com +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 Property changes on: www/kiwix-tools/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: www/kiwix-tools/distinfo =================================================================== --- www/kiwix-tools/distinfo (nonexistent) +++ www/kiwix-tools/distinfo (working copy) @@ -0,0 +1,3 @@ +TIMESTAMP = 1542015701 +SHA256 (kiwix-kiwix-tools-0.7.0_GH0.tar.gz) = c4f3bfabc5e5ddc13a5bd968ab1a43ea43d9864090328ce8d55ded677f8d008e +SIZE (kiwix-kiwix-tools-0.7.0_GH0.tar.gz) = 223017 Property changes on: www/kiwix-tools/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: www/kiwix-tools/files/kiwix_serve.in =================================================================== --- www/kiwix-tools/files/kiwix_serve.in (nonexistent) +++ www/kiwix-tools/files/kiwix_serve.in (working copy) @@ -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" Property changes on: www/kiwix-tools/files/kiwix_serve.in ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: www/kiwix-tools/files/library.xml =================================================================== --- www/kiwix-tools/files/library.xml (nonexistent) +++ www/kiwix-tools/files/library.xml (working copy) @@ -0,0 +1,4 @@ + + + + Property changes on: www/kiwix-tools/files/library.xml ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: www/kiwix-tools/pkg-descr =================================================================== --- www/kiwix-tools/pkg-descr (nonexistent) +++ www/kiwix-tools/pkg-descr (working copy) @@ -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/ Property changes on: www/kiwix-tools/pkg-descr ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: www/kiwix-tools/pkg-plist =================================================================== --- www/kiwix-tools/pkg-plist (nonexistent) +++ www/kiwix-tools/pkg-plist (working copy) @@ -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 Property changes on: www/kiwix-tools/pkg-plist ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property