mirror of
https://github.com/gentoo-mirror/gentoo-zh.git
synced 2025-04-19 15:58:56 -04:00
net-proxy/goagent: version bump to 2.1.13
This commit is contained in:
parent
30df0c2754
commit
09f0a6c1f4
@ -1,3 +1 @@
|
||||
DIST goagent-1.10.1.tar.gz 3664407 SHA256 da401418be095c1a009acefe2ad6d94c165386bafae0653889fd92712df58080
|
||||
DIST goagent-2.0.14.tar.gz 4956793 SHA256 c0ebd4c845e425146ec5b775a73acd971f072f4710e94f860b0f724dd048ed5f
|
||||
DIST goagent-2.1.13.tar.gz 4588350 SHA256 aaf7624329196e1596f442295e61fd3dcfbf4f5c90f5d13ebfc6ada1ac3efe22
|
||||
|
@ -1,71 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v3
|
||||
# $Header: $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="git://github.com/goagent/goagent.git"
|
||||
EGIT_BRANCH="2.0"
|
||||
KEYWORDS=""
|
||||
GOAGENT_SRC_URI=""
|
||||
GOAGENT_ECLASS="git-2"
|
||||
else
|
||||
GOAGENT_SRC_URI="https://github.com/goagent/goagent/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
RESTRICT="mirror"
|
||||
GOAGENT_ECLASS="vcs-snapshot"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
inherit ${GOAGENT_ECLASS}
|
||||
|
||||
DESCRIPTION="A GAE proxy forked from gappproxy/wallproxy"
|
||||
HOMEPAGE="https://github.com/goagent/goagent"
|
||||
SRC_URI="${GOAGENT_SRC_URI}"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="2.1"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-lang/python:2.7[ssl]
|
||||
dev-python/gevent
|
||||
dev-python/pyopenssl"
|
||||
|
||||
src_unpack() {
|
||||
${GOAGENT_ECLASS}_src_unpack
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
find ${S}/local -type f -name *.py \
|
||||
-exec sed -i -re "1s/python2?/python2/" {} \; || die "Failed to sed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/etc/"
|
||||
newins "${S}/local/proxy.ini" goagent
|
||||
rm ${S}/*/*.{bat,exe,vbs,dll,manifest,ini} || die
|
||||
|
||||
insinto "/opt/goagent"
|
||||
doins -r "${S}/local" "${S}/server"
|
||||
|
||||
newinitd "${FILESDIR}/goagent-initd" goagent
|
||||
dosym /etc/goagent "/opt/goagent/local/proxy.ini"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog
|
||||
elog "config file: /etc/goagent"
|
||||
elog "init script: /etc/init.d/goagent"
|
||||
elog
|
||||
elog "Usage:"
|
||||
elog "vim /etc/goagent"
|
||||
elog "cd /opt/goagent/server"
|
||||
elog "upload={golang|python|php} python2.7 uploader.zip"
|
||||
elog "/etc/init.d/goagent start|stop|restart"
|
||||
elog
|
||||
elog "if you get some error in the uploading,"
|
||||
elog "please upload through other proxy."
|
||||
elog "e.g. 'export https_proxy=127.0.0.1:8087',"
|
||||
elog "and then upload again."
|
||||
elog
|
||||
}
|
@ -1,71 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v3
|
||||
# $Header: $
|
||||
|
||||
EAPI="4"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="git://github.com/goagent/goagent.git"
|
||||
EGIT_BRANCH="2.0"
|
||||
KEYWORDS=""
|
||||
GOAGENT_SRC_URI=""
|
||||
GOAGENT_ECLASS="git-2"
|
||||
else
|
||||
GOAGENT_SRC_URI="https://github.com/goagent/goagent/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
RESTRICT="mirror"
|
||||
GOAGENT_ECLASS="vcs-snapshot"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
inherit ${GOAGENT_ECLASS}
|
||||
|
||||
DESCRIPTION="A GAE proxy forked from gappproxy/wallproxy"
|
||||
HOMEPAGE="https://github.com/goagent/goagent"
|
||||
SRC_URI="${GOAGENT_SRC_URI}"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="2.1"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-lang/python:2.7[ssl]
|
||||
dev-python/gevent
|
||||
dev-python/pyopenssl"
|
||||
|
||||
src_unpack() {
|
||||
${GOAGENT_ECLASS}_src_unpack
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
find ${S}/local -type f -name *.py \
|
||||
-exec sed -i -re "1s/python2?/python2/" {} \; || die "Failed to sed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/etc/"
|
||||
newins "${S}/local/proxy.ini" goagent
|
||||
rm ${S}/*/*.{bat,exe,vbs,dll,manifest,ini} || die
|
||||
|
||||
insinto "/opt/goagent"
|
||||
doins -r "${S}/local" "${S}/server"
|
||||
|
||||
newinitd "${FILESDIR}/goagent-initd" goagent
|
||||
dosym /etc/goagent "/opt/goagent/local/proxy.ini"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog
|
||||
elog "config file: /etc/goagent"
|
||||
elog "init script: /etc/init.d/goagent"
|
||||
elog
|
||||
elog "Usage:"
|
||||
elog "vim /etc/goagent"
|
||||
elog "cd /opt/goagent/server"
|
||||
elog "upload={golang|python|php} python2.7 uploader.zip"
|
||||
elog "/etc/init.d/goagent start|stop|restart"
|
||||
elog
|
||||
elog "if you get some error in the uploading,"
|
||||
elog "please upload through other proxy."
|
||||
elog "e.g. 'export https_proxy=127.0.0.1:8087',"
|
||||
elog "and then upload again."
|
||||
elog
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v3
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI="4"
|
||||
|
@ -1,5 +1,5 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v3
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI="4"
|
||||
|
Loading…
x
Reference in New Issue
Block a user