diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2002-12-05 03:09:35 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2002-12-05 03:09:35 +0800 |
commit | d80151d8e6cc30c52e871d1de33e55e6f8a236ce (patch) | |
tree | 9488948d7189cd2bacd32fa33c093bb1136daf7a /x11/gdm2 | |
parent | e1d297c71ed57776dfd6f1864e62109c8a4fe44f (diff) | |
download | marcuscom-ports-d80151d8e6cc30c52e871d1de33e55e6f8a236ce.tar marcuscom-ports-d80151d8e6cc30c52e871d1de33e55e6f8a236ce.tar.gz marcuscom-ports-d80151d8e6cc30c52e871d1de33e55e6f8a236ce.tar.bz2 marcuscom-ports-d80151d8e6cc30c52e871d1de33e55e6f8a236ce.tar.lz marcuscom-ports-d80151d8e6cc30c52e871d1de33e55e6f8a236ce.tar.xz marcuscom-ports-d80151d8e6cc30c52e871d1de33e55e6f8a236ce.tar.zst marcuscom-ports-d80151d8e6cc30c52e871d1de33e55e6f8a236ce.zip |
Use /usr/bin/which instead of command to find sessreg.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@237 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11/gdm2')
-rw-r--r-- | x11/gdm2/Makefile | 2 | ||||
-rw-r--r-- | x11/gdm2/files/patch-config_PostSession | 11 | ||||
-rw-r--r-- | x11/gdm2/files/patch-config_PreSession | 16 |
3 files changed, 28 insertions, 1 deletions
diff --git a/x11/gdm2/Makefile b/x11/gdm2/Makefile index 49b052b8d..c0522f7f6 100644 --- a/x11/gdm2/Makefile +++ b/x11/gdm2/Makefile @@ -7,7 +7,7 @@ PORTNAME= gdm2 PORTVERSION= 2.4.0.12 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= x11 gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/2.4 diff --git a/x11/gdm2/files/patch-config_PostSession b/x11/gdm2/files/patch-config_PostSession new file mode 100644 index 000000000..98433e066 --- /dev/null +++ b/x11/gdm2/files/patch-config_PostSession @@ -0,0 +1,11 @@ +--- config/PostSession.orig Wed Dec 4 14:05:13 2002 ++++ config/PostSession Wed Dec 4 14:05:34 2002 +@@ -2,7 +2,7 @@ + + PATH=/usr/bin/X11:/usr/X11R6/bin:/opt/X11R6/bin:$PATH + +-if command -v sessreg > /dev/null 2>&1; then ++if /usr/bin/which -s sessreg > /dev/null 2>&1; then + sessreg -d -w /var/log/wtmp -u /var/run/utmp -x "$X_SERVERS" -h "$REMOTE_HOST" -l $DISPLAY $USER + fi + exit 0 diff --git a/x11/gdm2/files/patch-config_PreSession b/x11/gdm2/files/patch-config_PreSession new file mode 100644 index 000000000..4a37fa9db --- /dev/null +++ b/x11/gdm2/files/patch-config_PreSession @@ -0,0 +1,16 @@ +--- config/PreSession.orig Wed Dec 4 14:05:38 2002 ++++ config/PreSession Wed Dec 4 14:06:04 2002 +@@ -8,11 +8,11 @@ + # + PATH=/usr/bin/X11:/usr/X11R6/bin:/opt/X11R6/bin:$PATH + +-if command -v xsetroot > /dev/null 2>&1; then ++if /usr/bin/which -s xsetroot > /dev/null 2>&1; then + xsetroot -cursor_name left_ptr -solid "#363047" + fi + +-if command -v sessreg > /dev/null 2>&1; then ++if /usr/bin/which -s sessreg > /dev/null 2>&1; then + # some output for easy debugging + echo "$0: Registering your session with wtmp and utmp" + echo "$0: running: sessreg -a -w /var/log/wtmp -u /var/run/utmp -x \"$X_SERVERS\" -h \"$REMOTE_HOST\" -l $DISPLAY $USER" |