freebsd-ports/net-mgmt/nagios-check_memcached_paranoid/Makefile
Kubilay Kocak b6450d4ca7 databases/libmemcached: Update to 1.0.18 and much more
- Update to 1.0.18 and pkg-plist accordingly
- Add LICENSE (BSD3CLAUSE) and LICENSE_FILE
- Add TEST_DEPENDS and regression-test target
- Perl is not required, remove USE_PERL and from USES
- Split LDFLAGS from CONFIGURE_ENV, they're already set there
- Add libmemcachedprotocol to CONFIGURE_ARGS (Now default: off)
- Add OPTIONS for hash functions, debug and dtrace
- pkg-descr: Update WWW: URL
- Add patches for:
  * alloca.h include not found on FreeBSD
  * cinttypes include location
  * clang compatibility
- Strip shared libraries manually since upstream install-strip target is
  fail

Changes:

  https://launchpad.net/libmemcached/+announcements

[1] https://bugs.launchpad.net/libmemcached/+bug/1245562
[2] https://bugs.launchpad.net/libmemcached/+bug/1400560

Approved by:	Mikhail Tsatsenko <m.tsatsenko@gmail.com> (maintainer, via email)
2014-12-11 05:26:39 +00:00

50 lines
1.6 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:${PORTSDIR}/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:${PORTSDIR}/devel/automake \
autoconf>0:${PORTSDIR}/devel/autoconf \
gmake:${PORTSDIR}/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>