# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # py-isso # py-isso/Makefile # py-isso/pkg-descr # py-isso/files # py-isso/files/isso.in # py-isso/files/Makefile.in # py-isso/pkg-message # py-isso/distinfo # echo c - py-isso mkdir -p py-isso > /dev/null 2>&1 echo x - py-isso/Makefile sed 's/^X//' >py-isso/Makefile << '235e15b54f088b2ef02cf5dae1965047' X# $FreeBSD$ X XPORTNAME= isso XDISTVERSION= 0.12.2 XCATEGORIES= www python XMASTER_SITES= CHEESESHOP XPKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} X XMAINTAINER= rt@scientifics.de XCOMMENT= Commenting server similar to Disqus X XLICENSE= MIT XLICENSE_FILE= $(WRKSRC)/LICENSE X XRUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \ X ${PYTHON_PKGNAMEPREFIX}bleach>0:www/py-bleach@${PY_FLAVOR} \ X ${PYTHON_PKGNAMEPREFIX}werkzeug>=0.9:www/py-werkzeug@${PY_FLAVOR} \ X ${PYTHON_PKGNAMEPREFIX}html5lib>0:www/py-html5lib@${PY_FLAVOR} \ X ${PYTHON_PKGNAMEPREFIX}misaka>=2.0<3.0:textproc/py-misaka@${PY_FLAVOR} \ X ${PYTHON_PKGNAMEPREFIX}itsdangerous>0:security/py-itsdangerous@${PY_FLAVOR} \ X ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \ X ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \ X ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \ X ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR} X XBUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>1.3.0:devel/py-cffi@${PY_FLAVOR} \ X ${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR} \ X git>2:devel/git \ X npm>0:www/npm X XUSES= gmake python XUSE_PYTHON= autoplist distutils XUSE_GITHUB= yes XGH_ACCOUNT= posativ XGH_PROJECT= ${PORTNAME} XGH_TAGNAME= ${DISTVERSION} X XALL_TARGET= init man js X XMAKEFILE= ${FILESDIR}/Makefile.in X XMAKE_JOBS_UNSAFE= no X XUSERS= www XGROUPS= www X XUSE_RC_SUBR= isso X XPLIST_FILES= "@sample etc/isso.conf.sample" X Xpy27_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ipaddr>2.1:devel/py-ipaddr@${PY_FLAVOR} \ X ${PYTHON_PKGNAMEPREFIX}configparser>0:devel/py-configparser@${PY_FLAVOR} X Xpost-patch: X @${REINPLACE_CMD} -e 's|/etc/isso.conf|${PREFIX}/etc/isso.conf|g' ${WRKSRC}/isso/__init__.py X Xpost-install: X @${MKDIR} ${STAGEDIR}${PREFIX}/etc X ${CP} ${WRKSRC}/share/isso.conf ${STAGEDIR}${PREFIX}/etc/isso.conf.sample X Xdo-build: X @cd ${WRKSRC} && ${MAKE_CMD} -f ${MAKEFILE} ${ALL_TARGET} X Xdo-test: X @cd ${WRKSRC} && ${PYTHON_CMD} setup.py nosetests X X.include 235e15b54f088b2ef02cf5dae1965047 echo x - py-isso/pkg-descr sed 's/^X//' >py-isso/pkg-descr << '365921718856a459036da32c44e2a0ef' XIsso is a lightweight commenting server similar to Disqus. It allows anonymous Xcomments, maintains identity and is simple to administrate. It uses JavaScript Xand cross-origin ressource sharing for easy integration into (static) websites X XWWW: https://posativ.org/isso/docs/ 365921718856a459036da32c44e2a0ef echo c - py-isso/files mkdir -p py-isso/files > /dev/null 2>&1 echo x - py-isso/files/isso.in sed 's/^X//' >py-isso/files/isso.in << 'e052c2acc189bcbac07554719810ff4d' X#!/bin/sh X# X# $FreeBSD$ X# X# PROVIDE: isso X# REQUIRE: DAEMON X# KEYWORD: shutdown X# X# isso_enable="YES" X# isso_bin="/usr/local/bin/isso" X# isso_config="/usr/local/etc/isso.conf" X# isso_user="www" X# X X. /etc/rc.subr X Xname=isso Xrcvar=isso_enable Xdesc="isso commenting service" X Xload_rc_config ${name} X X: ${isso_enable:=NO} X: ${isso_bin=/usr/local/bin/isso} X: ${isso_config=/usr/local/etc/isso.conf} X: ${isso_user=www} X Xlogfile=/var/log/isso.log Xpidfile=/var/run/isso.pid Xcommand="${isso_bin} -c ${isso_config} run" Xstart_cmd=isso_start Xstatus_cmd=isso_status Xstop_cmd=isso_stop Xprocname=/usr/sbin/daemon X Xisso_start() X{ X if [ -f ${pidfile} ]; then X echo "isso is already running (pid=$(cat ${pidfile}))" X return 1 X fi X export USER=${isso_user} X export HOME=$(echo ~${isso_user}) X touch ${logfile} X chmod 640 ${logfile} X ${procname} -P ${pidfile} -u ${isso_user} ${command} >>${logfile} 2>&1 X if [ -f ${pidfile} ]; then X echo "started isso (pid=$(cat ${pidfile}))" X else X echo "failed to start isso" X fi X} X Xisso_status() X{ X if [ -f ${pidfile} ]; then X echo "isso is running (pid=$(cat ${pidfile}))" X else X echo "isso is not running" X return 1 X fi X} X Xisso_stop() X{ X if [ -f ${pidfile} ]; then X local pid=$(cat $pidfile) X echo "stopping isso (pid=$pid)" X kill -- -$pid X rm -f ${pidfile} X else X echo "isso is not running" X fi X} X Xrun_rc_command "$1" e052c2acc189bcbac07554719810ff4d echo x - py-isso/files/Makefile.in sed 's/^X//' >py-isso/files/Makefile.in << '5b52d2c967adec8593bdcb36a36e8a29' X# INSTALLATION: pip install sphinx && npm install --global node-sass X XFLAKE_IGNORE=E226,E241,E265,E402,E501,E704 X XISSO_JS_SRC := $(shell find isso/js/app -type f) \ X $(shell ls isso/js/*.js | grep -vE "(min|dev)") \ X isso/js/lib/requirejs-jade/jade.js X XISSO_JS_DST := isso/js/embed.min.js isso/js/embed.dev.js \ X isso/js/count.min.js isso/js/count.dev.js X XISSO_CSS := isso/css/isso.css X XISSO_PY_SRC := $(shell git ls-files | grep -E "^isso/.+.py$$") X XDOCS_RST_SRC := $(shell find docs/ -type f -name '*.rst') \ X $(wildcard docs/_isso/*) \ X docs/index.html docs/conf.py docs/docutils.conf \ X share/isso.conf X XDOCS_CSS_SRC := docs/_static/css/site.scss X XDOCS_CSS_DEP := $(shell find docs/_static/css/neat -type f) \ X $(shell find docs/_static/css/bourbon -type f) X XDOCS_CSS_DST := docs/_static/css/site.css X XDOCS_MAN_DST := man/man1/isso.1 man/man5/isso.conf.5 X XDOCS_HTML_DST := docs/_build/html X XRJS = ./node_modules/requirejs/bin/r.js X XSASS = node-sass X Xall: init js X Xinit: X npm install bower requirejs uglify-js jade && cp package-lock.json package.json X cd isso/js && ../../node_modules/bower/bin/bower --allow-root install almond requirejs requirejs-text jade X Xflakes: X flake8 . --count --ignore=${FLAKE_IGNORE} --max-line-length=127 --show-source --statistics X Xisso/js/%.min.js: $(ISSO_JS_SRC) $(ISSO_CSS) X $(RJS) -o isso/js/build.$*.js out=$@ X Xisso/js/%.dev.js: $(ISSO_JS_SRC) $(ISSO_CSS) X $(RJS) -o isso/js/build.$*.js optimize="none" out=$@ X Xjs: $(ISSO_JS_DST) X Xman: $(DOCS_RST_SRC) X sphinx-build -b man docs/ man/ X mkdir -p man/man1/ man/man5 X mv man/isso.1 man/man1/isso.1 X mv man/isso.conf.5 man/man5/isso.conf.5 X X${DOCS_CSS_DST}: $(DOCS_CSS_SRC) $(DOCS_CSS_DEP) X $(SASS) --no-cache $(DOCS_CSS_SRC) $@ X X${DOCS_HTML_DST}: $(DOCS_RST_SRC) $(DOCS_CSS_DST) X sphinx-build -b dirhtml docs/ $@ X Xsite: $(DOCS_HTML_DST) X Xcoverage: $(ISSO_PY_SRC) X nosetests --with-doctest --with-coverage --cover-package=isso --cover-html isso/ X Xtest: $($ISSO_PY_SRC) X python setup.py nosetests X Xclean: X rm -f $(DOCS_MAN_DST) $(DOCS_CSS_DST) $(ISSO_JS_DST) X rm -rf $(DOCS_HTML_DST) X X.PHONY: clean site man init js coverage test X 5b52d2c967adec8593bdcb36a36e8a29 echo x - py-isso/pkg-message sed 's/^X//' >py-isso/pkg-message << '2303699d6ccd88ac96a21a4808f584b5' X[ X{ X message: <py-isso/distinfo << '43964baf5a425fb8723c4b1fdf11f645' XTIMESTAMP = 1567785184 XSHA256 (posativ-isso-0.12.2_GH0.tar.gz) = b1aafbfda42e9862f6492952865ba85499a23e51bb0afc44b6ea3622ea45ed69 XSIZE (posativ-isso-0.12.2_GH0.tar.gz) = 174049 43964baf5a425fb8723c4b1fdf11f645 exit