On 2023/04/07 10:13, [email protected] wrote:
> On Fri, Apr 7, 2023, at 07:51, A Tammy wrote:
> >> https://github.com/troyjfarrell/zerotier-one-openbsd-ports
> > Please attach it as a tarball here. CVS isn't necessary on the mailing
> > list.
>
> Attached.
diff below does:
- remove EPOCH/REVISION lines
- generally I think for GH_TAGNAME ports it's better to just set
PKGNAME and not reset DISTNAME
- draw more attention to the fairly restrictive license
(they will need to make a new release before the "change date" stuff
can apply, so drop that until it actually happens)
- set COMPILER, always needed for C++ ports (in this case, to
"base-clang ports-gcc" as it wants c++17)
- fix WANTLIB
- the doc install can be done in a single command
It probably also could do with an rc script, and possibly also a
pkg-readme describing basic usage if it's not obvious from upstream
docs (for correct style, base it on the template in
ports/infrastructure/templates).
diff --git net/zerotier-one/Makefile net/zerotier-one/Makefile
index a79b18a..f6e2956 100644
--- net/zerotier-one/Makefile
+++ net/zerotier-one/Makefile
@@ -1,36 +1,35 @@
COMMENT = software-defined virtual networking
-DISTNAME = zerotier-one-1.10.6
-EPOCH = 0
-REVISION = 0
-
-GH_ACCOUNT = zerotier
+GH_ACCOUNT = zerotier
GH_PROJECT = ZeroTierOne
GH_TAGNAME = 1.10.6
+PKGNAME = zerotier-one-${GH_TAGNAME}
+
CATEGORIES = net
HOMEPAGE = https://www.zerotier.com/
MAINTAINER = Troy J. Farrell <[email protected]>
-# SPDX-License-Identifier: BUSL-1.1
-# Business Source License 1.1
-# Change Date: 2025-01-01
-# Change License: Apache-2.0
+# Business Source License 1.1, see LICENSE.txt -
+# only grants "non-production use", "may not sell hosted services",
+# "may not create non-open-source derivative works",
+# "certain government uses are restricted"
+# https://raw.githubusercontent.com/zerotier/ZeroTierOne/dev/LICENSE.txt
PERMIT_PACKAGE = Yes
-WANTLIB += c c++ c++abi m pthread
+WANTLIB += ${COMPILER_LIBCXX} c m
-USE_GMAKE = Yes
+USE_GMAKE = Yes
+COMPILER = base-clang ports-gcc
+MAKE_FLAGS = CC="${CC}" CXX="${CXX}"
-DOCS = AUTHORS.md COPYING LICENSE.txt README.md RELEASE-NOTES.md SECURITY.md
+DOCS = AUTHORS.md COPYING LICENSE.txt README.md RELEASE-NOTES.md SECURITY.md
-# Put the documents into the fake, so they make it into the package.
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/zerotier-one
-.for i in ${DOCS}
- ${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/zerotier-one/${i}
-.endfor
+ cd ${WRKSRC}; \
+ ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/zerotier-one/
.include <bsd.port.mk>
diff --git net/zerotier-one/distinfo net/zerotier-one/distinfo
index 03960f6..a7e8077 100644
--- net/zerotier-one/distinfo
+++ net/zerotier-one/distinfo
@@ -1,2 +1,2 @@
-SHA256 (zerotier-one-1.10.6.tar.gz) =
PwtZ4MKQsYuT/d7h97knIJU42EqINDsvOsYaa/PIeRA=
-SIZE (zerotier-one-1.10.6.tar.gz) = 15259391
+SHA256 (ZeroTierOne-1.10.6.tar.gz) =
PwtZ4MKQsYuT/d7h97knIJU42EqINDsvOsYaa/PIeRA=
+SIZE (ZeroTierOne-1.10.6.tar.gz) = 15259391
diff --git net/zerotier-one/pkg/DESCR net/zerotier-one/pkg/DESCR
index c946d84..4822f70 100644
--- net/zerotier-one/pkg/DESCR
+++ net/zerotier-one/pkg/DESCR
@@ -5,3 +5,5 @@ secure software defined virtual networking is useful.
ZeroTier-One is the OS-level client service, which can join ZeroTier virtual
networks and serve as a network controller.
+
+Note the license restrictions including on some "production" use.