Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Oct 2014 13:29:15 +0000 (UTC)
From:      Wen Heping <wen@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r370065 - in head/devel/py-mwlib: . files
Message-ID:  <201410051329.s95DTFEO090859@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wen
Date: Sun Oct  5 13:29:15 2014
New Revision: 370065
URL: https://svnweb.freebsd.org/changeset/ports/370065
QAT: https://qat.redports.org/buildarchive/r370065/

Log:
  - Fix dependencies [1]
  - Add rc scripts [1]
  - Reset maintainer to ports@
  
  PR:		193784 [1]
  Submitted by:	swills@ [1]

Added:
  head/devel/py-mwlib/files/
  head/devel/py-mwlib/files/mwqserve.in   (contents, props changed)
  head/devel/py-mwlib/files/nserve.in   (contents, props changed)
  head/devel/py-mwlib/files/nslave.in   (contents, props changed)
  head/devel/py-mwlib/files/postman.in   (contents, props changed)
Modified:
  head/devel/py-mwlib/Makefile

Modified: head/devel/py-mwlib/Makefile
==============================================================================
--- head/devel/py-mwlib/Makefile	Sun Oct  5 13:24:58 2014	(r370064)
+++ head/devel/py-mwlib/Makefile	Sun Oct  5 13:29:15 2014	(r370065)
@@ -3,35 +3,40 @@
 
 PORTNAME=	mwlib
 PORTVERSION=	0.15.14
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
-MAINTAINER=	wen@FreeBSD.org
+MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Python's MediaWiki Parser and Utility Library
 
 LICENSE=	BSD3CLAUSE
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}parsing>0:${PORTSDIR}/devel/py-parsing \
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}apipkg>=1.2:${PORTSDIR}/devel/py-apipkg \
+		${PYTHON_PKGNAMEPREFIX}bottle>=0.10:${PORTSDIR}/www/py-bottle \
+		${PYTHON_PKGNAMEPREFIX}flup>=1.0:${PORTSDIR}/www/py-flup \
 		${PYTHON_PKGNAMEPREFIX}gevent>=0:${PORTSDIR}/devel/py-gevent \
+		${PYTHON_PKGNAMEPREFIX}lockfile>=0.8:${PORTSDIR}/devel/py-lockfile \
+		${PYTHON_PKGNAMEPREFIX}lxml>=0:${PORTSDIR}/devel/py-lxml \
 		${PYTHON_PKGNAMEPREFIX}odfpy>=0.9:${PORTSDIR}/devel/py-odfpy \
 		${PYTHON_PKGNAMEPREFIX}webob>=0.9.6.1:${PORTSDIR}/www/py-webob \
 		${PYTHON_PKGNAMEPREFIX}lockfile>=0.8:${PORTSDIR}/devel/py-lockfile \
 		${PYTHON_PKGNAMEPREFIX}timelib>=0.2:${PORTSDIR}/devel/py-timelib \
 		${PYTHON_PKGNAMEPREFIX}pdf>=1.12:${PORTSDIR}/print/py-pdf \
-		${PYTHON_PKGNAMEPREFIX}simplejson>2.0.8:${PORTSDIR}/devel/py-simplejson \
-		${PYTHON_PKGNAMEPREFIX}flup>=1.0:${PORTSDIR}/www/py-flup \
 		${PYTHON_PKGNAMEPREFIX}pillow>0:${PORTSDIR}/graphics/py-pillow \
 		${PYTHON_PKGNAMEPREFIX}pylib>=1.4.0:${PORTSDIR}/devel/py-pylib \
-		${PYTHON_PKGNAMEPREFIX}lxml>=0:${PORTSDIR}/devel/py-lxml \
-		${PYTHON_PKGNAMEPREFIX}apipkg>=0:${PORTSDIR}/devel/py-apipkg \
 		${PYTHON_PKGNAMEPREFIX}qserve>=0:${PORTSDIR}/devel/py-qserve \
 		${PYTHON_PKGNAMEPREFIX}roman>=0:${PORTSDIR}/math/py-roman \
-		${PYTHON_PKGNAMEPREFIX}sqlite3dbm>=0:${PORTSDIR}/databases/py-sqlite3dbm
+		${PYTHON_PKGNAMEPREFIX}simplejson>2.0.8:${PORTSDIR}/devel/py-simplejson \
+		${PYTHON_PKGNAMEPREFIX}sqlite3dbm>=0:${PORTSDIR}/databases/py-sqlite3dbm \
+		${PYTHON_PKGNAMEPREFIX}timelib>=0.2:${PORTSDIR}/devel/py-timelib \
+		${PYTHON_PKGNAMEPREFIX}webob>=0.9.6.1:${PORTSDIR}/www/py-webob
 
 USES=		python:2 zip
-USE_PYTHON=		autoplist distutils
+USE_PYTHON=	autoplist distutils
+USE_RC_SUBR=	mwqserve nserve nslave postman
+SUB_LIST=	PYTHON_CMD=${PYTHON_CMD}
 
 post-patch:
 	${REINPLACE_CMD} \

Added: head/devel/py-mwlib/files/mwqserve.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-mwlib/files/mwqserve.in	Sun Oct  5 13:29:15 2014	(r370065)
@@ -0,0 +1,38 @@
+#! /bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: mwqserve
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable mwqserve:
+#
+#mwqserve_enable="YES"
+
+. /etc/rc.subr
+
+name="mwqserve"
+rcvar="mwqserve_enable"
+
+load_rc_config $name
+
+: ${mwqserve_user:=www}
+: ${mwqserve_group:=www}
+: ${mwqserve_enable:=NO}
+
+pidfile="/var/run/${name}.pid"
+command="/usr/sbin/daemon"
+command_args="-c -f -p ${pidfile} %%PREFIX%%/bin/mw-qserve ${mwqserve_args}"
+command_interpreter="%%PYTHON_CMD%%"
+procname="%%PREFIX%%/bin/mw-qserve"
+
+start_precmd=mwqserve_pre_start
+
+mwqserve_pre_start() {
+    /usr/bin/install -o ${mwqserve_user} -g ${mwqserve_group} -m 644 /dev/null ${pidfile}
+}
+
+run_rc_command "$1"

Added: head/devel/py-mwlib/files/nserve.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-mwlib/files/nserve.in	Sun Oct  5 13:29:15 2014	(r370065)
@@ -0,0 +1,38 @@
+#! /bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: nserve
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable nserve:
+#
+#nserve_enable="YES"
+
+. /etc/rc.subr
+
+name="nserve"
+rcvar="nserve_enable"
+
+load_rc_config $name
+
+: ${nserve_user:=www}
+: ${nserve_group:=www}
+: ${nserve_enable:=NO}
+
+pidfile="/var/run/${name}.pid"
+command="/usr/sbin/daemon"
+command_args="-c -f -p ${pidfile} %%PREFIX%%/bin/nserve ${nserve_args}"
+command_interpreter="%%PYTHON_CMD%%"
+procname="%%PREFIX%%/bin/nserve"
+
+start_precmd=nserve_pre_start
+
+nserve_pre_start() {
+    /usr/bin/install -o ${nserve_user} -g ${nserve_group} -m 644 /dev/null ${pidfile}
+}
+
+run_rc_command "$1"

Added: head/devel/py-mwlib/files/nslave.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-mwlib/files/nslave.in	Sun Oct  5 13:29:15 2014	(r370065)
@@ -0,0 +1,38 @@
+#! /bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: nslave
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable nslave:
+#
+#nslave_enable="YES"
+
+. /etc/rc.subr
+
+name="nslave"
+rcvar="nslave_enable"
+
+load_rc_config $name
+
+: ${nslave_user:=www}
+: ${nslave_group:=www}
+: ${nslave_enable:=NO}
+
+pidfile="/var/run/${name}.pid"
+command="/usr/sbin/daemon"
+command_args="-c -f -p ${pidfile} %%PREFIX%%/bin/nslave ${nslave_args}"
+command_interpreter="%%PYTHON_CMD%%"
+procname="%%PREFIX%%/bin/nslave"
+
+start_precmd=nslave_pre_start
+
+nslave_pre_start() {
+    /usr/bin/install -o ${nslave_user} -g ${nslave_group} -m 644 /dev/null ${pidfile}
+}
+
+run_rc_command "$1"

Added: head/devel/py-mwlib/files/postman.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-mwlib/files/postman.in	Sun Oct  5 13:29:15 2014	(r370065)
@@ -0,0 +1,38 @@
+#! /bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: postman
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+
+#
+# Add the following lines to /etc/rc.conf to enable postman:
+#
+#postman_enable="YES"
+
+. /etc/rc.subr
+
+name="postman"
+rcvar="postman_enable"
+
+load_rc_config $name
+
+: ${postman_user:=www}
+: ${postman_group:=www}
+: ${postman_enable:=NO}
+
+pidfile="/var/run/${name}.pid"
+command="/usr/sbin/daemon"
+command_args="-c -f -p ${pidfile} %%PREFIX%%/bin/postman ${postman_args}"
+command_interpreter="%%PYTHON_CMD%%"
+procname="%%PREFIX%%/bin/postman"
+
+start_precmd=postman_pre_start
+
+postman_pre_start() {
+    /usr/bin/install -o ${postman_user} -g ${postman_group} -m 644 /dev/null ${pidfile}
+}
+
+run_rc_command "$1"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410051329.s95DTFEO090859>