aboutsummaryrefslogtreecommitdiff
path: root/sysutils/boxrun/Makefile
blob: baf696a0a029578305a63050867f17a109ec3b65 (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
30
31
32
33
PORTNAME=	boxrun
DISTVERSIONPREFIX=	v
DISTVERSION=	0.4.3
CATEGORIES=	sysutils

MAINTAINER=	tiga@FreeBSD.org
COMMENT=	Sandboxed command execution using FreeBSD jails
WWW=		https://gitlab.com/tgasiba/boxrun

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

USE_GITLAB=	yes
GL_ACCOUNT=	tgasiba
GL_PROJECT=	boxrun

PLIST_FILES=	sbin/boxrun \
		share/boxrun/pf.conf.sample \
		share/man/man1/boxrun.1.gz

do-build:
	${CC} ${CFLAGS} -o ${WRKSRC}/boxrun ${WRKSRC}/boxrun.c -ljail

do-install:
	${INSTALL_PROGRAM} -m 4755 ${WRKSRC}/boxrun \
		${STAGEDIR}${PREFIX}/sbin/boxrun
	${INSTALL_MAN} ${WRKSRC}/boxrun.1 \
		${STAGEDIR}${PREFIX}/share/man/man1/boxrun.1
	${MKDIR} ${STAGEDIR}${PREFIX}/share/boxrun
	${INSTALL_DATA} ${WRKSRC}/pf.conf.sample \
		${STAGEDIR}${PREFIX}/share/boxrun/pf.conf.sample

.include <bsd.port.mk>