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

36 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"
PKG_VERSION="1.10.6"
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/
mkdir -p ${INSTALL}/usr/lib/systemd/system
cp -R ${PKG_DIR}/system.d/zerotier-one.service ${INSTALL}/usr/lib/systemd/system/
mkdir -p ${INSTALL}/etc/profile.d/
cp -R ${PKG_DIR}/profile.d/95-zerotier ${INSTALL}/etc/profile.d/
2023-05-09 11:25:30 +00:00
}