Aldas Nabazas
14 years ago
4 changed files with 3 additions and 68 deletions
@ -1,15 +0,0 @@ |
|||||||
# --- 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 |
|
@ -1,15 +0,0 @@ |
|||||||
# --- 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 |
|
@ -1,35 +0,0 @@ |
|||||||
# --- 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' |
|
Loading…
Reference in new issue