source: debian-alt/doc/debian-build.txt @ aeded8c

Last change on this file since aeded8c was 3248a15, checked in by zzz <zzz@…>, 15 months ago

Debian: Update Bionic/Cosmic? to include patch for Jetty 9.4

  • Property mode set to 100644
File size: 4.7 KB
Line 
1To build a release:
2
3Make sure workspace revision matches what you want to release.
4
5# Make the source tarball
6# only if you didn't already do it for launchpad!
7# Otherwise make sure the i2p-0.9.xx.orig.tar.bz2 file is
8# in the dir above the source directory, and skip to next step
9ant debian-release-tarball
10
11# Following instructions (and filenames) are for unstable.
12# Repeat for each target.
13
14# Go to the source directory created by ant debian-release-tarball
15# Fix up the changelog
16cd i2p_0.9.xx-x-xxxxxxxx/
17ant debchange
18vi debian/changelog
19   change i2p_0.9.xx-x-xxxxxxxx-1 to i2p_0.9.xx-1
20   change UNRELEASED to stable
21   change comment to "New upstream version 0.9.xx"
22   fix your name and email
23# fix up the control and rules files as necessary
24# fix up the patches/ files as necessary
25
26# build the binary packages:
27ant debian-binary
28This will make the following files in .:
29  i2p-doc_0.9.xx-1_all.deb
30  i2p-router_0.9.xx-1_all.deb
31  i2p_0.9.xx-1_all.deb
32  libjbigi-jni_0.9.xx-1_amd64.deb
33Note that you won't have a libjbigi-jni_0.9.xx-1_i386.deb file,
34or one for any other architecture. Oh well.
35
36# copy up so they don't get deleted
37cp *.deb ..
38# remove symlink (fixme?)
39rm apps/susidns/src/lib/standard.jar
40
41# build the source package, which will be in ..
42# do gpg --list-keys to find your subkey id
43debuild -S -sa -kYOURSUBKEYID
44  (note: no space allowed in -kkeyid)
45This will make the following files in ..:
46  i2p_0.9.XX-1.dsc            (the GPG signature)
47  i2p_0.9.XX-1.debian.tar.xz  (basically the debian/ directory tarball)
48  i2p_0.9.XX-1_source.changes (the changelog text file)
49# now do the same for jessie and wheezy and precise (NO, don't, we will copy below)
50
51# scp the following files to the reprepro server:
52  i2p_0.9.XX-1.dsc            (the GPG signature)
53  i2p_0.9.XX-1.tar.xz  (basically the debian/ directory tarball)
54  i2p_0.9.XX-1_source.changes (the changelog text file)
55  i2p_0.9.XX.orig.tar.bz2            (the source tarball)
56  i2p-doc_0.9.xx-1_all.deb           (docs)
57  i2p-router_0.9.xx-1_all.deb        (binary)
58  i2p_0.9.xx-1_all.deb               (top-level package)
59  libjbigi-jni_0.9.xx-1_amd64.deb    (binary)
60
61
62ssh to reprepro server
63sudo su kytv (he owns the reprepro directories)
64
65reprepro includedeb stable i2p-doc_0.9.xx-1_all.deb
66reprepro includedeb stable i2p-router_0.9.xx-1_all.deb
67reprepro includedeb stable libjbigi-jni_0.9.xx-1_amd64.deb
68reprepro includedeb stable i2p_0.9.xx-1_all.deb
69# if you already got the source from launchpad
70# with reprepro update, skip this.
71reprepro includedsc stable i2p_0.9.XX-1.dsc
72
73# copy built packages from launchpad
74reprepro -v update precise
75reprepro -v update trusty
76reprepro -v update xenial
77reprepro -v update bionic
78reprepro -v update cosmic
79reprepro -v update disco
80reprepro -v update eoan
81# todo when set up
82# To add or remove distributions, edit /var/www/debian/conf/distributions
83# and /var/www/debian/conf/updates
84# and then: reprepro -v export foo (for new foo)
85# and then: reprepro -v update foo
86# If you remove, you must do: reprepro clearvanished
87
88
89# To copy precise to wheezy:
90# Note that syntax is reprepro copysrc TO FROM package!
91reprepro -v copysrc wheezy precise i2p
92
93# To copy trusty to jessie:
94# Note that syntax is reprepro copysrc TO FROM package!
95reprepro -v copysrc jessie trusty i2p
96
97# To copy bionic to stretch:
98# Note that syntax is reprepro copysrc TO FROM package!
99TODO bionic (now with jetty 9.4) is no longer compatible with stretch (with jetty 9.2),
100is trusty compatible with stretch?
101
102# To copy disco to sid:
103# Note that syntax is reprepro copysrc TO FROM package!
104reprepro -v copysrc sid disco i2p
105
106# install in the architectures not copied from ubuntu
107# 'flood' should do this but forgot how, can't make it work any more
108reprepro -v -A 'armel|armhf|powerpc' includedeb wheezy i2p_0.9.xxp-1~precise+1_all.deb
109reprepro -v -A 'armel|armhf|powerpc' includedeb wheezy i2p-doc_0.9.xxp-1~precise+1_all.deb
110reprepro -v -A 'armel|armhf|powerpc' includedeb wheezy i2p-router_0.9.xxp-1~precise+1_all.deb
111reprepro -v -A 'armel|armhf|powerpc' includedeb jessie i2p_0.9.xxp-1~trusty+1_all.deb
112reprepro -v -A 'armel|armhf|powerpc' includedeb jessie i2p-doc_0.9.xxp-1~trusty+1_all.deb
113reprepro -v -A 'armel|armhf|powerpc' includedeb jessie i2p-router_0.9.xxp-1~trusty+1_all.deb
114reprepro -v -A 'armel|armhf' includedeb stretch i2p_0.9.xx-1ubuntu1_all.deb
115reprepro -v -A 'armel|armhf' includedeb stretch i2p-doc_0.9.xx-1ubuntu1_all.deb
116reprepro -v -A 'armel|armhf' includedeb stretch i2p-router_0.9.xx-1ubuntu1_all.deb
117reprepro -v -A 'armel|armhf' includedeb sid i2p_0.9.xx-1~disco+1_all.deb
118reprepro -v -A 'armel|armhf' includedeb sid i2p-doc_0.9.xx-1~disco+1_all.deb
119reprepro -v -A 'armel|armhf' includedeb sid i2p-router_0.9.xx-1~disco+1_all.deb
120
121
122
123# check status
124reprepro ls i2p
125reprepro ls i2p-doc
126reprepro ls i2p-router
127reprepro ls libjbigi-jni
Note: See TracBrowser for help on using the repository browser.