1 |
robbat2 10/08/20 21:14:37 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mogilefs-server-2.37.ebuild |
5 |
Log: |
6 |
Version bump via perl-bump experimental tool. |
7 |
(Portage version: 2.2_rc67/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.16 dev-perl/mogilefs-server/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-perl/mogilefs-server/ChangeLog?rev=1.16&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-perl/mogilefs-server/ChangeLog?rev=1.16&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-perl/mogilefs-server/ChangeLog?r1=1.15&r2=1.16 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/ChangeLog,v |
19 |
retrieving revision 1.15 |
20 |
retrieving revision 1.16 |
21 |
diff -p -w -b -B -u -u -r1.15 -r1.16 |
22 |
--- ChangeLog 23 Apr 2010 18:22:18 -0000 1.15 |
23 |
+++ ChangeLog 20 Aug 2010 21:14:37 -0000 1.16 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for dev-perl/mogilefs-server |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/ChangeLog,v 1.15 2010/04/23 18:22:18 robbat2 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/ChangeLog,v 1.16 2010/08/20 21:14:37 robbat2 Exp $ |
29 |
+ |
30 |
+*mogilefs-server-2.37 (20 Aug 2010) |
31 |
+ |
32 |
+ 20 Aug 2010; Robin H. Johnson <robbat2@g.o> |
33 |
+ +mogilefs-server-2.37.ebuild: |
34 |
+ Version bump via perl-bump experimental tool. |
35 |
|
36 |
*mogilefs-server-2.36 (23 Apr 2010) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-perl/mogilefs-server/mogilefs-server-2.37.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-perl/mogilefs-server/mogilefs-server-2.37.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-perl/mogilefs-server/mogilefs-server-2.37.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: mogilefs-server-2.37.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 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.37.ebuild,v 1.1 2010/08/20 21:14:37 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.74 |
72 |
dev-perl/IO-AIO |
73 |
dev-perl/libwww-perl |
74 |
>=dev-perl/MogileFS-Client-1.11 |
75 |
>=dev-perl/MogileFS-Utils-2.16 |
76 |
dev-perl/Cache-Memcached |
77 |
mysql? ( dev-perl/DBD-mysql ) |
78 |
postgres? ( dev-perl/DBD-Pg ) |
79 |
sqlite? ( dev-perl/DBD-SQLite )" |
80 |
mydoc="CHANGES TODO" |
81 |
|
82 |
# You need a local MySQL or Postgresql server for this |
83 |
#SRC_TEST="do" |
84 |
|
85 |
#PATCHES=( ) |
86 |
|
87 |
MOGILE_USER="mogile" |
88 |
|
89 |
pkg_setup() { |
90 |
# Warning! It is important that the uid is constant over Gentoo machines |
91 |
# As mogilefs may be used with non-local block devices that move! |
92 |
enewuser ${MOGILE_USER} 460 -1 -1 |
93 |
} |
94 |
|
95 |
src_prepare() { |
96 |
for f in Makefile.PL MANIFEST ; do |
97 |
if [ -f "${S}"/${f}.orig ]; then |
98 |
cp -f "${S}"/${f}{.orig,} |
99 |
else |
100 |
cp -f "${S}"/${f}{,.orig} |
101 |
fi |
102 |
done |
103 |
# If we are not in a cutting edge Git source, we would prefer to not install |
104 |
# duplicates of these. |
105 |
sed -i -e '/directory.*mogdeps/d' "${S}"/Makefile.PL |
106 |
sed -i -e '/^lib\/mogdeps/d' "${S}"/MANIFEST |
107 |
mv -f "${S}/lib/mogdeps" "${S}" |
108 |
} |
109 |
|
110 |
src_compile() { |
111 |
export MOGILE_NO_BUILTIN_DEPS=1 |
112 |
perl-module_src_compile || die "perl-module_src_compile failed" |
113 |
} |
114 |
|
115 |
src_install() { |
116 |
export MOGILE_NO_BUILTIN_DEPS=1 |
117 |
perl-module_src_install || die "perl-module_src_install failed" |
118 |
cd "${S}" |
119 |
|
120 |
newconfd "${FILESDIR}"/mogilefsd-conf.d-2.16 mogilefsd |
121 |
newinitd "${FILESDIR}"/mogilefsd-init.d-2.16 mogilefsd |
122 |
|
123 |
newconfd "${FILESDIR}"/mogstored-conf.d-2.30 mogstored |
124 |
newinitd "${FILESDIR}"/mogstored-init.d-2.30 mogstored |
125 |
|
126 |
diropts -m 700 -o ${MOGILE_USER} |
127 |
keepdir /var/run/mogile |
128 |
keepdir /var/mogdata |
129 |
keepdir /mnt/mogilefs |
130 |
diropts -m 755 -o root |
131 |
|
132 |
dodir /etc/mogilefs |
133 |
insinto /etc/mogilefs |
134 |
insopts -m 600 -o root -g ${MOGILE_USER} |
135 |
newins "${FILESDIR}"/mogilefsd.conf-2.30 mogilefsd.conf |
136 |
newins "${FILESDIR}"/mogstored.conf-2.16 mogstored.conf |
137 |
} |
138 |
|
139 |
pkg_postinst() { |
140 |
chmod 640 "${ROOT}"/etc/mogilefs/{mogilefsd,mogstored}.conf |
141 |
chown root:${MOGILE_USER} "${ROOT}"/etc/mogilefs/{mogilefsd,mogstored}.conf |
142 |
} |