From owner-svn-ports-all@FreeBSD.ORG Sat Mar 28 14:38:51 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5BF5B3E5; Sat, 28 Mar 2015 14:38:51 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::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 3C817A7A; Sat, 28 Mar 2015 14:38:51 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t2SEcpQP070579; Sat, 28 Mar 2015 14:38:51 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t2SEcoqr070577; Sat, 28 Mar 2015 14:38:50 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201503281438.t2SEcoqr070577@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Sat, 28 Mar 2015 14:38:50 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r382486 - in head/emulators/dynagen: . 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-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2015 14:38:51 -0000 Author: pi Date: Sat Mar 28 14:38:49 2015 New Revision: 382486 URL: https://svnweb.freebsd.org/changeset/ports/382486 QAT: https://qat.redports.org/buildarchive/r382486/ Log: emulators/dynagen: shebangfix for python in the scripts instead of patches PR: 194215 Submitted by: Pavel Volkov (maintainer) Reviewed by: marino Added: head/emulators/dynagen/files/setup.py (contents, props changed) Deleted: head/emulators/dynagen/files/patch-confConsole.py head/emulators/dynagen/files/patch-console.py head/emulators/dynagen/files/patch-dynagen head/emulators/dynagen/files/patch-dynamips_lib.py head/emulators/dynagen/files/patch-pemu_lib.py head/emulators/dynagen/files/patch-setup.py Modified: head/emulators/dynagen/Makefile Modified: head/emulators/dynagen/Makefile ============================================================================== --- head/emulators/dynagen/Makefile Sat Mar 28 14:37:28 2015 (r382485) +++ head/emulators/dynagen/Makefile Sat Mar 28 14:38:49 2015 (r382486) @@ -42,9 +42,24 @@ PORTEXAMPLES= * PORTDATA= * USES= dos2unix python + +USES+= shebangfix +SHEBANG_FILES= *.py dynagen pemu-start.sh +SHEBANG_LANG= python_env python_bol python_cnf +python_CMD= ${PYTHON_CMD} +python_env_OLD_CMD=/usr/bin/env[[:space:]]*python +python_env_CMD= ${PYTHON_CMD} +python_bol_OLD_CMD=the an incredible combination +python_bol_CMD=|;9s|^python|${PYTHON_CMD} +python_cnf_OLD_CMD=the an incredible combination +python_cnf_CMD=|;s|^CONFIGSPECPATH.*|CONFIGSPECPATH = ['${PREFIX}/share/dynagen'] + USE_PYTHON= distutils ALL_TARGET= # empty +post-extract: + @${CP} ${FILESDIR}/setup.py ${WRKSRC} + post-install: ${INSTALL_SCRIPT} ${WRKSRC}/dynagen ${STAGEDIR}${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/dynagen.ini ${STAGEDIR}${PREFIX}/etc/dynagen.ini.sample Added: head/emulators/dynagen/files/setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/dynagen/files/setup.py Sat Mar 28 14:38:49 2015 (r382486) @@ -0,0 +1,21 @@ +#!/usr/bin/python + +"""Setup script for the dynagen module distribution.""" +# run this like python setup --root=/usr/local + +from distutils.core import setup, Extension + +setup( # Distribution meta-data + name = "dynagen", + version = "0.11.0", + description = "A frontend for dynamips", + author = "Greg Anuzelli", + author_email = "dynagen@gmail.com", + url = "http://sourceforge.net/projects/dyna-gen", + license = "GPLv2", + long_description = """Dynagen is a utility for use with the dynamips Cisco router simulator. It allows you to quickly provision and manage virtual networks using an INI like configuration file.""", + py_modules = ['confConsole','console','dynamips_lib','pemu_lib', 'pemubin', 'pemuwrapper'] +) + +print "If you have installed the modules, copy dynagen to some " +print "place in your $PATH, like /usr/local/bin/."