From 3343e9e6076f52ec13d2f67beca1cfe8df31f5c3 Mon Sep 17 00:00:00 2001 From: Boris Samorodov Date: Sun, 19 Mar 2017 22:07:49 +0000 Subject: [PATCH] Tool for performing OTA updates on Arduino boards and the ESP8266. WWW: https://www.arduino.cc PR: 217842 Submitted by: bsdports@kyle-evans.net --- devel/Makefile | 1 + devel/arduinoOTA/Makefile | 29 +++++++++++++++++++++++++++++ devel/arduinoOTA/distinfo | 3 +++ devel/arduinoOTA/pkg-descr | 3 +++ 4 files changed, 36 insertions(+) create mode 100644 devel/arduinoOTA/Makefile create mode 100644 devel/arduinoOTA/distinfo create mode 100644 devel/arduinoOTA/pkg-descr diff --git a/devel/Makefile b/devel/Makefile index 3ff6407e5b5d..555b670ee50b 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -106,6 +106,7 @@ SUBDIR += arduino-sevseg SUBDIR += arduino-tools SUBDIR += arduino16 + SUBDIR += arduinoOTA SUBDIR += argdata SUBDIR += argouml SUBDIR += argp-standalone diff --git a/devel/arduinoOTA/Makefile b/devel/arduinoOTA/Makefile new file mode 100644 index 000000000000..39c7dfc8e7aa --- /dev/null +++ b/devel/arduinoOTA/Makefile @@ -0,0 +1,29 @@ +# $FreeBSD$ + +PORTNAME= arduinoOTA +PORTVERSION= 1.2.0 +CATEGORIES= devel + +MAINTAINER= bsdports@kyle-evans.net +COMMENT= OTA upload tool for Arduino/ESP8266 + +LICENSE= GPLv3 + +BUILD_DEPENDS= go:lang/go + +USE_GITHUB= yes +GH_ACCOUNT= arduino +GH_TAGNAME= c2b8306 + +PLIST_FILES= bin/${PORTNAME} +COMPILEINFO= ${OPSYS}${OSREL}-${ARCH}-${GH_TAGNAME} + +STRIP= # stripping can break go binaries + +do-build: + (cd ${WRKSRC} && ${SETENV} ${GO_ENV} go build -o ${PORTNAME} -ldflags "-X main.compileInfo=${COMPILEINFO}" main.go) + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + +.include diff --git a/devel/arduinoOTA/distinfo b/devel/arduinoOTA/distinfo new file mode 100644 index 000000000000..66838beb6131 --- /dev/null +++ b/devel/arduinoOTA/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1489629303 +SHA256 (arduino-arduinoOTA-1.2.0-c2b8306_GH0.tar.gz) = aa4ab21ce1d906793a4b9e1286fd4d38b2d255aa4a42111460c96bbe6d79b3b7 +SIZE (arduino-arduinoOTA-1.2.0-c2b8306_GH0.tar.gz) = 2549 diff --git a/devel/arduinoOTA/pkg-descr b/devel/arduinoOTA/pkg-descr new file mode 100644 index 000000000000..d1fb3e80839f --- /dev/null +++ b/devel/arduinoOTA/pkg-descr @@ -0,0 +1,3 @@ +Tool for performing OTA updates on Arduino boards and the ESP8266. + +WWW: https://www.arduino.cc