Skip to content

Commit

Permalink
contrib/libcgroup: new package (3.1.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
nekopsykose authored and q66 committed Aug 6, 2023
1 parent c70034d commit 23595b9
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 0 deletions.
1 change: 1 addition & 0 deletions contrib/libcgroup-devel
1 change: 1 addition & 0 deletions contrib/libcgroup-progs
56 changes: 56 additions & 0 deletions contrib/libcgroup/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
pkgname = "libcgroup"
pkgver = "3.1.0"
pkgrel = 0
build_style = "gnu_configure"
configure_args = [
"--disable-static",
"--disable-systemd",
]
hostmakedepends = [
"autoconf",
"automake",
"flex",
"libtool",
"pkgconf",
]
makedepends = [
"linux-headers",
"linux-pam-devel",
"musl-fts-devel",
]
checkdepends = ["bash"]
pkgdesc = "Cgroup library and commandline utilities for managing cgroups"
maintainer = "psykose <alice@ayaya.dev>"
license = "LGPL-2.1-only"
url = "https://github.com/libcgroup/libcgroup"
source = f"{url}/releases/download/v{pkgver}/libcgroup-{pkgver}.tar.gz"
sha256 = "976ec4b1e03c0498308cfd28f1b256b40858f636abc8d1f9db24f0a7ea9e1258"
# vis breaks symbols
hardening = []
# tests need.. sudo..
options = ["!check"]


def post_install(self):
# nuke suid
(self.destdir / "usr/bin/cgexec").chmod(0o755)


@subpackage("libcgroup-devel")
def _devel(self):
return self.default_devel()


@subpackage("libcgroup-progs")
def _progs(self):
return self.default_progs()


@subpackage("pam_cgroup")
def _pam(self):
self.pkgdesc = f"{pkgdesc} (PAM)"
self.depends = [f"{pkgname}={pkgver}-r{pkgrel}", "linux-pam"]
self.install_if = [f"{pkgname}={pkgver}-r{pkgrel}", "linux-pam"]
return [
"usr/lib/security",
]
1 change: 1 addition & 0 deletions contrib/pam_cgroup

0 comments on commit 23595b9

Please sign in to comment.