aboutsummaryrefslogtreecommitdiffstats
path: root/community/lxcfs/APKBUILD
blob: 85fad1ff0f9c5ecce87ab62cac13e8e3ea0eb153 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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
50
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=lxcfs
pkgver=3.1.2
pkgrel=2
pkgdesc="FUSE filesystem for LXC"
url="https://linuxcontainers.org/lxcfs"
arch="all"
license="Apache-2.0"
depends="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() {
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--with-init-script=openrc
	make
}

check() {
	make check
}


package() {
	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="51659700368f8e91841592910ad7f42b6b0e960873c10beb4f6f2c0dfa9971f6e7e02a4b1cb667246f4c50844c0fe5393d7c4b6d527df1b827b47197514a8720  lxcfs-3.1.2.tar.gz
71df316b1aaf1a0fadc230473a66c0be4d201d706481f1042c353b79fc629e9e681ec4fe0dfb113370e00d3f40175b0d7759fdcdcce57cf1d2db585068aa6e8d  lxcfs.confd
dde4940c39585cac27b1ec01ea9e8682c9fcac19ccf800f04336a20257dab0cee434942f9256783d92ae3a99e7e6edc4de630bbca511e17534c97444ca492f6e  lxcfs.initd
16c65a10b2b95a85ea21d2cb44a45c9c7faf1e22c8c438c7325be96025588834a528544598a91facc13fa93cc46f6c4534fa2ca6bb58b152a26f1ced94b18f16  README.alpine
003702bad354bf0499449022a364a822e52e752cfb5491c9983b8f5d5160d53fbf598bdb7e7c6e7eab9544384ac79586552c3bb26463bd189e485909d884882b  lxcfs-subdir.patch"