1 From 4853c86a80d071ab2171b1c9d77831f292ebf00a Mon Sep 17 00:00:00 2001 |
1 drbd-module-0.7 |
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 diff --git a/source/custom/drbd-module/FrugalBuild b/source/custom/drbd-module/FrugalBuild |
2 diff --git a/source/custom/drbd-module/FrugalBuild b/source/custom/drbd-module/FrugalBuild |
8 new file mode 100644 |
3 new file mode 100644 |
9 index 0000000..bfb8ae4 |
4 index 0000000..49eaf89 |
10 --- /dev/null |
5 --- /dev/null |
11 +++ b/source/custom/drbd-module/FrugalBuild |
6 +++ b/source/custom/drbd-module/FrugalBuild |
12 @@ -0,0 +1,25 @@ |
7 @@ -0,0 +1,36 @@ |
13 +# Maintainer: Tomas Zeman <tzeman@volny.cz> |
8 +# Maintainer: Tomas Zeman <tzeman@volny.cz> |
14 + |
9 + |
15 +pkgorig=drbd |
10 +pkgorig=drbd |
16 +pkgname=$pkgorig-module |
11 +pkgname=$pkgorig-module |
17 +pkgver=0.7.25 |
12 +pkgver=0.7.25 |
18 +pkgrel=1 |
13 +pkgrel=2 |
19 +pkgdesc="block device mirroring a whole block device via network; network raid-1 implementation" |
14 +pkgdesc="block device mirroring a whole block device via network; network raid-1 implementation" |
20 +url="http://www.drbd.org" |
15 +url="http://www.drbd.org" |
21 +license="GPL" |
16 +license="GPL" |
22 +depends=(kernel-source gcc make) |
17 +depends=(kernel-source gcc make "kernel=2.6.24") |
23 +archs=(i686) |
18 +archs=(i686) |
24 +install=drbd.install |
19 +install=drbd.install |
25 +up2date="lynx -dump -nolist http://oss.linbit.com/drbd/|grep drbd-0.7|grep tar.gz|head -1|sed -e 's/^.*drbd-\(.*\)\.tar\.gz.*$/\1/'" |
20 +_F_scm_type="git" |
26 +source=(http://oss.linbit.com/drbd/0.7/$pkgorig-$pkgver.tar.gz) |
21 +_F_scm_url="git://git.drbd.org/drbd-0.7.git" |
27 +sha1sums=('9f507ffd41306409357e1eb4e6f73e3671acad28') |
22 +_F_scm_tag="fe0c05db16a4dbdc6cfcb20c68b2f61a7793df1a" |
|
23 +Finclude scm |
|
24 + |
|
25 +#up2date="lynx -dump -nolist http://oss.linbit.com/drbd/|grep drbd-0.7|grep tar.gz|head -1|sed -e 's/^.*drbd-\(.*\)\.tar\.gz.*$/\1/'" |
|
26 +#source=(http://oss.linbit.com/drbd/0.7/$pkgorig-$pkgver.tar.gz 'http://git.drbd.org/?p=drbd-0.7.git;a=commitdiff_plain;h=fe0c05db16a4dbdc6cfcb20c68b2f61a7793df1a') |
|
27 +#sha1sums=('9f507ffd41306409357e1eb4e6f73e3671acad28') |
28 + |
28 + |
29 + |
29 + |
30 +build() { |
30 +build() { |
31 + Fcd $pkgorig-$pkgver |
31 + Funpack_scm |
32 + mkdir -p $startdir/pkg/usr/src/$pkgname |
32 + #Fcd $pkgorig-$pkgver |
33 + cp -aR drbd $startdir/pkg/usr/src/$pkgname |
33 + #mkdir -p $startdir/pkg/usr/src/$pkgname |
34 + cp -aR scripts $startdir/pkg/usr/src/$pkgname |
34 + #cp -aR drbd $startdir/pkg/usr/src/$pkgname |
|
35 + #cp -aR scripts $startdir/pkg/usr/src/$pkgname |
|
36 + Fcd || Fdie |
|
37 + cd drbd |
|
38 + make clean |
|
39 + make KDIR=/usr/src/linux-`uname -r` || Fdie |
|
40 + make install PREFIX=$startdir/pkg || Fdie |
35 +} |
41 +} |
36 + |
42 + |
37 +# vim: ft=sh |
43 +# vim: ft=sh |
38 diff --git a/source/custom/drbd-module/drbd.install b/source/custom/drbd-module/drbd.install |
44 diff --git a/source/custom/drbd-module/drbd.install b/source/custom/drbd-module/drbd.install |
39 new file mode 100644 |
45 new file mode 100644 |
40 index 0000000..3bb4f68 |
46 index 0000000..06437f2 |
41 --- /dev/null |
47 --- /dev/null |
42 +++ b/source/custom/drbd-module/drbd.install |
48 +++ b/source/custom/drbd-module/drbd.install |
43 @@ -0,0 +1,43 @@ |
49 @@ -0,0 +1,41 @@ |
|
50 + |
44 +# This is a default template for a post-install scriptlet. You can |
51 +# This is a default template for a post-install scriptlet. You can |
45 +# remove any functions you don't need (and this header). |
52 +# remove any functions you don't need (and this header). |
46 + |
53 + |
47 +# arg 1: the new package version |
54 +# arg 1: the new package version |
48 +pre_install() { |
55 +pre_install() { |
61 +} |
68 +} |
62 + |
69 + |
63 +# arg 1: the new package version |
70 +# arg 1: the new package version |
64 +# arg 2: the old package version |
71 +# arg 2: the old package version |
65 +post_upgrade() { |
72 +post_upgrade() { |
66 + cd /usr/src/drbd-module/drbd |
73 + DRBD_OBJ=/lib/modules/`uname -r`/kernel/drivers/block/drbd.ko |
67 + make clean |
74 + /sbin/depmod -a || /sbin/depmod -e $DRBD_OBJ |
68 + make KDIR=/usr/src/linux-`uname -r` all || /bin/false |
|
69 + make install || /bin/false |
|
70 + /bin/true |
|
71 +} |
75 +} |
72 + |
76 + |
73 +# arg 1: the old package version |
77 +# arg 1: the old package version |
74 +pre_remove() { |
78 +pre_remove() { |
75 + /bin/true |
79 + /bin/true |
76 +} |
80 +} |
77 + |
81 + |
78 +# arg 1: the old package version |
82 +# arg 1: the old package version |
79 +post_remove() { |
83 +post_remove() { |
80 + /bin/true |
84 + /sbin/depmod -a |
81 +} |
85 +} |
82 + |
86 + |
83 +op=$1 |
87 +op=$1 |
84 +shift |
88 +shift |
85 +$op $* |
89 +$op $* |