aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/autoscan/Makefile
blob: b270f2e9737ec48c563cd884f0226d9cdf58c9b9 (plain) (blame)
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
PORTNAME=	autoscan
DISTVERSIONPREFIX=	v
DISTVERSION=	1.4.0
PORTREVISION=	8
CATEGORIES=	net-p2p

MAINTAINER=	michiel@vanbaak.eu
COMMENT=	Scan Plex library on webhook triggers

LICENSE=	MIT
LICENSE_FILE=   ${WRKSRC}/LICENSE

# See https://gitlab.com/cznic/libc/-/issues/15
ONLY_FOR_ARCHS=	amd64 i386
ONLY_FOR_ARCHS_REASON=	Some dependencies only build on amd64 and i386

USES=		go:modules
USE_RC_SUBR=	autoscan

GO_MODULE=	github.com/cloudbox/autoscan
GO_TARGET=	./cmd/autoscan
GO_BUILDFLAGS+=	-ldflags="-s -w -X main.Version=${DISTVERSION}"

CONFLICTS_INSTALL=	autoconf-wrapper

SUB_LIST=	GROUPS=${GROUPS} \
		USERS=${USERS}

USERS=		autoscan
GROUPS=		autoscan

PLIST_FILES=	bin/autoscan

.include <bsd.port.mk>