2020-11-23 21:11:24 +01:00
|
|
|
# $NetBSD: Makefile,v 1.75 2020/11/23 20:11:24 nia Exp $
|
2005-02-09 06:37:30 +01:00
|
|
|
|
2020-11-23 21:11:24 +01:00
|
|
|
DISTNAME= memcached-1.6.9
|
2005-02-09 06:53:32 +01:00
|
|
|
CATEGORIES= devel
|
2020-11-23 21:11:24 +01:00
|
|
|
MASTER_SITES= https://memcached.org/files/
|
2005-02-09 06:37:30 +01:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2020-01-22 19:53:13 +01:00
|
|
|
HOMEPAGE= https://memcached.org/
|
2005-02-09 06:37:30 +01:00
|
|
|
COMMENT= High-performance distributed memory object caching system
|
2011-05-27 13:58:52 +02:00
|
|
|
LICENSE= 2-clause-bsd
|
2005-02-09 06:37:30 +01:00
|
|
|
|
2011-10-03 13:53:11 +02:00
|
|
|
USE_TOOLS+= perl
|
|
|
|
GNU_CONFIGURE= yes
|
2017-12-21 09:37:14 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-coverage # coverage fails on some platforms
|
2005-02-09 06:37:30 +01:00
|
|
|
CONFIGURE_ARGS+= --with-libevent=${BUILDLINK_PREFIX.libevent}
|
|
|
|
|
2011-10-03 13:53:11 +02:00
|
|
|
REPLACE_PERL= scripts/memcached-tool
|
2010-02-27 21:40:52 +01:00
|
|
|
RCD_SCRIPTS= memcached
|
2014-07-15 16:28:26 +02:00
|
|
|
INSTALLATION_DIRS= share/doc/${PKGBASE}
|
2005-02-09 06:37:30 +01:00
|
|
|
|
2011-05-27 13:58:52 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2012-03-09 14:41:30 +01:00
|
|
|
.include "options.mk"
|
|
|
|
|
2014-04-30 07:39:19 +02:00
|
|
|
BUILD_DEFS+= VARBASE
|
2014-07-15 16:28:26 +02:00
|
|
|
|
2010-02-27 21:40:52 +01:00
|
|
|
MEMCACHED_USER?= memcached
|
|
|
|
MEMCACHED_GROUP?= memcached
|
2014-07-15 19:30:26 +02:00
|
|
|
MEMCACHED_HOME?= ${VARBASE}/chroot/${PKGBASE}
|
|
|
|
|
2019-11-03 11:39:04 +01:00
|
|
|
PKG_GROUPS= ${MEMCACHED_GROUP}
|
|
|
|
PKG_USERS= ${MEMCACHED_USER}:${MEMCACHED_GROUP}
|
|
|
|
PKG_GROUPS_VARS+= MEMCACHED_GROUP
|
|
|
|
PKG_USERS_VARS= MEMCACHED_USER
|
2014-07-15 19:30:26 +02:00
|
|
|
PKG_HOME.${MEMCACHED_USER}= ${MEMCACHED_HOME}
|
2014-07-15 16:28:26 +02:00
|
|
|
PKG_GECOS.${MEMCACHED_USER}= Memcached
|
|
|
|
|
2014-07-15 19:30:26 +02:00
|
|
|
OWN_DIRS_PERMS+= ${MEMCACHED_HOME} ${MEMCACHED_USER} ${MEMCACHED_GROUP} 0700
|
2011-10-03 13:53:11 +02:00
|
|
|
FILES_SUBST+= MEMCACHED_USER=${MEMCACHED_USER}
|
2014-07-15 19:30:26 +02:00
|
|
|
FILES_SUBST+= MEMCACHED_GROUP=${MEMCACHED_GROUP} MEMCACHED_HOME=${MEMCACHED_HOME}
|
|
|
|
MESSAGE_SUBST+= MEMCACHED_HOME=${MEMCACHED_HOME}
|
2010-02-27 21:40:52 +01:00
|
|
|
|
2012-10-03 12:46:47 +02:00
|
|
|
TEST_TARGET= test
|
|
|
|
|
2010-02-27 21:40:52 +01:00
|
|
|
post-install:
|
2007-08-30 21:33:55 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
|
2010-02-27 21:40:52 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/scripts/memcached-tool ${DESTDIR}${PREFIX}/bin
|
2005-02-09 06:37:30 +01:00
|
|
|
|
|
|
|
.include "../../devel/libevent/buildlink3.mk"
|
2008-01-14 17:00:59 +01:00
|
|
|
BUILDLINK_API_DEPENDS.libevent+= libevent>=1.0
|
2015-05-22 00:21:08 +02:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2005-02-09 06:37:30 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|