distribution/packages/network/zerotier-one/package.mk

35 lines
1.1 KiB
Makefile
Raw Normal View History

2023-05-09 11:25:30 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2022-present kkoshelev (https://github.com/kkoshelev)
# Copyright (C) 2022-present fewtarius (https://github.com/fewtarius)
2023-05-11 10:46:18 +00:00
# Copyright (C) 2023-present NeoTheFox (https://github.com/NeoTheFox)
2023-05-09 11:25:30 +00:00
PKG_NAME="zerotier-one"
2023-11-13 11:49:14 +00:00
PKG_VERSION="1.12.2"
2023-05-09 11:25:30 +00:00
PKG_SITE="https://www.zerotier.com"
PKG_URL="https://github.com/zerotier/ZeroTierOne/archive/refs/tags/${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain nlohmann-json"
PKG_SHORTDESC="A Smart Ethernet Switch for Earth"
PKG_TOOLCHAIN="manual"
pre_unpack() {
mkdir -p ${PKG_BUILD}
tar --strip-components=1 -xf $SOURCES/${PKG_NAME}/${PKG_NAME}-${PKG_VERSION}.tar.gz -C ${PKG_BUILD} ZeroTierOne-${PKG_VERSION}
2023-05-09 11:25:30 +00:00
}
make_target() {
cd ${PKG_BUILD}
make -f make-linux.mk ZT_SSO_SUPPORTED=0 one
}
makeinstall_target() {
make DESTDIR=${INSTALL} install
rm -rf ${INSTALL}/usr/share/man/
install -Dm755 ${PKG_DIR}/scripts/zerotier-join.sh ${INSTALL}/usr/sbin/
2023-05-09 11:25:30 +00:00
mkdir -p ${INSTALL}/usr/lib/systemd/system
install -Dm644 ${PKG_DIR}/system.d/zerotier-one.service ${INSTALL}/usr/lib/systemd/system/
2023-05-09 11:25:30 +00:00
}