1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00

- Stagify

- Switch to USES=libtool, drop .la files
This commit is contained in:
Dmitry Marakasov 2014-07-25 20:12:11 +00:00
parent 6763f2ce33
commit 7295b73701
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=362927
2 changed files with 20 additions and 24 deletions

View File

@ -2,7 +2,7 @@
PORTNAME= monitor-core PORTNAME= monitor-core
PORTVERSION= 3.4.0 PORTVERSION= 3.4.0
PORTREVISION= 4 PORTREVISION= 5
CATEGORIES= sysutils net parallel CATEGORIES= sysutils net parallel
MASTER_SITES= SF/ganglia/ganglia%20monitoring%20core/${PORTVERSION} MASTER_SITES= SF/ganglia/ganglia%20monitoring%20core/${PORTVERSION}
PKGNAMEPREFIX= ganglia- PKGNAMEPREFIX= ganglia-
@ -25,9 +25,8 @@ OPTIONS_DEFINE= GMETAD
OPTIONS_DEFAULT= GMETAD OPTIONS_DEFAULT= GMETAD
GMETAD_DESC= include gmetad GMETAD_DESC= include gmetad
USES= pkgconfig USES= libtool pkgconfig
USE_PYTHON= yes USE_PYTHON= yes
USE_AUTOTOOLS= libtool
LIBTOOLFILES= configure libmetrics/configure LIBTOOLFILES= configure libmetrics/configure
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
@ -60,7 +59,6 @@ IGNORE= the variable GMOND_CONF must point to a file when defined
GMOND_CONF= ${WRKDIR}/gmond.conf GMOND_CONF= ${WRKDIR}/gmond.conf
.endif .endif
NO_STAGE= yes
.include <bsd.port.options.mk> .include <bsd.port.options.mk>
USE_RC_SUBR= gmond USE_RC_SUBR= gmond
@ -78,12 +76,6 @@ SUB_LIST+= GMETAD="\#"
USE_LDCONFIG= yes USE_LDCONFIG= yes
MAN1= gmetric.1 gmond.1 gstat.1
.if ${PORT_OPTIONS:MGMETAD}
MAN1+= gmetad.1 gmetad.py.1
.endif
MAN5= gmond.conf.5
CONF_DIR= ${PREFIX}/etc CONF_DIR= ${PREFIX}/etc
FIX_CONF_FILES= README \ FIX_CONF_FILES= README \
@ -112,26 +104,25 @@ MODULES= modcpu.so \
post-patch: post-patch:
${REINPLACE_CMD} -e "s|/etc/ganglia/\(gm[a-z]*d.conf\)|${PREFIX}/etc/\1|g" \ ${REINPLACE_CMD} -e "s|/etc/ganglia/\(gm[a-z]*d.conf\)|${PREFIX}/etc/\1|g" \
${FIX_CONF_FILES:S|^|${WRKSRC}/|} ${FIX_CONF_FILES:S|^|${WRKSRC}/|}
${REINPLACE_CMD} -e "s|%%GMONDCONFDIR%%|gmond.conf.d|g" \ ${REINPLACE_CMD} -e "s|%%GMONDCONFDIR%%|gmond.conf.d|g" \
${FIX_GMOND_CONF_DIR:S|^|${WRKSRC}/|} ${FIX_GMOND_CONF_DIR:S|^|${WRKSRC}/|}
${REINPLACE_CMD} -e "s|nobody|ganglia|g" \ ${REINPLACE_CMD} -e "s|nobody|ganglia|g" \
${FIX_USER_FILES:S|^|${WRKSRC}/|} ${FIX_USER_FILES:S|^|${WRKSRC}/|}
post-build: post-build:
${WRKSRC}/gmond/gmond -t > ${WRKDIR}/gmond.conf ${WRKSRC}/gmond/gmond -t > ${WRKDIR}/gmond.conf
post-install: post-install:
.if ${PORT_OPTIONS:MGMETAD} .if ${PORT_OPTIONS:MGMETAD}
${INSTALL_SCRIPT} ${FILESDIR}/gmetasnap.sh ${PREFIX}/sbin/gmetasnap ${INSTALL_SCRIPT} ${FILESDIR}/gmetasnap.sh ${STAGEDIR}${PREFIX}/sbin/gmetasnap
${INSTALL_MAN} ${WRKSRC}/mans/gmetad.1 ${MANPREFIX}/man/man1 ${INSTALL_MAN} ${WRKSRC}/mans/gmetad.1 ${STAGEDIR}${MANPREFIX}/man/man1
${INSTALL_DATA} ${GMETAD_CONF} ${PREFIX}/etc/gmetad.conf.sample ${INSTALL_DATA} ${GMETAD_CONF} ${STAGEDIR}${PREFIX}/etc/gmetad.conf.sample
.endif .endif
${INSTALL_MAN} ${WRKSRC}/mans/gmetric.1 ${MANPREFIX}/man/man1 ${INSTALL_MAN} ${WRKSRC}/mans/gmetric.1 ${STAGEDIR}${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/mans/gmond.1 ${MANPREFIX}/man/man1 ${INSTALL_MAN} ${WRKSRC}/mans/gmond.1 ${STAGEDIR}${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/gmond/gmond.conf.5 ${MANPREFIX}/man/man5 ${INSTALL_MAN} ${WRKSRC}/gmond/gmond.conf.5 ${STAGEDIR}${MANPREFIX}/man/man5
${INSTALL_MAN} ${WRKSRC}/mans/gstat.1 ${MANPREFIX}/man/man1 ${INSTALL_MAN} ${WRKSRC}/mans/gstat.1 ${STAGEDIR}${MANPREFIX}/man/man1
${INSTALL_DATA} ${GMOND_CONF} ${PREFIX}/etc/gmond.conf.sample ${INSTALL_DATA} ${GMOND_CONF} ${STAGEDIR}${PREFIX}/etc/gmond.conf.sample
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk> .include <bsd.port.mk>

View File

@ -14,10 +14,9 @@ include/gm_metric.h
include/gm_msg.h include/gm_msg.h
include/gm_protocol.h include/gm_protocol.h
include/gm_value.h include/gm_value.h
lib/libganglia-%%PORTVERSION%%.so
lib/libganglia-%%PORTVERSION%%.so.0 lib/libganglia-%%PORTVERSION%%.so.0
lib/libganglia-%%PORTVERSION%%.so.0.0.0
lib/libganglia.a lib/libganglia.a
lib/libganglia.la
lib/libganglia.so lib/libganglia.so
lib/ganglia/modcpu.so lib/ganglia/modcpu.so
lib/ganglia/moddisk.so lib/ganglia/moddisk.so
@ -28,6 +27,12 @@ lib/ganglia/modnet.so
lib/ganglia/modproc.so lib/ganglia/modproc.so
lib/ganglia/modpython.so lib/ganglia/modpython.so
lib/ganglia/modsys.so lib/ganglia/modsys.so
man/man1/gmetric.1.gz
%%GMETAD%%man/man1/gmetad.1.gz
%%GMETAD%%man/man1/gmetad.py.1.gz
man/man1/gmond.1.gz
man/man1/gstat.1.gz
man/man5/gmond.conf.5.gz
%%GMETAD%%sbin/gmetad %%GMETAD%%sbin/gmetad
%%GMETAD%%sbin/gmetasnap %%GMETAD%%sbin/gmetasnap
sbin/gmond sbin/gmond