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

(-)fetchconfig/Makefile (-13 / +14 lines)
Lines 2-11 Link Here
2
# $FreeBSD: head/net-mgmt/fetchconfig/Makefile 412348 2016-04-01 14:17:44Z mat $
2
# $FreeBSD: head/net-mgmt/fetchconfig/Makefile 412348 2016-04-01 14:17:44Z mat $
3
3
4
PORTNAME=	fetchconfig
4
PORTNAME=	fetchconfig
5
PORTVERSION=	0.22
5
DISTVERSION=	0.26
6
PORTREVISION=	1
7
CATEGORIES=	net-mgmt
6
CATEGORIES=	net-mgmt
8
MASTER_SITES=	SAVANNAH
9
7
10
MAINTAINER=	salexanov@gmail.com
8
MAINTAINER=	salexanov@gmail.com
11
COMMENT=	Perl script for retrieving configuration of various network devices
9
COMMENT=	Perl script for retrieving configuration of various network devices
Lines 16-35 Link Here
16
BUILD_DEPENDS=	p5-Net-Telnet>=0:net/p5-Net-Telnet
14
BUILD_DEPENDS=	p5-Net-Telnet>=0:net/p5-Net-Telnet
17
RUN_DEPENDS:=	${BUILD_DEPENDS}
15
RUN_DEPENDS:=	${BUILD_DEPENDS}
18
16
19
USES=		perl5
17
USES=		perl5 shebangfix
18
SHEBANG_FILES=	${PORTNAME}.pl
19
USE_GITHUB=	yes
20
GH_TUPLE=	udhos:fetchconfig:e2c2c4a
21
20
NO_BUILD=	yes
22
NO_BUILD=	yes
21
23
22
MODULES=	model/Abstract.pm model/CiscoCAT.pm model/CiscoIOS.pm \
24
MODULES=	model/3ComMSR.pm model/Abstract.pm model/Acme.pm \
23
		model/Dell.pm model/Detector.pm model/FortiGate.pm \
25
	       	model/CiscoASA.pm model/CiscoCAT.pm model/CiscoIOS.pm \
24
		model/Parks.pm model/ProCurve.pm model/Riverstone.pm \
26
		model/CiscoIOSXR.pm model/CiscoPIX.pm model/CiscoSG300.pm \
25
		model/DmSwitch.pm model/Terayon.pm Constants.pm Logger.pm \
27
		model/Coriant8600.pm model/Dell.pm model/Detector.pm \
26
		model/3ComMSR.pm model/CiscoASA.pm model/MikroTik.pm \
28
		model/DmSwitch.pm model/FortiGate.pm model/JunOS.pm \
27
		model/CiscoPIX.pm model/JunOS.pm model/TellabsMSR.pm
29
		model/Mediant.pm model/MikroTik.pm model/NECUnivergeIX.pm \
30
	       	model/Parks.pm model/ProCurve.pm model/Riverstone.pm \
31
		model/TellabsMSR.pm model/Terayon.pm Constants.pm Logger.pm
28
PORTDOCS=	CHANGES README device_table.example
32
PORTDOCS=	CHANGES README device_table.example
29
33
30
post-patch:
31
	@${REINPLACE_CMD} -e '1s|.*|#!${PERL} -w|' ${WRKSRC}/${PORTNAME}.pl
32
33
do-install:
34
do-install:
34
	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl \
35
	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl \
35
		${STAGEDIR}${PREFIX}/bin/${PORTNAME}
36
		${STAGEDIR}${PREFIX}/bin/${PORTNAME}
(-)fetchconfig/distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (fetchconfig-0.22.tar.gz) = 411b3d0c8988cd754e515d2fd9b79644a7f2cecaddfb2f2f67b2e696d2b0900b
1
TIMESTAMP = 1520264157
2
SIZE (fetchconfig-0.22.tar.gz) = 27374
2
SHA256 (udhos-fetchconfig-0.26-e2c2c4a_GH0.tar.gz) = 6386f0512a6049007790627397e779933775e384d61b19be18c2fef6ec2be34b
3
SIZE (udhos-fetchconfig-0.26-e2c2c4a_GH0.tar.gz) = 31035
(-)fetchconfig/files/patch-fetchconfig.pl (-7 / +7 lines)
Lines 1-7 Link Here
1
--- ./fetchconfig.pl.orig	2007-07-20 19:05:39.000000000 +0200
1
--- fetchconfig.pl.orig	2018-03-05 16:07:31 UTC
2
+++ ./fetchconfig.pl	2008-02-27 22:58:14.000000000 +0100
2
+++ fetchconfig.pl
3
@@ -21,6 +21,8 @@
3
@@ -21,6 +21,8 @@
4
 # $Id: fetchconfig.pl,v 1.7 2007/07/20 17:05:39 evertonm Exp $
4
 # $Id: fetchconfig.pl,v 1.8 2012/11/27 21:42:28 evertonm Exp $
5
 
5
 
6
 use strict;
6
 use strict;
7
+use FindBin;
7
+use FindBin;
Lines 9-20 Link Here
9
 use fetchconfig::Logger;
9
 use fetchconfig::Logger;
10
 use fetchconfig::Constants;
10
 use fetchconfig::Constants;
11
 use fetchconfig::model::Detector;
11
 use fetchconfig::model::Detector;
12
@@ -64,7 +66,7 @@
12
@@ -63,7 +65,7 @@ foreach my $opt (@ARGV) {
13
 if (@device_file_list < 1) {
13
     }
14
     $log->error("at least one device list file is required");
14
     $log->error("unexpected argument: $opt");
15
     &usage;
15
     &usage;
16
-    die;
16
-    die;
17
+    exit 0;
17
+    exit 0;
18
 }
18
 }
19
 
19
 
20
 fetchconfig::model::Detector->init($log);
20
 if ((@device_file_list < 1) && (@line_list < 1)){
(-)fetchconfig/pkg-descr (-6 / +9 lines)
Lines 2-16 Link Here
2
devices. It currently supports a variety of devices, such as:
2
devices. It currently supports a variety of devices, such as:
3
3
4
  * 3Com MSR
4
  * 3Com MSR
5
  * Cisco IOS
5
  * Audiocodes Mediant
6
  * Cisco ASA
6
  * Cisco ASA/CatOS/IOS/IOS-XR/SG300
7
  * Cisco Catalyst
7
  * Coriant 8600
8
  * Dell PowerConnect
8
  * FortiGate
9
  * FortiGate
10
  * Juniper JunOS
9
  * MikroTik
11
  * MikroTik
10
  * ProCurve
12
  * NEC Univerge IX
13
  * HPE ProCurve
11
  * Parks
14
  * Parks
12
  * Alcatel Ethernet Routers (Riverstone)
15
  * Alcatel Ethernet Routers (Riverstone)
13
  * Dell PowerConnect switches
14
  * Old Terayon 3200/3500 CMTS
16
  * Old Terayon 3200/3500 CMTS
17
  * Tellabs MSR
15
18
16
WWW: http://www.nongnu.org/fetchconfig/
19
WWW: https://github.com/udhos/fetchconfig
(-)fetchconfig/pkg-plist (+6 lines)
Lines 1-16 Link Here
1
bin/fetchconfig
1
bin/fetchconfig
2
%%SITE_PERL%%/fetchconfig/model/3ComMSR.pm
2
%%SITE_PERL%%/fetchconfig/model/3ComMSR.pm
3
%%SITE_PERL%%/fetchconfig/model/Abstract.pm
3
%%SITE_PERL%%/fetchconfig/model/Abstract.pm
4
%%SITE_PERL%%/fetchconfig/model/Acme.pm
4
%%SITE_PERL%%/fetchconfig/model/CiscoASA.pm
5
%%SITE_PERL%%/fetchconfig/model/CiscoASA.pm
5
%%SITE_PERL%%/fetchconfig/model/CiscoCAT.pm
6
%%SITE_PERL%%/fetchconfig/model/CiscoCAT.pm
6
%%SITE_PERL%%/fetchconfig/model/CiscoIOS.pm
7
%%SITE_PERL%%/fetchconfig/model/CiscoIOS.pm
8
%%SITE_PERL%%/fetchconfig/model/CiscoIOSXR.pm
7
%%SITE_PERL%%/fetchconfig/model/CiscoPIX.pm
9
%%SITE_PERL%%/fetchconfig/model/CiscoPIX.pm
10
%%SITE_PERL%%/fetchconfig/model/CiscoSG300.pm
11
%%SITE_PERL%%/fetchconfig/model/Coriant8600.pm
8
%%SITE_PERL%%/fetchconfig/model/Dell.pm
12
%%SITE_PERL%%/fetchconfig/model/Dell.pm
9
%%SITE_PERL%%/fetchconfig/model/Detector.pm
13
%%SITE_PERL%%/fetchconfig/model/Detector.pm
10
%%SITE_PERL%%/fetchconfig/model/DmSwitch.pm
14
%%SITE_PERL%%/fetchconfig/model/DmSwitch.pm
11
%%SITE_PERL%%/fetchconfig/model/FortiGate.pm
15
%%SITE_PERL%%/fetchconfig/model/FortiGate.pm
12
%%SITE_PERL%%/fetchconfig/model/JunOS.pm
16
%%SITE_PERL%%/fetchconfig/model/JunOS.pm
17
%%SITE_PERL%%/fetchconfig/model/Mediant.pm
13
%%SITE_PERL%%/fetchconfig/model/MikroTik.pm
18
%%SITE_PERL%%/fetchconfig/model/MikroTik.pm
19
%%SITE_PERL%%/fetchconfig/model/NECUnivergeIX.pm
14
%%SITE_PERL%%/fetchconfig/model/Parks.pm
20
%%SITE_PERL%%/fetchconfig/model/Parks.pm
15
%%SITE_PERL%%/fetchconfig/model/ProCurve.pm
21
%%SITE_PERL%%/fetchconfig/model/ProCurve.pm
16
%%SITE_PERL%%/fetchconfig/model/Riverstone.pm
22
%%SITE_PERL%%/fetchconfig/model/Riverstone.pm

Return to bug 226369