Changeset View
Standalone View
net-mgmt/postfix_exporter/Makefile
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:keywords | null | FreeBSD=%H \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
# $FreeBSD$ | |||||
PORTNAME= postfix_exporter | |||||
DISTVERSION= 0.1.2 | |||||
CATEGORIES= net-mgmt | |||||
MAINTAINER= fabian.freyer@physik.tu-berlin.de | |||||
mat: None of the file have a generic name, please remove. | |||||
Done Inline ActionsI just went along with https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/makefile-distfiles.html:
However, I'm not sure how many files is "a lot". I'll remove this then. fabian.freyer_physik.tu-berlin.de: I just went along with https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters… | |||||
Done Inline ActionsMmmm, I think this could probably go. The idea is that github generated files are named consistenly, so that if more than one port uses the same project/commit, they can use the same distribution file. mat: Mmmm, I think this could probably go.
The idea is that github generated files are named… | |||||
COMMENT= Postfix Exporter for Prometheus | |||||
LICENSE= APACHE20 | |||||
USES= go | |||||
USE_GITHUB= yes | |||||
GH_ACCOUNT= kumina | |||||
GH_TUPLE+= prometheus:client_golang:v0.8.0:prometheus_client/../src/github.com/prometheus/client_golang | |||||
dmgkUnsubmitted Not Done Inline ActionsIf GH_TUPLE entries would place packages in vendor, the post-extract below can be removed: GH_TUPLE+= prometheus:client_golang:v0.8.0:prometheus_client/vendor/github.com/prometheus/client_golang GH_TUPLE+= golang:protobuf:v1.1.0:protobuf/vendor/github.com/golang/protobuf GH_TUPLE+= beorn7:perks:3a771d992973f24aa725d07868b467d1ddfceafb:quantile/vendor/github.com/beorn7/perks GH_TUPLE+= prometheus:client_model:5c3871d89910bfb32f5fcab2aa4b9ec68e65a99f:prometheus_client_model/vendor/github.com/prometheus/client_mod el GH_TUPLE+= prometheus:common:7600349dcfe1abd18d72d3a1770870d9800a7801:prometheus_common/vendor/github.com/prometheus/common GH_TUPLE+= prometheus:procfs:ae68e2d4c00fed4943b5f6698d504a5fe083da8a:prometheus_procfs/vendor/github.com/prometheus/procfs GH_TUPLE+= matttproud:golang_protobuf_extensions:v1.0.1:pbutil/vendor/github.com/matttproud/golang_protobuf_extensions dmgk: If GH_TUPLE entries would place packages in `vendor`, the `post-extract` below can be removed… | |||||
GH_TUPLE+= golang:protobuf:v1.1.0:protobuf/../src/github.com/golang/protobuf | |||||
GH_TUPLE+= beorn7:perks:3a771d992973f24aa725d07868b467d1ddfceafb:quantile/../src/github.com/beorn7/perks | |||||
GH_TUPLE+= prometheus:client_model:5c3871d89910bfb32f5fcab2aa4b9ec68e65a99f:prometheus_client_model/../src/github.com/prometheus/client_model | |||||
Done Inline ActionsI guess here and below, I should use the actutal commit hash instead of master? fabian.freyer_physik.tu-berlin.de: I guess here and below, I should use the actutal commit hash instead of `master`? | |||||
Done Inline ActionsYes, it should. There is a test for the default distfile, but it got forgotten in the GH_TUPLE, I'll look into expanding it. mat: Yes, it should. There is a test for the default distfile, but it got forgotten in the GH_TUPLE… | |||||
GH_TUPLE+= prometheus:common:7600349dcfe1abd18d72d3a1770870d9800a7801:prometheus_common/../src/github.com/prometheus/common | |||||
GH_TUPLE+= prometheus:procfs:ae68e2d4c00fed4943b5f6698d504a5fe083da8a:prometheus_procfs/../src/github.com/prometheus/procfs | |||||
GH_TUPLE+= matttproud:golang_protobuf_extensions:v1.0.1:pbutil/../src/github.com/matttproud/golang_protobuf_extensions | |||||
USE_RC_SUBR= postfix_exporter | |||||
USERS= prometheus | |||||
GROUPS= prometheus | |||||
GO_PKGNAME= github.com/kumina/${PORTNAME} | |||||
GO_TARGET= github.com/kumina/${PORTNAME} | |||||
dmgkUnsubmitted Not Done Inline ActionsThis is the default (GO_TARGET defaults to GO_PKGNAME) dmgk: This is the default (`GO_TARGET` defaults to `GO_PKGNAME`) | |||||
PLIST_FILES= bin/postfix_exporter | |||||
post-extract: | |||||
dmgkUnsubmitted Not Done Inline ActionsThis is not needed if dependencies go to vendor. dmgk: This is not needed if dependencies go to `vendor`. | |||||
${MKDIR} ${GO_WRKSRC:H} | |||||
${LN} -sf ${WRKSRC} ${GO_WRKSRC} | |||||
${MKDIR} ${GO_WRKDIR_SRC}/code.google.com/p/ | |||||
${LN} -sf ${GO_WRKDIR_SRC}/github.com/golang/protobuf ${GO_WRKDIR_SRC}/code.google.com/p/goprotobuf | |||||
do-build: | |||||
dmgkUnsubmitted Not Done Inline Actionsdo-build can be replaced with just GO_BUILDFLAGS= -tags nosystemd dmgk: `do-build` can be replaced with just
```
GO_BUILDFLAGS= -tags nosystemd
``` | |||||
(cd ${GO_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} install -tags nosystemd -v ${GO_TARGET}) | |||||
.include <bsd.port.mk> |
None of the file have a generic name, please remove.