Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 51783 Details for
Bug 82828
webalizer-asn-1.2b.ebuild (New Package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
webalizer-asn-1.2b.ebuild (ebuild script only)
webalizer-asn-1.2b.ebuild (text/plain), 3.22 KB, created by
Marco Steinacher
on 2005-02-21 07:59:56 UTC
(
hide
)
Description:
webalizer-asn-1.2b.ebuild (ebuild script only)
Filename:
MIME Type:
Creator:
Marco Steinacher
Created:
2005-02-21 07:59:56 UTC
Size:
3.22 KB
patch
obsolete
># Copyright 1999-2005 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > ># Ebuild for webalizer-asn adapted from webalizer-2.01.10-r6.ebuild ># by Marco Steinacher <msteinacher@init7.net> > ># uses webapps to create directories with right permissions ># probably slight overkil but works well >inherit eutils webapp > >DESCRIPTION="Webserver log file analyzer with AS number extension" >HOMEPAGE="http://www.init7.net/webalizer_asn/" >SRC_URI="http://www.init7.net/webalizer_asn/download/${P}.tar.bz2" > >LICENSE="GPL-2" >KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~amd64 ~ppc64" >IUSE="apache2" > >DEPEND="=sys-libs/db-1* > >=sys-libs/zlib-1.1.4 > >=media-libs/libpng-1.2 > >=media-libs/gd-1.8.3 > app-arch/gzip > net-misc/wget > mail-client/mailx > !app-admin/webalizer" > >src_unpack() { > unpack ${A} ; cd ${S} > # fix --enable-dns; our db1 headers are in /usr/include/db1 > # mv dns_resolv.c dns_resolv.c.orig > # sed -e 's%^\(#include \)\(<db.h>\)\(.*\)%\1<db1/db.h>\3%' \ > # dns_resolv.c.orig > dns_resolv.c > sed -i -e "s,db_185.h,db.h," configure >} > >src_compile() { > myconf="--enable-dns --enable-asn" > myconf="${myconf} --with-db=/usr/include/db1/" > einfo "Configuration: ${myconf}" > econf ${myconf} || die > make || die >} > >src_install() { > webapp_src_preinst > > ## Patch webalizer-update-asndb > sed -i -e "s/INSTALL_TO=\"\/var\/local\/webalizer/INSTALL_TO=\"\/var\/lib\/webalizer/" webalizer-update-asndb > sed -i -e "s/MAIL=\"\/usr\/bin\/mail\"/MAIL=\"\/bin\/mail\"/" webalizer-update-asndb > > into /usr > dobin webalizer > dobin webalizer-update-asndb > dosym webalizer /usr/bin/webazolver > doman webalizer.1 > > insinto /etc > newins ${FILESDIR}/${PV}/webalizer.conf webalizer.conf > > if use apache2; then > # patch for apache2 > sed -i -e "s/apache/apache2/g" ${D}/etc/webalizer.conf > insinto /etc/apache2/conf > else > insinto /etc/apache/conf > fi > > doins ${FILESDIR}/${PV}/webalizer.conf > > dodir /var/lib/webalizer > > use apache2 || insinto /etc/apache/conf/addon-modules > use apache2 || newins ${FILESDIR}/${PV}/apache.webalizer webalizer.conf > > use apache2 && insinto /etc/apache2/conf/modules.d > use apache2 && newins ${FILESDIR}/${PV}/apache.webalizer 55_webalizer.conf > > dodoc README* CHANGES* Copyright sample.conf DNS.README country-codes.txt > webapp_hook_script ${FILESDIR}/${PV}/reconfig > webapp_src_install >} > >pkg_postinst(){ > if use apache2; then > einfo "to update your apache.conf just type" > einfo "echo \"Include conf/addon-modules/webalizer.conf\" \ > >> /etc/apache/conf/apache.conf" > fi > einfo > einfo "Just type webalizer to generate your stats." > einfo "You can also use cron to generate them e.g. every day." > einfo "They can be accessed via http://localhost/webalizer" > einfo > einfo "Just type webalizer-update-asndb to update your AS number" > einfo "database. You can also use cron to update the database." > einfo "It is recommended to update once a week. Notifications" > einfo "will be sent to root@localhost. If you want to change this" > einfo "or other notification behavior, please edit" > einfo "/usr/bin/webalizer-update-asndb." > einfo > einfo "Downloading the AS number database now for the first time..." > /usr/bin/webalizer-update-asndb > webapp_pkg_postinst >} > >pkg_prerm(){ > ## Remove AS number database > rm -f /var/lib/webalizer/webalizer_asn.adb* >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 82828
: 51783 |
51785