# Template file for 'libcgroup' pkgname=libcgroup version=3.0.0 revision=1 build_style=gnu-configure configure_args="--sbindir=/usr/bin --enable-pam-module-dir=/usr/lib/security --enable-tests=no" hostmakedepends="flex" makedepends="pam-devel" short_desc="Library that abstracts the control group file system in Linux" maintainer="Orphaned " make_dirs="/etc/cgconfig.d 0755 root root" license="LGPL-2.1-only" homepage="https://github.com/libcgroup/libcgroup" distfiles="https://github.com/libcgroup/libcgroup/releases/download/v${version%.*}/libcgroup-${version}.tar.gz" checksum=8d284d896fca1c981b55850e92acd3ad9648a69227c028dda7ae3402af878edd case "$XBPS_TARGET_MACHINE" in *-musl) # Add musl-fts implementation makedepends+=" musl-fts-devel" LDFLAGS="-lfts" ;; esac libcgroup-utils_package() { short_desc+=" - utilities" conf_files="/etc/cgrules.conf /etc/cgconfig.conf" system_groups="cgred" pkg_install() { vmove usr/bin vmove usr/share/man vconf samples/config/cgrules.conf vconf samples/config/cgconfig.conf vsv cgred } } libcgroup-devel_package() { depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/lib/pkgconfig vmove "usr/lib/*.so" } }