Makefile 6.22 KB
Newer Older
1
2
3
4
# $FreeBSD$

PORTNAME=	authelia
DISTVERSIONPREFIX=	v
yuri's avatar
yuri committed
5
DISTVERSION=	4.27.3
6
CATEGORIES=	www
7
8
9
MASTER_SITES=	https://github.com/authelia/authelia/releases/download/v${DISTVERSION}/:public_html
DISTFILES=	authelia-public_html${EXTRACT_SUFX}:public_html # html root directory needs to be built in a special way
DIST_SUBDIR=	${PORTNAME}-${PORTVERSION}
10
11
12
13
14
15
16
17
18
19

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Single sign-on multi-factor portal for web apps

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		go:modules
USE_GITHUB=	yes
GH_TUPLE=	\
yuri's avatar
yuri committed
20
		Azure:go-ntlmssp:66371956d46c:azure_go_ntlmssp/vendor/github.com/Azure/go-ntlmssp \
yuri's avatar
yuri committed
21
		DATA-DOG:go-sqlmock:v1.5.0:data_dog_go_sqlmock/vendor/github.com/DATA-DOG/go-sqlmock \
22
		Gurpartap:logrus-stack:89c00d8a28f4:gurpartap_logrus_stack/vendor/github.com/Gurpartap/logrus-stack \
yuri's avatar
yuri committed
23
		Workiva:go-datastructures:v1.0.52:workiva_go_datastructures/vendor/github.com/Workiva/go-datastructures \
yuri's avatar
yuri committed
24
		andybalholm:brotli:v1.0.1:andybalholm_brotli/vendor/github.com/andybalholm/brotli \
yuri's avatar
yuri committed
25
		asaskevich:govalidator:7a23bdc65eef:asaskevich_govalidator/vendor/github.com/asaskevich/govalidator \
26
27
		blang:semver:v3.5.1:blang_semver/vendor/github.com/blang/semver \
		boombuler:barcode:6c824513bacc:boombuler_barcode/vendor/github.com/boombuler/barcode \
yuri's avatar
yuri committed
28
		cespare:xxhash:v2.1.1:cespare_xxhash_v2/vendor/github.com/cespare/xxhash/v2 \
29
30
31
		davecgh:go-spew:v1.1.1:davecgh_go_spew/vendor/github.com/davecgh/go-spew \
		deckarep:golang-set:v1.7.1:deckarep_golang_set/vendor/github.com/deckarep/golang-set \
		dgrijalva:jwt-go:v3.2.0:dgrijalva_jwt_go/vendor/github.com/dgrijalva/jwt-go \
yuri's avatar
yuri committed
32
		dgryski:go-rendezvous:9f7001d12a5f:dgryski_go_rendezvous/vendor/github.com/dgryski/go-rendezvous \
yuri's avatar
yuri committed
33
		duosecurity:duo_api_golang:0e07e9f869e3:duosecurity_duo_api_golang/vendor/github.com/duosecurity/duo_api_golang \
34
		facebookgo:stack:751773369052:facebookgo_stack/vendor/github.com/facebookgo/stack \
yuri's avatar
yuri committed
35
		fasthttp:router:v1.3.10:fasthttp_router/vendor/github.com/fasthttp/router \
yuri's avatar
yuri committed
36
		fasthttp:session:v2.3.0:fasthttp_session_v2/vendor/github.com/fasthttp/session/v2 \
yuri's avatar
yuri committed
37
		fsnotify:fsnotify:v1.4.9:fsnotify_fsnotify/vendor/github.com/fsnotify/fsnotify \
yuri's avatar
yuri committed
38
		go-asn1-ber:asn1-ber:v1.5.1:go_asn1_ber_asn1_ber/vendor/github.com/go-asn1-ber/asn1-ber \
39
		go-ini:ini:v1.51.0:go_ini_ini/vendor/gopkg.in/ini.v1 \
yuri's avatar
yuri committed
40
		go-ldap:ldap:v3.2.4:go_ldap_ldap_v3/vendor/github.com/go-ldap/ldap \
yuri's avatar
yuri committed
41
		go-redis:redis:v8.3.4:go_redis_redis_v8/vendor/github.com/go-redis/redis/v8 \
yuri's avatar
yuri committed
42
		go-sql-driver:mysql:v1.5.0:go_sql_driver_mysql/vendor/github.com/go-sql-driver/mysql \
yuri's avatar
yuri committed
43
		go-yaml:yaml:9f266ea9e77c:go_yaml_yaml_1/vendor/gopkg.in/yaml.v3 \
yuri's avatar
yuri committed
44
		go-yaml:yaml:v2.4.0:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \
yuri's avatar
yuri committed
45
		golang:crypto:0c34fe9e7dc2:golang_crypto/vendor/golang.org/x/crypto \
yuri's avatar
yuri committed
46
47
		golang:mock:v1.5.0:golang_mock/vendor/github.com/golang/mock \
		golang:sys:a50acf3fe073:golang_sys/vendor/golang.org/x/sys \
yuri's avatar
yuri committed
48
		golang:text:v0.3.5:golang_text/vendor/golang.org/x/text \
49
50
		hashicorp:hcl:v1.0.0:hashicorp_hcl/vendor/github.com/hashicorp/hcl \
		inconshreveable:mousetrap:v1.0.0:inconshreveable_mousetrap/vendor/github.com/inconshreveable/mousetrap \
yuri's avatar
yuri committed
51
		jackc:chunkreader:v2.0.1:jackc_chunkreader_v2/vendor/github.com/jackc/chunkreader/v2 \
yuri's avatar
yuri committed
52
		jackc:pgconn:v1.8.1:jackc_pgconn/vendor/github.com/jackc/pgconn \
yuri's avatar
yuri committed
53
54
		jackc:pgio:v1.0.0:jackc_pgio/vendor/github.com/jackc/pgio \
		jackc:pgpassfile:v1.0.0:jackc_pgpassfile/vendor/github.com/jackc/pgpassfile \
yuri's avatar
yuri committed
55
		jackc:pgproto3:v2.0.6:jackc_pgproto3_v2/vendor/github.com/jackc/pgproto3/v2 \
yuri's avatar
yuri committed
56
		jackc:pgservicefile:2b9c44734f2b:jackc_pgservicefile/vendor/github.com/jackc/pgservicefile \
yuri's avatar
yuri committed
57
58
		jackc:pgtype:v1.7.0:jackc_pgtype/vendor/github.com/jackc/pgtype \
		jackc:pgx:v4.11.0:jackc_pgx_v4/vendor/github.com/jackc/pgx/v4 \
yuri's avatar
yuri committed
59
		klauspost:compress:v1.11.8:klauspost_compress/vendor/github.com/klauspost/compress \
60
		magiconair:properties:v1.8.1:magiconair_properties/vendor/github.com/magiconair/properties \
yuri's avatar
yuri committed
61
		mattn:go-sqlite3:v1.14.6:mattn_go_sqlite3/vendor/github.com/mattn/go-sqlite3 \
62
		mitchellh:mapstructure:v1.1.2:mitchellh_mapstructure/vendor/github.com/mitchellh/mapstructure \
yuri's avatar
yuri committed
63
64
		open-telemetry:opentelemetry-go:v0.13.0:open_telemetry_opentelemetry_go/vendor/go.opentelemetry.io/otel \
		otiai10:copy:v1.5.0:otiai10_copy/vendor/github.com/otiai10/copy \
yuri's avatar
yuri committed
65
		pelletier:go-toml:v1.4.0:pelletier_go_toml/vendor/github.com/pelletier/go-toml \
yuri's avatar
yuri committed
66
		philhofer:fwd:v1.1.1:philhofer_fwd/vendor/github.com/philhofer/fwd \
67
		pmezard:go-difflib:v1.0.0:pmezard_go_difflib/vendor/github.com/pmezard/go-difflib \
yuri's avatar
yuri committed
68
		pquerna:otp:v1.3.0:pquerna_otp/vendor/github.com/pquerna/otp \
yuri's avatar
yuri committed
69
70
		savsgio:dictpool:85d3b37fb239:savsgio_dictpool/vendor/github.com/savsgio/dictpool \
		savsgio:gotils:595c7e5a8a7a:savsgio_gotils/vendor/github.com/savsgio/gotils \
yuri's avatar
yuri committed
71
		simia-tech:crypt:v0.4.3:simia_tech_crypt/vendor/github.com/simia-tech/crypt \
yuri's avatar
yuri committed
72
		sirupsen:logrus:v1.8.1:sirupsen_logrus/vendor/github.com/sirupsen/logrus \
73
74
		spf13:afero:v1.1.2:spf13_afero/vendor/github.com/spf13/afero \
		spf13:cast:v1.3.0:spf13_cast/vendor/github.com/spf13/cast \
yuri's avatar
yuri committed
75
		spf13:cobra:v1.1.3:spf13_cobra/vendor/github.com/spf13/cobra \
76
		spf13:jwalterweatherman:v1.0.0:spf13_jwalterweatherman/vendor/github.com/spf13/jwalterweatherman \
yuri's avatar
yuri committed
77
		spf13:pflag:v1.0.5:spf13_pflag/vendor/github.com/spf13/pflag \
yuri's avatar
yuri committed
78
		spf13:viper:v1.7.1:spf13_viper/vendor/github.com/spf13/viper \
yuri's avatar
yuri committed
79
		stretchr:testify:v1.7.0:stretchr_testify/vendor/github.com/stretchr/testify \
80
81
		subosito:gotenv:v1.2.0:subosito_gotenv/vendor/github.com/subosito/gotenv \
		tebeka:selenium:v0.9.9:tebeka_selenium/vendor/github.com/tebeka/selenium \
yuri's avatar
yuri committed
82
		tinylib:msgp:v1.1.5:tinylib_msgp/vendor/github.com/tinylib/msgp \
83
84
		tstranex:u2f:v1.0.0:tstranex_u2f/vendor/github.com/tstranex/u2f \
		valyala:bytebufferpool:v1.0.0:valyala_bytebufferpool/vendor/github.com/valyala/bytebufferpool \
yuri's avatar
yuri committed
85
		valyala:fasthttp:v1.22.0:valyala_fasthttp/vendor/github.com/valyala/fasthttp
86
87
GO_TARGET=	./cmd/${PORTNAME}

yuri's avatar
yuri committed
88
89
90
91
USER=		root # 'nobody' doesn't work well because authelia attempts to remove files, etc.
SUB_LIST=	USER=${USER}
USE_RC_SUBR=	${PORTNAME}

92
93
94
95
96
97
98
post-extract: # extract -public-html
	@${RM} -r ${WRKSRC}/internal/server/public_html
	@${MV} ${WRKDIR}/public_html ${WRKSRC}/internal/server
	@${CP} -r ${WRKSRC}/api ${WRKSRC}/internal/server/public_html/api

post-install: # install the config file
	${INSTALL_DATA} ${WRKSRC}/config.template.yml ${STAGEDIR}${PREFIX}/etc/authelia.yml.sample
99
100

.include <bsd.port.mk>