Compare commits
9 Commits
upstream/0
...
debian/0.0
Author | SHA1 | Date | |
---|---|---|---|
![]() |
943176157c | ||
![]() |
11b01f33c4 | ||
![]() |
6ee4c38e29 | ||
![]() |
ba817460d6 | ||
![]() |
d053383208 | ||
![]() |
a38f1db2dd | ||
![]() |
24a946f3e7 | ||
![]() |
2a1ca1d3aa | ||
![]() |
3f92178574 |
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
.pc
|
||||
README.md.asc
|
||||
apt-transport-i2phttp
|
1
debian/apt-transport-i2phttp.debhelper.log
vendored
Normal file
1
debian/apt-transport-i2phttp.debhelper.log
vendored
Normal file
@@ -0,0 +1 @@
|
||||
override_dh_auto_install dh_auto_install
|
1
debian/apt-transport-i2phttp.substvars
vendored
Normal file
1
debian/apt-transport-i2phttp.substvars
vendored
Normal file
@@ -0,0 +1 @@
|
||||
shlibs:Depends=libc6 (>= 2.3.2)
|
9
debian/changelog
vendored
Normal file
9
debian/changelog
vendored
Normal 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
1
debian/compat
vendored
Normal file
@@ -0,0 +1 @@
|
||||
11
|
27
debian/control
vendored
Normal file
27
debian/control
vendored
Normal 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
17
debian/copyright
vendored
Normal 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
1
debian/debhelper-build-stamp
vendored
Normal file
@@ -0,0 +1 @@
|
||||
apt-transport-i2phttp
|
2
debian/gbp.conf
vendored
Normal file
2
debian/gbp.conf
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
[DEFAULT]
|
||||
pristine-tar = True
|
46
debian/patches/enforcebetter
vendored
Normal file
46
debian/patches/enforcebetter
vendored
Normal 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
1
debian/patches/series
vendored
Normal file
@@ -0,0 +1 @@
|
||||
enforcebetter
|
1
debian/postinstall
vendored
Normal file
1
debian/postinstall
vendored
Normal file
@@ -0,0 +1 @@
|
||||
ln -sf /usr/bin/apt-transport-i2phttp /usr/lib/apt/methods/i2p
|
7
debian/rules
vendored
Executable file
7
debian/rules
vendored
Executable 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
1
debian/source/format
vendored
Normal file
@@ -0,0 +1 @@
|
||||
3.0 (quilt)
|
4
debian/watch
vendored
Normal file
4
debian/watch
vendored
Normal 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
|
4
main.go
4
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"))
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user