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