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-dialup/diald/diald-1.0-r2.ebuild

60 lines
1.5 KiB

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dialup/diald/diald-1.0-r2.ebuild,v 1.5 2013/01/27 12:26:40 ulm Exp $
inherit eutils autotools pam
DESCRIPTION="Daemon that provides on demand IP links via SLIP or PPP"
HOMEPAGE="http://diald.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="Old-MIT GPL-2" # GPL-2 only for init script
SLOT="0"
KEYWORDS="~amd64 x86"
IUSE="pam"
DEPEND="pam? ( virtual/pam )
sys-apps/tcp-wrappers"
RDEPEND="${DEPEND}
net-dialup/ppp"
src_unpack() {
unpack ${A}
epatch "${FILESDIR}/${P}-posix.patch"
epatch "${FILESDIR}/${P}-gentoo.patch"
if ! use pam; then
epatch "${FILESDIR}/${P}-nopam.patch"
rm "${S}"/README.pam
cd "${S}"
eautoconf
fi
}
src_install() {
make \
DESTDIR="${D}" \
sysconfdir=/etc \
bindir=/usr/bin \
sbindir=/usr/sbin \
mandir=/usr/share/man \
libdir=/usr/lib/diald \
BINGRP=root \
ROOTUID=root \
ROOTGRP=root \
install || die "make failed"
use pam && pamd_mimic_system diald auth account
dodir /var/cache/diald
mknod -m 0660 "${D}/var/cache/diald/diald.ctl" p
dodoc BUGS CHANGES NOTES README* \
THANKS TODO TODO.budget doc/diald-faq.txt
docinto setup ; cp -pPR setup/* "${D}/usr/share/doc/${PF}/setup"
docinto contrib ; cp -pPR contrib/* "${D}/usr/share/doc/${PF}/contrib"
prepalldocs
insinto /etc/diald ; doins "${FILESDIR}"/{diald.conf,diald.filter}
newinitd "${FILESDIR}/diald-init" diald
}