aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichiel van Baak Jansen <michiel@vanbaak.eu>2022-03-05 04:56:35 +0000
committerGuangyuan Yang <ygy@FreeBSD.org>2022-03-05 04:56:35 +0000
commit87038ecd25a1bb1b091daf769901351c63736479 (patch)
tree4be7c2ad76195b865400bf4261860b1ef02c7540
parentda8656717ee3d599f976e30f07f93a00a55c2495 (diff)
downloadports-87038ecd25a1bb1b091daf769901351c63736479.tar.gz
ports-87038ecd25a1bb1b091daf769901351c63736479.zip
net-p2p/autoscan: Update to 1.3.0
- Switch from Linux binaries to source Changelog: https://github.com/Cloudbox/autoscan/releases/tag/v1.3.0 PR: 262319
-rw-r--r--net-p2p/autoscan/Makefile23
-rw-r--r--net-p2p/autoscan/distinfo8
-rw-r--r--net-p2p/autoscan/files/autoscan.in2
3 files changed, 14 insertions, 19 deletions
diff --git a/net-p2p/autoscan/Makefile b/net-p2p/autoscan/Makefile
index c8b91e1af522..c64d1d174a86 100644
--- a/net-p2p/autoscan/Makefile
+++ b/net-p2p/autoscan/Makefile
@@ -1,36 +1,29 @@
PORTNAME= autoscan
DISTVERSIONPREFIX= v
-DISTVERSION= 1.2.0
-CATEGORIES= net-p2p linux
-MASTER_SITES= https://github.com/Cloudbox/autoscan/releases/download/${DISTVERSIONPREFIX}${DISTVERSION}/
-DISTNAME= ${PORTNAME}_${DISTVERSIONPREFIX}${DISTVERSION}_linux_amd64
-EXTRACT_SUFX=
-EXTRACT_ONLY=
+DISTVERSION= 1.3.0
+CATEGORIES= net-p2p
MAINTAINER= michiel@vanbaak.eu
COMMENT= Scan Plex library on webhook triggers
LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
-ONLY_FOR_ARCHS= amd64
-
-USES= linux
+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
-NO_BUILD= yes
SUB_LIST= GROUPS=${GROUPS} \
USERS=${USERS}
-NO_WRKSUBDIR= yes
-
USERS= autoscan
GROUPS= autoscan
PLIST_FILES= bin/autoscan
-do-install:
- ${INSTALL_PROGRAM} ${DISTDIR}/${DISTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
-
.include <bsd.port.mk>
diff --git a/net-p2p/autoscan/distinfo b/net-p2p/autoscan/distinfo
index f57932bc4a41..b9ec7f69feab 100644
--- a/net-p2p/autoscan/distinfo
+++ b/net-p2p/autoscan/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1633181844
-SHA256 (autoscan_v1.2.0_linux_amd64) = 3ae59ec61298159e50882ebb8efe159ff8c4da55aa7325afc3f3f603c498e4a3
-SIZE (autoscan_v1.2.0_linux_amd64) = 11227136
+TIMESTAMP = 1646238370
+SHA256 (go/net-p2p_autoscan/autoscan-v1.3.0/v1.3.0.mod) = 33ec17bddffaf6ad7074f4209f9ba2841f7055f6c6954c7f58f6bb9a8c8013a3
+SIZE (go/net-p2p_autoscan/autoscan-v1.3.0/v1.3.0.mod) = 1648
+SHA256 (go/net-p2p_autoscan/autoscan-v1.3.0/v1.3.0.zip) = ea43405945bee5b9b8277292c91af262dd4450919b1ac5ec1fdead652c8820df
+SIZE (go/net-p2p_autoscan/autoscan-v1.3.0/v1.3.0.zip) = 78961
diff --git a/net-p2p/autoscan/files/autoscan.in b/net-p2p/autoscan/files/autoscan.in
index fa895bb4fba4..f906f3d48966 100644
--- a/net-p2p/autoscan/files/autoscan.in
+++ b/net-p2p/autoscan/files/autoscan.in
@@ -3,7 +3,7 @@
# Author: Michiel van Baak <michiel@vanbaak.eu>
#
# PROVIDE: autoscan
-# REQUIRE: LOGIN
+# REQUIRE: LOGIN network
# KEYWORD: shutdown
# Add the following lines to /etc/rc.conf to enable autoscan: