mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
7dc406a7a1
COMMENT typos and surrounding whitespace fixes. A few Makefiles where not included as they contain Latin-1 characters that break the Phabricator workflow. Category N. CR: D307 Approved by: portmgr (bapt)
38 lines
979 B
Makefile
38 lines
979 B
Makefile
# Created by: clement@FreeBSD.org
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= spine
|
|
PORTVERSION= 0.8.8b
|
|
CATEGORIES= net-mgmt
|
|
MASTER_SITES= http://www.cacti.net/downloads/${PORTNAME}/
|
|
DISTNAME= cacti-${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= skreuzer@FreeBSD.org
|
|
COMMENT= Multithreaded poller for Cacti written in C
|
|
|
|
LICENSE= GPLv2
|
|
|
|
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`
|
|
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
|
|
|
|
.include <bsd.port.post.mk>
|