diff options
-rw-r--r-- | main/open-iscsi/APKBUILD | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/main/open-iscsi/APKBUILD b/main/open-iscsi/APKBUILD index cd9a51972a..0d2136307f 100644 --- a/main/open-iscsi/APKBUILD +++ b/main/open-iscsi/APKBUILD @@ -17,26 +17,22 @@ source="http://arch.p5n.pp.ru/~sergej/dl/$pkgname-${_realver}.tar.gz iscsid.confd iscsid.conf" -_builddir="$srcdir"/$pkgname-$_realver +builddir="$srcdir"/$pkgname-$_realver prepare() { - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + default_prepare || return 1 + # include iscsistart in the package sed -i -e '/^PROGRAMS = /s/$/ usr\/iscsistart/' Makefile || return 1 } build() { - cd "$_builddir" + cd "$builddir" make user || return 1 } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install_user || return 1 mkdir -p $pkgdir/usr/bin mkdir -p $pkgdir/usr/sbin |