1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00
freebsd-ports/net-mgmt/nagios-check_memcached_paranoid/Makefile
Antoine Brodin fc3616b82f Mark broken: Fails to link with nagios-plugins-2.0.3
cd /wrkdirs/usr/ports/net-mgmt/nagios-check_memcached_paranoid/work/check_memcached_paranoid-0.20131004;  NDIR=$(cd /usr/ports/net-mgmt/nagios-plugins && make -VWRKSRC);  cc -O2 -pipe -fno-strict-aliasing -DLOCALEDIR=\"/usr/local/share/locale\" -D__need_getopt  -I${NDIR} -I${NDIR}/plugins -I${NDIR}/gl -I${NDIR}/lib -I/usr/local/include  -o check_memcached_paranoid  ${NDIR}/plugins/netutils.o ${NDIR}/plugins/utils.o  ${NDIR}/lib/utils_base.o ${NDIR}/lib/extra_opts.o ${NDIR}/lib/parse_ini.o  ${NDIR}/gl/getopt.o ${NDIR}/gl/getopt1.o  ${NDIR}/gl/sha1.o  -L/usr/local/lib -lintl -lmemcached check_memcached_paranoid.c
/wrkdirs/usr/ports/net-mgmt/nagios-plugins/work/nagios-plugins-2.0.3/lib/parse_ini.o: In function `np_get_defaults':
parse_ini.c:(.text+0x19d): undefined reference to `idpriv_temp_restore'
parse_ini.c:(.text+0x1e1): undefined reference to `idpriv_temp_drop'

Reported by:	pkg-fallout
2014-08-02 23:59:34 +00:00

50 lines
1.5 KiB
Makefile

# $FreeBSD$
PORTNAME= check_memcached_paranoid
PORTVERSION= 0.20131004
PORTREVISION= 1
CATEGORIES= net-mgmt
MASTER_SITES= SF/nagiosplug/nagiosplug/1.5
DISTFILES= nagios-plugins-1.5.tar.gz
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= Nagios plugin for checking memcached
BROKEN= Fails to link with nagios-plugins-2.0.3
LIB_DEPENDS= libmemcached.so:${PORTSDIR}/databases/libmemcached
BUILD_DEPENDS= nagios-plugins>0:${PLUGINS} \
${EXTRA_DEPENDS} \
${NONEXISTENT}:${PLUGINS}:build
FILE= ${PORTNAME}.c
PLUGINS= ${PORTSDIR}/net-mgmt/nagios-plugins
NDIR_CMD= cd ${PLUGINS} && ${MAKE} -VWRKSRC
# Needed for build target on net-mgmt/nagios-plugins
EXTRA_DEPENDS= automake>0:${PORTSDIR}/devel/automake \
autoconf>0:${PORTSDIR}/devel/autoconf \
libtool>0:${PORTSDIR}/devel/libtool \
gmake:${PORTSDIR}/devel/gmake
do-extract:
${MKDIR} ${WRKSRC}
${CP} ${FILESDIR}/${FILE} ${WRKSRC}
do-build:
cd ${WRKSRC}; \
NDIR=$$(${NDIR_CMD}); \
${CC} ${CFLAGS} -DLOCALEDIR=\"${LOCALBASE}/share/locale\" -D__need_getopt \
-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}/gl/getopt.o $${NDIR}/gl/getopt1.o \
$${NDIR}/gl/sha1.o \
-L${LOCALBASE}/lib -lintl -lmemcached ${FILE}
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/libexec/nagios
.include <bsd.port.mk>