updated on Fri Jan 13 04:01:25 UTC 2012
[aur-mirror.git] / tgt / PKGBUILD
blob86f8dcae2a8b9d011b22e620c841feb28b6025e0
1 # Contributor: Frederik Vos <frederik.vos@linvirt.nl>
2 pkgname=tgt
3 pkgver=1.0.18
4 pkgrel=1
5 pkgdesc="tgt daemon and userspace tools(ISCSI Support)"
6 arch=('x86_64' 'i686')
7 url="http://stgt.sourceforge.net/"
8 license=('GPL')
9 groups=()
10 depends=('perl-config-general')
11 makedepends=()
12 optdepends=()
13 provides=()
14 conflicts=()
15 replaces=()
16 backup=( 'etc/tgt/targets.conf' )
17 options=()
18 install=
19 source=(http://stgt.sourceforge.net/releases/$pkgname-$pkgver.tar.gz
20         0001-Remove-dummy-RAID-controller-from-LUN-0.patch)
22 noextract=()
23 #md5sums=() #generate with 'makepkg -g'
24 md5sums=('0d3e2e380663fd0152a233fe89cfbdf9'
25          '6584d884d1fd0c901cd6e35217cbe194')
27 build() {
28   cd "$srcdir/$pkgname-$pkgver"
29    
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
36   
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: