summaryrefslogtreecommitdiffstats
path: root/x11/gdm
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2007-10-22 12:42:08 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2007-10-22 12:42:08 +0800
commit898755f855a2f78ad8c67e31894c30b9a6ea09a0 (patch)
tree2813ababfffc23a66d160c14a7e7503b75a44f3a /x11/gdm
parent42ca75f2e8de29038c28acb13b9279c3d85ff8e4 (diff)
downloadmarcuscom-ports-898755f855a2f78ad8c67e31894c30b9a6ea09a0.tar
marcuscom-ports-898755f855a2f78ad8c67e31894c30b9a6ea09a0.tar.gz
marcuscom-ports-898755f855a2f78ad8c67e31894c30b9a6ea09a0.tar.bz2
marcuscom-ports-898755f855a2f78ad8c67e31894c30b9a6ea09a0.tar.lz
marcuscom-ports-898755f855a2f78ad8c67e31894c30b9a6ea09a0.tar.xz
marcuscom-ports-898755f855a2f78ad8c67e31894c30b9a6ea09a0.tar.zst
marcuscom-ports-898755f855a2f78ad8c67e31894c30b9a6ea09a0.zip
Fix detection of the login(), logout(), and logwtmp() functions so that
GDM sessions properly register themselves in utmp and wtmp. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@9853 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11/gdm')
-rw-r--r--x11/gdm/Makefile3
-rw-r--r--x11/gdm/files/patch-configure116
2 files changed, 109 insertions, 10 deletions
diff --git a/x11/gdm/Makefile b/x11/gdm/Makefile
index c3a9c992a..de7bdb81c 100644
--- a/x11/gdm/Makefile
+++ b/x11/gdm/Makefile
@@ -3,11 +3,12 @@
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
-# $MCom: ports/x11/gdm/Makefile,v 1.78 2007/09/17 20:22:05 marcus Exp $
+# $MCom: ports/x11/gdm/Makefile,v 1.79 2007/10/16 03:09:12 mezz Exp $
#
PORTNAME= gdm
PORTVERSION= 2.20.1
+PORTREVISION= 1
CATEGORIES= x11 gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
diff --git a/x11/gdm/files/patch-configure b/x11/gdm/files/patch-configure
index 05310c268..18b1e2742 100644
--- a/x11/gdm/files/patch-configure
+++ b/x11/gdm/files/patch-configure
@@ -1,6 +1,110 @@
---- configure.orig 2007-09-17 16:14:04.000000000 -0400
-+++ configure 2007-09-17 16:14:04.000000000 -0400
-@@ -33480,23 +33480,23 @@ esac
+--- configure.orig 2007-10-22 00:31:04.000000000 -0400
++++ configure 2007-10-22 00:34:52.000000000 -0400
+@@ -29593,15 +29592,13 @@ fi
+ { echo "$as_me:$LINENO: result: $ac_cv_lib_util_login" >&5
+ echo "${ECHO_T}$ac_cv_lib_util_login" >&6; }
+ if test $ac_cv_lib_util_login = yes; then
+- cat >>confdefs.h <<_ACEOF
+-#define HAVE_LIBUTIL 1
++ cat >>confdefs.h <<\_ACEOF
++#define HAVE_LOGIN 1
+ _ACEOF
+-
+- LIBS="-lutil $LIBS"
+-
++
++ EXTRA_DAEMON_LIBS="$EXTRA_DAEMON_LIBS -lutil"
+ fi
+
+-
+ { echo "$as_me:$LINENO: checking for logout in -lutil" >&5
+ echo $ECHO_N "checking for logout in -lutil... $ECHO_C" >&6; }
+ if test "${ac_cv_lib_util_logout+set}" = set; then
+@@ -29664,12 +29661,80 @@ fi
+ { echo "$as_me:$LINENO: result: $ac_cv_lib_util_logout" >&5
+ echo "${ECHO_T}$ac_cv_lib_util_logout" >&6; }
+ if test $ac_cv_lib_util_logout = yes; then
+- cat >>confdefs.h <<_ACEOF
+-#define HAVE_LIBUTIL 1
++ cat >>confdefs.h <<\_ACEOF
++#define HAVE_LOGOUT 1
++_ACEOF
++
++ EXTRA_DAEMON_LIBS="$EXTRA_DAEMON_LIBS -lutil"
++fi
++
++{ echo "$as_me:$LINENO: checking for logwtmp in -lutil" >&5
++echo $ECHO_N "checking for logwtmp in -lutil... $ECHO_C" >&6; }
++if test "${ac_cv_lib_util_logwtmp+set}" = set; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ ac_check_lib_save_LIBS=$LIBS
++LIBS="-lutil $LIBS"
++cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++
++/* Override any GCC internal prototype to avoid an error.
++ Use char because int might match the return type of a GCC
++ builtin and then its argument prototype would still apply. */
++#ifdef __cplusplus
++extern "C"
++#endif
++char logwtmp ();
++int
++main ()
++{
++return logwtmp ();
++ ;
++ return 0;
++}
+ _ACEOF
++rm -f conftest.$ac_objext conftest$ac_exeext
++if { (ac_try="$ac_link"
++case "(($ac_try" in
++ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
++ *) ac_try_echo=$ac_try;;
++esac
++eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
++ (eval "$ac_link") 2>conftest.er1
++ ac_status=$?
++ grep -v '^ *+' conftest.er1 >conftest.err
++ rm -f conftest.er1
++ cat conftest.err >&5
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } && {
++ test -z "$ac_c_werror_flag" ||
++ test ! -s conftest.err
++ } && test -s conftest$ac_exeext &&
++ $as_test_x conftest$ac_exeext; then
++ ac_cv_lib_util_logwtmp=yes
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
+
+- LIBS="-lutil $LIBS"
++ ac_cv_lib_util_logwtmp=no
++fi
+
++rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
++ conftest$ac_exeext conftest.$ac_ext
++LIBS=$ac_check_lib_save_LIBS
++fi
++{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_logwtmp" >&5
++echo "${ECHO_T}$ac_cv_lib_util_logwtmp" >&6; }
++if test $ac_cv_lib_util_logwtmp = yes; then
++ cat >>confdefs.h <<\_ACEOF
++#define HAVE_LOGWTMP 1
++_ACEOF
++
++ EXTRA_DAEMON_LIBS="$EXTRA_DAEMON_LIBS -lutil"
+ fi
+
+
+@@ -33472,18 +33537,18 @@ esac
# allow user to override the host-specific default
@@ -31,9 +135,3 @@
# On Solaris, the /usr/bin/Xserver script is used to decide whether to
# use Xsun or Xorg, so this is used on Solaris.
- #
--# When testing for /usr/X11R6, first check with "! -h" for /usr/X11R6
-+# When testing for /usr/local, first check with "! -h" for /usr/local
- # and /usr/X11 since they often symlink to each other, and configure
- # should use the more stable location (the real directory) if possible.
- #