1 |
robbat2 09/11/04 02:20:50 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mogilefs-server-2.32.ebuild |
5 |
Log: |
6 |
Version bump, now with official Postgres support. |
7 |
(Portage version: 2.2_rc48/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.8 dev-perl/mogilefs-server/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-perl/mogilefs-server/ChangeLog?rev=1.8&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-perl/mogilefs-server/ChangeLog?rev=1.8&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-perl/mogilefs-server/ChangeLog?r1=1.7&r2=1.8 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/ChangeLog,v |
19 |
retrieving revision 1.7 |
20 |
retrieving revision 1.8 |
21 |
diff -p -w -b -B -u -u -r1.7 -r1.8 |
22 |
--- ChangeLog 23 Feb 2009 09:59:21 -0000 1.7 |
23 |
+++ ChangeLog 4 Nov 2009 02:20:50 -0000 1.8 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for dev-perl/mogilefs-server |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/ChangeLog,v 1.7 2009/02/23 09:59:21 robbat2 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/ChangeLog,v 1.8 2009/11/04 02:20:50 robbat2 Exp $ |
29 |
+ |
30 |
+*mogilefs-server-2.32 (04 Nov 2009) |
31 |
+ |
32 |
+ 04 Nov 2009; Robin H. Johnson <robbat2@g.o> |
33 |
+ +mogilefs-server-2.32.ebuild: |
34 |
+ Version bump, now with official Postgres support. |
35 |
|
36 |
*mogilefs-server-2.30 (23 Feb 2009) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-perl/mogilefs-server/mogilefs-server-2.32.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-perl/mogilefs-server/mogilefs-server-2.32.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-perl/mogilefs-server/mogilefs-server-2.32.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: mogilefs-server-2.32.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2009 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/mogilefs-server-2.32.ebuild,v 1.1 2009/11/04 02:20:50 robbat2 Exp $ |
51 |
|
52 |
EAPI=2 |
53 |
MODULE_AUTHOR="DORMANDO" |
54 |
inherit perl-module |
55 |
|
56 |
DESCRIPTION="Server for the MogileFS distributed file system" |
57 |
HOMEPAGE="http://www.danga.com/mogilefs/" |
58 |
|
59 |
IUSE="mysql sqlite postgres" |
60 |
|
61 |
SLOT="0" |
62 |
LICENSE="|| ( Artistic GPL-2 )" |
63 |
KEYWORDS="~amd64 ~ppc ~x86" |
64 |
|
65 |
# Upstream site recommends this, |
66 |
# but it breaks Perlbal |
67 |
# dev-perl/Perlbal-XS-HTTPHeaders |
68 |
DEPEND="dev-perl/Net-Netmask |
69 |
>=dev-perl/Danga-Socket-1.61 |
70 |
>=dev-perl/Sys-Syscall-0.22 |
71 |
>=dev-perl/Perlbal-1.73 |
72 |
dev-perl/IO-AIO |
73 |
>=dev-perl/Gearman-Server-1.09 |
74 |
dev-perl/Gearman-Client-Async |
75 |
dev-perl/libwww-perl |
76 |
>=dev-perl/MogileFS-Client-1.09 |
77 |
dev-perl/Cache-Memcached |
78 |
mysql? ( dev-perl/DBD-mysql ) |
79 |
postgres? ( dev-perl/DBD-Pg ) |
80 |
sqlite? ( dev-perl/DBD-SQLite )" |
81 |
mydoc="CHANGES TODO" |
82 |
|
83 |
# You need a local MySQL or Postgresql server for this |
84 |
#SRC_TEST="do" |
85 |
|
86 |
#PATCHES=( ) |
87 |
|
88 |
MOGILE_USER="mogile" |
89 |
|
90 |
pkg_setup() { |
91 |
# Warning! It is important that the uid is constant over Gentoo machines |
92 |
# As mogilefs may be used with non-local block devices that move! |
93 |
enewuser ${MOGILE_USER} 460 -1 -1 |
94 |
} |
95 |
|
96 |
src_prepare() { |
97 |
# If we are not in a cutting edge Git source, we would prefer to not install |
98 |
# duplicates of these. |
99 |
#sed -i -e '/directory.*mogdeps/d' "${S}"/Makefile.PL |
100 |
mv -f "${S}/lib/mogdeps" "${S}" |
101 |
} |
102 |
|
103 |
src_compile() { |
104 |
export MOGILE_NO_BUILTIN_DEPS=1 |
105 |
perl-module_src_compile || die "perl-module_src_compile failed" |
106 |
} |
107 |
|
108 |
src_install() { |
109 |
export MOGILE_NO_BUILTIN_DEPS=1 |
110 |
perl-module_src_install || die "perl-module_src_install failed" |
111 |
cd "${S}" |
112 |
|
113 |
newconfd "${FILESDIR}"/mogilefsd-conf.d-2.16 mogilefsd |
114 |
newinitd "${FILESDIR}"/mogilefsd-init.d-2.16 mogilefsd |
115 |
|
116 |
newconfd "${FILESDIR}"/mogstored-conf.d-2.30 mogstored |
117 |
newinitd "${FILESDIR}"/mogstored-init.d-2.30 mogstored |
118 |
|
119 |
diropts -m 700 -o ${MOGILE_USER} |
120 |
keepdir /var/run/mogile |
121 |
keepdir /var/mogdata |
122 |
keepdir /mnt/mogilefs |
123 |
diropts -m 755 -o root |
124 |
|
125 |
dodir /etc/mogilefs |
126 |
insinto /etc/mogilefs |
127 |
insopts -m 600 -o root -g ${MOGILE_USER} |
128 |
newins "${FILESDIR}"/mogilefsd.conf-2.30 mogilefsd.conf |
129 |
newins "${FILESDIR}"/mogstored.conf-2.16 mogstored.conf |
130 |
} |
131 |
|
132 |
pkg_postinst() { |
133 |
chmod 640 "${ROOT}"/etc/mogilefs/{mogilefsd,mogstored}.conf |
134 |
chown root:${MOGILE_USER} "${ROOT}"/etc/mogilefs/{mogilefsd,mogstored}.conf |
135 |
} |