9 Commits

Author SHA1 Message Date
lair repo key
943176157c add symlink to post-install script 2019-02-28 16:32:01 -05:00
lair repo key
11b01f33c4 add missing debian/ files 2019-02-28 16:18:58 -05:00
lair repo key
6ee4c38e29 update package 2019-02-28 16:10:24 -05:00
lair repo key
ba817460d6 update package 2019-02-28 16:09:51 -05:00
lair repo key
d053383208 update package 2019-02-28 16:08:52 -05:00
lair repo key
a38f1db2dd update package 2019-02-28 16:07:18 -05:00
lair repo key
24a946f3e7 set the http_proxy(lowercase) environment variable too 2019-02-25 20:51:48 -05:00
lair repo key
2a1ca1d3aa intialize debian packaging 2019-02-23 21:22:56 -05:00
lair repo key
3f92178574 Ignore quilt dir .pc via .gitignore 2019-02-23 21:21:31 -05:00
16 changed files with 127 additions and 0 deletions

4
.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
.pc
README.md.asc
apt-transport-i2phttp

View File

@@ -0,0 +1 @@
override_dh_auto_install dh_auto_install

View File

@@ -0,0 +1 @@
shlibs:Depends=libc6 (>= 2.3.2)

9
debian/changelog vendored Normal file
View File

@@ -0,0 +1,9 @@
apt-transport-i2phttp (0.0~git20190224.6dc102d-1) UNRELEASED; urgency=medium
[ idk ]
* Initial release (Closes: TODO)
[ idk ]
* set the http_proxy(lowercase) environment variable too
-- idk <hankhill19580@gmail.com> Thu, 28 Feb 2019 15:45:39 -0500

1
debian/compat vendored Normal file
View File

@@ -0,0 +1 @@
11

27
debian/control vendored Normal file
View File

@@ -0,0 +1,27 @@
Source: apt-transport-i2phttp
Section: devel
Priority: optional
Maintainer: idk <hankhill19580@gmail.com>
Uploaders: idk <hankhill19580@gmail.com>
Build-Depends: debhelper (>= 11),
dh-golang,
golang-any
Standards-Version: 4.2.1
Homepage: https://github.com/eyedeekay/apt-transport-i2phttp
Vcs-Browser: https://github.com/eyedeekay/apt-transport-i2phttp
Vcs-Git: https://github.com/eyedeekay/apt-transport-i2phttp.git
XS-Go-Import-Path: github.com/eyedeekay/apt-transport-i2phttp
Testsuite: autopkgtest-pkg-go
Package: apt-transport-i2phttp
Architecture: any
Built-Using: ${misc:Built-Using}
Depends: ${misc:Depends},
${shlibs:Depends}
Description: An apt transport for i2p using the built-in HTTP proxy
apt-transport-i2phttp, HTTP-based I2P Transport for apt This
is a simple transport for downloading debian packages from a
repository over i2p. It uses the built-in HTTP proxy or one you
configure. It's a modified version of diocles/apt-tranport-http-golang
(https://github.com/diocles/apt-transport-http-golang), a plain HTTP
Transport for apt.

17
debian/copyright vendored Normal file
View File

@@ -0,0 +1,17 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: apt-transport-i2phttp
Source: https://github.com/eyedeekay/apt-transport-i2phttp
Files-Excluded:
Godeps/_workspace
Files: *
Copyright: 2019 idk
License: TODO
Files: debian/*
Copyright: 2019 idk <hankhill19580@gmail.com>
License: TODO
Comment: Debian packaging is licensed under the same terms as upstream
License: TODO
TODO

1
debian/debhelper-build-stamp vendored Normal file
View File

@@ -0,0 +1 @@
apt-transport-i2phttp

2
debian/gbp.conf vendored Normal file
View File

@@ -0,0 +1,2 @@
[DEFAULT]
pristine-tar = True

46
debian/patches/enforcebetter vendored Normal file
View File

@@ -0,0 +1,46 @@
Description: enforce proxies better
This just ensures that all available http_proxy environment variables are set
.
apt-transport-i2phttp (0.0~git20190224.6dc102d-1) UNRELEASED; urgency=medium
.
[ idk ]
* Initial release (Closes: TODO)
.
[ idk ]
* set the http_proxy(lowercase) environment variable too
Author: idk <hankhill19580@gmail.com>
---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:
Origin: upstream
Last-Update: 2019-02-28
--- apt-transport-i2phttp-0.0~git20190224.6dc102d.orig/main.go
+++ apt-transport-i2phttp-0.0~git20190224.6dc102d/main.go
@@ -58,6 +58,7 @@ func ReadInConfig() {
if _, err := os.Stat(os.Getenv("APT_TRANSPORT_I2PHTTP_CONF")); os.IsNotExist(err) {
os.Setenv("I2P_HTTP_PROXY", "http://127.0.0.1:4444")
os.Setenv("HTTP_PROXY", "http://127.0.0.1:4444")
+ os.Setenv("http_proxy", "http://127.0.0.1:4444")
} else if err != nil {
log.Fatal(err)
} else {
@@ -80,12 +81,15 @@ func ReadInConfig() {
}
os.Setenv("I2P_HTTP_PROXY", "http://"+host+":"+port)
os.Setenv("HTTP_PROXY", "http://"+host+":"+port)
+ os.Setenv("http_proxy", "http://"+host+":"+port)
}
if os.Getenv("I2P_HTTP_PROXY") == "" {
os.Setenv("I2P_HTTP_PROXY", "http://127.0.0.1:4444")
os.Setenv("HTTP_PROXY", "http://127.0.0.1:4444")
+ os.Setenv("http_proxy", "http://127.0.0.1:4444")
} else {
os.Setenv("HTTP_PROXY", os.Getenv("I2P_HTTP_PROXY"))
+ os.Setenv("http_proxy", os.Getenv("I2P_HTTP_PROXY"))
}
}

1
debian/patches/series vendored Normal file
View File

@@ -0,0 +1 @@
enforcebetter

1
debian/postinstall vendored Normal file
View File

@@ -0,0 +1 @@
ln -sf /usr/bin/apt-transport-i2phttp /usr/lib/apt/methods/i2p

7
debian/rules vendored Executable file
View File

@@ -0,0 +1,7 @@
#!/usr/bin/make -f
override_dh_auto_install:
dh_auto_install -- --no-source
%:
dh $@ --buildsystem=golang --with=golang

1
debian/source/format vendored Normal file
View File

@@ -0,0 +1 @@
3.0 (quilt)

4
debian/watch vendored Normal file
View File

@@ -0,0 +1,4 @@
version=4
opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/apt-transport-i2phttp-\$1\.tar\.gz/,\
uversionmangle=s/(\d)[_\.\-\+]?(RC|rc|pre|dev|beta|alpha)[.]?(\d*)$/\$1~\$2\$3/ \
https://github.com/eyedeekay/apt-transport-i2phttp/tags .*/v?(\d\S*)\.tar\.gz

View File

@@ -58,6 +58,7 @@ func ReadInConfig() {
if _, err := os.Stat(os.Getenv("APT_TRANSPORT_I2PHTTP_CONF")); os.IsNotExist(err) {
os.Setenv("I2P_HTTP_PROXY", "http://127.0.0.1:4444")
os.Setenv("HTTP_PROXY", "http://127.0.0.1:4444")
os.Setenv("http_proxy", "http://127.0.0.1:4444")
} else if err != nil {
log.Fatal(err)
} else {
@@ -80,12 +81,15 @@ func ReadInConfig() {
}
os.Setenv("I2P_HTTP_PROXY", "http://"+host+":"+port)
os.Setenv("HTTP_PROXY", "http://"+host+":"+port)
os.Setenv("http_proxy", "http://"+host+":"+port)
}
if os.Getenv("I2P_HTTP_PROXY") == "" {
os.Setenv("I2P_HTTP_PROXY", "http://127.0.0.1:4444")
os.Setenv("HTTP_PROXY", "http://127.0.0.1:4444")
os.Setenv("http_proxy", "http://127.0.0.1:4444")
} else {
os.Setenv("HTTP_PROXY", os.Getenv("I2P_HTTP_PROXY"))
os.Setenv("http_proxy", os.Getenv("I2P_HTTP_PROXY"))
}
}