blob: 7ccaa1384f4a81a6b4e922cb5905026f2e38de14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 2021-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
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="
app-misc/c_rehash
dev-libs/openssl:=
net-misc/curl:=
>=net-misc/sysrepo-2.2.60
>=net-libs/libnetconf2-2.1.31
net-libs/libssh:=
>=net-libs/libyang-2.1.55"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
src_configure() {
local mycmakeargs=(
-DGENERATE_HOSTKEY=OFF
-DINSTALL_MODULES=OFF
-DMERGE_LISTEN_CONFIG=OFF
-DENABLE_TESTS=OFF
-DENABLE_VALGRIND_TESTS=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"
}
|