1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/sysutils/amazon-ssm-agent/Makefile
Yuri Victorovich 54e279cd72 Make 41 Go ports respect MAKE_ENV. This is expected to unbreak them.
Ports:
benchmarks/hey benchmarks/vegeta databases/influxdb devel/arduino-builder devel/arduinoOTA
devel/awless devel/git-codereview devel/git-town devel/gitlab-runner devel/grv
devel/hub devel/jfrog-cli editors/micro finance/fixc misc/exercism
net-mgmt/intel-snap net-mgmt/kapacitor net-mgmt/telegraf net/goreplay net/syncthing
net/syncthing-cli net/syncthing-discosrv net/syncthing-inotify print/cups-connector security/sops
security/vault sysutils/amazon-ssm-agent sysutils/circonus-agent sysutils/consul sysutils/consul_exporter
sysutils/envconsul sysutils/serf textproc/consul-template textproc/spiff www/gobuffalo
www/grafana2 www/grafana3 www/mattermost-server www/minio www/minio-client
www/uchiwa

Approved by:	tcberner (mentor, implicit)
Approved by:	portmgr (port compliance, infrastructure)
2018-03-07 08:06:24 +00:00

40 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= amazon-ssm-agent
PORTVERSION= 2.0.790.0
PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= cperciva@FreeBSD.org
COMMENT= Amazon Simple Systems Manager Agent
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go:lang/go
RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
USE_GITHUB= yes
GH_ACCOUNT= aws
GH_SUBDIR= src/github.com/aws/amazon-ssm-agent
PLIST_FILES= etc/amazon/ssm/amazon-ssm-agent.json.template \
etc/amazon/ssm/seelog_unix.xml.template \
sbin/amazon-ssm-agent
USE_RC_SUBR= amazon-ssm-agent
do-build:
@cd ${WRKSRC}; \
${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC}:${WRKSRC}/vendor CGO_ENABLED=0 \
go build -ldflags "-s -w" -o amazon-ssm-agent \
agent/agent.go agent/agent_unix.go agent/agent_parser.go
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/amazon-ssm-agent ${STAGEDIR}${PREFIX}/sbin
${MKDIR} ${STAGEDIR}${PREFIX}/etc/amazon/ssm
${INSTALL_DATA} ${WRKSRC}/amazon-ssm-agent.json.template ${STAGEDIR}${PREFIX}/etc/amazon/ssm
${INSTALL_DATA} ${WRKSRC}/seelog_unix.xml ${STAGEDIR}${PREFIX}/etc/amazon/ssm/seelog_unix.xml.template
.include <bsd.port.mk>