alpha-quadrant/app-crypt/dehydrated/dehydrated-0.3.1.ebuild

47 lines
883 B
Bash
Raw Normal View History

2016-06-10 22:41:18 +02:00
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit git-r3
DESCRIPTION="Client for signing certificates with an ACME-server implemented as a relatively simple bash-script"
2016-10-11 12:25:28 +02:00
HOMEPAGE="https://github.com/lukas2511/dehydrated"
EGIT_REPO_URI="https://github.com/lukas2511/${PN}.git"
2016-06-10 22:41:18 +02:00
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="nginx"
DEPEND=""
RDEPEND="
sys-apps/coreutils
net-misc/curl
dev-libs/openssl
"
DOCS=( README.md docs/. )
src_install() {
2016-10-11 12:25:28 +02:00
dobin ${PN}
2016-06-10 22:41:18 +02:00
docompress -x /usr/share/doc/${PF}/examples
default
2016-10-11 12:25:28 +02:00
ETCDIR=/etc/${PN}
2016-06-10 22:41:18 +02:00
insinto ${ETCDIR}
doins ${FILESDIR}/config
2016-10-11 12:25:28 +02:00
touch ${D}${ETCDIR}/domains
keepdir /etc/ssl/${PN}
keepdir /var/www/${PN}
2016-06-10 22:41:18 +02:00
if use nginx ; then
mkdir -p ${D}/etc/nginx
2016-10-11 12:25:28 +02:00
cp ${FILESDIR}/nginx.conf ${D}/etc/nginx/${PN}.conf
2016-06-10 22:41:18 +02:00
fi
}
src_test() {
./test.sh
}