View | Details | Raw Unified | Return to bug 126115
Collapse All | Expand All

(-)/usr/ports/x11/gnome-screensaver/Makefile (-9 / +18 lines)
Lines 42-67 Link Here
42
42
43
XSCREENSAVER_EXCLUDE=	"(popsquares.xml)"
43
XSCREENSAVER_EXCLUDE=	"(popsquares.xml)"
44
44
45
OPTIONS=	PAM "Pluggable Authentication Module support" off \
45
OPTIONS=	PAM "Pluggable Authentication Module support (broken!)" off \
46
		KEYRING "Enable GnomeKeyring/PAM integration" off
46
		KEYRING "Enable GnomeKeyring integration (needs PAM)" off
47
47
48
.include <bsd.port.pre.mk>
48
.include <bsd.port.pre.mk>
49
49
50
.if defined(WITH_PAM)
50
.if defined(WITH_PAM)
51
# Currently semi-broken: http://bugzilla.gnome.org/show_bug.cgi?id=370847
52
# Our default pam_unix will not be able to authenticate
53
# Define GNOME_SCREENSAVER_WITH_BROKEN_PAM only if you know what you are doing
54
.if !defined(GNOME_SCREENSAVER_WITH_BROKEN_PAM)
55
IGNORE=		PAM support is partially broken. Please read Makefile
56
.endif
51
CONFIGURE_ARGS+=	--enable-pam
57
CONFIGURE_ARGS+=	--enable-pam
52
PLIST_SUB+=		PAM=""
58
PLIST_SUB+=		PAM=""
53
.if defined(WITH_KEYRING)
59
.else
60
CONFIGURE_ARGS+=	--disable-pam
61
PLIST_SUB+=		PAM="@comment "
62
.endif
63
64
.if defined(WITH_KEYRING) && defined(WITH_PAM)
54
SUB_LIST+=		PAM_KEYRING=
65
SUB_LIST+=		PAM_KEYRING=
55
RUN_DEPENDS+=		${LOCALBASE}/lib/pam_gnome_keyring.so:${PORTSDIR}/security/gnome-keyring
66
RUN_DEPENDS+=		${LOCALBASE}/lib/pam_gnome_keyring.so:${PORTSDIR}/security/gnome-keyring
56
.else
67
.else
57
SUB_LIST+=		PAM_KEYRING=\#
68
SUB_LIST+=		PAM_KEYRING=\#
58
.endif
69
.endif
59
.else
70
60
CONFIGURE_ARGS+=	--disable-pam
71
pre-fetch:
61
PLIST_SUB+=		PAM="@comment "
72
.if defined(WITHOUT_PAM) && defined(WITH_KEYRING)
62
.if defined(WITH_KEYRING)
73
	@${ECHO_MSG} "Keyring integration is disabled because it needs PAM."
63
.warning Option KEYRING needs PAM, but PAM is disabled.
64
.endif
65
.endif
74
.endif
66
75
67
post-patch:
76
post-patch:

Return to bug 126115