mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
44 lines
1.1 KiB
Bash
44 lines
1.1 KiB
Bash
# ALARM: 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=453
|
|
pkgrel=2
|
|
pkgdesc="An opensource iSCSI target"
|
|
url="http://iscsitarget.sourceforge.net"
|
|
license="GPL-2"
|
|
arch=('arm')
|
|
rundepends=('kernel26')
|
|
depends=('kernel26' 'openssl')
|
|
makedepends=('subversion')
|
|
provides=('iscsitarget')
|
|
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
|
|
}
|