Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions net-dialup/ppp/Manifest
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
DIST ppp-2.4.7-patches-7.tar.xz 40540 BLAKE2B 353814692aab3012f5d5ccdecc514d69357826ea7abe64a7581c562f333d868f9766f11516721cf0b116b4c1c8b01daee306d98ef7be356af6e8d16e22fc9fac SHA512 9d34c044ded09424a6d80047e88bb21130a9c2414c9ea4f52c7299d9db08b1391543b50cd97c0c8763e6943591fc325d01932b31966a1374dbfe5e977bbf4356
DIST ppp-2.4.7.tar.gz 688117 BLAKE2B e1c94ce31d98674536929d19e956e4013eb2b02c20c34e6184c0b99b50262ad1cd7fb6f4a1ed302872527a0c164af340e15ad1e2eaf191392c3f6ae2de21f5dd SHA512 e34ce24020af6a73e7a26c83c4f73a9c83fa455b7b363794dba27bf01f70368be06bff779777843949bd77f4bc9385d6ad455ea48bf8fff4e0d73cc8fef16ae2
DIST ppp-2.5.2-0d9fdaf.tar.gz 528514 BLAKE2B 463e8ad9b0bc958dcf27e7d8c45bdb71e918625852b1fe7c8303cd59935e6dd6a8d4bd1dde513497fd9d7b65d84da48cce70f70f31d17e399573b6c5480d8973 SHA512 54c88874ffc312704cab4035ec103d3479bc87c973a83bc8d3194835fc2facda054e6bfc640abfebfc2ebaf6e75dda4fecad3f0aa1b006fe6c7f7b881da7c303
DIST ppp-dhcpc.tgz 33497 BLAKE2B ca59130012f007cf45af6bcfa468c112b0d521c8b11f42d42c566dd9de55bd6d6f1b1ceb83cbae18cfe79cb5cb36ba6c6858a4718915acc6987295008aca53da SHA512 aeaf791b14f5a09c0e2079072a157e65132cbff46e608bc0724e6a5827a01da934f5006e2774eb7105f83e607a52cb4987238f4385cf6f5cc86cbe305a556738
2 changes: 1 addition & 1 deletion net-dialup/ppp/files/README.mpls
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ information about LDP based MPLS signalling.
Mapping of layer 3 traffic to MPLS LSPs is accomplised in a couple of
different ways.
-Per FEC where FEC is an entry in the routing table
-Virtual interface that represents an LSP
-Virtual interface that represents an LSP
119 changes: 119 additions & 0 deletions net-dialup/ppp/ppp-2.5.2.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit linux-info pam toolchain-funcs

DESCRIPTION="Point-to-Point Protocol (PPP)"
HOMEPAGE="https://ppp.samba.org/"
SRC_URI="https://github.com/ppp-project/ppp/tarball/0d9fdafb7f743abfad7e308709ac917fef658c14 -> ppp-2.5.2-0d9fdaf.tar.gz"
LICENSE="BSD GPL-2"

S="${WORKDIR}/ppp-project-ppp-0d9fdaf"

SLOT="0/${PV}"
KEYWORDS="*"
IUSE="activefilter atm pam selinux systemd ipv6"

DEPEND="
dev-libs/openssl:0=
sys-libs/libxcrypt
activefilter? ( net-libs/libpcap )
atm? ( net-dialup/linux-atm )
pam? ( sys-libs/pam )
systemd? ( sys-apps/systemd )
"
RDEPEND="
${DEPEND}
selinux? ( sec-policy/selinux-ppp )
"
BDEPEND="virtual/pkgconfig"
PDEPEND="net-dialup/ppp-scripts"

pkg_setup() {
local CONFIG_CHECK="~PPP ~PPP_ASYNC ~PPP_SYNC_TTY"
local ERROR_PPP="CONFIG_PPP:\t missing PPP support (REQUIRED)"
local ERROR_PPP_ASYNC="CONFIG_PPP_ASYNC:\t missing asynchronous serial line discipline"
ERROR_PPP_ASYNC+=" (optional, but highly recommended)"
local WARNING_PPP_SYNC_TTY="CONFIG_PPP_SYNC_TTY:\t missing synchronous serial line discipline"
WARNING_PPP_SYNC_TTY+=" (optional; used by 'sync' pppd option)"
if use activefilter ; then
CONFIG_CHECK+=" ~PPP_FILTER"
local ERROR_PPP_FILTER="CONFIG_PPP_FILTER:\t missing PPP filtering support (REQUIRED)"
fi
CONFIG_CHECK+=" ~PPP_DEFLATE ~PPP_BSDCOMP ~PPP_MPPE"
local ERROR_PPP_DEFLATE="CONFIG_PPP_DEFLATE:\t missing Deflate compression (optional, but highly recommended)"
local ERROR_PPP_BSDCOMP="CONFIG_PPP_BSDCOMP:\t missing BSD-Compress compression (optional, but highly recommended)"
local WARNING_PPP_MPPE="CONFIG_PPP_MPPE:\t missing MPPE encryption (optional, mostly used by PPTP links)"
CONFIG_CHECK+=" ~PPPOE ~PACKET"
local WARNING_PPPOE="CONFIG_PPPOE:\t missing PPPoE support (optional, needed by pppoe plugin)"
local WARNING_PACKET="CONFIG_PACKET:\t missing AF_PACKET support (optional, used by pppoe plugin)"
if use atm ; then
CONFIG_CHECK+=" ~PPPOATM"
local WARNING_PPPOATM="CONFIG_PPPOATM:\t missing PPPoA support (optional, needed by pppoatm plugin)"
fi

linux-info_pkg_setup
}

src_prepare() {
default

# Set the right paths in radiusclient.conf
sed -e "s:/usr/local/etc:/etc:" \
-e "s:/usr/local/sbin:/usr/sbin:" \
-i pppd/plugins/radius/etc/radiusclient.conf || die
# Set config dir to /etc/ppp/radius
sed -i -e "s:/etc/radiusclient:/etc/ppp/radius:g" \
pppd/plugins/radius/{*.8,*.c,*.h} \
pppd/plugins/radius/etc/* || die

./autogen.sh
}

src_configure() {
# https://bugs.gentoo.org/943931
append-cflags -std=gnu17

local args=(
--localstatedir="${EPREFIX}"/var
--runstatedir="${EPREFIX}"/run
$(use_enable systemd)
$(use_with atm)
$(use_with pam)
$(use_with activefilter pcap)
--enable-cbcp
--enable-multilink
)
econf "${args[@]}"
}

src_install() {
default

find "${ED}" -name '*.la' -type f -delete || die

if use pam; then
pamd_mimic_system ppp auth account session
fi

insinto /etc/modprobe.d
newins "${FILESDIR}/modules.ppp" ppp.conf

dosbin scripts/p{on,off,log}
doman scripts/pon.1
dosym pon.1 /usr/share/man/man1/poff.1
dosym pon.1 /usr/share/man/man1/plog.1

# Adding misc. specialized scripts to doc dir
dodoc -r scripts

newtmpfiles "${FILESDIR}/pppd.tmpfiles-r1" pppd.conf

insinto /etc/ppp/radius
doins pppd/plugins/radius/etc/{dictionary*,issue,port-id-map,radiusclient.conf,realms,servers}
}

pkg_postinst() {
tmpfiles_process pppd.conf
}
Loading