Difference between revisions of "Ubuntu create .deb-Package Howto"

From Cactus Howto
Jump to navigationJump to search
Line 25: Line 25:
#sudo pbuilder create --distribution squeeze --mirror ftp://ftp.us.debian.org/debian/ --debootstrapopts "--keyring=/usr/share/keyrings/debian-archive-keyring.gpg"
#sudo pbuilder create --distribution squeeze --mirror ftp://ftp.us.debian.org/debian/ --debootstrapopts "--keyring=/usr/share/keyrings/debian-archive-keyring.gpg"
sudo pbuilder create --override-config --distribution wheezy --mirror http://ftp.de.debian.org/debian/ --debootstrapopts "--keyring=/usr/share/keyrings/debian-archive-keyring.gpg"
sudo pbuilder create --override-config --distribution wheezy --mirror http://ftp.de.debian.org/debian/ --debootstrapopts "--keyring=/usr/share/keyrings/debian-archive-keyring.gpg"


== config ==

cat control

<pre>

Source: itsecorg
Section: doc
Priority: extra
Maintainer: Tim Purschke <tmp@cactus.de>
Build-Depends: debhelper (>= 5)

Package: itsecorg
Architecture: all
Depends: ssh, openssl, ntp, ntpdate
Depends: libdbi-perl, libdbd-pg-perl, libdate-calc-perl, psmisc, libnet-cidr-perl, libsys-syslog-perl, libexpect-perl, postgresql
Depends: apache2, libapache2-mod-php5, php5-pgsql, php-pear
Depends: postgresql (>=8.0)
Conflicts:
Replaces:
Provides: itsecorg
Description: IT Security Organizer
helps to report on all your firewall rulesets
helps to document any changes done and link them to a ticket / request number

</pre>

Revision as of 13:22, 7 November 2014

create package builder environment

Documentation:

Setup Environment

  • install neccessary packages
sudo apt-get install pbuilder debootstrap devscripts ccache gdebi-core
  • create environment (creates tar archive /var/cache/pbuilder/base.tgz)
sudo pbuilder create --debootstrapopts --variant=buildd 
  • Update every time before building packages (or on a daily basis)
sudo pbuilder update
  • Use gdebi for dependencies:
cat ~/.pbuilderrc 
#export http_proxy=http://proxy.int.cactus.de:8080/
PBUILDERSATISFYDEPENDSCMD="/usr/lib/pbuilder/pbuilder-satisfydepends-gdebi"
COMPONENTS="main restricted universe multiverse"
  • update pbuilder environment:
sudo pbuilder update --override-config 
  • multiple pBuilder: Falls man sowohl Backports als auch Pakete für die Entwicklungsversion erstellt möchte man parallel mehrere pBuilder-Umgebungen haben. Es ist auch möglich Pakete für Debian {en} zu bauen.
sudo DIST=wheezy pbuilder create
  • If you want to build Debian packages on Ubuntu, you need to install Debian archive keys and add Debian distribution name, Debian mirror and key location to pbuilder command line like this:
sudo apt-get install debian-archive-keyring
#sudo pbuilder create --distribution squeeze --mirror ftp://ftp.us.debian.org/debian/ --debootstrapopts "--keyring=/usr/share/keyrings/debian-archive-keyring.gpg"
sudo pbuilder create --override-config --distribution wheezy --mirror http://ftp.de.debian.org/debian/ --debootstrapopts "--keyring=/usr/share/keyrings/debian-archive-keyring.gpg"


config

cat control


Source: itsecorg
Section: doc
Priority: extra
Maintainer: Tim Purschke <tmp@cactus.de>
Build-Depends: debhelper (>= 5)

Package: itsecorg
Architecture: all
Depends: ssh, openssl, ntp, ntpdate
Depends: libdbi-perl, libdbd-pg-perl, libdate-calc-perl, psmisc, libnet-cidr-perl, libsys-syslog-perl, libexpect-perl, postgresql
Depends: apache2, libapache2-mod-php5, php5-pgsql, php-pear
Depends: postgresql (>=8.0)
Conflicts:
Replaces:
Provides: itsecorg
Description: IT Security Organizer
 helps to report on all your firewall rulesets
 helps to document any changes done and link them to a ticket / request number