summaryrefslogtreecommitdiff
blob: 3103b9df3887b760264fcd6328c977eaaf18ecba (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/mdidentd/mdidentd-1.04a.ebuild,v 1.5 2004/07/01 21:28:10 squinky86 Exp $

inherit eutils

IUSE=""
DESCRIPTION="This is an identd with provides registering of idents"
HOMEPAGE="http://druglord.freelsd.org/ezbounce/"
SRC_URI="http://druglord.freelsd.org/ezbounce/ezbounce-${PV}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc"

DEPEND="virtual/libc
	ssl? ( dev-libs/openssl )"

S=${WORKDIR}/ezbounce-${PV}

pkg_setup() {
	enewgroup mdidentd
	enewuser mdidentd -1 /bin/false /dev/null mdidentd
}

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/${PV}-security.patch
	epatch ${FILESDIR}/${PV}-pidfile.patch
}

src_compile() {
	econf `use_with ssl` || die
	emake -C mdidentd CXX_OPTIMIZATIONS="${CXXFLAGS}" || die
}

src_install() {
	dosbin mdidentd/mdidentd
	dodoc mdidentd/README

	exeinto /etc/init.d
	newexe ${FILESDIR}/mdidentd.init.d mdidentd
	insinto /etc/conf.d
	newins ${FILESDIR}/mdidentd.conf.d mdidentd
}