summaryrefslogtreecommitdiff
blob: 7e908167bc951fa23a579e812b7009a5817a0cf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=6

inherit cmake-utils user

DESCRIPTION="S/MIME signing milter"
HOMEPAGE="https://signing-milter.org/"
SRC_URI="https://github.com/croessner/${PN}/archive/v${PV}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"

RDEPEND="mail-filter/libmilter
	dev-libs/boost
	dev-libs/openssl:0"
DEPEND="${RDEPEND}"

DOCS=( README README.build AUTHORS LICENSE )
CMAKE_IN_SOURCE_BUILD=1

pkg_setup() {
	enewgroup sigh
	enewuser sigh -1 -1 /var/lib/sigh sigh
}

src_prepare() {
	cmake-utils_src_prepare
}

src_configure() {
	cmake-utils_src_configure
}

src_compile() {
	cmake-utils_src_compile
}

src_install() {
	cmake-utils_src_install

	dodoc "${DOCS[@]}"

	newinitd "${FILESDIR}"/${PN}.initd ${PN}
}