This commit is contained in:
Disassembler 2018-09-14 23:12:07 +02:00
parent d141fff4c1
commit 433e23022a
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499

View File

@ -1,35 +1,35 @@
#!/bin/sh #!/bin/sh
apk --no-cache add build-base gzip libcap-dev lvm2 util-linux automake autoconf libtool lua5.3-dev linux-headers bash tar docbook2x libseccomp-dev python3-dev dnsmasq py3-setuptools git xz apk --no-cache add build-base gzip libcap-dev lvm2 util-linux automake autoconf libtool lua5.3-dev linux-headers bash tar docbook2x libseccomp-dev python3-dev dnsmasq py3-setuptools git xz
git clone --depth=1 https://github.com/lxc/lxc.git git clone --depth=1 https://github.com/lxc/lxc.git
cd lxc cd lxc
./autogen.sh ./autogen.sh
./configure \ ./configure \
--prefix=/usr \ --prefix=/usr \
--sysconfdir=/etc \ --sysconfdir=/etc \
--localstatedir=/var \ --localstatedir=/var \
--disable-apparmor \ --disable-apparmor \
--with-distro=alpine \ --with-distro=alpine \
--disable-werror --disable-werror
make -j $(getconf _NPROCESSORS_ONLN) make -j $(getconf _NPROCESSORS_ONLN)
mkdir /tmp/lxc mkdir /tmp/lxc
make DESTDIR=/tmp/lxc install make DESTDIR=/tmp/lxc install
cd /tmp/lxc cd /tmp/lxc
rm -rf usr/include/ rm -rf usr/include/
rm -rf usr/lib/liblxc.a rm -rf usr/lib/liblxc.a
rm -rf usr/lib/liblxc.la rm -rf usr/lib/liblxc.la
rm -rf usr/lib/pkgconfig/ rm -rf usr/lib/pkgconfig/
rm -rf usr/share/doc/ rm -rf usr/share/doc/
rm -rf usr/share/lxc/selinux/ rm -rf usr/share/lxc/selinux/
rm -rf usr/share/lxc/templates/ rm -rf usr/share/lxc/templates/
rm -rf usr/share/man/ rm -rf usr/share/man/
find . | xargs -n 1 strip -s find . | xargs -n 1 strip -s
tar cf - * | xz -9 -c - >../lxc.tar.xz tar cf - * | xz -9 -c - >../lxc.tar.xz