summaryrefslogtreecommitdiffstats
path: root/x11/gdm
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2008-07-28 04:33:23 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2008-07-28 04:33:23 +0800
commitfb00351ebfe806a3c5155f56b8b9ae492104bd3a (patch)
treeeef63b334d6f883f2d042080177ca09a77021467 /x11/gdm
parentd12daa6236579c43a212b032f4a994ff19f1e5fb (diff)
downloadmarcuscom-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/gdm')
-rw-r--r--x11/gdm/Makefile17
-rw-r--r--x11/gdm/files/gdm.in9
-rw-r--r--x11/gdm/files/gdm.pam.in21
-rw-r--r--x11/gdm/pkg-plist2
4 files changed, 41 insertions, 8 deletions
diff --git a/x11/gdm/Makefile b/x11/gdm/Makefile
index 263c51284..b54bba059 100644
--- a/x11/gdm/Makefile
+++ b/x11/gdm/Makefile
@@ -3,12 +3,12 @@
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
-# $MCom: ports/x11/gdm/Makefile,v 1.124 2008/06/09 05:34:29 marcus Exp $
+# $MCom: ports/x11/gdm/Makefile,v 1.125 2008/07/26 02:40:42 marcus Exp $
#
PORTNAME= gdm
PORTVERSION= 2.22.0
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= x11 gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
@@ -39,19 +39,23 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
GTKDOC="false"
+SUB_FILES+= gdm.pam
+
GDMDIR?= ${PREFIX}/etc/gdm
PKGMESSAGE= ${WRKDIR}/pkg-message
GNOME_LOCALSTATEDIR= /var
-OPTIONS= IPV6 "Enable IPv6 support" on
+OPTIONS= IPV6 "Enable IPv6 support" on \
+ KEYRING "Enable GnomeKeyring/PAM integration" on
.include <bsd.port.pre.mk>
-.if exists(/usr/include/security/pam_misc.h)
-PLIST_SUB+= PAM_MISC=""
+.if defined(WITHOUT_KEYRING)
+SUB_LIST+= PAM_KEYRING=\#
.else
-PLIST_SUB+= PAM_MISC="@comment "
+RUN_DEPENDS+= ${LOCALBASE}/lib/pam_gnome_keyring.so:${PORTSDIR}/security/gnome-keyring
+SUB_LIST+= PAM_KEYRING=
.endif
.if !defined(WITHOUT_IPV6)
@@ -81,6 +85,7 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/data/gdm.conf-custom \
${PREFIX}/etc/gdm/custom.conf.default
${MKDIR} ${PREFIX}/share/xsessions
+ ${INSTALL_DATA} ${WRKDIR}/gdm.pam ${PREFIX}/etc/pam.d/gdm
@${MKDIR} ${PREFIX}/etc/gdm/Sessions
@${SED} -e 's|%%PREFIX%%|${PREFIX}|g' < ${PKGDIR}/pkg-message \
| /usr/bin/fmt 75 79 > ${PKGMESSAGE}
diff --git a/x11/gdm/files/gdm.in b/x11/gdm/files/gdm.in
index f44669946..df726e5af 100644
--- a/x11/gdm/files/gdm.in
+++ b/x11/gdm/files/gdm.in
@@ -1,6 +1,6 @@
#!/bin/sh
# $FreeBSD$
-# $MCom: ports-experimental/x11/gdm/files/gdm.in,v 1.1 2008/02/29 22:20:47 mezz Exp $
+# $MCom: ports/x11/gdm/files/gdm.in,v 1.30 2008/03/24 14:15:12 kwm Exp $
# PROVIDE: gdm
# REQUIRE: LOGIN cleanvar moused syscons dbus
@@ -14,6 +14,7 @@
. %%GNOME_SUBR%%
gdm_enable=${gdm_enable-${gnome_enable}}
+gdm_preserve_base_pam_conf=${gdm_preserve_base_pam_conf-NO}
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:%%LOCALBASE%%/bin:%%LOCALBASE%%/sbin
@@ -31,6 +32,12 @@ gdm_start()
fi
echo "Starting ${name}."
+ # make sure there is no pam configuration for gdm service in base system
+ if ! checkyesno gdm_preserve_base_pam_conf && [ -f /etc/pam.d/gdm ]; then
+ cp -p /etc/pam.d/gdm /etc/pam.d/gdm_disabled
+ rm -f /etc/pam.d/gdm
+ fi
+
( iter=0
while ! ps -axoargs | grep "^/usr/libexec/getty " | grep -qv grep >/dev/null 2>&1; do
if [ ${iter} -eq 60 ]; then
diff --git a/x11/gdm/files/gdm.pam.in b/x11/gdm/files/gdm.pam.in
new file mode 100644
index 000000000..2355004d0
--- /dev/null
+++ b/x11/gdm/files/gdm.pam.in
@@ -0,0 +1,21 @@
+#
+# $FreeBSD: src/etc/pam.d/gdm,v 1.8 2007/06/10 18:57:20 yar Exp $
+#
+# PAM configuration for the "gdm" service
+#
+
+# auth
+#auth sufficient pam_krb5.so no_warn try_first_pass
+#auth sufficient pam_ssh.so no_warn try_first_pass
+auth required pam_unix.so no_warn try_first_pass
+%%PAM_KEYRING%%auth optional %%LOCALBASE%%/lib/pam_gnome_keyring.so
+
+# account
+account required pam_nologin.so
+#account required pam_krb5.so
+account required pam_unix.so
+
+# session
+#session optional pam_ssh.so
+session required pam_permit.so
+%%PAM_KEYRING%%session optional %%LOCALBASE%%/lib/pam_gnome_keyring.so auto_start
diff --git a/x11/gdm/pkg-plist b/x11/gdm/pkg-plist
index c4f919b40..bb09fcdb6 100644
--- a/x11/gdm/pkg-plist
+++ b/x11/gdm/pkg-plist
@@ -10,6 +10,7 @@ etc/gdm/Xsession
etc/gdm/custom.conf.default
@exec [ -f %B/custom.conf ] || cp %B/%f %B/custom.conf
etc/gdm/gdm.schemas
+etc/pam.d/gdm
libdata/bonobo/servers/GNOME_FastUserSwitchApplet.server
libexec/gdm-crash-logger
libexec/gdm-factory-slave
@@ -21,7 +22,6 @@ libexec/gdm-simple-greeter
libexec/gdm-simple-slave
libexec/gdm-user-switch-applet
libexec/gdm-xdmcp-chooser-slave
-%%PAM_MISC%%libexec/gdmaskpass
sbin/gdm
sbin/gdm-binary
sbin/gdm-restart