1 |
flameeyes 12/11/01 16:23:28 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: awstats-7.1_p20121017.ebuild |
5 |
Removed: awstats-7.0_p20101205-r3.ebuild |
6 |
Log: |
7 |
Remove old; bump to a new snapshot as per bug #440764. |
8 |
|
9 |
(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 1CD13C8AD4301342) |
10 |
|
11 |
Revision Changes Path |
12 |
1.29 www-misc/awstats/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-misc/awstats/ChangeLog?rev=1.29&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-misc/awstats/ChangeLog?rev=1.29&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-misc/awstats/ChangeLog?r1=1.28&r2=1.29 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/www-misc/awstats/ChangeLog,v |
21 |
retrieving revision 1.28 |
22 |
retrieving revision 1.29 |
23 |
diff -u -r1.28 -r1.29 |
24 |
--- ChangeLog 1 Feb 2012 17:06:00 -0000 1.28 |
25 |
+++ ChangeLog 1 Nov 2012 16:23:28 -0000 1.29 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for www-misc/awstats |
28 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/www-misc/awstats/ChangeLog,v 1.28 2012/02/01 17:06:00 ranger Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/www-misc/awstats/ChangeLog,v 1.29 2012/11/01 16:23:28 flameeyes Exp $ |
31 |
+ |
32 |
+*awstats-7.1_p20121017 (01 Nov 2012) |
33 |
+ |
34 |
+ 01 Nov 2012; Diego E. Pettenò <flameeyes@g.o> |
35 |
+ +awstats-7.1_p20121017.ebuild, -awstats-7.0_p20101205-r3.ebuild, |
36 |
+ -files/awstats-6.3-gentoo.diff, -files/awstats-7.0_p20101205-nofollow.patch: |
37 |
+ Remove old; bump to a new snapshot as per bug #440764. |
38 |
|
39 |
01 Feb 2012; Brent Baude <ranger@g.o> awstats-7.1-r2.ebuild: |
40 |
Marking awstats-7.1-r2 ppc for bug 384237 |
41 |
@@ -419,4 +426,3 @@ |
42 |
Perolo Silantico < per.sil @ gmx.it > |
43 |
and me < zul @ gentoo.org > |
44 |
Finally closes # 19382. |
45 |
- |
46 |
|
47 |
|
48 |
|
49 |
1.1 www-misc/awstats/awstats-7.1_p20121017.ebuild |
50 |
|
51 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-misc/awstats/awstats-7.1_p20121017.ebuild?rev=1.1&view=markup |
52 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-misc/awstats/awstats-7.1_p20121017.ebuild?rev=1.1&content-type=text/plain |
53 |
|
54 |
Index: awstats-7.1_p20121017.ebuild |
55 |
=================================================================== |
56 |
# Copyright 1999-2012 Gentoo Foundation |
57 |
# Distributed under the terms of the GNU General Public License v2 |
58 |
# $Header: /var/cvsroot/gentoo-x86/www-misc/awstats/awstats-7.1_p20121017.ebuild,v 1.1 2012/11/01 16:23:28 flameeyes Exp $ |
59 |
|
60 |
EAPI=4 |
61 |
|
62 |
inherit eutils |
63 |
|
64 |
MY_P=${PN}-${PV%_p*} |
65 |
|
66 |
DESCRIPTION="AWStats is short for Advanced Web Statistics." |
67 |
HOMEPAGE="http://www.awstats.org/" |
68 |
|
69 |
if [ ${MY_P} != ${P} ]; then |
70 |
SRC_URI="http://dev.gentoo.org/~flameeyes/awstats/${P}.tar.gz" |
71 |
# The following SRC_URI is useful only when fetching for the first time |
72 |
# after bump; upstream does not bump the version when they change it, so |
73 |
# we rename it to include the date and upload to our mirrors instead. |
74 |
#SRC_URI="http://www.awstats.org/files/${MY_P}.tar.gz -> ${P}.tar.gz" |
75 |
else |
76 |
SRC_URI="http://www.awstats.org/files/${P}.tar.gz" |
77 |
fi |
78 |
|
79 |
S=${WORKDIR}/${MY_P} |
80 |
|
81 |
LICENSE="GPL-2" |
82 |
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86 ~x86-fbsd" |
83 |
IUSE="geoip ipv6" |
84 |
|
85 |
SLOT="0" |
86 |
|
87 |
RDEPEND=">=dev-lang/perl-5.6.1 |
88 |
virtual/perl-Time-Local |
89 |
dev-perl/URI |
90 |
geoip? ( dev-perl/Geo-IP ) |
91 |
ipv6? ( dev-perl/Net-IP dev-perl/Net-DNS )" |
92 |
DEPEND="" |
93 |
|
94 |
src_prepare() { |
95 |
epatch "${FILESDIR}"/${PN}-7.1-gentoo.diff |
96 |
|
97 |
# change default installation directory |
98 |
find . -type f -exec sed \ |
99 |
-e "s#/usr/local/awstats/wwwroot#/usr/share/awstats/wwwroot#g" \ |
100 |
-e '/PossibleLibDir/s:(.*):("/usr/share/awstats/wwwroot/cgi-bin/lib"):' \ |
101 |
-i {} + || die "find/sed failed" |
102 |
|
103 |
# set default values for directories; use apache log as an example |
104 |
sed \ |
105 |
-e "s|^\(LogFile=\).*$|\1\"/var/log/apache2/access_log\"|" \ |
106 |
-e "s|^\(SiteDomain=\).*$|\1\"localhost\"|" \ |
107 |
-e "s|^\(DirIcons=\).*$|\1\"/awstats/icon\"|" \ |
108 |
-i "${S}"/wwwroot/cgi-bin/awstats.model.conf || die "sed failed" |
109 |
|
110 |
# enable plugins |
111 |
|
112 |
if use ipv6; then |
113 |
sed -e "s|^#\(LoadPlugin=\"ipv6\"\)$|\1|" \ |
114 |
-i "${S}"/wwwroot/cgi-bin/awstats.model.conf || die "sed failed" |
115 |
fi |
116 |
|
117 |
if use geoip; then |
118 |
sed -e '/LoadPlugin="geoip /aLoadPlugin="geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat"' \ |
119 |
-i "${S}"/wwwroot/cgi-bin/awstats.model.conf || die "sed failed" |
120 |
fi |
121 |
|
122 |
find "${S}" '(' -type f -not -name '*.pl' ')' -exec chmod -x {} + || die |
123 |
} |
124 |
|
125 |
src_install() { |
126 |
dohtml -r docs/* |
127 |
dodoc README.TXT |
128 |
newdoc wwwroot/cgi-bin/plugins/example/example.pm example_plugin.pm |
129 |
dodoc -r tools/xslt |
130 |
|
131 |
keepdir /var/lib/awstats |
132 |
|
133 |
insinto /etc/awstats |
134 |
doins "${S}"/wwwroot/cgi-bin/awstats.model.conf |
135 |
|
136 |
# remove extra content that we don't want to install |
137 |
rm -r "${S}"/wwwroot/cgi-bin/awstats.model.conf \ |
138 |
"${S}"/wwwroot/classes/src || die |
139 |
|
140 |
insinto /usr/share/awstats |
141 |
doins -r wwwroot |
142 |
chmod +x "${D}"/usr/share/awstats/wwwroot/cgi-bin/*.pl |
143 |
|
144 |
cd "${S}"/tools |
145 |
dobin awstats_buildstaticpages.pl awstats_exportlib.pl \ |
146 |
awstats_updateall.pl |
147 |
newbin logresolvemerge.pl awstats_logresolvemerge.pl |
148 |
newbin maillogconvert.pl awstats_maillogconvert.pl |
149 |
newbin urlaliasbuilder.pl awstats_urlaliasbuilder.pl |
150 |
|
151 |
dosym ../share/awstats/wwwroot/cgi-bin/awstats.pl /usr/bin/awstats.pl || die |
152 |
} |
153 |
|
154 |
pkg_postinst() { |
155 |
elog "The AWStats-Manual is available either inside" |
156 |
elog "the /usr/share/doc/${PF} - folder, or at" |
157 |
elog "http://awstats.sourceforge.net/docs/index.html ." |
158 |
elog |
159 |
elog "Copy the /etc/awstats/awstats.model.conf to" |
160 |
elog "/etc/awstats/awstats.<yourdomain>.conf and edit it." |
161 |
elog "" |
162 |
ewarn "This ebuild does no longer use webapp-config to install" |
163 |
ewarn "instead you should point your configuration to the stable" |
164 |
ewarn "directory tree in the following path:" |
165 |
ewarn " /usr/share/awstats" |
166 |
} |