|
1
|
1 |
From 4853c86a80d071ab2171b1c9d77831f292ebf00a Mon Sep 17 00:00:00 2001
|
|
|
2 |
From: Tomas Zeman <tzeman@volny.cz>
|
|
|
3 |
Date: Sun, 21 Oct 2007 12:33:08 +0200
|
|
|
4 |
Subject: [PATCH] drbd-module-8.0.6-1-i686
|
|
|
5 |
* added
|
|
|
6 |
|
|
|
7 |
---
|
|
|
8 |
source/custom/drbd-module/FrugalBuild | 25 ++++++++++++++++++
|
|
|
9 |
source/custom/drbd-module/drbd.install | 43 ++++++++++++++++++++++++++++++++
|
|
|
10 |
2 files changed, 68 insertions(+), 0 deletions(-)
|
|
|
11 |
create mode 100644 source/custom/drbd-module/FrugalBuild
|
|
|
12 |
create mode 100644 source/custom/drbd-module/drbd.install
|
|
|
13 |
|
|
|
14 |
diff --git a/source/custom/drbd-module/FrugalBuild b/source/custom/drbd-module/FrugalBuild
|
|
|
15 |
new file mode 100644
|
|
|
16 |
index 0000000..6eadd82
|
|
|
17 |
--- /dev/null
|
|
|
18 |
+++ b/source/custom/drbd-module/FrugalBuild
|
|
|
19 |
@@ -0,0 +1,25 @@
|
|
|
20 |
+# Maintainer: Tomas Zeman <tzeman@volny.cz>
|
|
|
21 |
+
|
|
|
22 |
+pkgorig=drbd
|
|
|
23 |
+pkgname=$pkgorig-module
|
|
|
24 |
+pkgver=8.0.6
|
|
|
25 |
+pkgrel=1
|
|
|
26 |
+pkgdesc="block device mirroring a whole block device via network; network raid-1 implementation"
|
|
|
27 |
+url="http://www.drbd.org"
|
|
|
28 |
+license="GPL"
|
|
|
29 |
+depends=(kernel-source gcc make)
|
|
|
30 |
+archs=(i686)
|
|
|
31 |
+install=drbd.install
|
|
|
32 |
+up2date="lynx -dump -nolist http://oss.linbit.com/drbd/|grep drbd-8.0|grep tar.gz|head -1|sed -e 's/^.*drbd-\(.*\)\.tar\.gz.*$/\1/'"
|
|
|
33 |
+source=(http://oss.linbit.com/drbd/8.0/$pkgorig-$pkgver.tar.gz)
|
|
|
34 |
+sha1sums=(6c19883b19813ee0a3d02a07d89e6ba21517edb9)
|
|
|
35 |
+
|
|
|
36 |
+
|
|
|
37 |
+build() {
|
|
|
38 |
+ Fcd $pkgorig-$pkgver
|
|
|
39 |
+ mkdir -p $startdir/pkg/usr/src/$pkgname
|
|
|
40 |
+ cp -aR drbd $startdir/pkg/usr/src/$pkgname
|
|
|
41 |
+ cp -aR scripts $startdir/pkg/usr/src/$pkgname
|
|
|
42 |
+}
|
|
|
43 |
+
|
|
|
44 |
+# vim: ft=sh
|
|
|
45 |
diff --git a/source/custom/drbd-module/drbd.install b/source/custom/drbd-module/drbd.install
|
|
|
46 |
new file mode 100644
|
|
|
47 |
index 0000000..3bb4f68
|
|
|
48 |
--- /dev/null
|
|
|
49 |
+++ b/source/custom/drbd-module/drbd.install
|
|
|
50 |
@@ -0,0 +1,43 @@
|
|
|
51 |
+# This is a default template for a post-install scriptlet. You can
|
|
|
52 |
+# remove any functions you don't need (and this header).
|
|
|
53 |
+
|
|
|
54 |
+# arg 1: the new package version
|
|
|
55 |
+pre_install() {
|
|
|
56 |
+ /bin/true
|
|
|
57 |
+}
|
|
|
58 |
+
|
|
|
59 |
+# arg 1: the new package version
|
|
|
60 |
+post_install() {
|
|
|
61 |
+ post_upgrade $1
|
|
|
62 |
+}
|
|
|
63 |
+
|
|
|
64 |
+# arg 1: the new package version
|
|
|
65 |
+# arg 2: the old package version
|
|
|
66 |
+pre_upgrade() {
|
|
|
67 |
+ /bin/true
|
|
|
68 |
+}
|
|
|
69 |
+
|
|
|
70 |
+# arg 1: the new package version
|
|
|
71 |
+# arg 2: the old package version
|
|
|
72 |
+post_upgrade() {
|
|
|
73 |
+ cd /usr/src/drbd-module/drbd
|
|
|
74 |
+ make clean
|
|
|
75 |
+ make KDIR=/usr/src/linux-`uname -r` all || /bin/false
|
|
|
76 |
+ make install || /bin/false
|
|
|
77 |
+ /bin/true
|
|
|
78 |
+}
|
|
|
79 |
+
|
|
|
80 |
+# arg 1: the old package version
|
|
|
81 |
+pre_remove() {
|
|
|
82 |
+ /bin/true
|
|
|
83 |
+}
|
|
|
84 |
+
|
|
|
85 |
+# arg 1: the old package version
|
|
|
86 |
+post_remove() {
|
|
|
87 |
+ /bin/true
|
|
|
88 |
+}
|
|
|
89 |
+
|
|
|
90 |
+op=$1
|
|
|
91 |
+shift
|
|
|
92 |
+$op $*
|
|
|
93 |
+
|
|
|
94 |
--
|
|
|
95 |
1.5.3.4
|
|
|
96 |
|