I just wrote it yesterday, but here is a python script that when run in Debian will build an ISO with the .deb files created by Davith...
You will also have to download Davith's gpg key from here: https://groups.google.com/forum/#!topic/qubes-devel/Jdqd_Cn1Gwg
Tim
def printHelp():
print("""
#qubes-tools-build [OPTIONS]
This is a tool to build the .deb packages required by qubes-tools-install. In order to install the qubes vmside utilities in debian, you should first run qubes-tools-build in some throw-away debian HVM, you will now have an .iso file.
THIS FILE MUST BE COPIED TO AN APPVM!!!!!
Once you have copied the iso to an appvm you can use in dom0 as follows:
$ qvm-start appvm --cdrom=debian-qubes-tools-build-vm:/home/user/qubes-tools-debian/qubes-tools-debian.iso
Options
--help Print this message.
""")
if "--help" in sys.argv or "-h" in sys.argv or "help" in sys.argv:
printHelp()
sys.exit()
if not os.geteuid() == 0:
sys.exit("This script must be run as root.")
print("Ensuring that the build-depends are installed.")
subprocess.call(["apt-get","install","-qqy","git","git-buildpackage","quilt","libxen-dev","genisoimage"])
print("Importing Davith's GPG key.")
subprocess.call(["gpg","--import","davith-qubes-debian-key.asc"])
def cloneRepo(repoURL):
subprocess.call(["git","clone",repoURL])
repos = ["qubes-core-vchan-xen","qubes-linux-kernel","qubes-linux-utils","qubes-core-agent-linux","qubes-gui-common"]
for repo in repos:
cloneRepo("http://dsg.is/qubes/"+repo+".git")
cwd = os.getcwd()
for repo in repos:
os.chdir(os.path.join(cwd,repo))
subprocess.call(["git","checkout","-b","upstream","remotes/origin/upstream"])
subprocess.call(["git","checkout","master"])
subprocess.call(["git-buildpackage","--git-upstream-tag=v%(version)s","-us","-uc"])
# Create an ISO containing the newly built deb files.
os.chdir(cwd)
debfiles = []
for file in os.listdir(cwd):
if file.endswith(".deb"):
debfiles.append(file)
subprocess.call(["genisoimage","-o","qubes-tools-debian.iso"]+debfiles)
Tim
My current work can be tried out here https://github.com/timthelion/qubes-tools-debian . It currently leads you through building and installing Davith's deb packages. However this isn't "done" and it's not fully working. Please watch the discussion here: https://groups.google.com/forum/#!topic/qubes-devel/Jdqd_Cn1Gwg
Timothy