-
Notifications
You must be signed in to change notification settings - Fork 27
Ubuntu packaging guide
Mingwei Zhang edited this page Mar 25, 2019
·
15 revisions
Mostly wandio dependecies:
sudo apt-get install zlib1g-dev libbz2-dev libcurl4-openssl-dev debhelper autotools-dev
- download bgpstream tar file
- type command similar to
bzr dh-make hello 2.10 hello-2.10.tar.gzto extract tar file and create temporarydebian/directory- select
singlefor package type
- select
- remove
*ex*EXfiles - modify
controlfile - modify
rulesfile (mainly to avoid dependency error) - build package by
dpkg-buildpackage -us -uc - examine package content by
dpkg --contents ../PACKAGE.deb
Source: bgpstream
Section: Network
Priority: optional
Maintainer: Mingwei Zhang <mingwei@caida.org>
Build-Depends: debhelper (>=9),autotools-dev
Standards-Version: 3.9.6
Homepage: https://bgpstream.caida.org
Package: bgpstream
Architecture: any
# Depends: ${shlibs:Depends}, ${misc:Depends}
Description: BGPStream main package
BGPStream - An open-source software framework for live and historical BGP data analysis,
supporting scientific research, operational monitoring, and post-event analysis.
#!/usr/bin/make -f
%:
dh $@ --with autotools_dev
override_dh_shlibdeps:
dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
https://github.com/freight-team/freight
remove package from freight: https://oitibs.com/remove-package-from-freight/
echo "deb http://hammer02.caida.org:18080 $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/bgpstream.list
sudo wget -O /etc/apt/trusted.gpg.d/bgpstream.gpg http://hammer02.caida.org:18080/keyring.gpg
sudo apt-get update
BGPStream 1.2.0 consists of three sub-packages:
-
bgpstream1-tools: includesbgpreaderandbgpcorsarobinaries -
libbgpstream1: includes run-time shared libraries, which is also depended bybgpstream-tools -
libbgpstream1-dev: includes C header files, which is dependended bypybgpstreamproject
To install any of the package, you will need to first add freight repository to
your local system (the step above). Then you can just standard apt-get install
command to install any of the subpackages. The dependencies should be
automatically taken care of.
sudo apt-get -y install bgpstream1-tools
- check out github code with
debianfolder - run
autogen.shfirst - install necessary dependencies:
libwandio1-dev(4.0) - run
debuild -uc -us
Build guide:
- https://www.debian.org/doc/manuals/maint-guide/build.en.html
- http://packaging.ubuntu.com/html/packaging-new-software.html
Detailed guide on writing the debian subfolder files:
- https://www.debian.org/doc/manuals/maint-guide/dreq.en.html
- http://codica.pl/2008/10/12/making-debian-library-package-with-dh_make/
Disable wandio dependency check:
What's in the debian directory:
Create PPA: