Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 52824 Details for
Bug 66980
smokeping-1.31.ebuild (New Package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
ebuild using Apache Package Refresh guidelines
smokeping-1.38-r1.ebuild (text/plain), 4.19 KB, created by
Lee Thompson
on 2005-03-06 21:10:37 UTC
(
hide
)
Description:
ebuild using Apache Package Refresh guidelines
Filename:
MIME Type:
Creator:
Lee Thompson
Created:
2005-03-06 21:10:37 UTC
Size:
4.19 KB
patch
obsolete
># $Header: $ ># ># ------------------------------------------------------------------------ ># ># $Id:$ ># $Source:$ ># ># Description ># ># smokeping - a deamon named smokeping will sample and record network ># requests into rrdtool collections and a smokeping ># cgi script will display the collections into a web ># browser. ># ># Portage'd by Lee Thompson December 2004 ># Decided to use mod_perl instead of cpeedycgi since mod_perl ># already had an ebuild created. ># Want to use more of GLEP-0011 as its rolled into gentoo. ># Ebuild is missing installation of docs at this point. ># Ebuild currently only integrated with Apache 2.0 ># Also, I think the template may be in the wrong directory. ># ># $Log:$ ># Revision 1.1 2005/03/07 04:53:10 thompson ># Useing Apache Package Refresh guidelines ># ># ------------------------------------------------------------------------ > ># using http://dev.gentoo.org/~vericgar/doc/apache-package-refresh.html >inherit perl-module apache-module eutils > >DESCRIPTION="A delux latency measurement tool" >SRC_URI="http://people.ee.ethz.ch/~oetiker/webtools/smokeping/pub/${P}.tar.gz" >HOMEPAGE="http://people.ee.ethz.ch/~oetiker/webtools/smokeping/" > >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="~x86 ~amd64" > >DEPEND="${DEPEND} > dev-lang/perl > dev-perl/libnet > net-analyzer/rrdtool > >=dev-perl/mod_perl-2.0.0_rc4 > net-analyzer/fping" > >need_apache2 > >pkg_preinst() { > enewgroup smokeping || die "problem adding group smokeping" > enewuser smokeping -1 /bin/false /var/lib/smokeping smokeping || die "problem adding user smokeping" >} > >src_unpack() { > cd ${WORKDIR} > unpack ${P}.tar.gz || die > # cd ${S} > # epatch ${FILESDIR}/${P}-patchname.patch || die >} > >src_compile() { > einfo "skip compile" >} > >src_install() { > # First move all the perl modules into the vendor lib area of perl > perlinfo > insinto ${VENDOR_LIB} > doins lib/*.pm > insinto ${VENDOR_LIB}/ISG > doins lib/ISG/*.pm > insinto ${VENDOR_LIB}/matchers > doins lib/matchers/*.pm > insinto ${VENDOR_LIB}/probes > doins lib/probes/*.pm > > # Create the files in var for rrd file storage and the cgi webserver script > keepdir /var/lib/smokeping/.simg > # the smokeping account really isn't there yet, so this doesn't work 1st time > fowners smokeping:smokeping /var/lib/smokeping > fowners apache:apache /var/lib/smokeping/.simg > fperms 775 /var/lib/smokeping /var/lib/smokeping/.simg > exeinto /var/www/localhost/perl > newexe htdocs/smokeping.cgi.dist smokeping.cgi > dosed 's:^use lib:#use lib:g' /var/www/localhost/perl/smokeping.cgi > dosed 's:sepp/bin/speedy:bin/perl:' /var/www/localhost/perl/smokeping.cgi > dosed 's:/home/oetiker/data/projects/AADJ-smokeping/dist/etc/config:/etc/smokeping:' \ > /var/www/localhost/perl/smokeping.cgi > > ### create smokeping daemon with some edits > newbin bin/smokeping.dist smokeping > dosed 's:/usr/sepp/bin/perl-5.8.0:/usr/bin/perl:g' /usr/bin/smokeping > dosed 's:^use lib:#use lib:g' /usr/bin/smokeping > dosed 's:/sepp::' /usr/bin/smokeping > dosed 's:etc/config.dist:/etc/smokeping:' /usr/bin/smokeping > > # went ahead and pre-edited the /etc files and put into portage > insinto /etc > newins ${FILESDIR}/config.dist smokeping > newins etc/basepage.html.dist smokeping.template > doins etc/smokemail.dist > exeinto /etc/init.d > doexe ${FILESDIR}/smokeping > > APACHE2_MOD_CONF="78_${PN}" > insinto ${APACHE2_MODULES_CONFDIR} > doins ${FILESDIR}/${APACHE2_MOD_CONF}.conf || die "failed to install module" > >} > >pkg_postinst() { > # ahh - asci art! > einfo " ____ _ ____ _" > einfo " / ___| _ __ ___ ___ | | _____| _ \\(_)_ __ __ _" > einfo " \___ \| '_ \` _ \ / _ \| |/ / _ \ |_) | | '_ \ / _\` |" > einfo " ___) | | | | | | (_) | < __/ __/| | | | | (_| |" > einfo " |____/|_| |_| |_|\___/|_|\_\___|_| |_|_| |_|\__, |" > einfo " |___/" > einfo "Author: Tobias Oetiker <tobi@oetiker.ch>" > einfo "" > einfo "Read http://people.ee.ethz.ch/~oetiker/wish for an important message" > einfo "" > einfo "You need to edit /etc/smokeping" > einfo " as well as a template such as /etc/smokeping.template" > einfo "Also edit /etc/conf.d/apache2 and add -D PERL to APACHE2_OPTS" > # set smokeping so its writeable. > chown smokeping:smokeping /var/lib/smokeping >}
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 66980
:
41457
|
41458
|
41459
|
41486
|
41487
|
41488
|
47420
|
48266
|
50564
|
52823
|
52824
|
75167
|
77014
|
80042