aboutsummaryrefslogblamecommitdiffstats
path: root/main/open-iscsi/APKBUILD
blob: 8e3d70cc5938fa8f99bb1cc72eb8a4490de03b02 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                               


                                   

                                                                                 
          

               
                         
          
                          
                                                                                                     

                     




                                      










                                           
                                 


                                                       
                                               

                                                                         

 
                                                                    

                                               
# Maintainer: Leonardo Arena <rnalrd@gmail.com>
pkgname=open-iscsi
pkgver=2.0.872
_realver=${pkgver%.*}-${pkgver##*.}
pkgrel=0
pkgdesc="High performance, transport independent, multi-platform iSCSI initiator"
url="http://www.open-iscsi.org"
arch="all"
license="GPL-2"
depends=
makedepends="openssl-dev"
install=""
subpackages="$pkgname-doc"
source="http://kernel.org/pub/linux/kernel/people/mnc/open-iscsi/releases/open-iscsi-$_realver.tar.gz
	iscsid.initd
	iscsid.confd"

_builddir="$srcdir"/$pkgname-$_realver

prepare() {
	cd "$_builddir"
}

build() {
	cd "$_builddir"
	make user || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install_user
	mkdir -p $pkgdir/usr/bin
	mkdir -p $pkgdir/usr/sbin
	mv $pkgdir/sbin/iscsi-iname $pkgdir/usr/bin
	mv $pkgdir/sbin/iscsi_discovery $pkgdir/usr/bin
	mv $pkgdir/sbin/iscsiadm $pkgdir/usr/bin
	mv $pkgdir/sbin/iscsid $pkgdir/usr/sbin
	install -Dm755 "$srcdir"/iscsid.initd "$pkgdir"/etc/init.d/iscsid
	install -Dm644 "$srcdir"/iscsid.confd "$pkgdir"/etc/conf.d/iscsid
}

md5sums="b4df94f08c241352bb964043b3e44779  open-iscsi-2.0-872.tar.gz
3e89cb86395756dafebc4f1490f0de10  iscsid.initd
b762b687d4628791b4362df22cf22d34  iscsid.confd"