PKGBUILDs/aur/iscsitarget/PKGBUILD
2011-02-22 23:57:53 -05:00

43 lines
1.1 KiB
Bash

# PlugApps: Kevin Mihelich <kevin@plugapps.com>
# - Derived from the AUR PKGBUILDs, which split between kernel and
# userspace, which just doesn't make sense at all.
# - We make an SVN package since current releases don't support 2.6.37.
plugrel=1
pkgname=iscsitarget-svn
pkgver=401
pkgrel=1
pkgdesc="An opensource iSCSI target"
url="http://iscsitarget.sourceforge.net"
license="GPL-2"
arch=('arm')
rundepends=('kernel26')
depends=('kernel26' 'openssl')
makedepends=('subversion')
install=iscsitarget.install
_svntrunk='https://iscsitarget.svn.sourceforge.net/svnroot/iscsitarget/trunk'
_svnmod='iscsitarget'
build() {
cd "${srcdir}"
if [ -d $_svnmod/.svn ]; then
(cd $_svnmod && svn up -r $pkgver)
else
svn co $_svntrunk -r $pkgver $_svnmod
fi
msg2 "SVN checkout done or server timeout"
cd "${_svnmod}"
sed -i 's/slackware-version/arch-release/' Makefile
export KERNSRC=/usr/src/linux-$(uname -r)
make || return 1
}
package() {
cd "${srcdir}/${_svnmod}"
make DESTDIR="${pkgdir}" install
install -D -m755 etc/ietd.conf $startdir/pkg/etc/ietd.conf.sample
}