aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlev <lev@FreeBSD.org>2010-12-12 00:50:46 +0800
committerlev <lev@FreeBSD.org>2010-12-12 00:50:46 +0800
commit91995420816b726b65037f0d0e0ff80bc8cbbb90 (patch)
treeaab41a8045ab35ae0f995f40b8f95ef9fc5b9c5a
parent3b3d60800e9df83143df169b2c42e602f36fea50 (diff)
downloadfreebsd-ports-gnome-91995420816b726b65037f0d0e0ff80bc8cbbb90.tar.gz
freebsd-ports-gnome-91995420816b726b65037f0d0e0ff80bc8cbbb90.tar.zst
freebsd-ports-gnome-91995420816b726b65037f0d0e0ff80bc8cbbb90.zip
Add graid5 port: geom_raid5 class which implements software RAID5.
It is FreeBSD 8.x-ported version of old'n'good geom_raid5 by Arne Worner.
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/graid5/Makefile42
-rw-r--r--sysutils/graid5/distinfo2
-rw-r--r--sysutils/graid5/pkg-descr5
-rw-r--r--sysutils/graid5/pkg-plist6
5 files changed, 56 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 4f33d6e9cccf..f86041f23a5d 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -332,6 +332,7 @@
SUBDIR += gpkgdep
SUBDIR += gpte
SUBDIR += graft
+ SUBDIR += graid
SUBDIR += graphicboot
SUBDIR += graveman
SUBDIR += grok
diff --git a/sysutils/graid5/Makefile b/sysutils/graid5/Makefile
new file mode 100644
index 000000000000..3a52232e88ed
--- /dev/null
+++ b/sysutils/graid5/Makefile
@@ -0,0 +1,42 @@
+# New ports collection makefile for: graid5
+# Date created: 09 Nov 2010
+# Whom: Lev Serebryakov <lev@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= graid5
+PORTVERSION= ${MAINVERSION}.${VERSIONDATE}
+CATEGORIES= sysutils kld
+MASTER_SITES= http://lev.serebryakov.spb.ru/download/graid5/
+
+MAINTAINER= lev@FreeBSD.org
+COMMENT= RAID5 geom class
+
+USE_BZIP2= yes
+
+NO_PACKAGE= should be recompiled for a particular FreeBSD kernel
+
+MAINVERSION=1.0
+VERSIONDATE=20101211.26
+
+KMODDIR?= /boot/modules
+PLIST_SUB+= KMODDIR=${KMODDIR}
+MAKE_ENV+= KMODDIR=${KMODDIR}
+
+MANCOMPRESSED= yes
+MAN8= ${PORTNAME}.8
+
+.if !exists(/usr/src/sys/Makefile)
+IGNORE= requires kernel source files
+.elif !exists(/usr/src/sbin/geom/Makefile)
+IGNORE= requires sbin source files
+.endif
+
+post-install:
+ kldxref ${KMODDIR}
+
+post-deinstall:
+ kldxref ${KMODDIR}
+
+.include <bsd.port.mk>
diff --git a/sysutils/graid5/distinfo b/sysutils/graid5/distinfo
new file mode 100644
index 000000000000..04fa03886bfc
--- /dev/null
+++ b/sysutils/graid5/distinfo
@@ -0,0 +1,2 @@
+SHA256 (graid5-1.0.20101211.26.tar.bz2) = bb48ace5edfdf3c46fe78d6025efb80b417b63d2cb4442598ccd2578bbb241fd
+SIZE (graid5-1.0.20101211.26.tar.bz2) = 26373
diff --git a/sysutils/graid5/pkg-descr b/sysutils/graid5/pkg-descr
new file mode 100644
index 000000000000..ea3a6f5f4f7c
--- /dev/null
+++ b/sysutils/graid5/pkg-descr
@@ -0,0 +1,5 @@
+FreeBSD GEOM class for RAID5.
+
+This is RAID5 geom class, originally written by Arne Worner <arne_woerner@yahoo.com>
+
+WWW: http://lev.serebryakov.spb.ru/download/graid5/
diff --git a/sysutils/graid5/pkg-plist b/sysutils/graid5/pkg-plist
new file mode 100644
index 000000000000..d0258bf19056
--- /dev/null
+++ b/sysutils/graid5/pkg-plist
@@ -0,0 +1,6 @@
+@cwd /
+%%KMODDIR%%/geom_raid5.ko
+lib/geom/geom_raid5.so
+sbin/graid5
+@exec kldxref %%KMODDIR%%
+@unexec kldxref %%KMODDIR%%