Skip to content

Instantly share code, notes, and snippets.

@ghetzel
Created May 2, 2015 01:18
Show Gist options
  • Save ghetzel/75f3e49db86a06f329ad to your computer and use it in GitHub Desktop.
Save ghetzel/75f3e49db86a06f329ad to your computer and use it in GitHub Desktop.
libvirt autodeb
#!/bin/bash
apt-get install -y libxml2-dev libgnutls-dev libyajl-dev libnl-dev pkg-config libdevmapper-dev libcurl4-gnutls-dev python-dev lxc-dev libxen-dev
[ -d pkg ] && rm -rf pkg
./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-esx=yes --with-lxc=yes --with-xen=yes
make
make install DESTDIR=$PWD/pkg
[ -f libvirt_0.9.10_amd64.deb ] && rm -f libvirt_0.9.10_amd64.deb
fpm -s dir \
-t deb \
-n libvirt \
-v 0.9.10 \
--deb-user root \
--deb-group root \
--replaces libvirt-bin \
--replaces libvirt-dev \
--replaces python-libvirt \
--replaces libvirt0 \
--replaces libvirt0-dbg \
-d adduser \
-d bridge-utils \
-d cgroup-lite \
-d dbus \
-d dmidecode \
-d dnsmasq-base \
-d ebtables \
-d gawk \
-d gettext-base \
-d iproute \
-d iptables \
-d libblkid1 \
-d libcap-ng0 \
-d libdevmapper1.02.1 \
-d libgnutls26 \
-d libnl-3-200 \
-d libnuma1 \
-d libparted0debian1 \
-d libpcap0.8 \
-d libpciaccess0 \
-d libreadline6 \
-d libudev0 \
-d libxml2 \
-d libxml2-utils \
-d libyajl1 \
-d logrotate \
-d netcat-openbsd \
-d parted \
-d pm-utils \
-d qemu \
-d qemu-kvm \
-d radvd \
-C pkg etc usr var
@ghetzel
Copy link
Author

ghetzel commented May 2, 2015

Builds a libvirt 0.9.10 DEB from source on/for Ubuntu 12.04 Server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment