diff --git a/cluster/drbd/drbd.cache b/cluster/drbd/drbd.cache new file mode 100644 index 000000000..cb0cdb06a --- /dev/null +++ b/cluster/drbd/drbd.cache @@ -0,0 +1,23 @@ + +[TIMESTAMP] 1204905193 Fri Mar 7 17:53:13 2008 +[BUILDTIME] 0 (5) +[SIZE] 0.27 MB, 25 files + +[DEP] bash +[DEP] binutils +[DEP] bzip2 +[DEP] coreutils +[DEP] diffutils +[DEP] fhs +[DEP] findutils +[DEP] flex +[DEP] gawk +[DEP] gcc +[DEP] glibc +[DEP] grep +[DEP] m4 +[DEP] make +[DEP] sed +[DEP] sysfiles +[DEP] tar +[DEP] util-linux diff --git a/cluster/drbd/drbd.conf b/cluster/drbd/drbd.conf new file mode 100644 index 000000000..aa7fe118f --- /dev/null +++ b/cluster/drbd/drbd.conf @@ -0,0 +1,17 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../drbd/drbd.conf +# Copyright (C) 2008 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. A copy of the +# GNU General Public License can be found in the file COPYING. +# --- SDE-COPYRIGHT-NOTE-END --- + +# only build and install userspace tools +var_append makeopt ' ' "tools" +makeinstopt="install-tools" diff --git a/cluster/drbd/drbd.desc b/cluster/drbd/drbd.desc new file mode 100644 index 000000000..534e7bab8 --- /dev/null +++ b/cluster/drbd/drbd.desc @@ -0,0 +1,33 @@ +[COPY] --- SDE-COPYRIGHT-NOTE-BEGIN --- +[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. +[COPY] +[COPY] Filename: package/.../drbd/drbd.desc +[COPY] Copyright (C) 2008 The OpenSDE Project +[COPY] +[COPY] More information can be found in the files COPYING and README. +[COPY] +[COPY] This program is free software; you can redistribute it and/or modify +[COPY] it under the terms of the GNU General Public License as published by +[COPY] the Free Software Foundation; version 2 of the License. A copy of the +[COPY] GNU General Public License can be found in the file COPYING. +[COPY] --- SDE-COPYRIGHT-NOTE-END --- + +[I] A block device for online mirroring via a network + +[T] Drbd is a block device which is designed to build high-availability +[T] clusters. This is done by mirroring a whole block device via a (dedicated) +[T] network, providing a kind of network raid 1. + +[U] http://www.drbd.org/ + +[A] Philipp Reisner +[M] Christian Wiese + +[C] extra/tool + +[L] GPL +[S] Stable +[V] 8.0.11 +[P] X -----5---9 800.000 + +[D] 60454849 drbd-8.0.11.tar.gz http://oss.linbit.com/drbd/8.0/ diff --git a/cluster/drbd/pkg_linux-header_post.conf b/cluster/drbd/pkg_linux-header_post.conf new file mode 100644 index 000000000..3eca76354 --- /dev/null +++ b/cluster/drbd/pkg_linux-header_post.conf @@ -0,0 +1,15 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../drbd/pkg_linux-header_post.conf +# Copyright (C) 2008 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. A copy of the +# GNU General Public License can be found in the file COPYING. +# --- SDE-COPYRIGHT-NOTE-END --- + +. $base/package/*/drbd/pkg_linux_post.conf diff --git a/cluster/drbd/pkg_linux26_post.conf b/cluster/drbd/pkg_linux26_post.conf new file mode 100644 index 000000000..720469f0d --- /dev/null +++ b/cluster/drbd/pkg_linux26_post.conf @@ -0,0 +1,15 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../drbd/pkg_linux26_post.conf +# Copyright (C) 2008 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. A copy of the +# GNU General Public License can be found in the file COPYING. +# --- SDE-COPYRIGHT-NOTE-END --- + +. $base/package/*/drbd/pkg_linux_post.conf diff --git a/cluster/drbd/pkg_linux_post.conf b/cluster/drbd/pkg_linux_post.conf new file mode 100644 index 000000000..ac5a54751 --- /dev/null +++ b/cluster/drbd/pkg_linux_post.conf @@ -0,0 +1,35 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../drbd/pkg_linux_post.conf +# Copyright (C) 2008 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. A copy of the +# GNU General Public License can be found in the file COPYING. +# --- SDE-COPYRIGHT-NOTE-END --- + +# get the drbd version +pkg_drbd_ver=$( pkgdesc ver drbd ) + +pkg_drbd_kernel_ver="linux-$( echo $ver | cut -d '.' -f1-3 )-drbd-$pkg_drbd_ver" + +# get the name of the drbd source tarball +pkg_drbd_srctar=`match_source_file -p drbd-.*tar.* drbd` + +echo_status "Including DRBD ($pkg_drbd_ver) support" + +# create a temporary directory where we unpack drbd sources +pkg_drbd_tempdir=`mktemp -d` +tar $taropt $pkg_drbd_srctar -C $pkg_drbd_tempdir + +pkg_drbd_prepatch() { + eval make -C "$pkg_drbd_tempdir/drbd-$pkg_drbd_ver KDIR=$PWD kernel-patch" + # we create our own patch file from the original one + cat "$pkg_drbd_tempdir/drbd-$pkg_drbd_ver/patch-$pkg_drbd_kernel_ver" > "$pkg_drbd_tempdir/$pkg_drbd_kernel_ver.patch" + var_append patchfiles ' ' "$pkg_drbd_tempdir/$pkg_drbd_kernel_ver.patch" +} +hook_add prepatch 5 'pkg_drbd_prepatch'