Gentoo Archives: gentoo-commits

From: "Alon Bar-Lev (alonbl)" <alonbl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/dazuko: ChangeLog dazuko-2.3.5_pre1.ebuild
Date: Sat, 23 Feb 2008 10:33:38
Message-Id: E1JSrhH-00056O-Uy@stork.gentoo.org
1 alonbl 08/02/23 10:33:35
2
3 Modified: ChangeLog
4 Added: dazuko-2.3.5_pre1.ebuild
5 Log:
6 Version bump to support 2.6.24
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.27 sys-fs/dazuko/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/dazuko/ChangeLog?rev=1.27&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/dazuko/ChangeLog?rev=1.27&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/dazuko/ChangeLog?r1=1.26&r2=1.27
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-fs/dazuko/ChangeLog,v
19 retrieving revision 1.26
20 retrieving revision 1.27
21 diff -u -r1.26 -r1.27
22 --- ChangeLog 11 Oct 2007 20:26:56 -0000 1.26
23 +++ ChangeLog 23 Feb 2008 10:33:35 -0000 1.27
24 @@ -1,6 +1,12 @@
25 # ChangeLog for sys-fs/dazuko
26 -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/dazuko/ChangeLog,v 1.26 2007/10/11 20:26:56 alonbl Exp $
28 +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/dazuko/ChangeLog,v 1.27 2008/02/23 10:33:35 alonbl Exp $
30 +
31 +*dazuko-2.3.5_pre1 (23 Feb 2008)
32 +
33 + 23 Feb 2008; Alon Bar-Lev <alonbl@g.o>
34 + +files/dazuko-2.3.5_pre1-redirfs.patch, +dazuko-2.3.5_pre1.ebuild:
35 + Version bump to support 2.6.24
36
37 *dazuko-2.3.4 (11 Oct 2007)
38
39
40
41
42 1.1 sys-fs/dazuko/dazuko-2.3.5_pre1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/dazuko/dazuko-2.3.5_pre1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-fs/dazuko/dazuko-2.3.5_pre1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: dazuko-2.3.5_pre1.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-fs/dazuko/dazuko-2.3.5_pre1.ebuild,v 1.1 2008/02/23 10:33:35 alonbl Exp $
52
53 inherit linux-mod toolchain-funcs flag-o-matic
54
55 DESCRIPTION="Linux kernel module and interface providing file access control"
56 MY_P="${P/_/-}" # for -preN versions
57 SRC_URI="http://www.dazuko.org/files/${MY_P}.tar.gz"
58 HOMEPAGE="http://www.dazuko.org"
59 LICENSE="GPL-2 BSD"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
62 IUSE=""
63 DEPEND="kernel_linux? (
64 >=virtual/linux-sources-2.6.20
65 >=sys-fs/redirfs-0.2
66 )"
67 RDEPEND="${DEPEND}"
68 S="${WORKDIR}/${MY_P}"
69
70 pkg_setup() {
71 [ "${KERNEL}" = "linux" ] && linux-mod_pkg_setup
72 # kernel settings
73 if [ "${KERNEL}" = "linux" ] && kernel_is le 2 4; then
74 BUILD_TARGETS="all"
75 else
76 EXTRA_CONFIG="--enable-redirfs"
77 BUILD_TARGETS="dummy_rule"
78 fi
79 MODULE_NAMES="dazuko(misc:)"
80 }
81
82 src_unpack() {
83 unpack ${A}
84 cd "${S}"
85 epatch "${FILESDIR}/${P}-redirfs.patch"
86 }
87
88 src_compile() {
89 if [ "${KERNEL}" = "FreeBSD" ]; then
90 KERNEL_DIR=/usr/src/sys
91 KBUILD_OUTPUT=/boot/modules
92 MAKE=make
93 fi
94 ./configure \
95 --without-dep \
96 --kernelsrcdir="${KERNEL_DIR}" \
97 --kernelobjdir="${KBUILD_OUTPUT}" \
98 ${EXTRA_CONFIG} \
99 || die "configure failed"
100
101 if [ "${KERNEL}" = "linux" ]; then
102 convert_to_m Makefile
103 linux-mod_src_compile
104 else
105 emake CC="$(tc-getCC)" LD="$(tc-getLD)" LDFLAGS="$(raw-ldflags)" || die
106 fi
107
108 emake -C library CC="$(tc-getCC)" || die
109 }
110
111 src_install() {
112 if [ "${KERNEL}" = "linux" ]; then
113 linux-mod_src_install
114 else
115 insinto /boot/modules
116 doins "${S}"/dazuko.kld
117 exeinto /boot/modules
118 doexe "${S}"/dazuko.ko
119 fi
120
121 dolib.a library/libdazuko.a
122 insinto /usr/include
123 doins dazukoio.h
124 doins dazuko_events.h
125
126 dodoc README*
127 }
128
129 src_test() {
130 if [ "${EUID}" != 0 ]; then
131 ewarn "Cannot test while not root"
132 else
133 emake test || die "Test failed"
134 fi
135 }
136
137 pkg_postinst() {
138 [ "${KERNEL}" = "linux" ] && linux-mod_pkg_postinst
139 }
140
141 pkg_postrm() {
142 [ "${KERNEL}" = "linux" ] && linux-mod_pkg_postrm
143 }
144
145
146
147 --
148 gentoo-commits@l.g.o mailing list