apotocki/libacl
libacl, the library of POSIX access control lists of Linux file systems.
- Library
- libacl
- Newest
- 2.4.0 (r1, linux)
- Targets
- linux
- License
- LGPL-2.1-or-later
- Homepage
- https://savannah.nongnu.org/projects/acl
- Keywords
- acl, permissions, filesystem, linux
Use it
In otok.toml:
[deps.libacl]
recipe = "apotocki/libacl"
version = "~> 2.4.0"
Versions
| Version | Target | Channel | Published | Status |
|---|---|---|---|---|
| 2.4.0 (r1, linux) | linux | stable | 2026-11-14 |
2.4.0 (r1, linux)
Platforms
linux
Toolchains
make { default-recipe = "apotocki/make", version = ">= 3.81" }
Recipe files
build.lua
-- The acl package's own configure and make, libacl only: the library, its two headers (sys/acl.h, acl/libacl.h) and
-- libacl.pc, without gettext and the getfacl, setfacl and chacl programs. attr/error_context.h comes from the attr
-- resource. What it installs: libacl.a, or libacl.so with its links.
function build(slice, options, deps)
local attr_include = slice.source .. "/otok-attr-include"
otok.copy(slice.resources.attr .. "/include/error_context.h", attr_include .. "/attr/error_context.h")
otok.autotools{
args = { "--disable-nls", "--disable-rpath", "CPPFLAGS=-I" .. attr_include },
targets = { "libacl.la", "install-libLTLIBRARIES", "install-data-local", "install-pkgconfDATA" },
}
local p = slice.prefix
local lib = otok.glob(slice.linkage == "static" and "lib/libacl.a" or "lib/libacl.so", p)[1]
return { libraries = { acl = lib }, headers = p .. "/include" }
end
recipe.toml
# The otok recipe of libacl (https://github.com/apotocki/otok): libacl, the POSIX 1003.1e draft ACL library of the acl package,
# for Linux, from the release archive, with its own configure and make, the library and its headers only (no getfacl,
# setfacl, chacl, gettext or documentation); static or dynamic. The library is under the GNU LGPL 2.1; the tools left out
# are under the GNU GPL 2.
[recipe]
api = 1
library = "libacl"
name = "libacl"
version = "2.4.0"
revision = 1
license = "LGPL-2.1-or-later"
license-files = ["doc/COPYING", "doc/COPYING.LGPL"]
homepage = "https://savannah.nongnu.org/projects/acl"
description = "libacl, the library of POSIX access control lists of Linux file systems."
keywords = ["acl", "permissions", "filesystem", "linux"]
linkage = ["static", "dynamic"]
[source]
url = "https://download.savannah.nongnu.org/releases/acl/acl-2.4.0.tar.xz"
sha256 = "e661131456d2708a01c614a0f400e11d7d1bfaeb6f3e74b75bb980b72f0161a3"
# attr/error_context.h, the one header of the attr package that libacl is compiled with (its installed headers only declare
# the struct); nothing of libattr is linked.
[[resource]]
name = "attr"
url = "https://download.savannah.nongnu.org/releases/attr/attr-2.6.0.tar.xz"
sha256 = "6c8a2148a7b85043b68492bce43316b0e2e214fc4e628c7ede078e76e216330b"
[platforms]
supported = ["linux"]
build-on = ["linux/gcc", "linux/clang"]
[toolchains]
make = { version = ">= 3.81", default-recipe = "apotocki/make" }
[[product]]
name = "ACL"
libraries = ["acl"]