mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
8d6597e0bb
With hat: portmgr Sponsored by: Absolight
51 lines
1.5 KiB
Makefile
51 lines
1.5 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= check_memcached_paranoid
|
|
PORTVERSION= 0.20131004
|
|
PORTREVISION= 2
|
|
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
|
|
|
|
LIB_DEPENDS= libmemcached.so:databases/libmemcached
|
|
BUILD_DEPENDS= nagios-plugins>0:${PLUGINS} \
|
|
${EXTRA_DEPENDS} \
|
|
${NONEXISTENT}:${PLUGINS}:build
|
|
|
|
USES= gettext-runtime
|
|
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:devel/automake \
|
|
autoconf>0:devel/autoconf \
|
|
gmake:devel/gmake
|
|
|
|
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}); \
|
|
${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 \
|
|
`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}
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/libexec/nagios
|
|
|
|
.include <bsd.port.mk>
|