diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2008-07-28 04:33:23 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2008-07-28 04:33:23 +0800 |
commit | fb00351ebfe806a3c5155f56b8b9ae492104bd3a (patch) | |
tree | eef63b334d6f883f2d042080177ca09a77021467 /x11/gnome-screensaver/Makefile | |
parent | d12daa6236579c43a212b032f4a994ff19f1e5fb (diff) | |
download | marcuscom-ports-fb00351ebfe806a3c5155f56b8b9ae492104bd3a.tar marcuscom-ports-fb00351ebfe806a3c5155f56b8b9ae492104bd3a.tar.gz marcuscom-ports-fb00351ebfe806a3c5155f56b8b9ae492104bd3a.tar.bz2 marcuscom-ports-fb00351ebfe806a3c5155f56b8b9ae492104bd3a.tar.lz marcuscom-ports-fb00351ebfe806a3c5155f56b8b9ae492104bd3a.tar.xz marcuscom-ports-fb00351ebfe806a3c5155f56b8b9ae492104bd3a.tar.zst marcuscom-ports-fb00351ebfe806a3c5155f56b8b9ae492104bd3a.zip |
Sync with the FreeBSD ports tree.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@11192 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11/gnome-screensaver/Makefile')
-rw-r--r-- | x11/gnome-screensaver/Makefile | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/x11/gnome-screensaver/Makefile b/x11/gnome-screensaver/Makefile index 50908c11f..2a8dfa912 100644 --- a/x11/gnome-screensaver/Makefile +++ b/x11/gnome-screensaver/Makefile @@ -3,7 +3,7 @@ # Whom: Joe Marcus Clarke <marcus@FreeBSD.org> # # $FreeBSD$ -# $MCom: ports/x11/gnome-screensaver/Makefile,v 1.89 2008/07/19 22:40:26 marcus Exp $ +# $MCom: ports/x11/gnome-screensaver/Makefile,v 1.90 2008/07/23 19:07:09 marcus Exp $ # PORTNAME= gnome-screensaver @@ -34,20 +34,40 @@ GCONF_SCHEMAS= gnome-screensaver.schemas MAN1= gnome-screensaver-command.1 gnome-screensaver-preferences.1 \ gnome-screensaver.1 - PLIST= ${WRKDIR}/pkg-plist +SUB_FILES+= gnome-screensaver.pam XSCREENSAVER_DIR= ${LOCALBASE}/share/xscreensaver/config SCREENSAVER_DIR= share/applications/screensavers XSCREENSAVER_EXCLUDE= "(popsquares.xml)" -OPTIONS= PAM "Pluggable Authentication Module support" off +OPTIONS= PAM "Pluggable Authentication Module support" off \ + KEYRING "Enable GnomeKeyring/PAM integration" off .include <bsd.port.pre.mk> -.if !defined(WITH_PAM) +.if defined(WITH_PAM) +CONFIGURE_ARGS+= --enable-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+= --disable-pam +PLIST_SUB+= PAM="@comment " +.if defined(WITH_KEYRING) +.warning Option KEYRING needs PAM, but PAM is disabled. +.endif +.endif + +post-patch: +.if defined(WITH_PAM) + @${REINPLACE_CMD} -e 's|/etc/pam.d|${PREFIX}/etc/pam.d|g' \ + ${WRKSRC}/src/gs-auth-pam.c .endif pre-install: @@ -66,5 +86,8 @@ post-install: ${FIND} -s ${XSCREENSAVER_DIR} -maxdepth 1 -type f -name "*.xml" | \ ${GREP} -Ev ${XSCREENSAVER_EXCLUDE} | \ ${XARGS} ${WRKSRC}/data/migrate-xscreensaver-config.sh +.if defined(WITH_PAM) + ${INSTALL_DATA} ${WRKDIR}/gnome-screensaver.pam ${PREFIX}/etc/pam.d/gnome-screensaver +.endif .include <bsd.port.post.mk> |