From 42e98dc0a97b83deb2cb8c077180c962df5b3687 Mon Sep 17 00:00:00 2001 From: Tijl Coosemans Date: Fri, 19 Sep 2014 13:54:18 +0000 Subject: - Add USES=libtool - Let user decide about -fstack-protector via WITH_SSP_PORTS - Replace do-install with post-install - Use @sample --- net-mgmt/cacti-spine/Makefile | 17 ++++++----------- net-mgmt/cacti-spine/pkg-plist | 2 +- 2 files changed, 7 insertions(+), 12 deletions(-) (limited to 'net-mgmt') diff --git a/net-mgmt/cacti-spine/Makefile b/net-mgmt/cacti-spine/Makefile index 406350426be0..c17fec9092d0 100644 --- a/net-mgmt/cacti-spine/Makefile +++ b/net-mgmt/cacti-spine/Makefile @@ -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}/net-mgmt/net-snmp 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 - -.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 +.include diff --git a/net-mgmt/cacti-spine/pkg-plist b/net-mgmt/cacti-spine/pkg-plist index f27a2643380d..152c17fb2b6a 100644 --- a/net-mgmt/cacti-spine/pkg-plist +++ b/net-mgmt/cacti-spine/pkg-plist @@ -1,2 +1,2 @@ bin/spine -etc/spine.conf.sample +@sample etc/spine.conf.sample -- cgit v1.2.3