X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from smtp191.iad.emailsrvr.com (smtp191.iad.emailsrvr.com [207.97.245.191]) by lists.alpinelinux.org (Postfix) with ESMTP id 388C51EB587 for ; Tue, 28 Dec 2010 07:44:25 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp49.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id AB8E619136A; Tue, 28 Dec 2010 02:44:25 -0500 (EST) X-Virus-Scanned: OK Received: by smtp49.relay.iad1a.emailsrvr.com (Authenticated sender: mcs-AT-darkregion.net) with ESMTPSA id CEA04191371; Tue, 28 Dec 2010 02:44:24 -0500 (EST) From: Matt Smith To: alpine-devel@lists.alpinelinux.org Cc: Matt Smith Subject: [alpine-devel] [PATCH] testing/next3-{grsec,vserver}: fixed APKBUILD Date: Tue, 28 Dec 2010 01:44:04 -0600 Message-Id: <1293522244-27104-1-git-send-email-mcs@darkregion.net> X-Mailer: git-send-email 1.7.3.3 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: --- testing/next3-grsec/APKBUILD | 38 +++++++++++--------------------------- testing/next3-vserver/APKBUILD | 38 +++++++++++--------------------------- 2 files changed, 22 insertions(+), 54 deletions(-) diff --git a/testing/next3-grsec/APKBUILD b/testing/next3-grsec/APKBUILD index 01782f5..27989d4 100644 --- a/testing/next3-grsec/APKBUILD +++ b/testing/next3-grsec/APKBUILD @@ -18,14 +18,14 @@ pkgname=${_realname}-${_flavor} pkgver=$pkgver # when changing _next3ver we *must* bump _mypkgrel _next3ver=1.0.13-rc6 -_mypkgrel=1 +_mypkgrel=2 pkgrel=$(( $_kpkgrel + $_mypkgrel )) pkgdesc="NEXT3(TM) is a flavor of the widely used Ext3 file system with built-in support for snapshots." url="http://www.ctera.com/home/next3.html" arch="all" license="GPL" depends="linux-${_flavor}=${_kernelver}" -makedepends="linux-${_flavor}-dev=${_kernelver} wget coreutils" +makedepends="linux-${_flavor}-dev=${_kernelver} coreutils" install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall" @@ -39,43 +39,27 @@ _builddir="$srcdir"/${_realname}-${_next3ver} prepare() { cd "$_builddir" - # modify the Makefile to use install from coreutils - sed -ri "s;(install -T);/bin/\1;" Makefile - - # modify the Makefile, add necessary options to mkfs.next3 - # during make test (these are also necessary for normal use) - # See the CHANGELOG for Dec 13, 2010. - sed -ri "s;(mkfs.next3) (test.img);\1 -O exclude_inode,has_snapshot \2;" Makefile - - # modify the Makefile, change INSTALL_DIR - sed -ri "s;^(INSTALL_DIR=).*$;\1"$pkgdir"/lib/modules/${_abi_release}/fs/next3;" Makefile - - # modify the Makefile, update the depmod line to only run when root - # and run it against the $_abi_release kernel version - sed -ri "s;(/sbin/depmod -a);\[ \`id -u\` = 0 \] \&\& \1 ${_abi_release} || :\n\n\tmkdir -p "$pkgdir"/sbin;" Makefile - - # modify the Makefile, remove the modprobe line + # modify the Makefile, remove the depmod and modprobe lines + sed -ri "s;(/sbin/depmod -a);;" Makefile sed -ri "s;(/sbin/modprobe next3);;" Makefile - # modify the Makefile, update the install lines for 'make install' - sed -ri "s;(install) (.*) (/sbin);\1 -m755 \2 "$pkgdir"\3;" Makefile + # modify the Makefile to use 'install' from coreutils + sed -ri "s;(install -T);/bin/\1;" Makefile + + # modify the Makefile to install next3 utils into $pkgdir/sbin + sed -ri "s;(install) (bin)/(.*) (/sbin);\1 -Dm755 \2/\3 "$pkgdir"\4/\3;" Makefile } build() { cd "$_builddir" - # Build Next3 - make KVERS="${_abi_release}" || return 1 - - # Test Next3 - sudo make KVERS="${_abi_release}" test || return 1 + make KERNEL="${_abi_release}" || return 1 } package() { cd "$_builddir" - # Install Next3 into $pkgdir - make KVERS="${_abi_release}" install || return 1 + make install KERNEL="${_abi_release}" INSTALL_DIR="$pkgdir"/lib/modules/${_abi_release}/fs/next3 || return 1 } doc() { diff --git a/testing/next3-vserver/APKBUILD b/testing/next3-vserver/APKBUILD index 4208c62..99179e5 100644 --- a/testing/next3-vserver/APKBUILD +++ b/testing/next3-vserver/APKBUILD @@ -18,14 +18,14 @@ pkgname=${_realname}-${_flavor} pkgver=$pkgver # when changing _next3ver we *must* bump _mypkgrel _next3ver=1.0.13-rc6 -_mypkgrel=1 +_mypkgrel=2 pkgrel=$(( $_kpkgrel + $_mypkgrel )) pkgdesc="NEXT3(TM) is a flavor of the widely used Ext3 file system with built-in support for snapshots." url="http://www.ctera.com/home/next3.html" arch="all" license="GPL" depends="linux-${_flavor}=${_kernelver}" -makedepends="linux-${_flavor}-dev=${_kernelver} wget coreutils" +makedepends="linux-${_flavor}-dev=${_kernelver} coreutils" install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall" @@ -39,43 +39,27 @@ _builddir="$srcdir"/${_realname}-${_next3ver} prepare() { cd "$_builddir" - # modify the Makefile to use install from coreutils - sed -ri "s;(install -T);/bin/\1;" Makefile - - # modify the Makefile, add necessary options to mkfs.next3 - # during make test (these are also necessary for normal use) - # See the CHANGELOG for Dec 13, 2010. - sed -ri "s;(mkfs.next3) (test.img);\1 -O exclude_inode,has_snapshot \2;" Makefile - - # modify the Makefile, change INSTALL_DIR - sed -ri "s;^(INSTALL_DIR=).*$;\1"$pkgdir"/lib/modules/${_abi_release}/fs/next3;" Makefile - - # modify the Makefile, update the depmod line to only run when root - # and run it against the $_abi_release kernel version - sed -ri "s;(/sbin/depmod -a);\[ \`id -u\` = 0 \] \&\& \1 ${_abi_release} || :\n\n\tmkdir -p "$pkgdir"/sbin;" Makefile - - # modify the Makefile, remove the modprobe line + # modify the Makefile, remove the depmod and modprobe lines + sed -ri "s;(/sbin/depmod -a);;" Makefile sed -ri "s;(/sbin/modprobe next3);;" Makefile - # modify the Makefile, update the install lines for 'make install' - sed -ri "s;(install) (.*) (/sbin);\1 -m755 \2 "$pkgdir"\3;" Makefile + # modify the Makefile to use 'install' from coreutils + sed -ri "s;(install -T);/bin/\1;" Makefile + + # modify the Makefile to install next3 utils into $pkgdir/sbin + sed -ri "s;(install) (bin)/(.*) (/sbin);\1 -Dm755 \2/\3 "$pkgdir"\4/\3;" Makefile } build() { cd "$_builddir" - # Build Next3 - make KVERS="${_abi_release}" || return 1 - - # Test Next3 - sudo make KVERS="${_abi_release}" test || return 1 + make KERNEL="${_abi_release}" || return 1 } package() { cd "$_builddir" - # Install Next3 into $pkgdir - make KVERS="${_abi_release}" install || return 1 + make install KERNEL="${_abi_release}" INSTALL_DIR="$pkgdir"/lib/modules/${_abi_release}/fs/next3 || return 1 } doc() { -- 1.7.3.3 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---