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