Advertisement
v1ral_ITS

notes

Mar 13th, 2019
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 6.08 KB | None | 0 0
  1. ![][icon]
  2.  
  3. ## Debreate - Debian Package Builder
  4.  
  5.  
  6. ### Table of Contents
  7. * [Description](#description)
  8. * [Dependencies](#dependencies)
  9. * [Installation](#installation)
  10. * [Standalone Use](#standalone-use)
  11. * [Links](#links)
  12. * [Other Pages](#other-pages)
  13.  
  14.  
  15. ### [Description](#table-of-contents)
  16.  
  17. Debreate is a utility to aid in creating [Debian (.deb)][wiki.deb] packages. Currently it only supports binary packaging which allows packaging of pre-compiled or scripted applications, media, artwork, etc. for personal distribution. Plans for using backends such as [dh_make][pkg.dh-make] & debuild (available in [devscripts][pkg.devscripts] package) for creating source packages are in the works. But source packaging can be quite different & is a must if you want to get your packages into a distribution's official repositories or a [Launchpad][launchpad] [Personal Package Archive (PPA)][wiki.ppa]. The latter from which [Debreate has recently become available][ppa.debreate].
  18.  
  19. The definition of Debian source packages may be a little confusing (as it was for me) for those that are new to the Debian format, or perhaps packaging in general. Debian source packages are essentially no different than common tarballed source archives & they can be available in many of the popular formats such as Gzip (.tar.gz), BZip2 (.tar.bz2), XZ (tar.xz), Lzip (tar.lzip), etc. To build Debian binary packages from source code, it must first be "debianized". Debianization involves creating a directory called 'debian' within the source root folder. Files with instructions, meta data, & more are placed within to instruct Debian tools, such as *debuild*, on how the source must be compiled & packaged into the final .deb. This is the process that must be taken to host software on repositories such as Lauchpad's PPA system. The debianized source is uploaded, then built & packaged on-site automatically. The resulting binary package (.deb) is published to the target PPA.
  20.  
  21.  
  22. ### [Dependencies](#table-of-contents)
  23.  
  24. Debreate needs these packages installed to run:
  25. * [python][pkg.python] (version 2.7 is supported)
  26.     * The goal is to eventually port to Python 3.
  27.         * Currently, wxPython only supports up to version 2.7.
  28. * [python-wxgtk3][pkg.python-wxgtk3] or [python-wxgtk2.8][pkg.python-wxgtk2.8] (wxPython)
  29. * [python-wxversion][pkg.python-wxversion]
  30. * [dpkg][pkg.dpkg]
  31.     * If you are running a Debian/Ubuntu based system, then this is most likely already installed.
  32. * [fakeroot][pkg.fakeroot]
  33. * [coreutils][pkg.coreutils]
  34.  
  35. These packages are recommended & enable some features:
  36. * [lintian][pkg.lintian]
  37.  
  38.  
  39. ### [Installation](#table-of-contents)
  40.  
  41. The source uses a generic Makefile for "building" (because I don't know how to use [GNU Autotools][gnu-autotools] or [CMake][cmake] very well). The source is not actually built, but the Makefile simply installs the scripts onto the system. The plan is to eventually switch to the CMake build system, unless a better alternative is decided upon.
  42.  
  43. #### Generating the Makefile
  44.  
  45. A 'setup.py' script is used to generate the Makefile (this is not the same type of 'setup.py' that is used with [distutils][]). A python interpreter must be installed to run the script. From a terminal execute ***./setup.py*** from the source root dirctory then follow the prompts. If you want to bypass prompting & use the default settings execute ***./setup.py defaults***. The Makefile will be generated in the same directory.
  46.  
  47. #### Using the Makefile
  48.  
  49. Open a terminal in the root directory & execute ***make install***. To create a distribution package execute ***make dist***. To uninstall execute ***make uninstall***. For help & more options use ***make help***.
  50.  
  51. If you have [debuild][pkg.devscripts] installed, you can execute ***make deb-bin*** from the command line to build the debian package (.deb).
  52.  
  53.  
  54.  
  55. It is recommended to build the .deb package with ***make deb-bin*** & install via the system's package manager.
  56.  
  57.  
  58. ### [Standalone Use](#table-of-contents)
  59.  
  60. To run, launch the file named "init.py":
  61. * ***./init.py*** or ***python init.py*** (NOTE: Python 3.x is currently not supported)
  62.  
  63.  
  64. ### [Links](#table-of-contents)
  65. * [Homepage](https://antumdeluge.github.io/debreate-web)
  66. * [GitHub project page](https://github.com/AntumDeluge/debreate)
  67. * [SourceForge project page](https://sourceforge.net/projects/debreate)
  68. * [PPA][ppa.debreate]
  69. * [Development PPA][ppa.debreate-dev]
  70.  
  71.  
  72. ### [Other Pages](#table-of-contents)
  73. * [OpenDesktop](https://www.opendesktop.org/content/show.php?content=101776)
  74. * [FreewareFiles](http://www.freewarefiles.com/Debreate_program_56557.html)
  75. * [alternativeTo](http://alternativeto.net/software/debreate/)
  76.  
  77.  
  78.  
  79. [icon]: bitmaps/icon/64/logo.png
  80.  
  81. [launchpad]: https://launchpad.net/
  82. [wxpython]: https://wxpython.org/
  83.  
  84. [wiki.deb]: https://en.wikipedia.org/wiki/Deb_(file_format)
  85. [wiki.makefile]: https://en.wikipedia.org/wiki/Makefile
  86. [wiki.ppa]: https://en.wikipedia.org/wiki/Personal_Package_Archive
  87. [wiki.superuser]: https://en.wikipedia.org/wiki/Superuser
  88.  
  89. [src.debreate-unstable]: https://github.com/AntumDeluge/debreate/tree/unstable
  90.  
  91. [ppa.debreate]: https://launchpad.net/~antumdeluge/+archive/ubuntu/debreate
  92. [ppa.debreate-dev]: https://launchpad.net/~antumdeluge/+archive/ubuntu/debreate-dev
  93.  
  94. [pkg.coreutils]: http://packages.ubuntu.com/coreutils
  95. [pkg.devscripts]: http://packages.ubuntu.com/devscripts
  96. [pkg.dh-make]: http://packages.ubuntu.com/dh-make
  97. [pkg.dpkg]: http://packages.ubuntu.com/dpkg
  98. [pkg.fakeroot]: http://packages.ubuntu.com/fakeroot
  99. [pkg.gdebi]: http://packages.ubuntu.com/gdebi
  100. [pkg.gvfs-bin]: http://packages.ubuntu.com/gvfs-bin
  101. [pkg.lintian]: http://packages.ubuntu.com/lintian
  102. [pkg.python]: http://packages.ubuntu.com/python2.7
  103. [pkg.python-wxversion]: http://packages.ubuntu.com/python-wxversion
  104. [pkg.python-wxgtk2.8]: http://packages.ubuntu.com/python-wxgtk2.8
  105. [pkg.python-wxgtk3]: http://packages.ubuntu.com/python-wxgtk3
  106.  
  107. [ubu.wily.python-wxgtk]: http://packages.ubuntu.com/wily/python-wxgtk2.8
  108.  
  109. [cmake]: https://cmake.org/
  110. [distutils]: https://wiki.python.org/moin/Distutils
  111. [gnu-autotools]: https://en.wikipedia.org/wiki/GNU_Build_System
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement