1 |
flameeyes 10/09/08 11:55:18 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: awstats-7.0.ebuild |
5 |
Log: |
6 |
Version bump to latest beta that seem to fix some security concerns. Take co-maintainership of package. |
7 |
|
8 |
(Portage version: 2.2_rc77/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.2 www-misc/awstats/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-misc/awstats/metadata.xml?rev=1.2&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-misc/awstats/metadata.xml?rev=1.2&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-misc/awstats/metadata.xml?r1=1.1&r2=1.2 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-misc/awstats/metadata.xml,v |
20 |
retrieving revision 1.1 |
21 |
retrieving revision 1.2 |
22 |
diff -u -r1.1 -r1.2 |
23 |
--- metadata.xml 9 Apr 2009 19:00:55 -0000 1.1 |
24 |
+++ metadata.xml 8 Sep 2010 11:55:18 -0000 1.2 |
25 |
@@ -1,5 +1,8 @@ |
26 |
<?xml version="1.0" encoding="UTF-8"?> |
27 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
28 |
<pkgmetadata> |
29 |
- <herd>web-apps</herd> |
30 |
+ <herd>web-apps</herd> |
31 |
+ <maintainer> |
32 |
+ <email>flameeyes@g.o</email> |
33 |
+ </maintainer> |
34 |
</pkgmetadata> |
35 |
|
36 |
|
37 |
|
38 |
1.9 www-misc/awstats/ChangeLog |
39 |
|
40 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-misc/awstats/ChangeLog?rev=1.9&view=markup |
41 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-misc/awstats/ChangeLog?rev=1.9&content-type=text/plain |
42 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-misc/awstats/ChangeLog?r1=1.8&r2=1.9 |
43 |
|
44 |
Index: ChangeLog |
45 |
=================================================================== |
46 |
RCS file: /var/cvsroot/gentoo-x86/www-misc/awstats/ChangeLog,v |
47 |
retrieving revision 1.8 |
48 |
retrieving revision 1.9 |
49 |
diff -u -r1.8 -r1.9 |
50 |
--- ChangeLog 12 Mar 2010 16:45:57 -0000 1.8 |
51 |
+++ ChangeLog 8 Sep 2010 11:55:18 -0000 1.9 |
52 |
@@ -1,6 +1,13 @@ |
53 |
# ChangeLog for www-misc/awstats |
54 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
55 |
-# $Header: /var/cvsroot/gentoo-x86/www-misc/awstats/ChangeLog,v 1.8 2010/03/12 16:45:57 jer Exp $ |
56 |
+# $Header: /var/cvsroot/gentoo-x86/www-misc/awstats/ChangeLog,v 1.9 2010/09/08 11:55:18 flameeyes Exp $ |
57 |
+ |
58 |
+*awstats-7.0 (08 Sep 2010) |
59 |
+ |
60 |
+ 08 Sep 2010; Diego E. Pettenò <flameeyes@g.o> |
61 |
+ files/awstats-6.3-gentoo.diff, +awstats-7.0.ebuild, metadata.xml: |
62 |
+ Version bump to latest beta that seem to fix some security concerns. Take |
63 |
+ co-maintainership of package. |
64 |
|
65 |
12 Mar 2010; Jeroen Roovers <jer@g.o> awstats-6.95.ebuild: |
66 |
Stable for HPPA (bug #293981). |
67 |
|
68 |
|
69 |
|
70 |
1.1 www-misc/awstats/awstats-7.0.ebuild |
71 |
|
72 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-misc/awstats/awstats-7.0.ebuild?rev=1.1&view=markup |
73 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-misc/awstats/awstats-7.0.ebuild?rev=1.1&content-type=text/plain |
74 |
|
75 |
Index: awstats-7.0.ebuild |
76 |
=================================================================== |
77 |
# Copyright 1999-2010 Gentoo Foundation |
78 |
# Distributed under the terms of the GNU General Public License v2 |
79 |
# $Header: /var/cvsroot/gentoo-x86/www-misc/awstats/awstats-7.0.ebuild,v 1.1 2010/09/08 11:55:18 flameeyes Exp $ |
80 |
|
81 |
inherit eutils webapp versionator depend.apache |
82 |
|
83 |
DESCRIPTION="AWStats is short for Advanced Web Statistics." |
84 |
HOMEPAGE="http://awstats.sourceforge.net/" |
85 |
SRC_URI="http://awstats.sourceforge.net/files/${P}.tar.gz" |
86 |
|
87 |
LICENSE="GPL-2" |
88 |
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86 ~x86-fbsd" |
89 |
IUSE="geoip ipv6" |
90 |
|
91 |
SLOT="0" |
92 |
WEBAPP_MANUAL_SLOT="yes" |
93 |
|
94 |
RDEPEND=">=dev-lang/perl-5.6.1 |
95 |
>=media-libs/libpng-1.2 |
96 |
virtual/perl-Time-Local |
97 |
dev-perl/URI |
98 |
geoip? ( dev-perl/Geo-IP ) |
99 |
ipv6? ( dev-perl/Net-IP dev-perl/Net-DNS )" |
100 |
|
101 |
want_apache |
102 |
|
103 |
pkg_setup() { |
104 |
depend.apache_pkg_setup |
105 |
webapp_pkg_setup |
106 |
} |
107 |
|
108 |
src_unpack() { |
109 |
unpack ${A} |
110 |
cd "${S}" |
111 |
|
112 |
epatch "${FILESDIR}"/${PN}-6.3-gentoo.diff |
113 |
|
114 |
# change default installation directory |
115 |
for file in tools/* wwwroot/cgi-bin/*; do |
116 |
if [[ -f "${file}" ]]; then |
117 |
sed \ |
118 |
-e "s#/usr/local/awstats/wwwroot/cgi-bin#${MY_CGIBINDIR}#g" \ |
119 |
-e "s#/usr/local/awstats/wwwroot/icon#${MY_HTDOCSDIR}/icon#g" \ |
120 |
-e "s#/usr/local/awstats/wwwroot/plugins#${MY_HOSTROOTDIR}/plugins#g" \ |
121 |
-e "s#/usr/local/awstats/wwwroot/classes#${MY_HTDOCSDIR}/classes#g" \ |
122 |
-e "s#/usr/local/awstats/wwwroot#${MY_HTDOCSDIR}#g" \ |
123 |
-i "${file}" || die "sed ${file} failed" |
124 |
fi |
125 |
done |
126 |
|
127 |
# set the logpath |
128 |
if use apache2; then |
129 |
logpath="apache2/access_log" |
130 |
else |
131 |
logpath="awstats_log" |
132 |
fi |
133 |
|
134 |
# set default values for directories |
135 |
sed \ |
136 |
-e "s|^\(LogFile=\).*$|\1\"/var/log/${logpath}\"|" \ |
137 |
-e "s|^\(SiteDomain=\).*$|\1\"localhost\"|" \ |
138 |
-e "s|^\(DirIcons=\).*$|\1\"/awstats/icon\"|" \ |
139 |
-e "s|^\(DirCgi=\).*$|\1\"/cgi-bin\"|" \ |
140 |
-i "${S}"/wwwroot/cgi-bin/awstats.model.conf || die "sed failed" |
141 |
|
142 |
# enable ipv6 plugin |
143 |
if use ipv6; then |
144 |
sed -e "s|^#\(LoadPlugin=\"ipv6\"\)$|\1|" \ |
145 |
-i "${S}"/wwwroot/cgi-bin/awstats.model.conf || die "sed failed" |
146 |
fi |
147 |
} |
148 |
|
149 |
src_install() { |
150 |
webapp_src_preinst |
151 |
|
152 |
dohtml -r docs/*.html docs/*.xml docs/*.css docs/images || die |
153 |
dodoc README.TXT docs/COPYING.TXT docs/LICENSE.TXT || die |
154 |
newdoc wwwroot/cgi-bin/plugins/example/example.pm example_plugin.pm |
155 |
docinto xslt |
156 |
dodoc tools/xslt/* || die |
157 |
|
158 |
webapp_postinst_txt en "${FILESDIR}"/postinst-en-r1.txt |
159 |
|
160 |
keepdir /var/lib/awstats |
161 |
|
162 |
# Copy the app's main files |
163 |
exeinto "${MY_CGIBINDIR}" |
164 |
doexe "${S}"/wwwroot/cgi-bin/*.pl || die |
165 |
|
166 |
exeinto "${MY_HTDOCSDIR}"/classes |
167 |
doexe "${S}"/wwwroot/classes/*.jar || die |
168 |
|
169 |
# install language files, libraries and plugins |
170 |
dodir "${MY_CGIBINDIR}" |
171 |
for dir in lang lib plugins; do |
172 |
insinto "${MY_CGIBINDIR}" |
173 |
doins -r "${S}"/wwwroot/cgi-bin/${dir} || die |
174 |
done |
175 |
|
176 |
# install the app's www files |
177 |
dodir "${MY_HTDOCSDIR}" |
178 |
for dir in icon css js; do |
179 |
insinto "${MY_HTDOCSDIR}" |
180 |
doins -r "${S}"/wwwroot/${dir} || die |
181 |
done |
182 |
|
183 |
dodir /usr/share/awstats |
184 |
dosym "${MY_HTDOCSDIR}" /usr/share/awstats/htdocs || die |
185 |
|
186 |
for dir in lang lib plugins; do |
187 |
dosym "${MY_CGIBINDIR}"/"${dir}" /usr/share/awstats/"${dir}" || die |
188 |
done |
189 |
|
190 |
# copy configuration file |
191 |
insinto /etc/awstats |
192 |
doins "${S}"/wwwroot/cgi-bin/awstats.model.conf || die |
193 |
|
194 |
# create the data directory for awstats |
195 |
dodir "${MY_HOSTROOTDIR}"/datadir || die |
196 |
|
197 |
# install command line tools |
198 |
cd "${S}"/tools |
199 |
dobin awstats_buildstaticpages.pl awstats_exportlib.pl \ |
200 |
awstats_updateall.pl logresolvemerge.pl \ |
201 |
maillogconvert.pl awstats_configure.pl || die |
202 |
newbin urlaliasbuilder.pl awstats_urlaliasbuilder.pl || die |
203 |
dosym "${MY_CGIBINDIR}"/awstats.pl /usr/bin/awstats.pl || die |
204 |
|
205 |
webapp_src_install |
206 |
|
207 |
# fix perms |
208 |
for dir in lang lib plugins; do |
209 |
fperms 0755 "${MY_CGIBINDIR}"/"${dir}" || die |
210 |
done |
211 |
for dir in icon css js; do |
212 |
fperms 0755 "${MY_HTDOCSDIR}"/"${dir}" || die |
213 |
done |
214 |
} |
215 |
|
216 |
pkg_postinst() { |
217 |
elog |
218 |
elog "The AWStats-Manual is available either inside" |
219 |
elog "the /usr/share/doc/${PF} - folder, or at" |
220 |
elog "http://awstats.sourceforge.net/docs/index.html ." |
221 |
elog |
222 |
ewarn "Copy the /etc/awstats/awstats.model.conf to" |
223 |
ewarn "/etc/awstats/awstats.<yourdomain>.conf and edit it." |
224 |
|
225 |
if use geoip ; then |
226 |
elog |
227 |
elog "Add the following line to /etc/awstats/awstats.<yourdomain>.conf" |
228 |
elog "to enable GeoIP plugin:" |
229 |
elog "LoadPlugin=\"geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat\" " |
230 |
elog |
231 |
fi |
232 |
|
233 |
webapp_pkg_postinst |
234 |
} |