You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-misc/mdidentd/mdidentd-1.04c.ebuild

46 lines
1.0 KiB

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
inherit eutils 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_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/1.04a-security.patch
epatch "${FILESDIR}"/1.04a-pidfile.patch
epatch "${FILESDIR}"/1.04a-glibc210.patch
}
src_compile() {
econf $(use_with ssl) || die
emake CXX="$(tc-getCXX)" -C mdidentd CXX_OPTIMIZATIONS="${CXXFLAGS}" || die
}
src_install() {
dosbin mdidentd/mdidentd || die
dodoc mdidentd/README
newinitd "${FILESDIR}"/mdidentd.init.d mdidentd
newconfd "${FILESDIR}"/mdidentd.conf.d mdidentd
}