d855fd313d
Dynagen is a text-based front-end, using an INI-like configuration file to provision Dynamips emulator networks. It takes care of specifying the right port adapters, generating and matching up NIO descriptors, specifying bridges, frame-relay, ATM switches, etc. It also provides a management CLI for listing devices, suspending and reloading instances, determining and managing idle-pc values, etc. feedback and ok ajacoutot
49 lines
1.5 KiB
Makefile
49 lines
1.5 KiB
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2008/01/18 09:12:12 sthen Exp $
|
|
|
|
COMMENT= front-end for dynamips cisco emulator
|
|
|
|
DISTNAME= dynagen-0.10.1
|
|
CATEGORIES= emulators
|
|
|
|
HOMEPAGE= http://dyna-gen.sourceforge.net/
|
|
|
|
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
|
|
|
|
# GPL
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dyna-gen/}
|
|
|
|
MODULES= lang/python
|
|
RUN_DEPENDS= ::emulators/dynamips
|
|
|
|
NO_BUILD= Yes
|
|
NO_REGRESS= Yes
|
|
PKG_ARCH= *
|
|
|
|
post-extract:
|
|
@find ${WRKSRC} -type f -exec perl -pi -e 's:\x0d::' {} \;
|
|
|
|
do-install:
|
|
@perl -pi -e 's:%%PREFIX%%:${TRUEPREFIX}:;' -e \
|
|
's:%%SYSCONFDIR%%:${SYSCONFDIR}:;' -e \
|
|
's:/usr/bin/env python:${MODPY_BIN}:' ${WRKSRC}/dynagen
|
|
${INSTALL_SCRIPT} ${WRKSRC}/dynagen ${PREFIX}/bin/
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${MODPY_SITEPKG}/dynagen
|
|
${INSTALL_SCRIPT} ${WRKSRC}/*.py* ${DESTDIR}${MODPY_SITEPKG}/dynagen
|
|
${INSTALL_SCRIPT} ${FILESDIR}/*.py* ${DESTDIR}${MODPY_SITEPKG}/dynagen
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/dynagen
|
|
${INSTALL_DATA} ${WRKSRC}/configspec ${PREFIX}/share/dynagen
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/dynagen/tutorial_files
|
|
${INSTALL_DATA} ${WRKSRC}/docs/*htm* ${PREFIX}/share/doc/dynagen
|
|
${INSTALL_DATA} ${WRKSRC}/docs/tutorial_files/* \
|
|
${PREFIX}/share/doc/dynagen/tutorial_files
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/dynagen
|
|
${INSTALL_DATA} ${WRKSRC}/dynagen.ini ${PREFIX}/share/examples/dynagen
|
|
@cp -R ${WRKSRC}/sample_labs/* ${PREFIX}/share/examples/dynagen
|
|
|
|
.include <bsd.port.mk>
|