Files
ports/databases/webdis/Makefile
T
Jimmy Olgeni f2c3b50793 databases/webdis: fix rc script
Pass -P to daemon(8), else the 'stop' command will just kill a child
process that will promptly be restarted.
2022-02-27 13:13:39 +01:00

35 lines
699 B
Makefile

PORTNAME= webdis
DISTVERSION= 0.1.20
PORTREVISION= 1
CATEGORIES= databases
MAINTAINER= olgeni@FreeBSD.org
COMMENT= HTTP interface for Redis
LICENSE= BSD2CLAUSE
LIB_DEPENDS= libevent.so:devel/libevent
USES= gmake
USE_GITHUB= yes
GH_ACCOUNT= nicolasff
USE_RC_SUBR= webdis
USERS= webdis
GROUPS= webdis
PLIST_FILES= bin/webdis \
"@sample etc/webdis.conf.sample"
post-patch:
${REINPLACE_CMD} -e "s@%%LOCALBASE%%@${LOCALBASE}@g" ${WRKSRC}/Makefile
do-install:
${INSTALL} ${WRKSRC}/webdis ${STAGEDIR}${PREFIX}/bin/webdis
${INSTALL_DATA} ${FILESDIR}/webdis.conf ${STAGEDIR}${PREFIX}/etc/webdis.conf.sample
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/webdis
.include <bsd.port.mk>