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