Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

22
emulators/dynamips/DESCR Normal file
View File

@@ -0,0 +1,22 @@
Cisco 3600 and Cisco 7200 emulator. You'll need an
IOS image in order to properly use this package.
At this time, the emulator is able to boot a large
number of Cisco IOS releases available for the 7200
and 3600 platforms, including the latest 12.2S and 12.4T.
The following devices are emulated in the current release (0.2.5):
- MIPS64 CPU processor. The instruction set is not completely
emulated now (FPU support is lacking, TLB support is not
finished and other minor things), but it is sufficient for IOS ;
- DRAM and Packet SRAM memory ;
- Non-Volatile Memory (NVRAM) ;
- Signetics SCN 2681 DUART (C7200 Console and AUX ports) ;
- National Semiconductors NS16552 DUART (C3600 Console and AUX ports) ;
- Dallas DS1620 Temperature Sensors and Voltage Sensors, allowing
the C7200 Environmental Monitor to work properly ;
- NMC93C46 Serial EEPROM ;
- Bootflash of 8 Mb (Intel 28F016SA) ;
- Galileo GT64010/GT64120 PCI controller, DEC 21x50 PCI bridges and so ;
- PCMCIA ATA disk emulation (C7200 only at this time).

View File

@@ -0,0 +1,11 @@
===========================================================================
$NetBSD: MESSAGE,v 1.1.1.1 2008/02/14 11:00:13 kefren Exp $
By default dynamips will eat up all your CPU cycles.
In this case you'll have to supply an idlepc value specific to each IOS
version. For more information see:
http://dynagen.org/tutorial.htm#_Toc176827651
===========================================================================

View File

@@ -0,0 +1,37 @@
# $NetBSD: Makefile,v 1.8 2013/02/06 19:30:55 jperkin Exp $
DISTNAME= dynamips-0.2.8-RC2
PKGNAME= ${DISTNAME:S/-RC/rc/}
PKGREVISION= 1
CATEGORIES= emulators
MASTER_SITES= http://www.ipflow.utc.fr/dynamips/
MAINTAINER= kefren@NetBSD.org
HOMEPAGE= http://www.ipflow.utc.fr/index.php/Cisco_7200_Simulator
COMMENT= Cisco 3600 and 7200 MIPS emulator
LICENSE= gnu-gpl-v2
MAKE_JOBS_SAFE= no
USE_TOOLS+= gmake
NO_CONFIGURE= yes
BUILD_TARGET= # empty
SUBST_CLASSES+= libelf
SUBST_STAGE.libelf= post-patch
SUBST_FILES.libelf= dynamips.h rom2c.c
SUBST_SED.libelf= -e 's,<libelf.h>,<libelf/libelf.h>,'
SUBST_MESSAGE.libelf= Fix libelf header file path
INSTALLATION_DIRS= bin
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/dynamips ${DESTDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/nvram_export ${DESTDIR}${PREFIX}/bin
.include "../../devel/libelf/buildlink3.mk"
.include "../../net/libpcap/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

3
emulators/dynamips/PLIST Normal file
View File

@@ -0,0 +1,3 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2008/02/14 11:00:13 kefren Exp $
bin/dynamips
bin/nvram_export

View File

@@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.5 2013/02/27 19:33:10 markd Exp $
SHA1 (dynamips-0.2.8-RC2.tar.gz) = 349270690996a1e260b3eceb51ea90f94c25a59e
RMD160 (dynamips-0.2.8-RC2.tar.gz) = 0447a4c0cf516bd2b63259881c7625e26d0d838f
Size (dynamips-0.2.8-RC2.tar.gz) = 578935 bytes
SHA1 (patch-aa) = 002d81f7155d52d9a74d5297d9a28ec3bfc26254

View File

@@ -0,0 +1,59 @@
$NetBSD: patch-aa,v 1.5 2013/02/27 19:33:11 markd Exp $
--- Makefile.orig 2007-10-14 08:43:07.000000000 +0000
+++ Makefile
@@ -3,7 +3,19 @@
# Replace x86 by amd64 for a build on x86_64.
# Use "nojit" for architectures that are not x86 or x86_64.
-DYNAMIPS_ARCH?=x86
+ifeq ($(shell uname -m), i386)
+ DYNAMIPS_ARCH?=x86
+else
+ifeq ($(shell uname -m), i686)
+ DYNAMIPS_ARCH?=x86
+else
+ifeq ($(shell uname -m), amd64)
+ DYNAMIPS_ARCH?=amd64
+else
+ DYNAMIPS_ARCH?=nojit
+endif
+endif
+endif
# Change this to 0 if your system doesn't support RFC 2553 extensions
HAS_RFC2553?=1
@@ -54,11 +66,21 @@ ifeq ($(shell uname), FreeBSD)
$(PTHREAD_CFLAGS) -D_FILE_OFFSET_BITS=64
LIBS=-L$(LOCALBASE)/lib -L. -ldl -lelf $(PTHREAD_LIBS) $(LDFLAGS)
else
+ifeq ($(shell uname -s), NetBSD)
+ PTHREAD_LIBS?=-pthread
+ CFLAGS+=-I${LOCALBASE}/include -I${LOCALBASE}/include/libelf ${PTHREAD_CFLAGS}
+ LIBS=-L${LOCALBASE}/lib -lelf ${PTHREAD_LIBS} ${PTHREAD_LDFLAGS} ${COMPILER_RPATH_FLAG}${LOCALBASE}/lib
+else
+ifeq ($(shell uname -s), DragonFly)
+ PTHREAD_LIBS?=-pthread
+ CFLAGS+=-I${LOCALBASE}/include -I${LOCALBASE}/include/libelf ${PTHREAD_CFLAGS}
+ LIBS=-L${LOCALBASE}/lib -lelf ${PTHREAD_LIBS} ${PTHREAD_LDFLAGS} ${COMPILER_RPATH_FLAG}${LOCALBASE}/lib
+else
ifeq ($(shell uname), Linux)
PTHREAD_LIBS?=-lpthread
# PCAP_LIB=-lpcap
CFLAGS+=-I/usr/include -I. $(PTHREAD_CFLAGS)
- LIBS=-L/usr/lib -L. -ldl /usr/lib/libelf.a $(PTHREAD_LIBS)
+ LIBS=-L${LOCALBASE}/lib -L. -ldl -lelf $(PTHREAD_LIBS) ${COMPILER_RPATH_FLAG}${LOCALBASE}/lib
DESTDIR=/usr
else
ifeq ($(shell uname -s), Darwin)
@@ -79,7 +101,9 @@ ifeq ($(shell uname -o), Cygwin)
PCAP_LIB=-lpacket -lwpcap
else
CFLAGS+=-I/usr/include/libelf -D_FILE_OFFSET_BITS=64
- LIBS=-L. -ldl /usr/lib/libelf.a -lpthread
+ LIBS=-L. -ldl -lelf -lpthread
+endif
+endif
endif
endif
endif