Added aur/iscsitarget

This commit is contained in:
Kevin Mihelich 2011-02-22 23:57:53 -05:00
parent 730c46170a
commit 7ceb9ed978
2 changed files with 54 additions and 0 deletions

43
aur/iscsitarget/PKGBUILD Normal file
View file

@ -0,0 +1,43 @@
# 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
}

View file

@ -0,0 +1,11 @@
post_install() {
/sbin/depmod -aq
}
post_upgrade() {
post_install
}
op=$1
shift
$op $*