summaryrefslogtreecommitdiffstats
path: root/testing/zfs-git-grsec
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-11-16 15:00:34 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-11-16 15:52:56 +0000
commit4b3102dca1c5afa3d19df7d96049269a83de226b (patch)
treedb917214483c16740cb8e2cdf84addd269097e82 /testing/zfs-git-grsec
parent762105a4e673a889711964433a0c35a8eb267dc5 (diff)
downloadaports-4b3102dca1c5afa3d19df7d96049269a83de226b.tar.bz2
aports-4b3102dca1c5afa3d19df7d96049269a83de226b.tar.xz
testing/zfs-git-grsec: upgrade to 20121116
Diffstat (limited to 'testing/zfs-git-grsec')
-rw-r--r--testing/zfs-git-grsec/APKBUILD35
1 files changed, 31 insertions, 4 deletions
diff --git a/testing/zfs-git-grsec/APKBUILD b/testing/zfs-git-grsec/APKBUILD
index 234b1b283..c7e60198c 100644
--- a/testing/zfs-git-grsec/APKBUILD
+++ b/testing/zfs-git-grsec/APKBUILD
@@ -10,7 +10,7 @@ _kver=3.6.6
_kpkgrel=2
_mypkgrel=0
-_date=$(date +%Y%m%d)
+_date=20121116
# source the kernel version
if [ -f ../../main/linux-$_flavor/APKBUILD ]; then
@@ -35,11 +35,38 @@ depends_dev="glib-dev e2fsprogs-dev util-linux-dev
makedepends="$depends_dev automake autoconf libtool"
install=""
subpackages="$pkgname-dev $pkgname-doc $_realname-utils:utils"
-source="saveas-https://github.com/zfsonlinux/zfs/archive/master.tar.gz/zfs-git-$_date.tar.gz
+
+source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-${_date}.tar.gz
timestamp.patch
vdev_id_posix.patch"
+_giturl="git://github.com/zfsonlinux/zfs.git"
+_upload=dev.alpinelinux.org:/archive/$pkgname/
+
+_builddir="$srcdir"/$pkgname-$_date
-_builddir="$srcdir"/zfs-master
+snapshot() {
+ _date=$(date +%Y%m%d)
+ local _pkg=$pkgname-$_date.tar.gz
+ mkdir -p "$srcdir"
+ cd "$srcdir"
+ rm -rf "$pkgname"
+ git clone --depth=1 --bare $_giturl || return 1
+ git --git-dir ${_giturl##*/} archive -o $_pkg \
+ --prefix=$pkgname-$_date/ HEAD \
+ || return 1
+ msg "New snapshot: $_pkg"
+ msg "Uploading to $_upload"
+ _newrel=$((_mypkgrel + 1))
+ scp $_pkg $_upload || return 1
+ cd ..
+ sed -i -e "s/^_mypkgrel=.*/_mypkgrel=$_newrel/" \
+ -e "s/^_date=.*/_date=$_date/" \
+ APKBUILD || return 1
+ _dir=${PWD%/APKBUILD}
+ _dir=${_dir%/*}
+ abuild checksum && abuild -r && git add APKBUILD \
+ && git commit -m"${_dir##*/}/$pkgname: snapshot $_date"
+}
prepare() {
local i
@@ -99,6 +126,6 @@ utils() {
"$subpkgdir"/etc/init.d/zfs || return 1
}
-md5sums="78652d6a0ea05fa3476d0e1c577dbb98 zfs-git-20121108.tar.gz
+md5sums="b73134395b9b72a9be30c56da231d9ca zfs-git-grsec-20121116.tar.gz
9621735b802e34d792b03ef89727f6ea timestamp.patch
c9a5307dc254ff4ff4808a178f4d8bd6 vdev_id_posix.patch"