1
0
mirror of https://github.com/dguglielmi/sunny-overlay.git synced 2025-12-06 18:12:39 +01:00

www-servers/tang: add ebuild

This commit is contained in:
2018-07-26 11:57:39 +02:00
parent 754a560dc7
commit 0aedf94dbd
3 changed files with 96 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools systemd
DESCRIPTION="Tang is a server for binding data to network presence"
HOMEPAGE="https://latchset.github.io/"
SRC_URI="https://github.com/latchset/${PN}/releases/download/v${PV}/${P}.tar.bz2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="nagios"
DEPEND=">=net-libs/http-parser-2.8.0
sys-apps/systemd
>=dev-libs/jose-8"
RDEPEND="${DEPEND}"
PATCHES=( "${FILESDIR}"/${P}-optional-nagios.patch )
src_prepare() {
default
eautoreconf
}
src_configure() {
local myconf=(
$(use_enable nagios nagiosplugin)
--localstatedir="${EPREFIX}/var"
--with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
)
econf "${myconf[@]}"
}