freebsd-ports/sysutils/paladin/Makefile
Kurt Jaeger 2964abf99d sysutils/paladin: update 1.1.1 -> 2.0.0
- An -f command line flag that allows specifying a config file
- A handle for the SIGINFO signal
- Args to the children are passed as an array (so that it's possible
  to pass an argument with a space in it)
- Fixes of some major bugs causing paladin to not correctly track
  the number of running children (so it wouldn't know when to exit),
  or not wait for children to exit before exiting itself after
  receiving SIGTERM.

PR:		236111
Submitted by:	rlwestlund@gmail.com
Approved by:	Randy Westlund <rwestlun@gmail.com>
2019-03-02 08:23:56 +00:00

28 lines
663 B
Makefile

# $FreeBSD$
PORTNAME= paladin
PORTVERSION= 2.0.0
CATEGORIES= sysutils
MAINTAINER= rwestlun@gmail.com
COMMENT= Simple process supervisor
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
USE_GITHUB= yes
GH_ACCOUNT= rwestlund
# Override default build command to pass ldflags.
do-build:
@(cd ${GO_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} install \
-ldflags="-X main.localbase=/usr/local" -v ${GO_TARGET})
post-install:
@${CP} ${WRKSRC}/etc/paladin.conf.sample ${STAGEDIR}/${LOCALBASE}/etc/
@${CP} ${WRKSRC}/etc/rc.d/paladin ${STAGEDIR}/${LOCALBASE}/etc/rc.d/
.include <bsd.port.mk>