=== Packaging BoF === MANY THANKS FOR VOLUNTEERING IN DEBIAN! === GOBBY === install: sudo apt install gobby && gobby then open gobby and connect using "direct connection" (lower left corner) to gobby.debian.org/debconf17/bof/packaging_for_beginners Plain text (read only) https://gobby.debian.org/export/debconf17/bof/packaging_for_beginners === Packaging Tutorial === sudo apt install packaging-tutorial && evince /usr/share/doc/packaging-tutorial/packaging-tutorial.pdf === Debian Packaging === https://wiki.debian.org/Packaging === New Maintainer's Guide ===" https://www.debian.org/doc/manuals/maint-guide/ === Check for Debian packages === https://www.debian.org/distrib/packages === Debian Package tracker === https://tracker.debian.org/ === Getting help === JUST ASK! (We will all benefit from your questions!) IRC #debian-mentors Mailing-list: debian-mentors@lists.debian.org https://lists.debian.org/debian-mentors/ === Some handy tools === dch -- for manipulating debian changelogs dh_make -- (package dh-make) can create a new debian directory populated with (skeleton) files when you pacakge something new. ======== REBUILDING DASH =========== Add *these* lines to your source.list files: sudo nano /etc/apt/sources.list deb-src http://ftp.debian.org/debian main then: sudo apt update && sudo apt upgrade - sudo apt build-dep dash sudo apt install --no-install-recommends devscripts fakeroot mkdir /tmp/debian-tutorial ; cd /tmp/debian-tutorial apt source dash cd dash-* ls #look what's inside debian/ debuild -us -uc dch -i edit debian/rules: at the line where ./configure add: --disable-perl-regexp Rebuild the package dpkg-buildpackage -us -uc Check with lintian: lintian -i ../*changes Compare the source packages: debdiff ../*dsc Install the package dpkg -i ../grep_ REinstall the previous version sudo apt install --reinstall grep or sudo apt install grep ================================== === Github source === wget https://github.com///archive/master.tar.gz wget https://codeload.github.com///tar.gz/?dummy=/ e.g. wget https://codeload.github.com/GoogleCloudPlatform/compute-image-packages/tar.gz/20170718?dummy=/ or: wget https://github.com///archive/.tar.gz ===================== === Practical session 1: modifying the grep package === wget http://ftp.debian.org/debian/pool/main/g/grep/grep_2.20-4.1.dsc wget http://ftp.debian.org/debian/pool/main/g/grep/grep_2.12-2.debian.tar.bz2 wget http://ftp.debian.org/debian/pool/main/g/grep/grep_2.12.orig.tar.bz2 === Wrap up === 1- Download upstream source 2- Check upstream package version 3- Rename tarball to _.orig.tar.gz 4- cd - && dh_make 5- MANUALLY modify file where necessary (and delete if unnecessary) 6- Install dependencies 7- Build package with dpkg-buildpackage -us -uc (slide 28) 8- check the package with lintian (slide 29) 9- Intall package and check that is working locally 10- upload to debian (dput)