diff options
author | marcus <marcus@FreeBSD.org> | 2008-07-28 04:21:19 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2008-07-28 04:21:19 +0800 |
commit | 28ee1055b593e061f1d9d59ea3996eb02cbb53f4 (patch) | |
tree | 1f9ca7739673c18f4acb3b26c4bdbdc62ca8ae00 | |
parent | ef0aaa4d842562aa430e6e8c80a26ed3585745b2 (diff) | |
download | freebsd-ports-gnome-28ee1055b593e061f1d9d59ea3996eb02cbb53f4.tar.gz freebsd-ports-gnome-28ee1055b593e061f1d9d59ea3996eb02cbb53f4.tar.zst freebsd-ports-gnome-28ee1055b593e061f1d9d59ea3996eb02cbb53f4.zip |
* Optional (enabled by default) GnomeKeyring integration via PAM.
* Enable PAM by default
PR: 125984
Submitted by: Marcin Wisnicki <mwisnicki+freebsd@gmail.com>
-rw-r--r-- | x11/xscreensaver-gnome/Makefile | 22 | ||||
-rw-r--r-- | x11/xscreensaver-gnome/files/xscreensaver.pam | 2 | ||||
-rw-r--r-- | x11/xscreensaver-gnome/files/xscreensaver.pam.in | 3 |
3 files changed, 22 insertions, 5 deletions
diff --git a/x11/xscreensaver-gnome/Makefile b/x11/xscreensaver-gnome/Makefile index 43e05e3598df..bb0b4bbfb788 100644 --- a/x11/xscreensaver-gnome/Makefile +++ b/x11/xscreensaver-gnome/Makefile @@ -8,7 +8,7 @@ PORTNAME?= xscreensaver-gnome PORTVERSION= 5.06 -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES= x11 gnome MASTER_SITES= http://www.jwz.org/xscreensaver/ DISTNAME= xscreensaver-${PORTVERSION} @@ -36,10 +36,13 @@ CONFIGURE_ARGS= --with-gtk --with-gl --with-gle --with-pixbuf --with-xpm \ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" -OPTIONS?= PAM "Pluggable Authentication Module support" off \ +OPTIONS?= PAM "Pluggable Authentication Module support" on \ + KEYRING "Enable GnomeKeyring/PAM integration" on \ ALL_FORTUNES "Enable support for all fortunes" off \ SETUID_HACKS "Install sonar hack suid so it can ping" off +SUB_FILES+= xscreensaver.pam + MAN1?= xscreensaver-command.1 xscreensaver-demo.1 \ xscreensaver-getimage-file.1 xscreensaver-getimage-video.1 \ xscreensaver-getimage.1 xscreensaver-text.1 xscreensaver.1 @@ -90,9 +93,18 @@ CONFIGURE_ARGS+= --with-fortune="/usr/games/fortune -sa" .if defined(WITH_PAM) CONFIGURE_ARGS+= --with-pam PLIST_SUB+= PAM="" +.if defined(WITH_KEYRING) +SUB_LIST+= PAM_KEYRING= +RUN_DEPENDS+= ${LOCALBASE}/lib/pam_gnome_keyring.so:${PORTSDIR}/security/gnome-keyring +.else +SUB_LIST+= PAM_KEYRING=\# +.endif .else CONFIGURE_ARGS+= --without-pam PLIST_SUB+= PAM="@comment " +.if defined(WITH_KEYRING) +.warning Option KEYRING needs PAM, but PAM is disabled. +.endif .endif .if defined(WITH_SETUID_HACKS) @@ -114,12 +126,16 @@ post-patch: @${REINPLACE_CMD} -e 's|/etc/pam.d|${PREFIX}/etc/pam.d|g' \ ${WRKSRC}/${f} .endfor - @${CP} ${FILESDIR}/xscreensaver.pam ${WRKSRC}/driver/xscreensaver.pam .else @${REINPLACE_CMD} -e 's|install-xml install-pam|install-xml|' \ ${WRKSRC}/driver/Makefile.in .endif +pre-install: +.if defined(WITH_PAM) + @${CP} ${WRKDIR}/xscreensaver.pam ${WRKSRC}/driver/xscreensaver.pam +.endif + .if !target(post-install-slave) post-install-slave: @${DO_NADA} diff --git a/x11/xscreensaver-gnome/files/xscreensaver.pam b/x11/xscreensaver-gnome/files/xscreensaver.pam deleted file mode 100644 index 1cd383e68d50..000000000000 --- a/x11/xscreensaver-gnome/files/xscreensaver.pam +++ /dev/null @@ -1,2 +0,0 @@ -auth include system -account include system diff --git a/x11/xscreensaver-gnome/files/xscreensaver.pam.in b/x11/xscreensaver-gnome/files/xscreensaver.pam.in new file mode 100644 index 000000000000..c2f8394ff826 --- /dev/null +++ b/x11/xscreensaver-gnome/files/xscreensaver.pam.in @@ -0,0 +1,3 @@ +auth include system +%%PAM_KEYRING%%auth optional %%LOCALBASE%%/lib/pam_gnome_keyring.so +account include system |