View | Details | Raw Unified | Return to bug 189620
Collapse All | Expand All

(-)rtg/Makefile (-7 / +7 lines)
Lines 3-27 Link Here
3
3
4
PORTNAME=	rtg
4
PORTNAME=	rtg
5
PORTVERSION=	0.7.4
5
PORTVERSION=	0.7.4
6
PORTREVISION=	9
6
PORTREVISION=	10
7
CATEGORIES=	net
7
CATEGORIES=	net
8
MASTER_SITES=	SF
8
MASTER_SITES=	SF
9
9
10
MAINTAINER=	freebsd-ports@dan.me.uk
10
MAINTAINER=	freebsd-ports@dan.me.uk
11
COMMENT=	A flexible, high-performance SNMP statistics monitoring system
11
COMMENT=	A flexible, high-performance SNMP statistics monitoring system
12
12
13
LIB_DEPENDS=	netsnmp:${PORTSDIR}/net-mgmt/net-snmp
13
LICENSE=	GPLv2
14
14
15
MAN1=	rtgplot.1 rtgpoll.1
15
LIB_DEPENDS=	libnetsnmp.so:${PORTSDIR}/net-mgmt/net-snmp
16
16
17
USE_RC_SUBR=	rtgpoll
17
USE_RC_SUBR=	rtgpoll
18
USE_MYSQL=	yes
18
USE_MYSQL=	yes
19
WANT_PERL=	yes
20
USES=		shebangfix
21
SHEBANG_FILES=	etc/95.pl etc/report.pl
22
SUB_FILES=	pkg-message
19
GNU_CONFIGURE=	yes
23
GNU_CONFIGURE=	yes
20
CONFIGURE_ARGS+=	--sysconfdir=${PREFIX}/etc/${PORTNAME} \
24
CONFIGURE_ARGS+=	--sysconfdir=${PREFIX}/etc/${PORTNAME} \
21
			--with-mysql=${LOCALBASE} \
25
			--with-mysql=${LOCALBASE} \
22
			--with-snmp=${LOCALBASE}
26
			--with-snmp=${LOCALBASE}
23
27
24
NO_STAGE=	yes
25
.include <bsd.port.pre.mk>
28
.include <bsd.port.pre.mk>
26
29
27
.if ( ${OSVERSION} >= 800040 )
30
.if ( ${OSVERSION} >= 800040 )
Lines 36-42 Link Here
36
	@${MV} ${WRKSRC}/etc/rtg.conf ${WRKSRC}/etc/rtg.conf.sample
39
	@${MV} ${WRKSRC}/etc/rtg.conf ${WRKSRC}/etc/rtg.conf.sample
37
	@${MV} ${WRKSRC}/etc/routers ${WRKSRC}/etc/routers.sample
40
	@${MV} ${WRKSRC}/etc/routers ${WRKSRC}/etc/routers.sample
38
41
39
post-install:
40
	@${ECHO} "To enable the web interface, copy ${PREFIX}/bin/rtgplot to your site cgi-bin as rtgplot.cgi"
41
42
.include <bsd.port.post.mk>
42
.include <bsd.port.post.mk>
(-)rtg/files/patch-etc-Makefile.in (-9 / +13 lines)
Lines 1-14 Link Here
1
--- etc/Makefile.in.orig	2003-10-02 16:59:32.000000000 +0100
1
--- etc/Makefile.in.orig	2003-10-02 16:59:32.000000000 +0100
2
+++ etc/Makefile.in	2010-07-04 03:34:26.379748720 +0100
2
+++ etc/Makefile.in	2014-05-10 17:29:11.995407415 +0100
3
@@ -84,19 +84,19 @@
3
@@ -84,19 +84,19 @@
4
 install_sh = @install_sh@
4
 install_sh = @install_sh@
5
 
5
 
6
 top_builddir = ..
6
 top_builddir = ..
7
-etcdir = /etc
7
-etcdir = /etc
8
-webdir = /web
8
-webdir = /web
9
-reportsdir = /bin
9
+etcdir = @etcdir@
10
+etcdir = @etcdir@
10
+webdir = @webdir@
11
+webdir = @webdir@
11
 reportsdir = /bin
12
+reportsdir = @bindir@
12
 
13
 
13
-ETC = rtg.conf rtgtargmkr.pl routers createdb BER.pm \
14
-ETC = rtg.conf rtgtargmkr.pl routers createdb BER.pm \
14
+ETC = rtg.conf.sample rtgtargmkr.pl routers.sample createdb BER.pm \
15
+ETC = rtg.conf.sample rtgtargmkr.pl routers.sample createdb BER.pm \
Lines 25-45 Link Here
25
 
26
 
26
 subdir = etc
27
 subdir = etc
27
 mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
28
 mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
28
@@ -220,13 +220,13 @@
29
@@ -220,14 +220,14 @@
29
 all:
30
 all:
30
 
31
 
31
 install: installdirs
32
 install: installdirs
32
-	@for i in $(ETC) ; do $(INSTALL) $(srcdir)/$$i $(prefix)$(etcdir) ; echo "install: installed $$i in $(prefix)$(etcdir)" ; done
33
-	@for i in $(ETC) ; do $(INSTALL) $(srcdir)/$$i $(prefix)$(etcdir) ; echo "install: installed $$i in $(prefix)$(etcdir)" ; done
33
-	@for i in $(WEB) ; do $(INSTALL) $(srcdir)/$$i $(prefix)$(webdir) ; echo "install: installed $$i in $(prefix)$(webdir)" ; done
34
-	@for i in $(WEB) ; do $(INSTALL) $(srcdir)/$$i $(prefix)$(webdir) ; echo "install: installed $$i in $(prefix)$(webdir)" ; done
34
+	@for i in $(ETC) ; do $(INSTALL) $(srcdir)/$$i $(etcdir) ; echo "install: installed $$i in $(etcdir)" ; done
35
-	@for i in $(REPORTS) ; do $(INSTALL) $(srcdir)/$$i $(prefix)$(reportsdir) ; echo "install: installed $$i in $(prefix)$(reportsdir)" ; done
35
+	@for i in $(WEB) ; do $(INSTALL) $(srcdir)/$$i $(webdir) ; echo "install: installed $$i in $(webdir)" ; done
36
+	@for i in $(ETC) ; do $(INSTALL) $(srcdir)/$$i $(DESTDIR)$(etcdir) ; echo "install: installed $$i in $(DESTDIR)$(etcdir)" ; done
36
 	@for i in $(REPORTS) ; do $(INSTALL) $(srcdir)/$$i $(prefix)$(reportsdir) ; echo "install: installed $$i in $(prefix)$(reportsdir)" ; done
37
+	@for i in $(WEB) ; do $(INSTALL) $(srcdir)/$$i $(DESTDIR)$(webdir) ; echo "install: installed $$i in $(DESTDIR)$(webdir)" ; done
38
+	@for i in $(REPORTS) ; do $(INSTALL) $(srcdir)/$$i $(DESTDIR)$(reportsdir) ; echo "install: installed $$i in $(DESTDIR)$(reportsdir)" ; done
37
 
39
 
38
 installdirs:
40
 installdirs:
39
-	$(mkinstalldirs) $(prefix)$(etcdir)
41
-	$(mkinstalldirs) $(prefix)$(etcdir)
40
-	$(mkinstalldirs) $(prefix)$(webdir)
42
-	$(mkinstalldirs) $(prefix)$(webdir)
41
+	$(mkinstalldirs) $(etcdir)
43
-	$(mkinstalldirs) $(prefix)$(reportsdir)
42
+	$(mkinstalldirs) $(webdir)
44
+	$(mkinstalldirs) $(DESTDIR)$(etcdir)
43
 	$(mkinstalldirs) $(prefix)$(reportsdir)
45
+	$(mkinstalldirs) $(DESTDIR)$(webdir)
46
+	$(mkinstalldirs) $(DESTDIR)$(reportsdir)
44
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
47
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
45
 # Otherwise a system limit (for SysV at least) may be exceeded.
48
 # Otherwise a system limit (for SysV at least) may be exceeded.
49
 .NOEXPORT:
(-)rtg/files/pkg-message.in (+2 lines)
Line 0 Link Here
1
To enable the web interface, copy %%PREFIX%%/bin/rtgplot to your site cgi-bin as rtgplot.cgi
2
Without this step, your graphs will be broken.
(-)rtg/pkg-plist (-9 / +11 lines)
Lines 4-25 Link Here
4
bin/rtgpoll
4
bin/rtgpoll
5
contrib/README
5
contrib/README
6
contrib/rtgtargmkr-with-modules-0.2.tar.gz
6
contrib/rtgtargmkr-with-modules-0.2.tar.gz
7
etc/rtg/rtg.conf.sample
7
%%ETCDIR%%/rtg.conf.sample
8
etc/rtg/rtgtargmkr.pl
8
%%ETCDIR%%/rtgtargmkr.pl
9
etc/rtg/routers.sample
9
%%ETCDIR%%/routers.sample
10
etc/rtg/createdb
10
%%ETCDIR%%/createdb
11
etc/rtg/BER.pm
11
%%ETCDIR%%/BER.pm
12
etc/rtg/SNMP_Session.pm
12
%%ETCDIR%%/SNMP_Session.pm
13
etc/rtg/SNMP_util.pm
13
%%ETCDIR%%/SNMP_util.pm
14
include/common.h
14
include/common.h
15
include/rtg.h
15
include/rtg.h
16
include/rtgplot.h
16
include/rtgplot.h
17
man/man1/rtgplot.1.gz
18
man/man1/rtgpoll.1.gz
17
www/data/95.php
19
www/data/95.php
18
www/data/common.php
20
www/data/common.php
19
www/data/rtg.php
21
www/data/rtg.php
20
www/data/rtg.png
22
www/data/rtg.png
21
www/data/rtgback.png
23
www/data/rtgback.png
22
www/data/view.php
24
www/data/view.php
23
@dirrm contrib
25
@dirrmtry contrib
24
@dirrm etc/rtg
26
@dirrmtry %%ETCDIR%%
25
@dirrmtry www/data
27
@dirrmtry www/data

Return to bug 189620