diff options
author | 2017-08-13 20:18:34 +0200 | |
---|---|---|
committer | 2017-08-22 11:06:57 +0200 | |
commit | 19d06018d3582b671272b5b6ddc6b346ade37187 (patch) | |
tree | d6289c353779d6cb262d349888e3113f6a56be98 /www-servers/sniproxy/sniproxy-0.5.0.ebuild | |
parent | media-gfx/ristretto: Update HOMEPAGE (diff) | |
download | gentoo-19d06018d3582b671272b5b6ddc6b346ade37187.tar.gz gentoo-19d06018d3582b671272b5b6ddc6b346ade37187.tar.bz2 gentoo-19d06018d3582b671272b5b6ddc6b346ade37187.zip |
www-servers/sniproxy: new package
Closes: https://github.com/gentoo/gentoo/pull/5410
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'www-servers/sniproxy/sniproxy-0.5.0.ebuild')
-rw-r--r-- | www-servers/sniproxy/sniproxy-0.5.0.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/www-servers/sniproxy/sniproxy-0.5.0.ebuild b/www-servers/sniproxy/sniproxy-0.5.0.ebuild new file mode 100644 index 000000000000..c5b9a45f2ea7 --- /dev/null +++ b/www-servers/sniproxy/sniproxy-0.5.0.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools user + +if [[ ${PV} == 9999* ]]; then + EGIT_REPO_URI="https://github.com/dlundquist/sniproxy.git" + EGIT_BRANCH="master" + inherit git-r3 + KEYWORDS="" +else + SRC_URI="https://github.com/dlundquist/sniproxy/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +DESCRIPTION="Proxies incoming HTTP and TLS connections based on the hostname" +HOMEPAGE="https://github.com/dlundquist/sniproxy" + +LICENSE="BSD-2" +SLOT="0" +IUSE="+dns +largefile rfc3339" + +RDEPEND=" + dev-libs/libev + >=dev-libs/libpcre-3 + dns? ( net-libs/udns ) +" +DEPEND="${RDEPEND}" + +src_prepare() { + default + eautoreconf + + sed -i "/user/s/daemon/sniproxy/" debian/sniproxy.conf || die "Unable to replace configuration" + sed -i "/create/s/daemon/sniproxy/" debian/logrotate.conf || die "Unable to replace logrotate configuration" +} + +src_install() { + default + + newinitd "${FILESDIR}/sniproxy.init" sniproxy + + insinto /etc/sniproxy + doins debian/sniproxy.conf + + keepdir /var/log/sniproxy + + insinto /etc/logrotate.d + newins debian/logrotate.conf sniproxy + + dodoc ARCHITECTURE.md AUTHORS README.md + doman man/sniproxy.8 + doman man/sniproxy.conf.5 +} + +src_test() { + emake -j1 check +} + +pkg_postinst() { + enewgroup ${PN} + enewuser ${PN} -1 -1 /var/lib/sniproxy ${PN} +} |