1 |
cla 07/12/23 23:41:36 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: awstats-6.7-r2.ebuild |
5 |
Log: |
6 |
Fix bug #203187 |
7 |
(Portage version: 2.1.3.19) |
8 |
|
9 |
Revision Changes Path |
10 |
1.53 net-www/awstats/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/awstats/ChangeLog?rev=1.53&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/awstats/ChangeLog?rev=1.53&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/awstats/ChangeLog?r1=1.52&r2=1.53 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-www/awstats/ChangeLog,v |
19 |
retrieving revision 1.52 |
20 |
retrieving revision 1.53 |
21 |
diff -u -r1.52 -r1.53 |
22 |
--- ChangeLog 20 Dec 2007 15:49:15 -0000 1.52 |
23 |
+++ ChangeLog 23 Dec 2007 23:41:35 -0000 1.53 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for net-www/awstats |
26 |
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-www/awstats/ChangeLog,v 1.52 2007/12/20 15:49:15 hollow Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-www/awstats/ChangeLog,v 1.53 2007/12/23 23:41:35 cla Exp $ |
29 |
+ |
30 |
+*awstats-6.7-r2 (23 Dec 2007) |
31 |
+ |
32 |
+ 23 Dec 2007; Dawid Węgliński <cla@g.o> +awstats-6.7-r2.ebuild: |
33 |
+ Fix bug #203187 |
34 |
|
35 |
20 Dec 2007; Benedikt Böhm <hollow@g.o> awstats-6.7-r1.ebuild: |
36 |
fix #202676 |
37 |
|
38 |
|
39 |
|
40 |
1.1 net-www/awstats/awstats-6.7-r2.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/awstats/awstats-6.7-r2.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/awstats/awstats-6.7-r2.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: awstats-6.7-r2.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2007 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/net-www/awstats/awstats-6.7-r2.ebuild,v 1.1 2007/12/23 23:41:36 cla Exp $ |
50 |
|
51 |
inherit eutils webapp versionator depend.apache |
52 |
|
53 |
DESCRIPTION="AWStats is short for Advanced Web Statistics." |
54 |
HOMEPAGE="http://awstats.sourceforge.net/" |
55 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
56 |
|
57 |
LICENSE="GPL-2" |
58 |
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86 ~x86-fbsd" |
59 |
IUSE="cgi geoip" |
60 |
|
61 |
RESTRICT="mirror" |
62 |
|
63 |
SLOT="0" |
64 |
WEBAPP_MANUAL_SLOT="yes" |
65 |
|
66 |
RDEPEND=">=dev-lang/perl-5.6.1 |
67 |
>=media-libs/libpng-1.2 |
68 |
virtual/perl-Time-Local |
69 |
dev-perl/URI |
70 |
geoip? ( dev-perl/Geo-IP )" |
71 |
|
72 |
want_apache |
73 |
|
74 |
pkg_setup() { |
75 |
if ! use cgi; then |
76 |
ewarn "You have not enabled the cgi USE flag." |
77 |
ewarn "This means you need to generate static" |
78 |
ewarn "HTML statistics instead of using awstats.pl" |
79 |
fi |
80 |
webapp_pkg_setup |
81 |
} |
82 |
|
83 |
src_unpack() { |
84 |
unpack ${A} |
85 |
cd "${S}" |
86 |
|
87 |
epatch "${FILESDIR}"/${PN}-6.3-gentoo.diff |
88 |
|
89 |
# change default installation directory |
90 |
for file in tools/* wwwroot/cgi-bin/*; do |
91 |
if [[ -f "${file}" ]]; then |
92 |
sed \ |
93 |
-e "s#/usr/local/awstats/wwwroot/cgi-bin#${MY_CGIBINDIR}#g" \ |
94 |
-e "s#/usr/local/awstats/wwwroot/icon#${MY_HTDOCSDIR}/icon#g" \ |
95 |
-e "s#/usr/local/awstats/wwwroot/plugins#${MY_HOSTROOTDIR}/plugins#g" \ |
96 |
-e "s#/usr/local/awstats/wwwroot/classes#${MY_HTDOCSDIR}/classes#g" \ |
97 |
-e "s#/usr/local/awstats/wwwroot#${MY_HTDOCSDIR}#g" \ |
98 |
-i "${file}" || die "sed ${file} failed" |
99 |
fi |
100 |
done |
101 |
|
102 |
# set the logpath |
103 |
if use apache2; then |
104 |
logpath="apache2/access_log" |
105 |
else |
106 |
logpath="awstats_log" |
107 |
fi |
108 |
|
109 |
# set default values for directories |
110 |
sed \ |
111 |
-e "s|^\(LogFile=\).*$|\1\"/var/log/${logpath}\"|" \ |
112 |
-e "s|^\(SiteDomain=\).*$|\1\"localhost\"|" \ |
113 |
-e "s|^\(DirIcons=\).*$|\1\"/awstats/icon\"|" \ |
114 |
-e "s|^\(DirCgi=\).*$|\1\"/cgi-bin\"|" \ |
115 |
-i "${S}"/wwwroot/cgi-bin/awstats.model.conf || die "sed failed" |
116 |
} |
117 |
|
118 |
src_install() { |
119 |
webapp_src_preinst |
120 |
|
121 |
dohtml -r docs/*.html docs/*.xml docs/*.css docs/*.js docs/images |
122 |
dodoc README.TXT docs/COPYING.TXT docs/LICENSE.TXT |
123 |
newdoc wwwroot/cgi-bin/plugins/example/example.pm example_plugin.pm |
124 |
docinto xslt |
125 |
dodoc tools/xslt/* |
126 |
|
127 |
webapp_postinst_txt en "${FILESDIR}"/postinst-en-r1.txt |
128 |
|
129 |
keepdir /var/lib/awstats |
130 |
|
131 |
# Copy the app's main files |
132 |
if use cgi; then |
133 |
exeinto "${MY_CGIBINDIR}" |
134 |
doexe "${S}"/wwwroot/cgi-bin/*.pl |
135 |
fi |
136 |
|
137 |
exeinto "${MY_HTDOCSDIR}"/classes |
138 |
doexe "${S}"/wwwroot/classes/*.jar |
139 |
|
140 |
# install language files, libraries and plugins |
141 |
mkdir -p "${D}${MY_CGIBINDIR}" |
142 |
for dir in lang lib plugins; do |
143 |
cp -R "${S}/wwwroot/cgi-bin/${dir}" "${D}${MY_CGIBINDIR}" |
144 |
done |
145 |
|
146 |
# install the app's www files |
147 |
mkdir -p "${D}${MY_HTDOCSDIR}" |
148 |
for dir in icon css js; do |
149 |
cp -R "${S}/wwwroot/${dir}" "${D}${MY_HTDOCSDIR}" |
150 |
done |
151 |
|
152 |
# copy configuration file |
153 |
insinto /etc/awstats |
154 |
doins "${S}"/wwwroot/cgi-bin/awstats.model.conf |
155 |
|
156 |
# create the data directory for awstats |
157 |
mkdir -p "${D}/${MY_HOSTROOTDIR}/datadir" |
158 |
|
159 |
# install command line tools |
160 |
cd "${S}"/tools |
161 |
dobin awstats_buildstaticpages.pl awstats_exportlib.pl \ |
162 |
awstats_updateall.pl logresolvemerge.pl \ |
163 |
maillogconvert.pl awstats_configure.pl |
164 |
newbin urlaliasbuilder.pl awstats_urlaliasbuilder.pl |
165 |
|
166 |
webapp_src_install |
167 |
|
168 |
# fix perms |
169 |
for dir in lang lib plugins; do |
170 |
chmod 0755 "${D}${MY_CGIBINDIR}/${dir}" |
171 |
done |
172 |
for dir in icon css js; do |
173 |
chmod 0755 "${D}${MY_HTDOCSDIR}/${dir}" |
174 |
done |
175 |
} |
176 |
|
177 |
pkg_postinst() { |
178 |
elog |
179 |
elog "The AWStats-Manual is available either inside" |
180 |
elog "the /usr/share/doc/${PF} - folder, or at" |
181 |
elog "http://awstats.sourceforge.net/docs/index.html ." |
182 |
elog |
183 |
ewarn "Copy the /etc/awstats/awstats.model.conf to" |
184 |
ewarn "/etc/awstats/awstats.<yourdomain>.conf and edit it." |
185 |
|
186 |
if use geoip ; then |
187 |
einfo |
188 |
einfo "Add the following line to /etc/awstats/awstats.<yourdomain>.conf" |
189 |
einfo "to enable GeoIP plugin:" |
190 |
einfo "LoadPlugin=\"geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat\" " |
191 |
einfo |
192 |
fi |
193 |
|
194 |
webapp_pkg_postinst |
195 |
} |
196 |
|
197 |
|
198 |
|
199 |
-- |
200 |
gentoo-commits@g.o mailing list |