69667d219f
- Bump PORTREVISIONs.
39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
# New ports collection makefile for: cactid
|
|
# Date created: Feb 26 2005
|
|
# Whom: clement@FreeBSD.org
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= spine
|
|
PORTVERSION= 0.8.7.a
|
|
PORTREVISION= 1
|
|
CATEGORIES= net-mgmt
|
|
MASTER_SITES= http://www.cacti.net/downloads/${PORTNAME}/
|
|
DISTNAME= cacti-${PORTNAME}-0.8.7a
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A multithreaded poller for Cacti written in C
|
|
|
|
LIB_DEPENDS= netsnmp.16:${PORTSDIR}/net-mgmt/net-snmp
|
|
|
|
GNU_CONFIGURE= YES
|
|
CONFIGURE_ARGS+=--with-mysql=${LOCALBASE} --with-snmp=${LOCALBASE}
|
|
USE_MYSQL= YES
|
|
USE_OPENSSL= YES
|
|
USE_AUTOTOOLS= libtool:15
|
|
|
|
post-patch:
|
|
.for file in config.guess config.sub ltmain.sh
|
|
@${LN} -fs ${LIBTOOL_SHAREDIR}/${file} ${WRKSRC}/config/${file}
|
|
.endfor
|
|
@${LN} -fs ${LIBTOOL} ${WRKSRC}/libtool
|
|
@${REINPLACE_CMD} 's,#define\ *DEFAULT_CONF_FILE .*,#define DEFAULT_CONF_FILE "${PREFIX}/etc/spine.conf",' ${WRKSRC}/spine.h
|
|
|
|
do-install:
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/spine ${PREFIX}/bin
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/spine.conf ${EXAMPLESDIR}
|
|
@[ -e ${PREFIX}/etc/spine.conf ] || \
|
|
${INSTALL_DATA} ${EXAMPLESDIR}/spine.conf ${PREFIX}/etc/
|
|
.include <bsd.port.mk>
|