1 |
hollow 07/12/15 09:43:26 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: awstats-6.7-r1.ebuild |
5 |
Log: |
6 |
fix #125779, #195098 |
7 |
(Portage version: 2.1.4_rc8) |
8 |
|
9 |
Revision Changes Path |
10 |
1.51 net-www/awstats/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/awstats/ChangeLog?rev=1.51&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/awstats/ChangeLog?rev=1.51&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/awstats/ChangeLog?r1=1.50&r2=1.51 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-www/awstats/ChangeLog,v |
19 |
retrieving revision 1.50 |
20 |
retrieving revision 1.51 |
21 |
diff -u -r1.50 -r1.51 |
22 |
--- ChangeLog 8 Sep 2007 11:58:41 -0000 1.50 |
23 |
+++ ChangeLog 15 Dec 2007 09:43:26 -0000 1.51 |
24 |
@@ -1,6 +1,12 @@ |
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.50 2007/09/08 11:58:41 hollow Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-www/awstats/ChangeLog,v 1.51 2007/12/15 09:43:26 hollow Exp $ |
29 |
+ |
30 |
+*awstats-6.7-r1 (15 Dec 2007) |
31 |
+ |
32 |
+ 15 Dec 2007; Benedikt Böhm <hollow@g.o> +files/postinst-en-r1.txt, |
33 |
+ +awstats-6.7-r1.ebuild: |
34 |
+ fix #125779, #195098 |
35 |
|
36 |
08 Sep 2007; Benedikt Böhm <hollow@g.o> -awstats-6.5-r2.ebuild, |
37 |
awstats-6.7.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 net-www/awstats/awstats-6.7-r1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/awstats/awstats-6.7-r1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/awstats/awstats-6.7-r1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: awstats-6.7-r1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2007 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/net-www/awstats/awstats-6.7-r1.ebuild,v 1.1 2007/12/15 09:43:26 hollow Exp $ |
51 |
|
52 |
inherit eutils webapp versionator depend.apache |
53 |
|
54 |
DESCRIPTION="AWStats is short for Advanced Web Statistics." |
55 |
HOMEPAGE="http://awstats.sourceforge.net/" |
56 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
57 |
|
58 |
LICENSE="GPL-2" |
59 |
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86 ~x86-fbsd" |
60 |
IUSE="cgi geoip" |
61 |
|
62 |
RESTRICT="mirror" |
63 |
|
64 |
SLOT="0" |
65 |
WEBAPP_MANUAL_SLOT="yes" |
66 |
|
67 |
RDEPEND=">=dev-lang/perl-5.6.1 |
68 |
>=media-libs/libpng-1.2 |
69 |
virtual/perl-Time-Local |
70 |
dev-perl/URI |
71 |
geoip? ( dev-perl/Geo-IP )" |
72 |
|
73 |
want_apache |
74 |
|
75 |
pkg_setup() { |
76 |
if ! use cgi; then |
77 |
ewarn "You have not enabled the cgi USE flag." |
78 |
ewarn "This means you need to generate static" |
79 |
ewarn "HTML statistics instead of using awstats.pl" |
80 |
fi |
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 "${WORKDIR}"/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 |