aboutsummaryrefslogtreecommitdiff
path: root/sysutils/paladin/Makefile
blob: 621f67ae1f0e67e5e400cfa3fec1ba206d09c128 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
PORTNAME=	paladin
PORTVERSION=	2.0.1
PORTREVISION=	20
CATEGORIES=	sysutils

MAINTAINER=	rwestlun@gmail.com
COMMENT=	Simple process supervisor
WWW=		https://github.com/rwestlund/paladin

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		go
GO_PKGNAME=	github.com/${GH_ACCOUNT}/${PORTNAME}
GO_BUILDFLAGS=	-ldflags="-X main.localbase=${PREFIX}"

USE_GITHUB=	yes
GH_ACCOUNT=	rwestlund
GH_TUPLE=	golang:sys:v0.5.0:sys/vendor/golang.org/x/sys_

pre-patch:
	${RM} -r ${WRKSRC}/vendor/golang.org/x/sys
	${MV} ${WRKSRC}/vendor/golang.org/x/sys_ ${WRKSRC}/vendor/golang.org/x/sys

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>