blob: 8dd559ef2778e5ed4eb36e28574bbaae753046a9 (
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
49
50
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit user
DESCRIPTION="This is an identd with provides registering of idents"
HOMEPAGE="http://druglord.freelsd.org/ezbounce/"
SRC_URI="http://druglord.freelsd.org/ezbounce/files/ezbounce-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="ssl"
DEPEND="ssl? ( dev-libs/openssl )"
RDEPEND="${DEPEND}"
S=${WORKDIR}/ezbounce-${PV}
pkg_setup() {
enewgroup mdidentd
enewuser mdidentd -1 -1 /dev/null mdidentd
}
src_prepare() {
eapply "${FILESDIR}"/1.04a-security.patch
eapply -p0 "${FILESDIR}"/1.04a-pidfile.patch
eapply -p1 "${FILESDIR}"/1.04a-glibc210.patch
default
}
src_configure() {
econf $(use_with ssl)
}
src_compile() {
emake CXX="$(tc-getCXX)" -C mdidentd CXX_OPTIMIZATIONS="${CXXFLAGS}"
}
src_install() {
dosbin mdidentd/mdidentd
dodoc mdidentd/README
newinitd "${FILESDIR}"/mdidentd.init.d mdidentd
newconfd "${FILESDIR}"/mdidentd.conf.d mdidentd
}
|