View | Details | Raw Unified | Return to bug 199781
Collapse All | Expand All

(-)emulators/dynagen/Makefile (-23 / +14 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	dynagen
4
PORTNAME=	dynagen
5
PORTVERSION=	0.11.0
5
PORTVERSION=	0.11.0
6
PORTREVISION=	3
6
PORTREVISION=	4
7
CATEGORIES=	emulators
7
CATEGORIES=	emulators
8
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
8
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
9
MASTER_SITE_SUBDIR=	dyna-gen/${PORTNAME}%20source%20_%20Linux/${PORTNAME}%20${PORTVERSION}
9
MASTER_SITE_SUBDIR=	dyna-gen/${PORTNAME}%20source%20_%20Linux/${PORTNAME}%20${PORTVERSION}
Lines 16-41 Link Here
16
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}configobj>=4.4.0:${PORTSDIR}/devel/py-configobj \
16
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}configobj>=4.4.0:${PORTSDIR}/devel/py-configobj \
17
		dynamips:${PORTSDIR}/emulators/dynamips-community
17
		dynamips:${PORTSDIR}/emulators/dynamips-community
18
18
19
PLIST_FILES=	bin/dynagen \
19
PLIST_FILES=	bin/dynagen "@sample etc/dynagen.ini.sample" 
20
		"@sample etc/dynagen.ini.sample" \
21
		%%PYTHON_SITELIBDIR%%/confConsole.py \
22
		%%PYTHON_SITELIBDIR%%/confConsole.pyc \
23
		%%PYTHON_SITELIBDIR%%/confConsole.pyo \
24
		%%PYTHON_SITELIBDIR%%/console.py \
25
		%%PYTHON_SITELIBDIR%%/console.pyc \
26
		%%PYTHON_SITELIBDIR%%/console.pyo \
27
		%%PYTHON_SITELIBDIR%%/dynamips_lib.py \
28
		%%PYTHON_SITELIBDIR%%/dynamips_lib.pyc \
29
		%%PYTHON_SITELIBDIR%%/dynamips_lib.pyo \
30
		%%PYTHON_SITELIBDIR%%/pemu_lib.py \
31
		%%PYTHON_SITELIBDIR%%/pemu_lib.pyc \
32
		%%PYTHON_SITELIBDIR%%/pemu_lib.pyo \
33
		%%PYTHON_SITELIBDIR%%/pemubin.py \
34
		%%PYTHON_SITELIBDIR%%/pemubin.pyc \
35
		%%PYTHON_SITELIBDIR%%/pemubin.pyo \
36
		%%PYTHON_SITELIBDIR%%/pemuwrapper.py \
37
		%%PYTHON_SITELIBDIR%%/pemuwrapper.pyc \
38
		%%PYTHON_SITELIBDIR%%/pemuwrapper.pyo
39
20
40
PORTDOCS=	*
21
PORTDOCS=	*
41
PORTEXAMPLES=	*
22
PORTEXAMPLES=	*
Lines 54-65 Link Here
54
python_cnf_OLD_CMD=the an incredible combination
35
python_cnf_OLD_CMD=the an incredible combination
55
python_cnf_CMD=|;s|^CONFIGSPECPATH.*|CONFIGSPECPATH = ['${PREFIX}/share/dynagen']
36
python_cnf_CMD=|;s|^CONFIGSPECPATH.*|CONFIGSPECPATH = ['${PREFIX}/share/dynagen']
56
37
57
USE_PYTHON=	distutils
38
USE_PYTHON=	distutils autoplist
58
ALL_TARGET=	# empty
39
ALL_TARGET=	# empty
59
40
41
.include <bsd.port.options.mk>
42
.include <bsd.port.pre.mk>
43
60
post-extract:
44
post-extract:
61
	@${CP} ${FILESDIR}/setup.py ${WRKSRC}
45
	@${CP} ${FILESDIR}/setup.py ${WRKSRC}
62
46
47
post-patch:
48
.if ${PYTHON_MAJOR_VER} >= 3
49
	@${ECHO_MSG} "===>   Converting to python${PYTHON_MAJOR_VER}"
50
	${PYTHONBASE}/bin/2to3-${PYTHON_VER} --no-diffs --write ${WRKSRC} ${WRKSRC}/dynagen
51
	@${ECHO_MSG} "===>   end of converting"
52
.endif
53
63
post-install:
54
post-install:
64
	${INSTALL_SCRIPT} ${WRKSRC}/dynagen ${STAGEDIR}${PREFIX}/bin
55
	${INSTALL_SCRIPT} ${WRKSRC}/dynagen ${STAGEDIR}${PREFIX}/bin
65
	${INSTALL_DATA} ${WRKSRC}/dynagen.ini ${STAGEDIR}${PREFIX}/etc/dynagen.ini.sample
56
	${INSTALL_DATA} ${WRKSRC}/dynagen.ini ${STAGEDIR}${PREFIX}/etc/dynagen.ini.sample
Lines 88-91 Link Here
88
	${INSTALL_DATA} ${WRKSRC}/sample_labs/simple2/simple2.net ${STAGEDIR}${EXAMPLESDIR}/sample_labs/simple2
79
	${INSTALL_DATA} ${WRKSRC}/sample_labs/simple2/simple2.net ${STAGEDIR}${EXAMPLESDIR}/sample_labs/simple2
89
	${INSTALL_DATA} ${WRKSRC}/sample_labs/all_config_options.txt ${STAGEDIR}${EXAMPLESDIR}/sample_labs
80
	${INSTALL_DATA} ${WRKSRC}/sample_labs/all_config_options.txt ${STAGEDIR}${EXAMPLESDIR}/sample_labs
90
81
91
.include <bsd.port.mk>
82
.include <bsd.port.post.mk>
(-)emulators/dynagen/files/setup.py (-1 / +1 lines)
Lines 14-20 Link Here
14
    url = "http://sourceforge.net/projects/dyna-gen",
14
    url = "http://sourceforge.net/projects/dyna-gen",
15
    license = "GPLv2",
15
    license = "GPLv2",
16
    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.""",
16
    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.""",
17
    py_modules = ['confConsole','console','dynamips_lib','pemu_lib', 'pemubin', 'pemuwrapper']
17
    py_modules = ['confConsole','console','dynamips_lib','pemu_lib','pemubin','pemuwrapper']
18
)
18
)
19
19
20
print "If you have installed the modules, copy dynagen to some "
20
print "If you have installed the modules, copy dynagen to some "

Return to bug 199781