APKBUILD 2.6 KB
Newer Older
1 2 3 4
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=lxcfs
pkgver=2.0.3
5
pkgrel=3
6 7 8 9
pkgdesc="FUSE filesystem for LXC"
url="https://linuxcontainers.org/lxcfs"
arch="all"
license="Apache 2.0"
10
depends="cgmanager shadow-uidmap uidmapshift"
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
makedepends="fuse-dev linux-pam-dev linux-headers help2man"
subpackages="$pkgname-pam $pkgname-doc"
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 || return 1
        make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -m755 -D "$srcdir"/$pkgname.initd \
		"$pkgdir"/etc/init.d/$pkgname || return 1
	install -m644 -D "$srcdir"/$pkgname.confd \
		"$pkgdir"/etc/conf.d/$pkgname || return 1
	install -m644 -D "$srcdir"/README.alpine \
		"$pkgdir"/usr/share/doc/lxcfs/README.alpine || return 1
}

pam() {
	pkgdesc="$pkgdesc (pam plugin)"
	mkdir -p "$subpkgdir"/lib
	mv "$pkgdir"/lib/security "$subpkgdir"/lib/ || return 1
}

md5sums="8d79c575d0dc5d127776370eceb0f58b  lxcfs-2.0.3.tar.gz
6d7943272d6b71ab7b93e93c55e42ee9  lxcfs.confd
50
3533f3d49a5b0b83e8f8b8f20ea507fa  lxcfs.initd
51 52 53 54
722e7a773283170910f5c9b40fb83610  README.alpine
14531d992c3c3e731ee596ff86e91829  lxcfs-subdir.patch"
sha256sums="dd94e19bff202cb9fe2aa7d244b2cccf53cf5d7f6dd76c815e1161e3ba4ce0df  lxcfs-2.0.3.tar.gz
d8915d4635b675897895c379c892250f6c2bb55515a3b59cad09b92c35264359  lxcfs.confd
55
b7f211fd76e52da9a03eeb501d457ddc6a65f9373cbd1cf290ef1db81ced8643  lxcfs.initd
56 57 58 59
a458f5561d8f1404ac7547bd73f7bf7d56898322d04268f31a7ee3ffdd5e36aa  README.alpine
ef3d2848e534b3db9267efbb5bc515e0ecd6a768cdf8de928bccac21c26add9e  lxcfs-subdir.patch"
sha512sums="1bca2dc88a4551c90e9760ad8d3c7548126d7803040ddab3ac24fda2d602ec0d34ebf78bbd2b4cd5941edba3ccfe135e86d257f0dc2b89617c7ca876b3dda4bb  lxcfs-2.0.3.tar.gz
71df316b1aaf1a0fadc230473a66c0be4d201d706481f1042c353b79fc629e9e681ec4fe0dfb113370e00d3f40175b0d7759fdcdcce57cf1d2db585068aa6e8d  lxcfs.confd
60
b4e3bb76f4720d74c768c44c377665ad40e92da7332efebbf9100b6164e4e81214921c751d8ecd14dcef85c22cfa79bacf7e444d8159e93c719ff81ce2e9ba1c  lxcfs.initd
61 62
16c65a10b2b95a85ea21d2cb44a45c9c7faf1e22c8c438c7325be96025588834a528544598a91facc13fa93cc46f6c4534fa2ca6bb58b152a26f1ced94b18f16  README.alpine
f7589ef65b3e01de0bb9e55c8ae06ae8124196b29b444006f3beaba308a8bebccad38e11c9c74f705dcad826aa6de0a10830053e0b025c640b7337804c48c056  lxcfs-subdir.patch"