blob: ec90ac1a91ada8707e007559f41bb4b8d0c24505 (
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
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake-utils
DESCRIPTION="Postfix Sender Rewriting Scheme daemon"
SRC_URI="https://github.com/roehling/postsrsd/archive/${PV}.tar.gz -> ${P}.tar.gz"
HOMEPAGE="https://github.com/roehling/postsrsd"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=">=dev-util/cmake-2.4"
RDEPEND=""
CHROOT_DIR="${EPREFIX}/var/lib/postsrsd"
src_configure() {
local mycmakeargs=(
-DCHROOT_DIR=${CHROOT_DIR}
-DDOC_DIR="${EPREFIX}/usr/share/doc/${PF}"
)
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
newinitd "${FILESDIR}/postsrsd.init-r1" postsrsd
newconfd "${BUILD_DIR}/postsrsd.default" postsrsd
keepdir ${CHROOT_DIR}
}
|