diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2010-05-27 09:26:53 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2010-05-27 09:26:53 +0000 |
commit | 21405ea6a5c33114bb6ec07185e56d4c2704b989 (patch) | |
tree | 9d599a374b6e7953e50d9731c684b81bdd688295 /testing/iscsi-scst-svn/APKBUILD | |
parent | e14dd28447d272027ebd9bf045eb0a6bd428f0c2 (diff) | |
download | aports-21405ea6a5c33114bb6ec07185e56d4c2704b989.tar.bz2 aports-21405ea6a5c33114bb6ec07185e56d4c2704b989.tar.xz |
testing/[scst]: merge scst from experimental to master
Diffstat (limited to 'testing/iscsi-scst-svn/APKBUILD')
-rw-r--r-- | testing/iscsi-scst-svn/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/iscsi-scst-svn/APKBUILD b/testing/iscsi-scst-svn/APKBUILD new file mode 100644 index 000000000..9b3ec4200 --- /dev/null +++ b/testing/iscsi-scst-svn/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Carlo Landmeter +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> + +pkgname=iscsi-scst-svn +pkgver=1713 +pkgrel=0 +pkgdesc="ISCSI target for SCST - userspace tools" +url="http://iscsi-scst.sourceforge.net/" +license="GPL-2" +depends= +install= +makedepends="openssl-dev scst-svn-scst-dev" +subpackages= +source="http://alpine.nethq.org/clandmeter/src/$pkgname-$pkgver.tar.gz + iscsi-scst.initd + " + +_builddir="$srcdir"/iscsi-scst +prepare() { + cd "$_builddir" + # we need the headre file. fix dependency in makefile + sed -i -e 's/^\(progs:.*\)/\1 include\/iscsi_scst_itf_ver.h/' Makefile +} + +build() { + cd "$_builddir" + make progs \ + SCST_INC_DIR=/usr/include/scst +} + +package() { + cd "$_builddir" + # make install is broken + install -D usr/iscsi-scstd "$pkgdir"/usr/sbin/iscsi-scstd + install -D usr/iscsi-scst-adm "$pkgdir"/usr/sbin/iscsi-scst-adm + install -D -m 755 "$srcdir"/iscsi-scst.initd "$pkgdir"/etc/init.d/iscsi-scst +} + +md5sums="cf046db4f7cd9cf969b054dc055922d6 iscsi-scst-svn-1713.tar.gz +3132fae1ec2f9bcc72476d9e9f36d326 iscsi-scst.initd" |