74 lines
3.6 KiB
Makefile
74 lines
3.6 KiB
Makefile
|
# Created by: yo000 <johan@nosd.in>
|
||
|
|
||
|
PORTNAME= haproxy-spoe-auth
|
||
|
PORTVERSION= 1.0.0
|
||
|
DISTVERSIONPREFIX=v
|
||
|
PORTREVISION= 1
|
||
|
CATEGORIES= net
|
||
|
|
||
|
MAINTAINER= johan@nosd.in
|
||
|
COMMENT= HAProxy plugin for authorizing users against LDAP
|
||
|
|
||
|
LICENSE= BSD3CLAUSE
|
||
|
|
||
|
USES= go
|
||
|
USE_GITHUB= yes
|
||
|
|
||
|
GH_ACCOUNT= criteo
|
||
|
|
||
|
GH_TUPLE= blang:semver:v3.5.1:blang_semver/vendor/github.com/blang/semver \
|
||
|
coreos:go-oidc:v3.0.0:coreos_go_oidc_v3/vendor/github.com/coreos/go-oidc/v3 \
|
||
|
criteo:haproxy-spoe-go:v1.0.6:criteo_haproxy_spoe_go/vendor/github.com/criteo/haproxy-spoe-go \
|
||
|
davecgh:go-spew:v1.1.1:davecgh_go_spew/vendor/github.com/davecgh/go-spew \
|
||
|
fsnotify:fsnotify:v1.4.9:fsnotify_fsnotify/vendor/github.com/fsnotify/fsnotify \
|
||
|
go-asn1-ber:asn1-ber:f715ec2f112d:go_asn1_ber_asn1_ber/vendor/gopkg.in/asn1-ber.v1 \
|
||
|
go-delve:delve:v1.8.0:go_delve_delve/vendor/github.com/go-delve/delve \
|
||
|
go-ini:ini:v1.62.0:go_ini_ini/vendor/gopkg.in/ini.v1 \
|
||
|
go-ldap:ldap:v3.0.3:go_ldap_ldap/vendor/gopkg.in/ldap.v3 \
|
||
|
go-yaml:yaml:496545a6307b:go_yaml_yaml_1/vendor/gopkg.in/yaml.v3 \
|
||
|
go-yaml:yaml:v2.4.0:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \
|
||
|
golang:appengine:v1.6.7:golang_appengine/vendor/google.golang.org/appengine \
|
||
|
golang:crypto:75b288015ac9:golang_crypto/vendor/golang.org/x/crypto \
|
||
|
golang:net:4f30a5c0130f:golang_net/vendor/golang.org/x/net \
|
||
|
golang:oauth2:2e8d93401602:golang_oauth2/vendor/golang.org/x/oauth2 \
|
||
|
golang:protobuf:v1.5.2:golang_protobuf/vendor/github.com/golang/protobuf \
|
||
|
golang:sys:9d821ace8654:golang_sys/vendor/golang.org/x/sys \
|
||
|
golang:text:v0.3.7:golang_text/vendor/golang.org/x/text \
|
||
|
hashicorp:hcl:v1.0.0:hashicorp_hcl/vendor/github.com/hashicorp/hcl \
|
||
|
magiconair:properties:v1.8.5:magiconair_properties/vendor/github.com/magiconair/properties \
|
||
|
mitchellh:mapstructure:v1.4.1:mitchellh_mapstructure/vendor/github.com/mitchellh/mapstructure \
|
||
|
pelletier:go-toml:v1.9.3:pelletier_go_toml/vendor/github.com/pelletier/go-toml \
|
||
|
pkg:errors:v0.9.1:pkg_errors/vendor/github.com/pkg/errors \
|
||
|
pmezard:go-difflib:v1.0.0:pmezard_go_difflib/vendor/github.com/pmezard/go-difflib \
|
||
|
protocolbuffers:protobuf-go:v1.26.0:protocolbuffers_protobuf_go/vendor/google.golang.org/protobuf \
|
||
|
sirupsen:logrus:v1.7.0:sirupsen_logrus/vendor/github.com/sirupsen/logrus \
|
||
|
spf13:afero:v1.6.0:spf13_afero/vendor/github.com/spf13/afero \
|
||
|
spf13:cast:v1.3.1:spf13_cast/vendor/github.com/spf13/cast \
|
||
|
spf13:jwalterweatherman:v1.1.0:spf13_jwalterweatherman/vendor/github.com/spf13/jwalterweatherman \
|
||
|
spf13:pflag:v1.0.5:spf13_pflag/vendor/github.com/spf13/pflag \
|
||
|
spf13:viper:v1.8.1:spf13_viper/vendor/github.com/spf13/viper \
|
||
|
square:go-jose:v2.5.1:square_go_jose/vendor/gopkg.in/square/go-jose.v2 \
|
||
|
stretchr:testify:v1.7.0:stretchr_testify/vendor/github.com/stretchr/testify \
|
||
|
subosito:gotenv:v1.2.0:subosito_gotenv/vendor/github.com/subosito/gotenv \
|
||
|
tebeka:selenium:v0.9.9:tebeka_selenium/vendor/github.com/tebeka/selenium \
|
||
|
vmihailenco:msgpack:v5.3.4:vmihailenco_msgpack_v5/vendor/github.com/vmihailenco/msgpack/v5 \
|
||
|
vmihailenco:tagparser:v2.0.0:vmihailenco_tagparser_v2/vendor/github.com/vmihailenco/tagparser/v2
|
||
|
|
||
|
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
|
||
|
|
||
|
GO_TARGET= cmd/haproxy-spoe-auth/main.go:haproxy-spoe-auth
|
||
|
ETCDIR= ${PREFIX}/etc/haproxy
|
||
|
|
||
|
post-install:
|
||
|
${MKDIR} ${STAGEDIR}${ETCDIR}
|
||
|
${INSTALL_DATA} ${WRKSRC}/resources/haproxy/haproxy.cfg \
|
||
|
${STAGEDIR}${ETCDIR}/haproxy.cfg.spoe-auth.sample
|
||
|
${INSTALL_DATA} ${FILESDIR}/haproxy-spoe-auth.yml.sample \
|
||
|
${STAGEDIR}${ETCDIR}/haproxy-spoe-auth.yml.sample
|
||
|
${INSTALL_DATA} ${FILESDIR}/spoe-auth.conf.sample \
|
||
|
${STAGEDIR}${ETCDIR}/spoe-auth.conf.sample
|
||
|
|
||
|
USE_RC_SUBR= haproxy-spoe-auth
|
||
|
|
||
|
.include <bsd.port.mk>
|