From owner-svn-ports-head@freebsd.org Fri Oct 28 00:03:31 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E85EAC24955; Fri, 28 Oct 2016 00:03:31 +0000 (UTC) (envelope-from cpm@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 mx1.freebsd.org (Postfix) with ESMTPS id C2BC415C; Fri, 28 Oct 2016 00:03:31 +0000 (UTC) (envelope-from cpm@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u9S03VBK040003; Fri, 28 Oct 2016 00:03:31 GMT (envelope-from cpm@FreeBSD.org) Received: (from cpm@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u9S03Urd039996; Fri, 28 Oct 2016 00:03:30 GMT (envelope-from cpm@FreeBSD.org) Message-Id: <201610280003.u9S03Urd039996@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cpm set sender to cpm@FreeBSD.org using -f From: "Carlos J. Puga Medina" Date: Fri, 28 Oct 2016 00:03:30 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r424797 - in head/net/pygopherd: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 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: Fri, 28 Oct 2016 00:03:32 -0000 Author: cpm Date: Fri Oct 28 00:03:30 2016 New Revision: 424797 URL: https://svnweb.freebsd.org/changeset/ports/424797 Log: net/pygopherd: modernize port - Add LICENSE and LICENSE_FILE - Remove unnecessary PYDISTUTILS_PKGVERSION - Add NO_ARCH - Regenerate patches with make makepatch - Record TIMESTAMP in distinfo - Fix pkg-plist - Take maintainership - Bump PORTREVISION PR: 213539 Submitted by: Neel Chauhan Approved by: koobs (mentor) Added: head/net/pygopherd/files/patch-bin_pygopherd (contents, props changed) head/net/pygopherd/files/patch-conf_pygopherd.conf (contents, props changed) Deleted: head/net/pygopherd/files/patch-pygopherd head/net/pygopherd/files/patch-pygopherd.conf Modified: head/net/pygopherd/Makefile head/net/pygopherd/distinfo head/net/pygopherd/files/patch-doc__pygopherd.8 head/net/pygopherd/files/patch-setup.py head/net/pygopherd/pkg-plist Modified: head/net/pygopherd/Makefile ============================================================================== --- head/net/pygopherd/Makefile Thu Oct 27 23:15:18 2016 (r424796) +++ head/net/pygopherd/Makefile Fri Oct 28 00:03:30 2016 (r424797) @@ -3,20 +3,24 @@ PORTNAME= pygopherd PORTVERSION= 2.0.16 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net python MASTER_SITES= http://gopher.quux.org:70/devel/gopher/Downloads/pygopherd/ \ http://gopher.quux.org:70/devel/gopher/Downloads/pygopherd/old/ DISTNAME= ${PORTNAME}_${PORTVERSION} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= neel@neelc.org COMMENT= Multiprotocol Information Server +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING + USES= python USE_PYTHON= distutils -PYDISTUTILS_PKGVERSION= 2.0.15 WRKSRC= ${WRKDIR}/${PORTNAME} +NO_ARCH= yes + post-patch: .for f in setup.py bin/pygopherd conf/pygopherd.conf doc/pygopherd.8 @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/${f} Modified: head/net/pygopherd/distinfo ============================================================================== --- head/net/pygopherd/distinfo Thu Oct 27 23:15:18 2016 (r424796) +++ head/net/pygopherd/distinfo Fri Oct 28 00:03:30 2016 (r424797) @@ -1,2 +1,3 @@ +TIMESTAMP = 1476825666 SHA256 (pygopherd_2.0.16.tar.gz) = d96ba235a4207aee94b1436ac084448d69ec7042e477a0649da8148bb044c729 SIZE (pygopherd_2.0.16.tar.gz) = 255475 Added: head/net/pygopherd/files/patch-bin_pygopherd ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/pygopherd/files/patch-bin_pygopherd Fri Oct 28 00:03:30 2016 (r424797) @@ -0,0 +1,11 @@ +--- bin/pygopherd.orig 2005-09-22 13:00:21 UTC ++++ bin/pygopherd +@@ -23,7 +23,7 @@ + from pygopherd import * + import sys + +-conffile = '/etc/pygopherd/pygopherd.conf' ++conffile = '%%PREFIX%%/etc/pygopherd/pygopherd.conf' + if len(sys.argv) > 1: + conffile = sys.argv[1] + Added: head/net/pygopherd/files/patch-conf_pygopherd.conf ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/pygopherd/files/patch-conf_pygopherd.conf Fri Oct 28 00:03:30 2016 (r424797) @@ -0,0 +1,11 @@ +--- conf/pygopherd.conf.orig 2006-09-11 14:10:13 UTC ++++ conf/pygopherd.conf +@@ -125,7 +125,7 @@ root = /var/gopher + # specify multiple files here -- just separate them with a colon. + # ALL of them that are found will be read. + +-mimetypes = ./conf/mime.types:/etc/pygopherd/mime.types:/etc/mime.types ++mimetypes = ./conf/mime.types:%%PREFIX%%/etc/pygopherd/mime.types:/etc/mime.types + + # Encodings. You can use the default with the following syntax. The + # mimetypex.encodings_map is {'.Z': 'compress', '.gz': 'gzip'}. Modified: head/net/pygopherd/files/patch-doc__pygopherd.8 ============================================================================== --- head/net/pygopherd/files/patch-doc__pygopherd.8 Thu Oct 27 23:15:18 2016 (r424796) +++ head/net/pygopherd/files/patch-doc__pygopherd.8 Fri Oct 28 00:03:30 2016 (r424797) @@ -1,6 +1,6 @@ ---- doc/pygopherd.8.orig Sun Jan 18 02:26:38 2004 -+++ doc/pygopherd.8 Sun Jan 18 02:29:01 2004 -@@ -180,7 +180,7 @@ +--- doc/pygopherd.8.orig 2005-09-22 13:00:21 UTC ++++ doc/pygopherd.8 +@@ -180,7 +180,7 @@ distribution includes two files of inter \fIconf/pygopherd.conf\fR and \fIconf/mime.types\fR. Debian users will find the configuration file pre-installed in @@ -9,7 +9,7 @@ \fImime.types\fR file provided by the system already. .PP -@@ -196,7 +196,7 @@ +@@ -196,7 +196,7 @@ remaining ones should be fine for a basi .PP Invoke \fBPyGopherd\fR with \fBpygopherd path/to/configfile\fR (or @@ -18,7 +18,7 @@ Place some files in the location specified by the \fIroot\fR directive in the config file and you're ready to run! -@@ -221,7 +221,7 @@ +@@ -221,7 +221,7 @@ If you are not tracking Debian unstable, package from the \fBPyGopherd\fR website and then run \fBdpkg -i\fR to install the downloaded package. Then, skip to the configuration section below. @@ -27,7 +27,7 @@ to start the program. .SS "OTHER SYSTEM-WIDE INSTALLATION" .PP -@@ -242,7 +242,7 @@ +@@ -242,7 +242,7 @@ Some systems will use \fBpython\fR or \fBpython2.2\fR. .PP Next, proceed to configuration. Make sure that the @@ -36,7 +36,7 @@ names valid users (\fIsetuid\fR and \fIsetgid\fR options) and a valid document root (\fIroot\fR option). -@@ -287,7 +287,7 @@ +@@ -287,7 +287,7 @@ installation step necessary. .SH "CONFIGURATION" .PP \fBPyGopherd\fR is regulated by a configuratoin file normally Modified: head/net/pygopherd/files/patch-setup.py ============================================================================== --- head/net/pygopherd/files/patch-setup.py Thu Oct 27 23:15:18 2016 (r424796) +++ head/net/pygopherd/files/patch-setup.py Fri Oct 28 00:03:30 2016 (r424797) @@ -1,6 +1,6 @@ ---- setup.py.orig Sat Aug 23 16:31:00 2003 -+++ setup.py Fri Dec 5 21:24:43 2003 -@@ -33,7 +33,7 @@ +--- setup.py.orig 2005-09-22 13:00:21 UTC ++++ setup.py +@@ -33,7 +33,7 @@ setup(name = "pygopherd", url = pygopherd.version.homepage, packages = ['pygopherd', 'pygopherd.handlers', 'pygopherd.protocols'], scripts = ['bin/pygopherd'], Modified: head/net/pygopherd/pkg-plist ============================================================================== --- head/net/pygopherd/pkg-plist Thu Oct 27 23:15:18 2016 (r424796) +++ head/net/pygopherd/pkg-plist Fri Oct 28 00:03:30 2016 (r424797) @@ -130,4 +130,8 @@ etc/pygopherd/mime.types %%PYTHON_SITELIBDIR%%/pygopherd/zipfile.py %%PYTHON_SITELIBDIR%%/pygopherd/zipfile.pyc %%PYTHON_SITELIBDIR%%/pygopherd/zipfile.pyo +%%PYTHON_SITELIBDIR%%/pygopherd-2.0.15-py%%PYTHON_VER%%.egg-info/PKG-INFO +%%PYTHON_SITELIBDIR%%/pygopherd-2.0.15-py%%PYTHON_VER%%.egg-info/SOURCES.txt +%%PYTHON_SITELIBDIR%%/pygopherd-2.0.15-py%%PYTHON_VER%%.egg-info/dependency_links.txt +%%PYTHON_SITELIBDIR%%/pygopherd-2.0.15-py%%PYTHON_VER%%.egg-info/top_level.txt man/man8/pygopherd.8.gz