diff options
Diffstat (limited to 'main/iscsitarget/APKBUILD')
-rw-r--r-- | main/iscsitarget/APKBUILD | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/main/iscsitarget/APKBUILD b/main/iscsitarget/APKBUILD index a53e628634..7c812a112b 100644 --- a/main/iscsitarget/APKBUILD +++ b/main/iscsitarget/APKBUILD @@ -1,8 +1,8 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=iscsitarget -pkgver=1.4.19 -pkgrel=2 +pkgver=1.4.20.2 +pkgrel=0 pkgdesc="Open Source iSCSI target with professional features - userspace utils" url="http://iscsitarget.sourceforge.net/" license="GPL-2" @@ -10,21 +10,28 @@ depends= makedepends="openssl-dev" subpackages="$pkgname-doc" source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz - $pkgname-0.4.15-isns-set-scn-flag.patch - $pkgname-0.4.17-build.patch ietd.initd ietd.confd " -build() { - cd "$srcdir"/$pkgname-$pkgver +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + cd "$_builddir" for i in ../*.patch; do + [ -r "$i" ] || continue msg "Applying $i" patch -p1 < $i || return 1 done - +} + +build() { + cd "$_builddir" make usr || return 1 - make DISTDIR="$pkgdir" install-usr install-doc +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install-usr install-doc for i in etc/ietd.conf etc/initiators.*; do install -Dm640 $i "$pkgdir"/$i || return 1 @@ -33,8 +40,6 @@ build() { install -Dm755 ../ietd.confd "$pkgdir"/etc/conf.d/ietd } -md5sums="9beca214c28949cce1716b49fec57de4 iscsitarget-1.4.19.tar.gz -22512c5cf4cb62127730ce53d74ff28f iscsitarget-0.4.15-isns-set-scn-flag.patch -c9a9b839b3afcdecd1601511ee48a171 iscsitarget-0.4.17-build.patch +md5sums="2f23c0bfe124d79f5c20e34ef2aaff82 iscsitarget-1.4.20.2.tar.gz 9b0ca79dc47b12024c2b67d828d6d361 ietd.initd 06ba479d3533d557b8582abe6f182410 ietd.confd" |