openbsd-ports/misc/memcached/Makefile
ajacoutot f50fdd748e Stop using the daemon class in @newuser.
If we need to make an exception we can do it and properly document the
reason but by default we should just use the default login class.
rc.d uses daemon or the login class provided in login.conf.d so this has
no impact there.

discussed with sthen@, tb@ and robert@

praying that my grep/sed skills did not break anything and still
believing in portbump :-)
2022-11-08 11:14:43 +00:00

47 lines
1.1 KiB
Makefile

COMMENT= distributed memory object caching system
DISTNAME= memcached-1.6.15
CATEGORIES= misc
REVISION= 0
HOMEPAGE= https://www.memcached.org/
MAINTAINER= Giovanni Bechis <giovanni@openbsd.org>
# BSD
PERMIT_PACKAGE= Yes
# uses pledge()
WANTLIB += c crypto event pthread ssl event_core
FLAVOR?=
FLAVORS= sasl
MASTER_SITES= http://memcached.org/files/
CONFIGURE_STYLE= gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --disable-coverage \
--disable-docs \
--enable-tls
TEST_TARGET= test
TEST_DEPENDS= devel/p5-Test-MockSleep
LIB_DEPENDS= devel/libevent2
.if ${FLAVOR:Msasl}
CONFIGURE_ARGS+= --enable-sasl
LIB_DEPENDS+= security/cyrus-sasl2
WANTLIB+= sasl2
.else
CONFIGURE_ARGS+= --disable-sasl
.endif
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/memcached
${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${PREFIX}/share/doc/memcached
${INSTALL_SCRIPT} ${WRKSRC}/scripts/memcached-tool ${PREFIX}/bin/memcached-tool
${INSTALL_DATA} ${WRKSRC}/scripts/memcached-tool.1 ${PREFIX}/man/man1/
.include <bsd.port.mk>