2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-09 16:36:25 +00:00
bench/installers/deb_package_build
2015-12-29 16:18:52 +03:00
..
debian updated postinst/postremove actions 2015-12-29 16:18:52 +03:00
bench_0.92.orig.tar.gz added source acrhive for debian package build 2015-12-24 03:08:29 +03:00
readme.md added acrhive instructions 2015-12-27 18:24:15 +03:00

To prepare your environment for building .deb package install instruments:
sudo apt-get install build-essential devscripts debhelper

Important: to build .deb package archive name must be in the format $(name)_$(version).orig.tar.gz
and directory within it must be named as $(name)_$(version)

This build uses dh-virtualenv. For installation please follow the [tutorial] (http://dh-virtualenv.readthedocs.org/en/0.10/tutorial.html)

To build debian package from scratch:

  1. unpack archive bench_0.92.orig.tar.gz:
    tar -xf bench_0.92.orig.tar.gz
  2. copy debian directory in there:
    cp -r debian/ bench_0.92/
  3. change directory:
    cd bench_0.92/
  4. run package build:
    dpkg-buildpackage -us -uc
  5. package is: ../bench_0.92_amd64.deb

    If you don't have gdebi installed, first you need to run:
    sudo apt-get install gdebi-core
    To install resulting package with all it's dependencies:
    sudo gdebi ../bench_0.92_amd64.deb
    Please note that name of package contains your architecture so for 32-bit machines name will differ.

    Current state: .deb package is installed without problems on all target systems with all dependencies. Build of .deb package fails on Debian8 with version conflict error (because of quilt format), but works on all other platforms.

Useful links: Introduction to Debian Packaging