mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
bcb72c866f
This release merged many parts of our local FreeBSD patches. Reviewed by: feld, mat (mentors) Approved by: mat (mentor) Differential Revision: https://reviews.freebsd.org/D10093
64 lines
1.7 KiB
Makefile
64 lines
1.7 KiB
Makefile
# Created by: Mahdi Mokhtari <mokhi64@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= netdata
|
|
PORTVERSION= 1.6.0
|
|
CATEGORIES= net-mgmt
|
|
|
|
MAINTAINER= mmokhi@FreeBSD.org
|
|
COMMENT= Scalable distributed realtime performance and health monitoring
|
|
|
|
LICENSE= GPLv3
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/include/uuid/uuid.h:misc/e2fsprogs-libuuid
|
|
LIB_DEPENDS+= libuuid.so:misc/e2fsprogs-libuuid
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= firehol
|
|
GH_TAGNAME= f5fa346
|
|
|
|
NETDATA_CACHE= /var/cache/${PORTNAME}
|
|
NETDATA_LOG= /var/log/${PORTNAME}
|
|
NETDATA_PERST= /var/db/${PORTNAME}
|
|
|
|
USES= autoreconf pathfix pkgconfig:both python shebangfix
|
|
USE_LDCONFIG= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LIBS+= -L${LOCALBASE}/lib
|
|
INSTALL_TARGET= install-strip
|
|
|
|
SUB_LIST+= NETDATA_CACHE=${NETDATA_CACHE} \
|
|
NETDATA_LOG=${NETDATA_LOG} \
|
|
NETDATA_PERST=${NETDATA_PERST}
|
|
|
|
PLIST_SUB+= NETDATA_CACHE=${NETDATA_CACHE} \
|
|
NETDATA_LOG=${NETDATA_LOG} \
|
|
NETDATA_PERST=${NETDATA_PERST}
|
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
|
SUB_FILES= ${PORTNAME}.conf.sample
|
|
|
|
USERS= netdata
|
|
GROUPS= netdata
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%NETDATA_CACHE%%|${NETDATA_CACHE}|g' \
|
|
${PATCH_WRKSRC}/configure.ac
|
|
@${REINPLACE_CMD} -e 's|%%NETDATA_LOG%%|${NETDATA_LOG}|g' \
|
|
${PATCH_WRKSRC}/configure.ac
|
|
@${REINPLACE_CMD} -e 's|%%NETDATA_PERST%%|${NETDATA_PERST}|g' \
|
|
${PATCH_WRKSRC}/configure.ac
|
|
@${REINPLACE_CMD} -e 's|%%ETCDIR%%|${ETCDIR}|g' \
|
|
${PATCH_WRKSRC}/configure.ac
|
|
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${ETCDIR}
|
|
${INSTALL_DATA} ${WRKDIR}/netdata.conf.sample ${STAGEDIR}${ETCDIR}/netdata.conf.sample
|
|
${MKDIR} ${STAGEDIR}${NETDATA_CACHE}
|
|
${MKDIR} ${STAGEDIR}${NETDATA_LOG}
|
|
${MKDIR} ${STAGEDIR}${NETDATA_PERST}
|
|
|
|
.include <bsd.port.mk>
|