2006-11-08 23:34:32 +00:00
|
|
|
# New ports collection makefile for: dynagen
|
|
|
|
# Date created: 2006-11-07
|
|
|
|
# Whom: trasz <trasz@pin.if.uz.zgora.pl>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= dynagen
|
2008-06-20 14:36:28 +00:00
|
|
|
PORTVERSION= 0.11.0
|
2012-06-22 01:49:00 +00:00
|
|
|
PORTREVISION= 2
|
2006-11-08 23:34:32 +00:00
|
|
|
CATEGORIES= emulators
|
2009-08-22 00:20:34 +00:00
|
|
|
MASTER_SITES= SF/dyna-gen/${PORTNAME}%20source%20_%20Linux/${PORTNAME}%20${PORTVERSION}
|
2006-11-08 23:34:32 +00:00
|
|
|
|
2010-10-16 20:02:48 +00:00
|
|
|
MAINTAINER= pavelivolkov@googlemail.com
|
2008-06-20 14:36:28 +00:00
|
|
|
COMMENT= Text-based front end for Dynamips development version
|
2006-11-08 23:34:32 +00:00
|
|
|
|
2012-06-22 01:49:00 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2008-06-20 14:36:28 +00:00
|
|
|
# Note that it *should* be dynamips-devel but that port installs it as dynamips
|
2012-06-22 01:49:00 +00:00
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}configobj>=4.4.0:${PORTSDIR}/devel/py-configobj \
|
|
|
|
dynamips:${PORTSDIR}/emulators/dynamips-community
|
|
|
|
|
|
|
|
PLIST_FILES= bin/dynagen \
|
|
|
|
etc/dynagen.ini.sample \
|
|
|
|
%%PYTHON_SITELIBDIR%%/confConsole.py \
|
|
|
|
%%PYTHON_SITELIBDIR%%/confConsole.pyc \
|
|
|
|
%%PYTHON_SITELIBDIR%%/confConsole.pyo \
|
|
|
|
%%PYTHON_SITELIBDIR%%/console.py \
|
|
|
|
%%PYTHON_SITELIBDIR%%/console.pyc \
|
|
|
|
%%PYTHON_SITELIBDIR%%/console.pyo \
|
|
|
|
%%PYTHON_SITELIBDIR%%/dynamips_lib.py \
|
|
|
|
%%PYTHON_SITELIBDIR%%/dynamips_lib.pyc \
|
|
|
|
%%PYTHON_SITELIBDIR%%/dynamips_lib.pyo \
|
|
|
|
%%PYTHON_SITELIBDIR%%/pemu_lib.py \
|
|
|
|
%%PYTHON_SITELIBDIR%%/pemu_lib.pyc \
|
|
|
|
%%PYTHON_SITELIBDIR%%/pemu_lib.pyo \
|
|
|
|
%%PYTHON_SITELIBDIR%%/pemubin.py \
|
|
|
|
%%PYTHON_SITELIBDIR%%/pemubin.pyc \
|
|
|
|
%%PYTHON_SITELIBDIR%%/pemubin.pyo \
|
|
|
|
%%PYTHON_SITELIBDIR%%/pemuwrapper.py \
|
|
|
|
%%PYTHON_SITELIBDIR%%/pemuwrapper.pyc \
|
|
|
|
%%PYTHON_SITELIBDIR%%/pemuwrapper.pyo
|
|
|
|
|
|
|
|
PORTDOCS= *
|
|
|
|
PORTEXAMPLES= *
|
|
|
|
PORTDATA= *
|
2006-11-08 23:34:32 +00:00
|
|
|
|
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PYDISTUTILS= yes
|
|
|
|
ALL_TARGET= # empty
|
2007-02-26 21:26:46 +00:00
|
|
|
USE_DOS2UNIX= yes
|
2006-11-08 23:34:32 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/dynagen ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/dynagen.ini ${PREFIX}/etc/dynagen.ini.sample
|
2012-06-22 01:49:00 +00:00
|
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2006-11-08 23:34:32 +00:00
|
|
|
|
2012-06-22 01:49:00 +00:00
|
|
|
@${MKDIR} ${DATADIR}
|
2006-11-08 23:34:32 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/configspec ${DATADIR}/configspec
|
|
|
|
|
2012-06-22 01:49:00 +00:00
|
|
|
.ifndef NOPORTDOCS
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2006-11-08 23:34:32 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/tutorial.htm ${DOCSDIR}
|
2012-06-22 01:49:00 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}/tutorial_files
|
2006-11-08 23:34:32 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/tutorial_files/* ${DOCSDIR}/tutorial_files
|
|
|
|
.endif
|
2012-06-22 01:49:00 +00:00
|
|
|
|
|
|
|
.ifndef NOPORTEXAMPLES
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}/sample_labs
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}/sample_labs/ethernet_switch
|
2008-06-20 14:36:28 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample_labs/ethernet_switch/ethsw1.net ${EXAMPLESDIR}/sample_labs/ethernet_switch
|
2012-06-22 01:49:00 +00:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}/sample_labs/frame_relay
|
2006-11-08 23:34:32 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample_labs/frame_relay/frame_relay1.net ${EXAMPLESDIR}/sample_labs/frame_relay
|
2012-06-22 01:49:00 +00:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}/sample_labs/multiserver
|
2008-06-20 14:36:28 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample_labs/multiserver/multiserver.net ${EXAMPLESDIR}/sample_labs/multiserver
|
2012-06-22 01:49:00 +00:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}/sample_labs/pix
|
2008-06-20 14:36:28 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample_labs/pix/pixtest.net ${EXAMPLESDIR}/sample_labs/pix
|
2012-06-22 01:49:00 +00:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}/sample_labs/simple1
|
2008-06-20 14:36:28 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample_labs/simple1/simple1.net ${EXAMPLESDIR}/sample_labs/simple1
|
2012-06-22 01:49:00 +00:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}/sample_labs/simple2
|
2006-11-08 23:34:32 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample_labs/simple2/simple2.net ${EXAMPLESDIR}/sample_labs/simple2
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample_labs/all_config_options.txt ${EXAMPLESDIR}/sample_labs
|
2012-06-22 01:49:00 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-deinstall:
|
|
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGDEINSTALL} ${PKGNAME} DEINSTALL
|
2006-11-08 23:34:32 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|