svn commit: r373112 - head/net-mgmt/nagios-check_memcached_paranoid
Jun Kuriyama
kuriyama at FreeBSD.org
Sat Nov 22 22:40:38 UTC 2014
Author: kuriyama
Date: Sat Nov 22 22:40:37 2014
New Revision: 373112
URL: https://svnweb.freebsd.org/changeset/ports/373112
QAT: https://qat.redports.org/buildarchive/r373112/
Log:
Add a hack to change linking objects which should be changed
by net-mgmt/nagios-plugins OPTIONS setting.
PR: ports/187772
Reported by: Lukasz Wasikowski <lukasz at wasikowski.net>
Modified:
head/net-mgmt/nagios-check_memcached_paranoid/Makefile
Modified: head/net-mgmt/nagios-check_memcached_paranoid/Makefile
==============================================================================
--- head/net-mgmt/nagios-check_memcached_paranoid/Makefile Sat Nov 22 22:37:20 2014 (r373111)
+++ head/net-mgmt/nagios-check_memcached_paranoid/Makefile Sat Nov 22 22:40:37 2014 (r373112)
@@ -27,6 +27,8 @@ do-extract:
${MKDIR} ${WRKSRC}
${CP} ${FILESDIR}/${FILE} ${WRKSRC}
+# HACK: Linking objects may be changed by nagios-plugins OPTIONS
+# setting (EXTRAOPTS, NLS).
do-build:
cd ${WRKSRC}; \
NDIR=$$(${NDIR_CMD}); \
@@ -34,7 +36,8 @@ do-build:
-I$${NDIR} -I$${NDIR}/plugins -I$${NDIR}/gl -I$${NDIR}/lib -I${LOCALBASE}/include \
-o ${PORTNAME} \
$${NDIR}/plugins/netutils.o $${NDIR}/plugins/utils.o \
- $${NDIR}/lib/utils_base.o $${NDIR}/lib/extra_opts.o $${NDIR}/lib/parse_ini.o \
+ $${NDIR}/lib/utils_base.o \
+ `ls $${NDIR}/lib/*.o | ${GREP} -E '(extra_opts|parse_ini).o$$'` \
$${NDIR}/gl/getopt.o $${NDIR}/gl/getopt1.o \
$${NDIR}/gl/idpriv-droptemp.o $${NDIR}/gl/sha1.o \
-L${LOCALBASE}/lib -lintl -lmemcached ${FILE}
More information about the svn-ports-all
mailing list