debian/0000755000000000000000000000000012232452411007162 5ustar debian/control0000644000000000000000000000134612232163051010570 0ustar Source: irsim Section: electronics Priority: extra Maintainer: Roland Stigge Build-Depends: debhelper (>= 9), autotools-dev, tcl-dev, tk-dev, mesa-common-dev, m4, x11proto-core-dev, libxt-dev, autotools-dev Standards-Version: 3.9.4 Homepage: http://opencircuitdesign.com/irsim/ Package: irsim Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: switch-level simulator IRSIM is a tool for simulating digital circuits. It is a "switch-level" simulator; that is, it treats transistors as ideal switches. Extracted capacitance and lumped resistance values are used to make the switch a little bit more realistic than the ideal, using the RC time constants to predict the relative timing of events. debian/changelog0000644000000000000000000000225512232164341011042 0ustar irsim (9.7.82-2) unstable; urgency=low * Use autotools-dev to update config.{sub,guess} (Closes: #727389) -- Roland Stigge Thu, 24 Oct 2013 11:30:39 +0200 irsim (9.7.82-1) unstable; urgency=low * New upstream release * Use readlink for /usr/bin/wish in irsim to use versioned wish (Closes: #725700) -- Roland Stigge Thu, 17 Oct 2013 10:35:16 +0200 irsim (9.7.79-2) unstable; urgency=low * debian/control: Standards-Version: 3.9.4 -- Roland Stigge Wed, 15 May 2013 21:50:57 +0200 irsim (9.7.79-1) experimental; urgency=low * New upstream release -- Roland Stigge Fri, 25 Jan 2013 11:12:10 +0100 irsim (9.7.78-1) experimental; urgency=low * New upstream release -- Roland Stigge Tue, 25 Sep 2012 13:15:15 +0200 irsim (9.7.75-1) unstable; urgency=low * New upstream release * debian/compat: 9 * debian/control: Standards-Version: 3.9.3 -- Roland Stigge Sat, 10 Mar 2012 20:43:11 +0100 irsim (9.7.74-1) unstable; urgency=low * Initial release (Closes: #478112) -- Roland Stigge Wed, 27 Jul 2011 13:18:46 +0200 debian/watch0000644000000000000000000000011411613773760010226 0ustar version=3 http://opencircuitdesign.com/irsim/download.html .*irsim-(.*).tgz debian/rules0000755000000000000000000000037312232164142010246 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --with autotools_dev override_dh_auto_install: dh_auto_install sed -i -e "s,/usr/bin/wish,$(shell readlink -f /usr/bin/wish)," debian/irsim/usr/bin/irsim debian/patches/0000755000000000000000000000000012227741613010622 5ustar debian/patches/03-fhs-images.patch0000644000000000000000000000322511614357715014115 0ustar Description: FHS adjustments for image files This patch adjusts some image files (xbm) to be in an FHS conformant location, not /usr/lib Author: Roland Stigge --- irsim-9.7.74.orig/scripts/defs.mak.in +++ irsim-9.7.74/scripts/defs.mak.in @@ -35,7 +35,7 @@ DOCDIR = ${libdir}/irsim SYSDIR = ${libdir}/irsim/sys PRMDIR = ${libdir}/irsim/prm TCLDIR = ${libdir}/irsim/tcl -XBMDIR = ${libdir}/irsim/tcl/bitmaps +XBMDIR = /usr/share/irsim/bitmaps MAIN_EXTRA_LIBS = @extra_libs@ LD_EXTRA_LIBS = @ld_extra_libs@ --- irsim-9.7.74.orig/tcltk/irsim.tcl.in +++ irsim-9.7.74/tcltk/irsim.tcl.in @@ -332,19 +332,19 @@ label .analyzer.menubar.title -text "log -anchor w -padx 5 set scb(center) [image create bitmap \ - -file TCL_DIR/bitmaps/center.xbm \ + -file /usr/share/irsim/bitmaps/center.xbm \ -background gray -foreground steelblue] set scb(lleft) [image create bitmap \ - -file TCL_DIR/bitmaps/lleft.xbm \ + -file /usr/share/irsim/bitmaps/lleft.xbm \ -background gray -foreground steelblue] set scb(left) [image create bitmap \ - -file TCL_DIR/bitmaps/left.xbm \ + -file /usr/share/irsim/bitmaps/left.xbm \ -background gray -foreground steelblue] set scb(right) [image create bitmap \ - -file TCL_DIR/bitmaps/right.xbm \ + -file /usr/share/irsim/bitmaps/right.xbm \ -background gray -foreground steelblue] set scb(rright) [image create bitmap \ - -file TCL_DIR/bitmaps/rright.xbm \ + -file /usr/share/irsim/bitmaps/rright.xbm \ -background gray -foreground steelblue] pack .analyzer.menubar.title -side left -expand true -fill both debian/patches/series0000644000000000000000000000014012227724000012021 0ustar 01-makefile.patch 02-manpages.patch 03-fhs-images.patch 04-makefile-fix-hardening-ldflags.patch debian/patches/02-manpages.patch0000644000000000000000000000171411614351647013663 0ustar Description: Manual page fixes This patch fixes some minor problems in some man pages of irsim. Author: Roland Stigge --- irsim-9.7.74.orig/doc/irsim-analyzer.3 +++ irsim-9.7.74/doc/irsim-analyzer.3 @@ -1,7 +1,6 @@ .TH irsim-analyzer 3 "" "" "IRSIM USER'S MANUAL" .SH NAME -.nh -irsim-analyzer +irsim-analyzer \- A graphical interface to irsim .SH SYNOPSIS .B analyzer \fInode...\fP .SH DESCRIPTION --- irsim-9.7.74.orig/doc/netchange.5 +++ irsim-9.7.74/doc/netchange.5 @@ -1,4 +1,3 @@ -' square macro .de Sq .ie n\\h'-\\w' 'u'^2 .el \\h'-\\w' 'u'\\u2\\d --- irsim-9.7.74.orig/doc/irsim.1 +++ irsim-9.7.74/doc/irsim.1 @@ -194,7 +194,7 @@ set simulation step size to \fIn\fP ns. assign \fIvalue\fP to \fIvector\fP .IP "\fBsetlog\fI[file|off]\fP" 22 log net changes to file (\fIoff\fP -> no log) -.IP \fBsetpath \fI[path...]\fP +.IP "\fBsetpath \fI[path...]\fP" 22 set search path for cmd files .IP "\fBstats\fP" 22 print event statistics debian/patches/04-makefile-fix-hardening-ldflags.patch0000644000000000000000000000362012227741613017775 0ustar Description: Add hardening flags in Makefiles At some places, LDFLAGS wasn't used properly in Makefiles. Author: Roland Stigge --- irsim-9.7.82.orig/irsim/Makefile +++ irsim-9.7.82/irsim/Makefile @@ -22,7 +22,7 @@ tcl-main: tclirsim${SHDLIB_EXT} tclirsim${SHDLIB_EXT}: ${EXTRA_LIBS} @echo --- making irsim Tcl library \(tclirsim${SHDLIB_EXT}\) ${RM} tclirsim${SHDLIB_EXT} - ${CC} ${CFLAGS} ${CPPFLAGS} -o $@ ${LDDL_FLAGS} ${LD_RUN_PATH} \ + ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o $@ ${LDDL_FLAGS} ${LD_RUN_PATH} \ ${EXTRA_LIBS} -lc ${LIBS} ${LD_EXTRA_LIBS} $(DESTDIR)${BINDIR}/irsim: --- irsim-9.7.82.orig/random/Makefile +++ irsim-9.7.82/random/Makefile @@ -21,7 +21,7 @@ randwrap.o: random.c random${SHDLIB_EXT}: randwrap.o @echo --- making random Tcl library ${RM} random${SHDLIB_EXT} - ${CC} ${CFLAGS} ${CPPFLAGS} -o $@ ${LDDL_FLAGS} randwrap.o \ + ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o $@ ${LDDL_FLAGS} randwrap.o \ ${MAC_SHARED} -lc ${LIBS} ${LD_EXTRA_LIBS} install-tcl: $(DESTDIR)${TCLDIR}/random${SHDLIB_EXT} --- irsim-9.7.82.orig/tclsubckt/Makefile +++ irsim-9.7.82/tclsubckt/Makefile @@ -22,7 +22,7 @@ diglib.o: diglib.c diglib${SHDLIB_EXT}: diglib.o @echo --- making diglib subcircuit shared library ${RM} diglib${SHDLIB_EXT} - ${CC} ${CFLAGS} ${CPPFLAGS} -o $@ ${LDDL_FLAGS} diglib.o \ + ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -o $@ ${LDDL_FLAGS} diglib.o \ ${MAC_SHARED} -lc ${LIBS} ${LD_EXTRA_LIBS} install-tcl: $(DESTDIR)${TCLDIR}/diglib${SHDLIB_EXT} --- irsim-9.7.82.orig/tcltk/Makefile +++ irsim-9.7.82/tcltk/Makefile @@ -26,7 +26,7 @@ install-tcl: irsimexec $(DESTDIR)${BINDI ${CP} irsimexec $(DESTDIR)${TCLDIR}/irsimexec irsimexec: irsimexec.c tclirsim.o - ${CC} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} irsimexec.c -o irsimexec \ + ${CC} ${CFLAGS} ${CPPFLAGS} ${DFLAGS} ${LDFLAGS} irsimexec.c -o irsimexec \ ${LIBS} ${LIB_SPECS} irsim.tcl: irsim.tcl.in debian/patches/01-makefile.patch0000644000000000000000000000472411613775310013644 0ustar Description: Adjustments to Makefile This patch contains Debian specific adjustments to the Makefile Author: Roland Stigge --- irsim-9.7.74.orig/Makefile +++ irsim-9.7.74/Makefile @@ -15,12 +15,10 @@ include defs.mak all: $(ALL_TARGET) standard: - @echo --- errors and warnings logged in file make.log - @${MAKE} mains 2>&1 | tee -a make.log + ${MAKE} mains tcl: - @echo --- errors and warnings logged in file make.log - @${MAKE} tcllibrary 2>&1 | tee -a make.log + ${MAKE} tcllibrary force: clean all @@ -33,39 +31,39 @@ config: tcllibrary: modules @echo --- making Tcl shared-object libraries for dir in ${PROGRAMS}; do \ - (cd $$dir && ${MAKE} tcl-main); done + ${MAKE} -C $$dir tcl-main || exit 1; done mains: modules @echo --- making main programs for dir in ${PROGRAMS}; do \ - (cd $$dir && ${MAKE} main); done + ${MAKE} -C $$dir main || exit 1; done modules: @echo --- making modules for dir in ${MODULES}; do \ - (cd $$dir && ${MAKE} module); done + ${MAKE} -C $$dir module || exit 1; done libs: @echo --- making libraries for dir in ${LIBRARIES}; do \ - (cd $$dir && ${MAKE} lib); done + ${MAKE} -C $$dir lib || exit 1; done depend: for dir in ${MODULES} ${PROGRAMS}; do \ - (cd $$dir && ${MAKE} depend); done + ${MAKE} -C $$dir depend || exit 1; done install: $(INSTALL_TARGET) install-irsim: @echo --- installing executables to $(DESTDIR)${BINDIR} @echo --- installing run-time files to $(DESTDIR)${LIBDIR} - @${MAKE} install-real >> install.log + @${MAKE} install-real install-real: install-dirs for dir in ${INSTALL_CAD_DIRS}; do \ - (cd $$dir && ${MAKE} install); done + ${MAKE} -C $$dir install || exit 1; done for dir in ${PROGRAMS}; do \ - (cd $$dir && ${MAKE} install); done + ${MAKE} -C $$dir install || exit 1; done install-tcl-dirs: ${IRSIMDIR}/scripts/mkdirs $(DESTDIR)${BINDIR} $(DESTDIR)${MANDIR} \ @@ -78,15 +76,15 @@ install-dirs: install-tcl: @echo --- installing executables to $(DESTDIR)${BINDIR} @echo --- installing run-time files to $(DESTDIR)${LIBDIR} - @${MAKE} install-tcl-real 2>&1 >> install.log + @${MAKE} install-tcl-real install-tcl-real: install-tcl-dirs for dir in ${INSTALL_CAD_DIRS} ${PROGRAMS}; do \ - (cd $$dir && ${MAKE} install-tcl); done + ${MAKE} -C $$dir install-tcl || exit 1; done clean: for dir in ${MODULES} ${PROGRAMS} ${UNUSED_MODULES}; do \ - (cd $$dir && ${MAKE} clean); done + ${MAKE} -C $$dir clean; done distclean: touch defs.mak debian/clean0000644000000000000000000000002111613775164010177 0ustar tclsubckt/Depend debian/source/0000755000000000000000000000000011613772032010470 5ustar debian/source/format0000644000000000000000000000001411613772032011676 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000301311614474666011135 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: irsim Source: http://opencircuitdesign.com/irsim/ Files: * Copyright: 2011 Tim Edwards License: BSD like ********************************************************************* * Copyright (C) 1988, 1990 Stanford University. * * Permission to use, copy, modify, and distribute this * * software and its documentation for any purpose and without * * fee is hereby granted, provided that the above copyright * * notice appear in all copies. Stanford University * * makes no representations about the suitability of this * * software for any purpose. It is provided "as is" without * * express or implied warranty. Export of this software outside * * of the United States of America may require an export license. * ********************************************************************* Files: tclsubckt/diglib.c Copyright: 2007 Tim Edwards License: GPL-2 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License Version 2 as published by the Free Software Foundation. . On Debian systems, the full text of the GPLv2 can be found in /usr/share/common-licenses/GPL-2. Files: debian/* Copyright: 2011 Roland Stigge License: BSD like The Debian packaging of this software is distributed under the same licensing as the package itself,. debian/menu0000644000000000000000000000016111613775374010071 0ustar ?package(irsim):needs="X11" section="Applications/Science/Electronics"\ title="irsim" command="/usr/bin/irsim" debian/compat0000644000000000000000000000000211726727270010377 0ustar 9 debian/docs0000644000000000000000000000000711613772032010040 0ustar README