Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Sep 2014 13:54:19 +0000 (UTC)
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r368560 - head/net-mgmt/cacti-spine
Message-ID:  <201409191354.s8JDsJDJ035550@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tijl
Date: Fri Sep 19 13:54:18 2014
New Revision: 368560
URL: http://svnweb.freebsd.org/changeset/ports/368560
QAT: https://qat.redports.org/buildarchive/r368560/

Log:
  - Add USES=libtool
  - Let user decide about -fstack-protector via WITH_SSP_PORTS
  - Replace do-install with post-install
  - Use @sample

Modified:
  head/net-mgmt/cacti-spine/Makefile
  head/net-mgmt/cacti-spine/pkg-plist

Modified: head/net-mgmt/cacti-spine/Makefile
==============================================================================
--- head/net-mgmt/cacti-spine/Makefile	Fri Sep 19 13:46:57 2014	(r368559)
+++ head/net-mgmt/cacti-spine/Makefile	Fri Sep 19 13:54:18 2014	(r368560)
@@ -3,6 +3,7 @@
 
 PORTNAME=	spine
 PORTVERSION=	0.8.8b
+PORTREVISION=	1
 CATEGORIES=	net-mgmt
 MASTER_SITES=	http://www.cacti.net/downloads/${PORTNAME}/
 DISTNAME=	cacti-${PORTNAME}-${PORTVERSION}
@@ -17,21 +18,15 @@ LIB_DEPENDS=	libnetsnmp.so:${PORTSDIR}/n
 GNU_CONFIGURE=	YES
 CONFIGURE_ARGS+=--with-mysql=${LOCALBASE} --with-snmp=${LOCALBASE}
 CPPFLAGS+=	`net-snmp-config --cflags`
-LDFLAGS+=	`net-snmp-config --libs`
+LIBS+=		`net-snmp-config --libs`
+USES=		libtool
 USE_MYSQL=	YES
 USE_OPENSSL=	YES
 
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 800040
-LDFLAGS+=	-fstack-protector
-.endif
-
 post-patch:
 	@${REINPLACE_CMD} 's,#define\ *DEFAULT_CONF_FILE .*,#define DEFAULT_CONF_FILE "${PREFIX}/etc/spine.conf",' ${WRKSRC}/spine.h
 
-do-install:
-	@${INSTALL_PROGRAM} ${WRKSRC}/spine ${STAGEDIR}${PREFIX}/bin
-	@${INSTALL_DATA} ${WRKSRC}/spine.conf.dist ${STAGEDIR}${PREFIX}/etc/spine.conf.sample
+post-install:
+	${MV} ${STAGEDIR}${PREFIX}/etc/spine.conf.dist ${STAGEDIR}${PREFIX}/etc/spine.conf.sample
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/net-mgmt/cacti-spine/pkg-plist
==============================================================================
--- head/net-mgmt/cacti-spine/pkg-plist	Fri Sep 19 13:46:57 2014	(r368559)
+++ head/net-mgmt/cacti-spine/pkg-plist	Fri Sep 19 13:54:18 2014	(r368560)
@@ -1,2 +1,2 @@
 bin/spine
-etc/spine.conf.sample
+@sample etc/spine.conf.sample



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409191354.s8JDsJDJ035550>