debian swirl logo

Back to the packages list dynagen

#!/usr/bin/make -f
# Copyright © 2003 Colin Walters 
# Copyright © 2004, 2005, 2006 Loic Minier 

DEB_PYTHON_SYSTEM = pysupport

include /usr/share/cdbs/1/rules/buildcore.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
#include /usr/share/cdbs/1/class/makefile.mk

# define clean target
DEB_MAKE_CLEAN_TARGET = clean

# That will avoid passing CFLAGS
#DEB_MAKE_INVOKE = $(DEB_MAKE_ENVVARS) make -C $(DEB_BUILDDIR)

#DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(CURDIR)/debian/dynamips/

# Moved to debian/install
binary-predeb/dynagen::
#	install -d debian/$(cdbs_curpkg)/usr/bin/
#	install -m 775 dynagen debian/$(cdbs_curpkg)/usr/bin/dynagen
		rm -rf debian/$(cdbs_curpkg)/usr/share/doc/dynagen/examples/sample_labs/.DS_Store.gz
	#chmod 755 debian/$(cdbs_curpkg)/usr/share/python-support/dynagen/dynamips_lib.py
	#chmod 755 debian/$(cdbs_curpkg)/usr/share/python-support/dynagen/console.py
		chmod 644 debian/$(cdbs_curpkg)/etc/dynagen.ini
		chmod 644 debian/$(cdbs_curpkg)/usr/share/dynagen/configspec
		chmod 644 debian/$(cdbs_curpkg)/usr/share/doc/dynagen/examples/sample_labs/multiserver/multiserver.net
		chmod 644 debian/$(cdbs_curpkg)/usr/share/doc/dynagen/examples/sample_labs/frame_relay/frame_relay1.net
		chmod 644 debian/$(cdbs_curpkg)/usr/share/doc/dynagen/examples/sample_labs/simple1/simple1.net
		chmod 644 debian/$(cdbs_curpkg)/usr/share/doc/dynagen/examples/sample_labs/simple2/simple2.net
		chmod 644 debian/$(cdbs_curpkg)/usr/share/doc/dynagen/examples/sample_labs/ethernet_switch/ethsw1.net
		rm debian/$(cdbs_curpkg)/usr/share/doc/dynagen/COPYING.gz
	#install -d debian/$(cdbs_curpkg)/usr/man/man1
	#install -m debian/dynagen.1 debian/$(cdbs_curpkg)/usr/man/man1/dynagen.1	
	#gzip -9 debian/dynagen.1 debian/$(cdbs_curpkg)/usr/man/man1/dynagen.1

clean::
		rm -rf debian/compat
		rm -rf debian/pycompat

Builds:

dynagen
cisco 7200 router emulator command line interface