summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorrunnytu2015-06-08 21:54:30 +0200
committerrunnytu2015-06-08 21:54:30 +0200
commit25a8e63990240b1bf73341bab8e857c9a1513842 (patch)
tree6a37fce14d7ad2458239997644752e2a619abdb9
downloadaur-25a8e63990240b1bf73341bab8e857c9a1513842.tar.gz
Initial import
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD37
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6e7d8b0e17f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+# Generated by makepkg 4.2.1
+# Mon Jun 8 19:53:52 UTC 2015
+pkgbase = dynagen
+ pkgdesc = Dynagen is a front-end for use with the Dynamips Cisco router emulator.
+ pkgver = 0.11.0
+ pkgrel = 6
+ url = http://www.dynagen.org
+ arch = i686
+ arch = x86_64
+ license = GPL
+ depends = dynamips
+ depends = python2
+ depends = inetutils
+ depends = elfutils
+ source = http://downloads.sourceforge.net/dyna-gen/dynagen-0.11.0.tar.gz
+ md5sums = 3f88b3449b17096dca84d007f0b91b3f
+
+pkgname = dynagen
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2e07a1fd40f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Runnytu < runnytu at gmail dot com >
+# Maintainer: Hyacinthe Cartiaux <hyacinthe.cartiaux@free.fr>
+# Contributor: Marcel Wysocki <maci@satgnu.net>
+# Contributor: Marek Skrobacki <skrobul@skrobul.com>
+
+pkgname=dynagen
+pkgver=0.11.0
+pkgrel=6
+pkgdesc="Dynagen is a front-end for use with the Dynamips Cisco router emulator."
+arch=('i686' 'x86_64')
+url="http://www.dynagen.org"
+license=('GPL')
+depends=('dynamips' 'python2' 'inetutils' 'elfutils')
+source=(http://downloads.sourceforge.net/dyna-gen/${pkgname}-${pkgver}.tar.gz)
+md5sums=('3f88b3449b17096dca84d007f0b91b3f')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+ sed -i 's/\/usr\/bin\/python/\/usr\/bin\/python2/' *.py dynagen
+ sed -i 's/\/usr\/bin\/env python/\/usr\/bin\/python2/' *.py
+ rm -R docs/ sample_labs/ COPYING README.txt
+}
+
+package() {
+ mkdir -p $pkgdir/usr/share/dynagen
+ cp -dpr --no-preserve=ownership $srcdir/$pkgname-$pkgver/* $pkgdir/usr/share/dynagen
+
+ mkdir -p $pkgdir/usr/bin
+ cd $pkgdir/usr/bin
+ ln -s ../share/dynagen/dynagen
+
+ mkdir $pkgdir/etc
+ mv $pkgdir/usr/share/dynagen/dynagen.ini $pkgdir/etc
+ chmod 644 $pkgdir/usr/share/dynagen/*
+ chmod 755 $pkgdir/usr/share/dynagen/dynagen
+ chmod 755 $pkgdir/usr/share/dynagen/pemu-start.sh
+}