1 # Contributor: Markus Blasl <markus.blasl (gmail)>
6 pkgdesc="Internet Services Simulation Suite"
7 url="http://www.inetsim.org"
8 depends=('perl' 'perl-net-server' 'perl-net-dns' 'perl-ipc-shareable' 'perl-digest-sha1' 'perl-io-socket-ssl')
9 install=inetsim.install
10 arch=('i686' 'x86_64')
14 optdepends=('perlipq: Support for IP-based connection redirection')
15 source=("http://www.inetsim.org/downloads/${pkgname}-${pkgver}.tar.gz")
16 md5sums=('bc34a0df7bbb05af3332c470c3300c46')
19 cd $startdir/src/$pkgname-$pkgver
21 install -D -m 0755 inetsim ${pkgdir}/usr/share/inetsim/inetsim || return 1
22 cp -a * ${pkgdir}/usr/share/inetsim || return 1
24 #Change Library-Path in inetsim binary
25 sed -i s+use\ lib.*\$+use\ lib\ \"/usr/share/inetsim/lib\"\;+ ${pkgdir}/usr/share/inetsim/inetsim
28 sed -i s+/etc/init.d+/etc/rc.d+ ${pkgdir}/usr/share/inetsim/contrib/init.d.inetsim
30 install -D -m 0755 "$startdir/inetsim.rc" ${pkgdir}/etc/rc.d/inetsim || return 1
32 install -D -m 0755 "$startdir/inetsim-bin" ${pkgdir}/usr/bin/inetsim || retrun 1