You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
930 B
47 lines
930 B
# Copyright 2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit cmake
|
|
|
|
DESCRIPTION="Server for implementing NETCONF configuration management"
|
|
HOMEPAGE="https://github.com/CESNET/netopeer2"
|
|
SRC_URI="https://github.com/CESNET/netopeer2/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
RDEPEND="
|
|
dev-libs/openssl:=
|
|
net-misc/curl:=
|
|
>=net-misc/sysrepo-1.4.122:=
|
|
>=net-libs/libnetconf2-1.1.43:=
|
|
net-libs/libssh:=
|
|
>=net-libs/libyang-1.0.225:="
|
|
DEPEND="${RDEPEND}"
|
|
BDEPEND="virtual/pkgconfig"
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DGENERATE_HOSTKEY=OFF
|
|
-DINSTALL_MODULES=OFF
|
|
-DMERGE_LISTEN_CONFIG=OFF
|
|
)
|
|
|
|
cmake_src_configure
|
|
}
|
|
|
|
src_install() {
|
|
cmake_src_install
|
|
|
|
insinto /etc/netopeer2
|
|
doins -r scripts/.
|
|
}
|
|
|
|
pkg_postinst() {
|
|
elog "In order to do initial server setup please"
|
|
elog "run setup scripts located in /etc/netopeer2"
|
|
}
|