# Contributor: Carlo Landmeter # Maintainer: Stuart Cardall pkgname=lxcfs pkgver=3.0.1 pkgrel=0 pkgdesc="FUSE filesystem for LXC" url="https://linuxcontainers.org/lxcfs" arch="all" license="Apache-2.0" depends="cgmanager shadow-uidmap uidmapshift" makedepends="fuse-dev linux-headers help2man" subpackages="$pkgname-doc $pkgname-openrc" source="https://linuxcontainers.org/downloads/lxcfs/lxcfs-$pkgver.tar.gz lxcfs.confd lxcfs.initd README.alpine lxcfs-subdir.patch " builddir="$srcdir/lxcfs-$pkgver" build() { cd "$builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --with-init-script=openrc make } check() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install install -m755 -D "$srcdir"/$pkgname.initd \ "$pkgdir"/etc/init.d/$pkgname install -m644 -D "$srcdir"/$pkgname.confd \ "$pkgdir"/etc/conf.d/$pkgname install -m644 -D "$srcdir"/README.alpine \ "$pkgdir"/usr/share/doc/lxcfs/README.alpine } sha512sums="b3533fb3b7909973a79ac8eddda0faefdec19dd7209fce8e0ea8fb90981c3c5a0d0154eadb9686abf688cddd6ed294e52f64e71c509d00c4f228cc21b00645e2 lxcfs-3.0.1.tar.gz 71df316b1aaf1a0fadc230473a66c0be4d201d706481f1042c353b79fc629e9e681ec4fe0dfb113370e00d3f40175b0d7759fdcdcce57cf1d2db585068aa6e8d lxcfs.confd b4e3bb76f4720d74c768c44c377665ad40e92da7332efebbf9100b6164e4e81214921c751d8ecd14dcef85c22cfa79bacf7e444d8159e93c719ff81ce2e9ba1c lxcfs.initd 16c65a10b2b95a85ea21d2cb44a45c9c7faf1e22c8c438c7325be96025588834a528544598a91facc13fa93cc46f6c4534fa2ca6bb58b152a26f1ced94b18f16 README.alpine 003702bad354bf0499449022a364a822e52e752cfb5491c9983b8f5d5160d53fbf598bdb7e7c6e7eab9544384ac79586552c3bb26463bd189e485909d884882b lxcfs-subdir.patch"