FreeBSD Bugzilla – Attachment 124359 Details for
Bug 167868
net-mgmt/smokeping fix and request maintenership
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
smokeping.diff
smokeping.diff (text/x-diff; charset=us-ascii), 5.07 KB, created by
Guido Falsi
on 2012-05-14 14:47:50 UTC
(
hide
)
Description:
smokeping.diff
Filename:
MIME Type:
Creator:
Guido Falsi
Created:
2012-05-14 14:47:50 UTC
Size:
5.07 KB
patch
obsolete
>Index: Makefile >=================================================================== >RCS file: /home/ncvs/ports/net-mgmt/smokeping/Makefile,v >retrieving revision 1.57 >diff -u -r1.57 Makefile >--- Makefile 13 May 2012 12:54:51 -0000 1.57 >+++ Makefile 14 May 2012 12:54:21 -0000 >@@ -7,15 +7,16 @@ > > PORTNAME= smokeping > PORTVERSION= 2.6.7 >+PORTREVISION= 1 > CATEGORIES= net-mgmt www > MASTER_SITES= http://oss.oetiker.ch/smokeping/pub/ \ > http://smokeping.cs.pu.edu.tw/pub/ > >-MAINTAINER= ports@FreeBSD.org >+MAINTAINER= rodrigo@bebik.net > COMMENT= Latency logging and graphing system > >-RUN_DEPENDS= rrdtool:${PORTSDIR}/databases/rrdtool \ >- p5-CGI-Session>0:${PORTSDIR}/www/p5-CGI-Session \ >+LIB_DEPENDS= rrd.6:${PORTSDIR}/databases/rrdtool >+BUILD_DEPENDS= p5-CGI-Session>0:${PORTSDIR}/www/p5-CGI-Session \ > p5-Digest-HMAC>0:${PORTSDIR}/security/p5-Digest-HMAC \ > p5-SNMP_Session>0:${PORTSDIR}/net-mgmt/p5-SNMP_Session \ > p5-libwww>0:${PORTSDIR}/www/p5-libwww \ >@@ -23,6 +24,7 @@ > p5-FCGI>0:${PORTSDIR}/www/p5-FCGI \ > p5-Config-Grammar>0:${PORTSDIR}/devel/p5-Config-Grammar \ > p5-Socket6>0:${PORTSDIR}/net/p5-Socket6 >+RUN_DEPENDS:= ${BUILD_DEPENDS} > > USE_PERL5= yes > USE_GMAKE= yes >@@ -157,13 +159,18 @@ > > post-patch: > ${REINPLACE_CMD} ${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ >- ${WRKSRC}/doc/Makefile.in >+ ${WRKSRC}/doc/Makefile.in \ >+ ${WRKSRC}/bin/smokeping \ >+ ${WRKSRC}/bin/smokeping_cgi \ >+ ${WRKSRC}/bin/tSmoke > > post-install: > .for FILE in basepage.html config smokemail tmail > [ -f ${ETCDIR}/${FILE} ] || ${CP} ${ETCDIR}/${FILE}.dist ${ETCDIR}/${FILE} > .endfor > [ -f ${PREFIX}/smokeping/htdocs/smokeping.fcgi ] || ${CP} ${PREFIX}/smokeping/htdocs/smokeping.fcgi.dist ${PREFIX}/smokeping/htdocs/smokeping.fcgi >+ ${MKDIR} ${PREFIX}/smokeping/htdocs/img >+ ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/smokeping/htdocs > .if !defined(BATCH) > ${CAT} ${PKGMESSAGE} > .endif >Index: files/patch-bin-smokeping >=================================================================== >RCS file: files/patch-bin-smokeping >diff -N files/patch-bin-smokeping >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ files/patch-bin-smokeping 14 May 2012 11:04:34 -0000 >@@ -0,0 +1,17 @@ >+--- bin/smokeping.orig 2012-05-14 12:45:03.010872981 +0200 >++++ bin/smokeping 2012-05-14 12:54:39.881874010 +0200 >+@@ -6,12 +6,11 @@ >+ >+ use FindBin; >+ # PERL5LIB >+-use lib "$FindBin::Bin/../thirdparty/lib/perl5"; >+-use lib "$FindBin::Bin/../lib"; >++use lib "%%PREFIX%%/smokeping/lib"; >+ >+ use Smokeping; >+ >+-Smokeping::main("$FindBin::Bin/../etc/config"); >++Smokeping::main("%%ETCDIR%%/config"); >+ >+ =head1 NAME >+ >Index: files/patch-bin-smokeping_cgi >=================================================================== >RCS file: files/patch-bin-smokeping_cgi >diff -N files/patch-bin-smokeping_cgi >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ files/patch-bin-smokeping_cgi 14 May 2012 11:04:41 -0000 >@@ -0,0 +1,21 @@ >+--- bin/smokeping_cgi.orig 2012-05-14 12:45:11.565909114 +0200 >++++ bin/smokeping_cgi 2012-05-14 12:55:19.866379488 +0200 >+@@ -6,8 +6,7 @@ >+ >+ use FindBin; >+ # PERL5LIB >+-use lib "$FindBin::Bin/../thirdparty/lib/perl5"; >+-use lib "$FindBin::Bin/../lib"; >++use lib "%%PREFIX%%/smokeping/lib"; >+ >+ # don't bother with zombies >+ $SIG{CHLD} = 'IGNORE'; >+@@ -18,7 +17,7 @@ >+ >+ use CGI::Fast; >+ >+-my $cfg = (shift @ARGV) || "$FindBin::Bin/../etc/config"; >++my $cfg = (shift @ARGV) || "%%ETCDIR%%/config"; >+ >+ >+ while (my $q = new CGI::Fast) { >Index: files/patch-bin-tSmoke >=================================================================== >RCS file: files/patch-bin-tSmoke >diff -N files/patch-bin-tSmoke >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ files/patch-bin-tSmoke 14 May 2012 12:56:40 -0000 >@@ -0,0 +1,21 @@ >+--- bin/tSmoke.orig 2012-05-14 14:54:55.388873689 +0200 >++++ bin/tSmoke 2012-05-14 14:56:15.881875827 +0200 >+@@ -53,8 +53,7 @@ >+ # Point the lib variables to your implementation >+ use FindBin; >+ # PERL5LIB >+-use lib "$FindBin::Bin/../thirdparty/lib/perl5"; >+-use lib "$FindBin::Bin/../lib"; >++use lib "%%PREFIX%%/smokeping/lib"; >+ >+ use Smokeping; >+ use Net::SMTP; >+@@ -63,7 +62,7 @@ >+ use RRDs; >+ >+ # Point to your Smokeping config file >+-my $cfgfile = "etc/config.dist"; >++my $cfgfile = "%%ETCDIR%%/config"; >+ >+ # global variables >+ my $cfg; >Index: files/patch-htdocs-Makefile.in >=================================================================== >RCS file: files/patch-htdocs-Makefile.in >diff -N files/patch-htdocs-Makefile.in >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ files/patch-htdocs-Makefile.in 14 May 2012 11:23:30 -0000 >@@ -0,0 +1,11 @@ >+--- htdocs/Makefile.in.orig 2012-05-14 13:21:26.387873095 +0200 >++++ htdocs/Makefile.in 2012-05-14 13:22:37.617874000 +0200 >+@@ -424,7 +424,7 @@ >+ install-data-local: >+ $(MKDIR) -p $(DESTDIR)$(HTDOCSDIR) >+ $(ECHO) "#!/bin/sh" > $(DESTDIR)$(HTDOCSDIR)/smokeping.fcgi.dist >+- $(ECHO) "$(prefix)/bin/smokeping_cgi $(prefix)/etc/config" >> $(DESTDIR)$(HTDOCSDIR)/smokeping.fcgi.dist >++ $(ECHO) "$(prefix)/bin/smokeping_cgi $(sysconfdir)/config" >> $(DESTDIR)$(HTDOCSDIR)/smokeping.fcgi.dist >+ chmod +x $(DESTDIR)$(HTDOCSDIR)/smokeping.fcgi.dist >+ >+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 167868
:
124358
| 124359