Resolve packaging issues, document the release process somewhat
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@
|
|||||||
.pc
|
.pc
|
||||||
README.md.asc
|
README.md.asc
|
||||||
apt-transport-i2phttp
|
apt-transport-i2phttp
|
||||||
|
deb
|
||||||
|
21
Makefile
21
Makefile
@ -1,4 +1,11 @@
|
|||||||
|
|
||||||
|
PKG=`basename $(PWD)`
|
||||||
|
|
||||||
|
VERSION=$(shell head -n 1 debian/changelog | sed "s|$(PKG) (||g" | sed 's|).*||')
|
||||||
|
|
||||||
|
echo:
|
||||||
|
@echo "$(VERSION)"
|
||||||
|
|
||||||
apt-transport-i2phttp:
|
apt-transport-i2phttp:
|
||||||
go build \
|
go build \
|
||||||
-a \
|
-a \
|
||||||
@ -12,4 +19,16 @@ clean:
|
|||||||
go clean
|
go clean
|
||||||
|
|
||||||
orig:
|
orig:
|
||||||
tar --exclude=.git --exclude=debian -czvf ../apt-transport-i2phttp_0.1.orig.tar.gz .
|
tar --exclude=.git --exclude=debian -czvf ../apt-transport-i2phttp_$(VERSION).orig.tar.gz .
|
||||||
|
|
||||||
|
release: ubuntu debian
|
||||||
|
|
||||||
|
debian:
|
||||||
|
release-pdeb stable
|
||||||
|
release-pdeb testing
|
||||||
|
release-pdeb unstable
|
||||||
|
|
||||||
|
ubuntu:
|
||||||
|
release-pdeb bionic
|
||||||
|
release-pdeb eoan
|
||||||
|
release-pdeb focal
|
||||||
|
31
README.md
31
README.md
@ -26,6 +26,37 @@ by default. You can just:
|
|||||||
to install ./apt-transport-i2phttp to /usr/lib/apt/methods/i2p, requiring no
|
to install ./apt-transport-i2phttp to /usr/lib/apt/methods/i2p, requiring no
|
||||||
additional configuration.
|
additional configuration.
|
||||||
|
|
||||||
|
To build a proper deb of it:
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
Building a release is done with pbuilder to avoid building a release with
|
||||||
|
packages not in the appropriate version of Debian or Ubuntu. Use
|
||||||
|
```pbuilder create``` to set up the chroot appropriate to your target
|
||||||
|
distribution. Then, in the root of the repository directory, run the command
|
||||||
|
```debuild -s``` to generate a .dsc file in the parent directory. Now that you
|
||||||
|
have the ,dsc file, create a build directory using ```mkdir -p deb/targetdistro```
|
||||||
|
and run ```pbuilder build --buildresult ./deb/stable``` to generate your actual
|
||||||
|
deb packages. Of course, you'll have to adjust the commands to suit the target
|
||||||
|
distribution. And you have to do it for every single distribution you want to
|
||||||
|
build for.
|
||||||
|
|
||||||
|
I have [this script stored at this gist](https://gist.github.com/eyedeekay/91927f31396dd50ae9d22051ded154ef)
|
||||||
|
that I use to make my life easier. It should also be pretty easy to understand.
|
||||||
|
From the repository directory, run the script like:
|
||||||
|
|
||||||
|
$pathtoscript/release.sh stable
|
||||||
|
|
||||||
|
so to build for like a whole bunch of releases(With it installed as release-pdeb
|
||||||
|
in /usr/local/bin):
|
||||||
|
|
||||||
|
release-pdeb stable
|
||||||
|
release-pdeb testing
|
||||||
|
release-pdeb unstable
|
||||||
|
release-pdeb bionic
|
||||||
|
release-pdeb eoan
|
||||||
|
release-pdeb focal
|
||||||
|
|
||||||
|
|
||||||
To use it:
|
To use it:
|
||||||
---------
|
---------
|
||||||
|
|
||||||
|
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -1,3 +1,10 @@
|
|||||||
|
apt-transport-i2phttp (0.3) bionic; urgency=medium
|
||||||
|
|
||||||
|
[ idk ]
|
||||||
|
* Downgrade minimum recommended debhelper to 10
|
||||||
|
|
||||||
|
-- idk <hankhill19580@gmail.com> Sat, 16 Apr 2020 19:20:21 -0500
|
||||||
|
|
||||||
apt-transport-i2phttp (0.2) bionic; urgency=medium
|
apt-transport-i2phttp (0.2) bionic; urgency=medium
|
||||||
|
|
||||||
[ idk ]
|
[ idk ]
|
||||||
|
4
debian/control
vendored
4
debian/control
vendored
@ -3,9 +3,9 @@ Section: devel
|
|||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: idk <hankhill19580@gmail.com>
|
Maintainer: idk <hankhill19580@gmail.com>
|
||||||
Uploaders: idk <hankhill19580@gmail.com>
|
Uploaders: idk <hankhill19580@gmail.com>
|
||||||
Build-Depends: debhelper (>= 11),
|
Build-Depends: debhelper (>= 10),
|
||||||
dh-golang,
|
dh-golang,
|
||||||
golang-any
|
golang-go
|
||||||
Standards-Version: 4.2.1
|
Standards-Version: 4.2.1
|
||||||
Homepage: https://github.com/eyedeekay/apt-transport-i2phttp
|
Homepage: https://github.com/eyedeekay/apt-transport-i2phttp
|
||||||
Vcs-Browser: https://github.com/eyedeekay/apt-transport-i2phttp
|
Vcs-Browser: https://github.com/eyedeekay/apt-transport-i2phttp
|
||||||
|
Reference in New Issue
Block a user