From 382afb1e138c44b66aaee419f92fb780d6a216a8 Mon Sep 17 00:00:00 2001 From: Thomas Zander Date: Mon, 1 Jun 2015 19:06:53 +0000 Subject: Use GH_* to fetch distfiles While on it: - Properly strip the resulting binary - Pet portlint PR: 200249 Submitted by: danny@dannywarren.com Approved by: alexander.4mail@gmail.com (maintainer) --- net-mgmt/cnagios/Makefile | 9 +++++++-- net-mgmt/cnagios/distinfo | 4 ++-- net-mgmt/cnagios/files/patch-Makefile.in | 6 +++--- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/net-mgmt/cnagios/Makefile b/net-mgmt/cnagios/Makefile index e432c72cdb27..6181c2c19a9d 100644 --- a/net-mgmt/cnagios/Makefile +++ b/net-mgmt/cnagios/Makefile @@ -3,9 +3,8 @@ PORTNAME= cnagios PORTVERSION= 0.31 +PORTREVISION= 1 CATEGORIES= net-mgmt -MASTER_SITES= ftp://noc.hep.wisc.edu/src/cnagios/ \ - ftp://noc.hep.wisc.edu/src/cnagios/old-versions/ MAINTAINER= alexander.4mail@gmail.com COMMENT= Curses-based interface for nagios @@ -14,6 +13,9 @@ LICENSE= ISCL RUN_DEPENDS= nagios>=3.0:${PORTSDIR}/net-mgmt/nagios +USE_GITHUB= yes +GH_ACCOUNT= dannywarren + NAGIOSDIR?= /var/spool/nagios ETCDIR= ${PREFIX}/etc/nagios GNU_CONFIGURE= YES @@ -28,4 +30,7 @@ post-patch: # check in next relase if version match, and adjust/remove the next line ${REINPLACE_CMD} -e 's/0.30/${PORTVERSION}/' ${WRKSRC}/version.h +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/cnagios + .include diff --git a/net-mgmt/cnagios/distinfo b/net-mgmt/cnagios/distinfo index f0f09b8795a2..815ffd396e34 100644 --- a/net-mgmt/cnagios/distinfo +++ b/net-mgmt/cnagios/distinfo @@ -1,2 +1,2 @@ -SHA256 (cnagios-0.31.tar.gz) = 26c1658f53bae66b9cb4d615c002a051343cd42dcd0adeb180390d2f6069ab52 -SIZE (cnagios-0.31.tar.gz) = 82058 +SHA256 (dannywarren-cnagios-0.31_GH0.tar.gz) = c1f41fa9d51dc0bbc1b90bc70d9e383ecb8fde7340558055cb60f171f74a08f9 +SIZE (dannywarren-cnagios-0.31_GH0.tar.gz) = 81546 diff --git a/net-mgmt/cnagios/files/patch-Makefile.in b/net-mgmt/cnagios/files/patch-Makefile.in index c1ab23f7bf08..636749a7ac5e 100644 --- a/net-mgmt/cnagios/files/patch-Makefile.in +++ b/net-mgmt/cnagios/files/patch-Makefile.in @@ -1,6 +1,6 @@ ---- ./Makefile.in.orig 2013-03-28 22:35:00.000000000 +0100 -+++ ./Makefile.in 2014-05-01 14:23:32.000000000 +0200 -@@ -27,39 +27,11 @@ +--- Makefile.in.orig 2015-05-15 16:31:56 UTC ++++ Makefile.in +@@ -27,39 +27,11 @@ cnagios: $(OBJS) $(HDRS) install: -- cgit v1.2.3