1 # Contributor: Frederik Vos <frederik.vos@linvirt.nl>
5 pkgdesc="tgt daemon and userspace tools(ISCSI Support)"
7 url="http://stgt.sourceforge.net/"
10 depends=('perl-config-general')
16 backup=( 'etc/tgt/targets.conf' )
19 source=(http://stgt.sourceforge.net/releases/$pkgname-$pkgver.tar.gz
20 0001-Remove-dummy-RAID-controller-from-LUN-0.patch)
23 #md5sums=() #generate with 'makepkg -g'
24 md5sums=('0d3e2e380663fd0152a233fe89cfbdf9'
25 '6584d884d1fd0c901cd6e35217cbe194')
28 cd "$srcdir/$pkgname-$pkgver"
30 # uncomment the next line, if you're a VMware or MS user
31 # patch -p1 < "${srcdir}/0001-Remove-dummy-RAID-controller-from-LUN-0.patch"
33 make ISCSI=1 PREFIX="$pkgdir" || return 1
35 make DESTDIR="$pkgdir" install
37 mkdir -p $pkgdir/etc/rc.d
39 cp scripts/initd.sample $pkgdir/etc/rc.d/tgt
41 chmod 755 $pkgdir/etc/rc.d/tgt
44 # vim:set ts=2 sw=2 et: