From f867a9d4ce11a7e9547e84da22c934ae3f1ff5d5 Mon Sep 17 00:00:00 2001
From: zzz <zzz@mail.i2p>
Date: Sat, 2 Apr 2016 13:30:15 +0000
Subject: [PATCH] Debian: Update launchpad instructions Add debian build
 instructions

---
 debian-alt/doc/debian-build.txt               | 66 +++++++++++++++++++
 .../doc}/launchpad.txt                        | 54 +++++++++++++--
 2 files changed, 113 insertions(+), 7 deletions(-)
 create mode 100644 debian-alt/doc/debian-build.txt
 rename {installer/resources => debian-alt/doc}/launchpad.txt (71%)

diff --git a/debian-alt/doc/debian-build.txt b/debian-alt/doc/debian-build.txt
new file mode 100644
index 0000000000..d7b51b5d28
--- /dev/null
+++ b/debian-alt/doc/debian-build.txt
@@ -0,0 +1,66 @@
+To build a release:
+
+Make sure workspace revision matches what you want to release.
+
+# Make the source tarball
+# only if you didn't already do it for launchpad!
+# Otherwise make sure the i2p-0.9.xx.orig.tar.bz2 file is
+# in the dir above the source directory, and skip to next step
+ant debian-release-tarball
+
+# Following instructions (and filenames) are for unstable.
+# Repeat for each target.
+
+# Go to the source directory created by ant debian-release-tarball
+# Fix up the changelog
+cd i2p_0.9.xx-x-xxxxxxxx/
+ant debchange
+vi debian/changelog
+   change i2p_0.9.xx-x-xxxxxxxx-1 to i2p_0.9.xx-1
+   change UNRELEASED to unstable
+   change comment to "New upstream version 0.9.xx"
+   fix your name and email
+# fix up the control and rules files as necessary
+# fix up the patches/ files as necessary
+
+# build the binary packages:
+ant debian-binary
+This will make the following files in .:
+  i2p-doc_0.9.xx-1_all.deb
+  i2p-router_0.9.xx-1_all.deb
+  i2p_0.9.xx-1_all.deb
+  libjbigi-jni_0.9.xx-1_amd64.deb
+Note that you won't have a libjbigi-jni_0.9.xx-1_i386.deb file,
+or one for any other architecture. Oh well.
+
+# build the source package, which will be in ..
+# do gpg --list-keys to find your subkey id
+debuild -S -sa -kYOURSUBKEYID
+  (note: no space allowed in -kkeyid)
+This will make the following files in ..:
+  i2p_0.9.XX-1.dsc            (the GPG signature)
+  i2p_0.9.XX-1.debian.tar.xz  (basically the debian/ directory tarball)
+  i2p_0.9.XX-1_source.changes (the changelog text file)
+# now do the same for jessie and wheezy and precise
+
+# scp the following files to the reprepro server:
+  i2p_0.9.XX-1.dsc            (the GPG signature)
+  i2p_0.9.XX-1.tar.xz  (basically the debian/ directory tarball)
+  i2p_0.9.XX-1_source.changes (the changelog text file)
+  i2p_0.9.XX.orig.tar.bz2            (the source tarball)
+  i2p-doc_0.9.xx-1_all.deb           (docs)
+  i2p-router_0.9.xx-1_all.deb        (binary)
+  i2p_0.9.xx-1_all.deb               (top-level package)
+  libjbigi-jni_0.9.xx-1_amd64.deb    (binary)
+
+
+ssh to reprepro server
+sudo su kytv (he owns the reprepro directories)
+
+reprepro includedeb unstable i2p-doc_0.9.xx-1_all.deb
+reprepro includedeb unstable i2p-router_0.9.xx-1_all.deb
+reprepro includedeb unstable i2p_0.9.xx-1_all.deb
+reprepro includedeb unstable libjbigi-jni_0.9.xx-1_amd64.deb
+# if you already got the source from launchpad
+# with reprepro update, skip this?
+reprepro includedsc unstable i2p_0.9.XX-1.dsc
diff --git a/installer/resources/launchpad.txt b/debian-alt/doc/launchpad.txt
similarity index 71%
rename from installer/resources/launchpad.txt
rename to debian-alt/doc/launchpad.txt
index 1374a1932e..60a71e624c 100644
--- a/installer/resources/launchpad.txt
+++ b/debian-alt/doc/launchpad.txt
@@ -32,7 +32,7 @@ Prep
   sudo apt-get install devscripts dput dh_systemd
 
 - check out clean copy of release:
-  mtn co -d i2p.mtn -b i2p.i2p i2p.i2p.foobar
+  mtn co -d i2p.mtn -b i2p.i2p i2p.i2p.foobar -r t:i2p-0.9.xx
 
 Generate files to upload
 ------------------------
@@ -45,21 +45,21 @@ Generate files to upload
   * series MUST be trusty
   * name and email MUST EXACTLY match what's in your GPG keyring
     or the signing will fail.
-    (or add -k keyid argument to debuild, which you must do
+    (or add -kkeyid argument to debuild, which you must do
      if you want to sign with a subkey)
     run gpg -K to list your private keys
 - edit debian/control to uncomment libservice-wrapper-java line
-- ant debian-tarball
+- ant debian-release-tarball
   this will make a directory ../i2p-0.9.XX-0-xxxxxxxx/
-  and a tarball ../i2p_0.9.XX-0-xxxxxxxx.orig.tar.bz2
-- mv ../i2p_0.9.XX-0-xxxxxxxx.orig.tar.bz2 ../i2p_0.9.XX.orig.tar.bz2
+  and a tarball ../i2p_0.9.XX.orig.tar.bz2
 - cp debian/changelog ../i2p-0.9.XX-0-xxxxxxxx/debian/
 - cd ../i2p-0.9.XX-0-xxxxxxxx/
 - Build the *1ubuntu1* files:
   If you have NOT done a successful dput for this release yet:
-    debuild -S -sa
+    debuild -S -sa -kkeyid
   otherwise, if just fixing up the control files, patches, etc:
-    debuild -S -sd
+    debuild -S -sd -kkeyid
+  (note: no space allowed in -kkeyid)
 - If patches fail, you must fix them up, either manually or with quilt
   (quilt instructions go here)
 
@@ -126,3 +126,43 @@ Release
 Then copy trusty, vivid, wily, and xenial from your PPA to the i2p-maintainers PPA
   (select "copy existing binaries")
   Copy trusty first and wait for it to be published in i2p-maintainers or the others will fail.
+
+
+Creating milestone, release, and uploading files
+----------------------------------------------
+
+You must first create a milestone, then create a release
+and attach it to the milestone.
+Go to https://launchpad.net/i2p/trunk
+Down at bottom, click 'create milestone'
+    Name: 0.9.xx (NOT i2p 0.9.xx)
+    Code name: empty
+    Date targeted: Actual release date
+    Tags: empty
+    Summary: empty
+Click 'register milestone'
+Now you are back on https://launchpad.net/i2p/trunk
+At your milestone, 'release now'
+    Date released: Actual release date
+    Release notes: empty
+    Changelog: empty
+Click 'create release'
+Now you on the page for that milestone
+Click 'add download file'
+For each of the four files
+    i2psource_0.9.xx.tar.bz2
+      Description: I2P 0.9.xx Source Code
+      Sig: i2psource_0.9.xx.tar.bz2.sig
+      File Content Type: Code Release Tarball
+    i2pinstall_0.9.xx_windows.exe
+      Description: I2P 0.9.xx Installer for Windows
+      Sig: i2pinstall_0.9.xx_windows.exe.sig
+      File Content Type: Installer File
+    i2pinstall_0.9.xx.jar
+      Description: I2P 0.9.xx Installer (Linux / OSX / FreeBSD / Solaris)
+      Sig: i2pinstall_0.9.xx.jar.sig
+      File Content Type: Installer File
+    i2pupdate_0.9.xx.zip
+      Description: I2P 0.9.xx Update
+      Sig: i2pupdate_0.9.xx.zip.sig
+      File Content Type: Installer File
-- 
GitLab