summaryrefslogtreecommitdiff
path: root/security/imds-filterd/Makefile
blob: 4b5f53c4d632d9caba858aaaaeec6844a720d8ed (plain)
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
34
35
36
37
38
39
40
41
42
43

PORTNAME=	imds-filterd
DISTVERSION=	0.1
CATEGORIES=	security

MAINTAINER=	cperciva@FreeBSD.org
COMMENT=	Provides per user/group access controls to the EC2 IMDS

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/COPYRIGHT

USE_GITHUB=	YES
GH_ACCOUNT=	cperciva

# Install binaries into ${STAGEDIR}${PREFIX}/sbin
MAKE_ARGS+=	BINDIR=${STAGEDIR}${PREFIX}/sbin

PORTDOCS=	README.md USAGE
PLIST_FILES=	etc/rc.d/imds-filterd		\
		etc/rc.d/imds-proxy		\
		sbin/imds-filterd		\
		sbin/imds-proxy			\
		"@sample etc/newsyslog.conf.d/imds.conf.sample"	\
		"@sample etc/syslog.d/imds.conf.sample"		\
		"@sample etc/imds.conf.sample"

OPTIONS_DEFINE=	DOCS

USERS=		imds
GROUPS=		imds

post-install:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/syslog.d
	${INSTALL_DATA} ${WRKSRC}/freebsd-conf/syslog-imds.conf ${STAGEDIR}${PREFIX}/etc/syslog.d/imds.conf.sample
	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d
	${INSTALL_DATA} ${WRKSRC}/freebsd-conf/newsyslog-imds.conf ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d/imds.conf.sample
	${INSTALL_DATA} ${WRKSRC}/imds.conf ${STAGEDIR}${PREFIX}/etc/imds.conf.sample
	${INSTALL_SCRIPT} ${WRKSRC}/freebsd-conf/rc.d-imds-filterd ${STAGEDIR}${PREFIX}/etc/rc.d/imds-filterd
	${INSTALL_SCRIPT} ${WRKSRC}/freebsd-conf/rc.d-imds-proxy ${STAGEDIR}${PREFIX}/etc/rc.d/imds-proxy

.include <bsd.port.mk>