updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / inetsim / PKGBUILD
blob12db4292e7dd50a6ed8b6f2f4f91c4d54d858096
1 # Contributor: Markus Blasl <markus.blasl (gmail)>
3 pkgname=inetsim
4 pkgver=1.2
5 pkgrel=1
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')
11 license=('GPL')
12 conflicts=()
13 backup=()
14 optdepends=('perlipq: Support for IP-based connection redirection')
15 source=("http://www.inetsim.org/downloads/${pkgname}-${pkgver}.tar.gz")
16 md5sums=('bc34a0df7bbb05af3332c470c3300c46')
18 build() {
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
26         
27         #Correct init-script
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