net-dialup/dwun - 0.96e-r6 (gentoo)

Search

Package Information

Description:
Dialer Without a Useful Name (DWUN)
Homepage:
http://dwun.sourceforge.net/
License:
MIT GPL-2

Ebuild Details

Version EAPI Keywords Slot
0.96e-r6 8 ~amd64 x86 0
View Raw Ebuild
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools toolchain-funcs

DESCRIPTION="Dialer Without a Useful Name (DWUN)"
HOMEPAGE="http://dwun.sourceforge.net/"
SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz"

LICENSE="MIT GPL-2" # GPL-2 only for init script
SLOT="0"
KEYWORDS="~amd64 x86"

RDEPEND="virtual/libcrypt:="
DEPEND="${RDEPEND}"

DOCS=( AUTHORS ChangeLog QUICKSTART README TODO UPGRADING )

PATCHES=(
	"${FILESDIR}"/${P}-fno-common.patch
	"${FILESDIR}"/${P}-rename-configure.patch
	"${FILESDIR}"/${P}-implicit-function-declarations.patch
	"${FILESDIR}"/${P}-respect-AR.patch
)

src_prepare() {
	default

	sed -i -e "s:TODO QUICKSTART README UPGRADING ChangeLog COPYING AUTHORS::" Makefile.in || die

	eautoreconf
}

src_configure() {
	tc-export CC

	econf --with-docdir="share/doc/${PF}"
}

src_install() {
	default

	insinto /etc
	newins doc/examples/complete-rcfile dwunrc
	newins debian/dwunauth dwunauth
	newinitd "${FILESDIR}/dwun" dwun
}

pkg_postinst() {
	elog
	elog 'Make sure you have "net-dialup/ppp" merged if you intend to use dwun'
	elog "to control a standard PPP network link."
	elog "See /usr/share/doc/${P}/QUICKSTART for instructions on"
	elog "configuring dwun."
	elog
}

Dependencies

DEPEND

virtual/libcrypt:=

RDEPEND

virtual/libcrypt:=