Changeset View
Changeset View
Standalone View
Standalone View
net-mgmt/cacti-spine/Makefile
Show All 13 Lines | |||||
BUILD_DEPENDS= help2man:misc/help2man | BUILD_DEPENDS= help2man:misc/help2man | ||||
LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp \ | LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp \ | ||||
libpkg.so:${PKG_ORIGIN} | libpkg.so:${PKG_ORIGIN} | ||||
GNU_CONFIGURE= YES | GNU_CONFIGURE= YES | ||||
CONFIGURE_ARGS+=--with-mysql=${LOCALBASE} --with-snmp=${LOCALBASE} | CONFIGURE_ARGS+=--with-mysql=${LOCALBASE} --with-snmp=${LOCALBASE} | ||||
CPPFLAGS+= `net-snmp-config --cflags` | CPPFLAGS+= `net-snmp-config --cflags` | ||||
LDFLAGS+= `net-snmp-config --libs` -lexecinfo | LDFLAGS+= `net-snmp-config --libs` -lexecinfo | ||||
USES= libtool mysql ssl autoreconf | USES= libtool mysql:build,run ssl autoreconf | ||||
CONFLICTS_INSTALL= cacti88 | CONFLICTS_INSTALL= cacti88 | ||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} 's,#define\ *DEFAULT_CONF_FILE .*,#define DEFAULT_CONF_FILE "${PREFIX}/etc/spine.conf",' ${WRKSRC}/spine.h | @${REINPLACE_CMD} 's,#define\ *DEFAULT_CONF_FILE .*,#define DEFAULT_CONF_FILE "${PREFIX}/etc/spine.conf",' ${WRKSRC}/spine.h | ||||
post-install: | post-install: | ||||
${MV} ${STAGEDIR}${PREFIX}/etc/spine.conf.dist ${STAGEDIR}${PREFIX}/etc/spine.conf.sample | ${MV} ${STAGEDIR}${PREFIX}/etc/spine.conf.dist ${STAGEDIR}${PREFIX}/etc/spine.conf.sample | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |