Changeset View
Changeset View
Standalone View
Standalone View
sysutils/goss/Makefile
Show All 16 Lines | |||||
ONLY_FOR_ARCHS= amd64 | ONLY_FOR_ARCHS= amd64 | ||||
ONLY_FOR_ARCHS_REASON= go-ps only supports amd64 | ONLY_FOR_ARCHS_REASON= go-ps only supports amd64 | ||||
USE_RC_SUBR= goss | USE_RC_SUBR= goss | ||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
GH_ACCOUNT= aelsabbahy | GH_ACCOUNT= aelsabbahy | ||||
GH_SUBDIR= src/github.com/aelsabbahy/${PORTNAME} | GH_SUBDIR= src/github.com/aelsabbahy/${PORTNAME} | ||||
GH_TUPLE= achanda:go-sysctl:6be7678:achanda/src/github.com/achanda/go-sysctl \ | GH_TUPLE= achanda:go-sysctl:6be7678:achanda/vendor/github.com/achanda/go-sysctl \ | ||||
aelsabbahy:go-ps:4433868:gops/src/github.com/aelsabbahy/go-ps \ | aelsabbahy:go-ps:4433868:gops/vendor/github.com/aelsabbahy/go-ps \ | ||||
aelsabbahy:GOnetstat:edf89f7:GOnetstat/src/github.com/aelsabbahy/GOnetstat \ | aelsabbahy:GOnetstat:edf89f7:GOnetstat/vendor/github.com/aelsabbahy/GOnetstat \ | ||||
cheekybits:genny:e8e29e6:cheekybits/src/github.com/cheekybits/genny \ | cheekybits:genny:e8e29e6:cheekybits/vendor/github.com/cheekybits/genny \ | ||||
fatih:color:bf82308:fatih/src/github.com/fatih/color \ | fatih:color:bf82308:fatih/vendor/github.com/fatih/color \ | ||||
go-yaml:yaml:a5b47d3:yaml/src/gopkg.in/yaml.v2 \ | go-yaml:yaml:a5b47d3:yaml/vendor/gopkg.in/yaml.v2 \ | ||||
golang:sys:9a2e24c:sys/src/golang.org/x/sys \ | golang:sys:9a2e24c:sys/vendor/golang.org/x/sys \ | ||||
mattn:go-colorable:d228849:mattn/src/github.com/mattn/go-colorable \ | mattn:go-colorable:d228849:mattn/vendor/github.com/mattn/go-colorable \ | ||||
mattn:go-isatty:66b8e73:mattnisatty/src/github.com/mattn/go-isatty \ | mattn:go-isatty:66b8e73:mattnisatty/vendor/github.com/mattn/go-isatty \ | ||||
miekg:dns:58f52c5:miekg/src/github.com/miekg/dns \ | miekg:dns:58f52c5:miekg/vendor/github.com/miekg/dns \ | ||||
moby:moby:383a2f0:docker/src/github.com/docker/docker \ | moby:moby:383a2f0:docker/vendor/github.com/docker/docker \ | ||||
oleiade:reflections:0e86b3c:oleiade/src/github.com/oleiade/reflections \ | oleiade:reflections:0e86b3c:oleiade/vendor/github.com/oleiade/reflections \ | ||||
onsi:gomega:ff4bc6b:onsi/src/github.com/onsi/gomega \ | onsi:gomega:ff4bc6b:onsi/vendor/github.com/onsi/gomega \ | ||||
opencontainers:runc:8779fa5:opencontainers/src/github.com/opencontainers/runc \ | opencontainers:runc:8779fa5:opencontainers/vendor/github.com/opencontainers/runc \ | ||||
patrickmn:go-cache:1881a9b:patrickmn/src/github.com/patrickmn/go-cache \ | patrickmn:go-cache:1881a9b:patrickmn/vendor/github.com/patrickmn/go-cache \ | ||||
urfave:cli:d86a009:urfave/src/github.com/urfave/cli | urfave:cli:d86a009:urfave/vendor/github.com/urfave/cli | ||||
GO_BUILDFLAGS= -ldflags "-X main.version=${DISTVERSIONPREFIX}${PORTVERSION} -s -w" | |||||
GO_TARGET= ./cmd/${PORTNAME} | |||||
post-patch: | post-patch: | ||||
${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/extras/goss.yaml.sample | ${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/extras/goss.yaml.sample | ||||
do-build: | post-install: | ||||
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} CGO_ENABLED=0 GOPATH=${WRKSRC} \ | |||||
go build -ldflags "-X main.version=${DISTVERSIONPREFIX}${PORTVERSION} -s -w" -o \ | |||||
bin/${PORTNAME} ./cmd/${PORTNAME} | |||||
do-install: | |||||
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${PORTNAME}/bin/${PORTNAME} \ | |||||
${STAGEDIR}${PREFIX}/bin/${PORTNAME} | |||||
${INSTALL_DATA} ${WRKSRC}/extras/goss.yaml.sample ${STAGEDIR}${PREFIX}/etc/goss.yaml.sample | ${INSTALL_DATA} ${WRKSRC}/extras/goss.yaml.sample ${STAGEDIR}${PREFIX}/etc/goss.yaml.sample | ||||
${MKDIR} ${STAGEDIR}${PREFIX}/etc/goss.d | ${MKDIR} ${STAGEDIR}${PREFIX}/etc/goss.d | ||||
${INSTALL_DATA} ${WRKSRC}/extras/process_goss.yaml.sample \ | ${INSTALL_DATA} ${WRKSRC}/extras/process_goss.yaml.sample \ | ||||
${STAGEDIR}${PREFIX}/etc/goss.d/process_goss.yaml.sample | ${STAGEDIR}${PREFIX}/etc/goss.d/process_goss.yaml.sample | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |