Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 62056 - net-dialup/ppp - pppd has no USE flag for PAM and *has* to be compiled without PAM support
Summary: net-dialup/ppp - pppd has no USE flag for PAM and *has* to be compiled withou...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-28 13:40 UTC by Antek Grzymała (antoszka)
Modified: 2004-08-29 05:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antek Grzymała (antoszka) 2004-08-28 13:40:34 UTC
There is no way to USE pam in the ppp package, thus pppd gets compiled without PAM support which some people may find useful. It is however possible to enable PAM in the Makefile which some people may find useful. Here follows a simple patch to the ebuild, please review it and see whether it's useful. Works for me. Also the emerge should probably copy the ppp.pam file to /etc/pam.d/, but I did not include that in my ebuild patch, because I'm not sure how to do this properly.

--- ppp-2.4.1-r14.ebuild.orig   2004-08-28 22:33:27.044978560 +0200
+++ ppp-2.4.1-r14.ebuild        2004-08-28 22:33:41.104841136 +0200
@@ -12,7 +12,7 @@
 LICENSE="BSD GPL-2"
 SLOT="0"
 KEYWORDS="x86 ppc sparc hppa amd64 ia64 alpha mips"
-IUSE="crypt ipv6 activefilter"
+IUSE="pam crypt ipv6 activefilter"
 
 DEPEND="virtual/libc
        activefilter? ( net-libs/libpcap )"
@@ -36,6 +36,12 @@
                sed -e 's/^#FILTER=y/FILTER=y/' <pppd/Makefile.linux.orig > \
                pppd/Makefile.linux
        }
+
+       use pam && {
+               einfo "Activating pam"
+               sed -i 's/^#USE_PAM=y/USE_PAM=y/' pppd/Makefile.linux
+       }
+
        epatch ${FILESDIR}/gcc3.3-multiline.patch
 
        epatch ${FILESDIR}/gcc33-amd64.patch


Reproducible: Always
Steps to Reproduce:
1. Try to compile pppd with PAM support
2. Find it's impossible in the default setup
3.

Actual Results:  
pppd gets compiled without PAM support
Comment 1 Antek Grzymała (antoszka) 2004-08-29 05:15:31 UTC
Sorry, just noticed pam is available as a USE flag in newer versions of ppp (still  in ~x86). I guess this bugreport should be disregarded.

antoni