* [gentoo-commits] gentoo-x86 commit in net-analyzer/smokeping: ChangeLog smokeping-2.2.3-r1.ebuild smokeping-2.2.3.ebuild
@ 2007-09-16 22:24 Michael Hanselmann (hansmi)
0 siblings, 0 replies; only message in thread
From: Michael Hanselmann (hansmi) @ 2007-09-16 22:24 UTC (permalink / raw
To: gentoo-commits
hansmi 07/09/16 22:24:29
Modified: ChangeLog
Added: smokeping-2.2.3-r1.ebuild
Removed: smokeping-2.2.3.ebuild
Log:
Install cropper scripts.
(Portage version: 2.1.2.12)
Revision Changes Path
1.16 net-analyzer/smokeping/ChangeLog
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/smokeping/ChangeLog?rev=1.16&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/smokeping/ChangeLog?rev=1.16&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/smokeping/ChangeLog?r1=1.15&r2=1.16
Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/smokeping/ChangeLog,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- ChangeLog 14 Sep 2007 22:25:17 -0000 1.15
+++ ChangeLog 16 Sep 2007 22:24:28 -0000 1.16
@@ -1,6 +1,12 @@
# ChangeLog for net-analyzer/smokeping
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/smokeping/ChangeLog,v 1.15 2007/09/14 22:25:17 hansmi Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/smokeping/ChangeLog,v 1.16 2007/09/16 22:24:28 hansmi Exp $
+
+*smokeping-2.2.3-r1 (17 Sep 2007)
+
+ 16 Sep 2007; Michael Hanselmann <hansmi@gentoo.org>
+ -smokeping-2.2.3.ebuild, +smokeping-2.2.3-r1.ebuild:
+ Install cropper scripts.
14 Sep 2007; Michael Hanselmann <hansmi@gentoo.org>
smokeping-2.2.3.ebuild:
1.1 net-analyzer/smokeping/smokeping-2.2.3-r1.ebuild
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/smokeping/smokeping-2.2.3-r1.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/smokeping/smokeping-2.2.3-r1.ebuild?rev=1.1&content-type=text/plain
Index: smokeping-2.2.3-r1.ebuild
===================================================================
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/smokeping/smokeping-2.2.3-r1.ebuild,v 1.1 2007/09/16 22:24:28 hansmi Exp $
inherit perl-module eutils
KEYWORDS="~amd64 ~sparc ~x86"
DESCRIPTION="A powerful latency measurement tool."
SRC_URI="http://oss.oetiker.ch/smokeping/pub/${P}.tar.gz"
HOMEPAGE="http://oss.oetiker.ch/smokeping/"
LICENSE="GPL-2"
SLOT="0"
IUSE="apache2"
DEPEND="dev-lang/perl
virtual/perl-libnet
>=net-analyzer/rrdtool-1.2
net-analyzer/fping
dev-perl/libwww-perl
dev-perl/Net-DNS
apache2? ( >=www-servers/apache-2.0.54-r30 >=www-apache/mod_perl-2.0.1 )"
RDEPEND="${DEPEND}"
pkg_setup() {
if ! built_with_use '>=net-analyzer/rrdtool-1.2' perl ; then
eerror "You must build net-analyzer/rrdtool with the"
eerror "'perl' USE flag turned on!"
die "net-analyzer/rrdtool installed with 'perl' USE flag disabled"
fi
enewgroup smokeping
enewuser smokeping -1 -1 /var/lib/smokeping smokeping
}
src_compile() {
# There is a makefile we don't want to run so leave this here
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
### This one kind of concerns me, possible conflict with other software
insinto ${VENDOR_LIB}/Config
doins lib/Config/*.pm
insinto ${VENDOR_LIB}/Smokeping
doins lib/Smokeping/*.pm
insinto ${VENDOR_LIB}/Smokeping/matchers
doins lib/Smokeping/matchers/*.pm
insinto ${VENDOR_LIB}/Smokeping/probes
doins lib/Smokeping/probes/*.pm
insinto ${VENDOR_LIB}/Smokeping/sorters
doins lib/Smokeping/sorters/*.pm
# Create the files in var for rrd file storage and the cgi webserver script
keepdir /var/lib/${PN}/.simg
fowners smokeping:smokeping /var/lib/${PN}
if use apache2 ; then
fowners apache:apache /var/lib/${PN}/.simg
else
fowners smokeping:smokeping /var/lib/${PN}/.simg
fi
fperms 775 /var/lib/${PN} /var/lib/${PN}/.simg
exeinto /var/www/localhost/perl
newexe htdocs/${PN}.cgi.dist ${PN}.pl
dosed 's:^use lib:#use lib:g' /var/www/localhost/perl/${PN}.pl
dosed 's:sepp/bin/speedy:bin/perl:' /var/www/localhost/perl/${PN}.pl
dosed 's:/home/oetiker/data/projects/AADJ-smokeping/dist/etc/config:/etc/smokeping:' \
/var/www/localhost/perl/${PN}.pl
# Install AJAX scripts
insinto /var/www/localhost/perl
doins -r htdocs/cropper
# Create the binary
newbin bin/${PN}.dist ${PN}
dosed 's:/usr/sepp/bin/perl-5.8.4:/usr/bin/perl:g' /usr/bin/${PN}
dosed 's:^use lib:#use lib:g' /usr/bin/${PN}
# dosed 's:/sepp::' /usr/bin/${PN}
dosed 's:etc/config.dist:/etc/smokeping:' /usr/bin/${PN}
# Create the config files
insinto /etc
newins "${FILESDIR}/config.dist" ${PN}
newins etc/basepage.html.dist ${PN}.template
doins etc/smokemail.dist
newinitd "${FILESDIR}/${PN}.init" ${PN}
if use apache2 ; then
insinto /etc/apache2/modules.d
doins "${FILESDIR}/78_${PN}.conf"
fi
}
pkg_postinst() {
chown smokeping:smokeping "${ROOT}/var/lib/${PN}"
chmod 755 "${ROOT}/var/lib/${PN}"
elog
elog "Four more steps are needed to get ${PN} un&running:"
elog "1) You need to edit /etc/${PN}"
elog "2) You need to edit the template at /etc/${PN}.template"
elog "3) You need to make the fping binary setuid root:"
elog " # chmod 4755 /usr/sbin/fping"
if use apache2 ; then
elog "4) Make sure to add -D PERL to APACHE2_OPTS in /etc/conf.d/apache2"
elog " and to restart apache2."
fi
elog "You can now start ${PN} with '/etc/init.d/${PN} start'."
elog
}
--
gentoo-commits@gentoo.org mailing list
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-09-16 22:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-16 22:24 [gentoo-commits] gentoo-x86 commit in net-analyzer/smokeping: ChangeLog smokeping-2.2.3-r1.ebuild smokeping-2.2.3.ebuild Michael Hanselmann (hansmi)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox