blob: ad924c3d2c6d58fe93227b5082721ee77ab47e0b (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
PORTNAME= oneshot
DISTVERSIONPREFIX= v
DISTVERSION= 1.4.1
CATEGORIES= www
MAINTAINER= lcook@FreeBSD.org
COMMENT= First-come-first-serve single-fire HTTP server
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:modules
USE_GITHUB= yes
GH_ACCOUNT= raphaelreyna
GH_TUPLE= cenkalti:backoff:v2.2.1:cenkalti_backoff/vendor/github.com/cenkalti/backoff \
cpuguy83:go-md2man:v2.0.0:cpuguy83_go_md2man_v2/vendor/github.com/cpuguy83/go-md2man/v2 \
go-yaml:yaml:v2.2.2:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \
golang:crypto:87dc89f01550:golang_crypto/vendor/golang.org/x/crypto \
golang:net:627f9648deb9:golang_net/vendor/golang.org/x/net \
golang:sys:85ca7c5b95cd:golang_sys/vendor/golang.org/x/sys \
gorilla:mux:v1.7.4:gorilla_mux/vendor/github.com/gorilla/mux \
grandcat:zeroconf:v1.0.0:grandcat_zeroconf/vendor/github.com/grandcat/zeroconf \
inconshreveable:mousetrap:v1.0.0:inconshreveable_mousetrap/vendor/github.com/inconshreveable/mousetrap \
jf-tech:iohelper:v1.0.2:jf_tech_iohelper/vendor/github.com/jf-tech/iohelper \
miekg:dns:v1.1.27:miekg_dns/vendor/github.com/miekg/dns \
raphaelreyna:ez-cgi:v0.7.3:raphaelreyna_ez_cgi/vendor/github.com/raphaelreyna/ez-cgi \
russross:blackfriday:v2.0.1:russross_blackfriday_v2/vendor/github.com/russross/blackfriday/v2 \
shurcooL:sanitized_anchor_name:v1.0.0:shurcool_sanitized_anchor_name/vendor/github.com/shurcooL/sanitized_anchor_name \
spf13:cobra:v1.0.0:spf13_cobra/vendor/github.com/spf13/cobra \
spf13:pflag:v1.0.3:spf13_pflag/vendor/github.com/spf13/pflag
_BUILD_VERSION= ${DISTVERSIONFULL}
_BUILD_DATE= $$(date +%d-%B-%Y)
GO_BUILDFLAGS= -ldflags "\
-s -w \
-X github.com/${GH_ACCOUNT}/${GH_PROJECT}/cmd.version=${_BUILD_VERSION} \
-X github.com/${GH_ACCOUNT}/${GH_PROJECT}/cmd.date=${_BUILD_DATE}"
PORTDOCS= README.md
OPTIONS_DEFINE= DOCS MANPAGES
OPTIONS_DEFAULT= MANPAGES
OPTIONS_SUB= yes
MANPAGES_DESC= Build and install auto-generated manpages
do-build-MANPAGES-on:
cd ${GO_WRKSRC} && \
${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} run ${GO_BUILDFLAGS} ./doc/man/main.go > ${PORTNAME}.1
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${GO_WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
post-install-MANPAGES-on:
${INSTALL_MAN} ${GO_WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
.include <bsd.port.mk>
|