Skip to content

Commit 5763791

Browse files
T3RR7Timur Chernykh
andauthored
[libcgroup] added new port (#39647)
Co-authored-by: Timur Chernykh <[email protected]>
1 parent b593af9 commit 5763791

File tree

4 files changed

+63
-0
lines changed

4 files changed

+63
-0
lines changed

ports/libcgroup/portfile.cmake

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
vcpkg_download_distfile(PATCH_FIX_SYSTEMD_HEADER_INSTALLATION
2+
URLS https://github.com/t43rr7/libcgroup/commit/592dcdcf243576bd2517d3da9bc18990de08e37e.patch?full_index=1
3+
SHA512 0977e0b32119d1938ce2af6687ff31f6349aa6189307041d1249967e688ed9d84bc133ef270eb3d474a81644dd2152213c8605c6bd9a585c880fef0e026170fa
4+
FILENAME 0000-fix-systemd-header-installation.patch
5+
)
6+
7+
vcpkg_from_github(
8+
OUT_SOURCE_PATH SOURCE_PATH
9+
REPO libcgroup/libcgroup
10+
SHA512 29fb7f5c795080cafc27ab99f2f3d7683933515840226564e047605e41a76f7ca31b48c8c9e8e1963eb808e3fc82206ea6ad550c80dcfb745b5cb7425e2875a9
11+
REF "v${VERSION}"
12+
HEAD_REF master
13+
PATCHES
14+
"${PATCH_FIX_SYSTEMD_HEADER_INSTALLATION}"
15+
)
16+
17+
message(STATUS "${PORT} currently requires the following libraries from the system package manager:\n"
18+
"\t- <autoconf>\n"
19+
"\t- <automake>\n"
20+
"\t- <libtool>\n\n"
21+
"It can be installed with your package manager"
22+
)
23+
24+
vcpkg_configure_make(
25+
SOURCE_PATH "${SOURCE_PATH}"
26+
AUTOCONFIG
27+
OPTIONS
28+
--enable-tools=no
29+
--enable-python=no
30+
--enable-tests=no
31+
--enable-samples=no
32+
--enable-systemd=no
33+
--enable-pam=no
34+
)
35+
36+
vcpkg_install_make()
37+
vcpkg_fixup_pkgconfig()
38+
39+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
40+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
41+
42+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")

ports/libcgroup/vcpkg.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "libcgroup",
3+
"version": "3.1.0",
4+
"description": "Library for working with cgroup",
5+
"homepage": "https://github.com/libcgroup/libcgroup",
6+
"license": "LGPL-2.1-only",
7+
"supports": "linux"
8+
}

versions/baseline.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4276,6 +4276,10 @@
42764276
"baseline": "1.13",
42774277
"port-version": 4
42784278
},
4279+
"libcgroup": {
4280+
"baseline": "3.1.0",
4281+
"port-version": 0
4282+
},
42794283
"libconfig": {
42804284
"baseline": "1.7.3",
42814285
"port-version": 5

versions/l-/libcgroup.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"versions": [
3+
{
4+
"git-tree": "c729cc038b705fdf523ff0ee17ae6d3cc9f08805",
5+
"version": "3.1.0",
6+
"port-version": 0
7+
}
8+
]
9+
}

0 commit comments

Comments
 (0)