1 |
robbat2 10/10/29 03:34:52 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mogilefs-server-2.43.ebuild |
5 |
Log: |
6 |
Version bump via perl-bump experimental tool. |
7 |
|
8 |
(Portage version: 2.2.0_alpha1/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.18 dev-perl/mogilefs-server/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-perl/mogilefs-server/ChangeLog?rev=1.18&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-perl/mogilefs-server/ChangeLog?rev=1.18&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-perl/mogilefs-server/ChangeLog?r1=1.17&r2=1.18 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/ChangeLog,v |
20 |
retrieving revision 1.17 |
21 |
retrieving revision 1.18 |
22 |
diff -p -w -b -B -u -u -r1.17 -r1.18 |
23 |
--- ChangeLog 29 Oct 2010 03:28:45 -0000 1.17 |
24 |
+++ ChangeLog 29 Oct 2010 03:34:52 -0000 1.18 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for dev-perl/mogilefs-server |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/ChangeLog,v 1.17 2010/10/29 03:28:45 robbat2 Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/ChangeLog,v 1.18 2010/10/29 03:34:52 robbat2 Exp $ |
30 |
+ |
31 |
+*mogilefs-server-2.43 (29 Oct 2010) |
32 |
+ |
33 |
+ 29 Oct 2010; Robin H. Johnson <robbat2@g.o> |
34 |
+ +mogilefs-server-2.43.ebuild: |
35 |
+ Version bump via perl-bump experimental tool. |
36 |
|
37 |
29 Oct 2010; Robin H. Johnson <robbat2@g.o> |
38 |
-mogilefs-server-2.30.ebuild, |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-perl/mogilefs-server/mogilefs-server-2.43.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-perl/mogilefs-server/mogilefs-server-2.43.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-perl/mogilefs-server/mogilefs-server-2.43.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: mogilefs-server-2.43.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2010 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.43.ebuild,v 1.1 2010/10/29 03:34:52 robbat2 Exp $ |
52 |
|
53 |
EAPI=2 |
54 |
MODULE_AUTHOR="DORMANDO" |
55 |
MY_PN=MogileFS-Server |
56 |
MY_P="${MY_PN}-${PV}" |
57 |
MODULE_A="${MY_P}.tar.gz" |
58 |
S="${WORKDIR}/${MY_P}" |
59 |
inherit perl-module |
60 |
|
61 |
DESCRIPTION="Server for the MogileFS distributed file system" |
62 |
HOMEPAGE="http://www.danga.com/mogilefs/" |
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.74 |
77 |
dev-perl/IO-AIO |
78 |
dev-perl/libwww-perl |
79 |
>=dev-perl/MogileFS-Client-1.11 |
80 |
>=dev-perl/MogileFS-Utils-2.16 |
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 |
mydoc="CHANGES TODO" |
87 |
|
88 |
# You need a local MySQL or Postgresql server for this |
89 |
#SRC_TEST="do" |
90 |
|
91 |
#PATCHES=( ) |
92 |
|
93 |
MOGILE_USER="mogile" |
94 |
|
95 |
pkg_setup() { |
96 |
# Warning! It is important that the uid is constant over Gentoo machines |
97 |
# As mogilefs may be used with non-local block devices that move! |
98 |
enewuser ${MOGILE_USER} 460 -1 -1 |
99 |
} |
100 |
|
101 |
src_prepare() { |
102 |
for f in Makefile.PL MANIFEST ; do |
103 |
if [ -f "${S}"/${f}.orig ]; then |
104 |
cp -f "${S}"/${f}{.orig,} |
105 |
else |
106 |
cp -f "${S}"/${f}{,.orig} |
107 |
fi |
108 |
done |
109 |
# If we are not in a cutting edge Git source, we would prefer to not install |
110 |
# duplicates of these. |
111 |
sed -i -e '/directory.*mogdeps/d' "${S}"/Makefile.PL |
112 |
sed -i -e '/^lib\/mogdeps/d' "${S}"/MANIFEST |
113 |
mv -f "${S}/lib/mogdeps" "${S}" |
114 |
} |
115 |
|
116 |
src_compile() { |
117 |
export MOGILE_NO_BUILTIN_DEPS=1 |
118 |
perl-module_src_compile || die "perl-module_src_compile failed" |
119 |
} |
120 |
|
121 |
src_install() { |
122 |
export MOGILE_NO_BUILTIN_DEPS=1 |
123 |
perl-module_src_install || die "perl-module_src_install failed" |
124 |
cd "${S}" |
125 |
|
126 |
newconfd "${FILESDIR}"/mogilefsd-conf.d-2.16 mogilefsd |
127 |
newinitd "${FILESDIR}"/mogilefsd-init.d-2.16 mogilefsd |
128 |
|
129 |
newconfd "${FILESDIR}"/mogstored-conf.d-2.30 mogstored |
130 |
newinitd "${FILESDIR}"/mogstored-init.d-2.30 mogstored |
131 |
|
132 |
diropts -m 700 -o ${MOGILE_USER} |
133 |
keepdir /var/run/mogile |
134 |
keepdir /var/mogdata |
135 |
keepdir /mnt/mogilefs |
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 |
} |