ports/98946: [patch] xscreensaver and PAM support
VANHULLEBUS Yvan
vanhu at zeninc.net
Wed Jun 14 12:30:41 UTC 2006
>Number: 98946
>Category: ports
>Synopsis: [patch] xscreensaver and PAM support
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Wed Jun 14 12:30:27 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: VANHULLEBUS Yvan
>Release: FreeBSD 6.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD jayce.zen.inc 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 04:32:43 UTC 2006 root at opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
Actually, xscreensaver compiles with --without-pam.
For hosts with "PAM users" (NIS, LDAP, etc...), this will cause problems when
locking X session with xscreensaver.
>How-To-Repeat:
Set up a host with NIS / LDAP users, configure PAM, and try to use xscreensaver
with such an user.
>Fix:
The following patch allows to compile with PAM support. It is disabled by default as
some (old) mails reported problems with PAM support compiled when not using PAM.
Please note that actually, /etc/pam.d/xscreensaver will still need to be copied
manually, as there is a patch hook in the port to avoid copying it during install.
--- Makefile.orig Wed Jun 14 11:29:28 2006
+++ Makefile Wed Jun 14 11:31:21 2006
@@ -7,6 +7,7 @@
PORTNAME= xscreensaver
PORTVERSION= 5.00
+PORTREVISION= 1
CATEGORIES?= x11
MASTER_SITES= http://www.jwz.org/xscreensaver/ \
http://dougbarton.us/Downloads/
@@ -24,14 +25,15 @@
USE_GL= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --without-pam --with-gl --with-gle --with-xpm --with-xml \
+CONFIGURE_ARGS= --with-gl --with-gle --with-xpm --with-xml \
--with-hackdir=${PREFIX}/bin/xscreensaver-hacks/ \
--with-configdir=${PREFIX}/share/xscreensaver/config/ \
--with-jpeg=${LOCALBASE} --without-gnome --without-kerberos \
--without-motif --mandir=${PREFIX}/man
OPTIONS= ALL_FORTUNES "Run fortune with -sa argument" off \
- SETUID_HACKS "Install sonar hack suid so it can ping" off
+ SETUID_HACKS "Install sonar hack suid so it can ping" off\
+ WITH_PAM "Compiles with PAM support" off
.include <bsd.port.pre.mk>
@@ -40,6 +42,9 @@
.endif
.if defined(WITH_SETUID_HACKS)
CONFIGURE_ARGS+= --with-setuid-hacks
+.endif
+.if !defined(WITH_PAM)
+CONFIGURE_ARGS+= --without-pam
.endif
.undef HAVE_GNOME
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list