Otok public index

apotocki/libacl

apotocki/libacl 2.4.0 (r1, linux)

Library
libacl
Variant
linux, target linux
Channel
stable
Published
2026-11-14
Recipe source
https://github.com/otok-dev/recipes
904e7681451432e8e82c8325237c259217879533 in recipes/libacl/2.4/linux/
Recipe SHA-256
5dcb0c61c90dc3f23e7350d961e37af4ac6e501875800b1edf7f057046ea4f3e

Inputs

source.sha256e661131456d2708a01c614a0f400e11d7d1bfaeb6f3e74b75bb980b72f0161a3
source.urlhttps://download.savannah.nongnu.org/releases/acl/acl-2.4.0.tar.xz
resource attr.sha2566c8a2148a7b85043b68492bce43316b0e2e214fc4e628c7ede078e76e216330b
resource attr.urlhttps://download.savannah.nongnu.org/releases/attr/attr-2.6.0.tar.xz

Platforms

linux

Toolchains

Recipe files

build.lua 923 bytes · raw
-- 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 1503 bytes · raw
# 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"]