From 7ceb9ed978ccb6752edc7a5db270ba53b66be896 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Tue, 22 Feb 2011 23:57:53 -0500 Subject: [PATCH] Added aur/iscsitarget --- aur/iscsitarget/PKGBUILD | 43 +++++++++++++++++++++++++++++ aur/iscsitarget/iscsitarget.install | 11 ++++++++ 2 files changed, 54 insertions(+) create mode 100644 aur/iscsitarget/PKGBUILD create mode 100644 aur/iscsitarget/iscsitarget.install diff --git a/aur/iscsitarget/PKGBUILD b/aur/iscsitarget/PKGBUILD new file mode 100644 index 000000000..3d2d2ef23 --- /dev/null +++ b/aur/iscsitarget/PKGBUILD @@ -0,0 +1,43 @@ +# PlugApps: Kevin Mihelich +# - 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 +} diff --git a/aur/iscsitarget/iscsitarget.install b/aur/iscsitarget/iscsitarget.install new file mode 100644 index 000000000..41ff206e9 --- /dev/null +++ b/aur/iscsitarget/iscsitarget.install @@ -0,0 +1,11 @@ +post_install() { + /sbin/depmod -aq +} + +post_upgrade() { + post_install +} + +op=$1 +shift +$op $*