diff options
author | flz <flz@FreeBSD.org> | 2005-04-05 15:59:21 +0800 |
---|---|---|
committer | flz <flz@FreeBSD.org> | 2005-04-05 15:59:21 +0800 |
commit | d2a02f11d6cb50cd3b96c554d1347c5176e59c2d (patch) | |
tree | 43af461a2a515ce7a34a8f9ec020656e3b1b1632 /x11/wdm | |
parent | 1dcf21d7ca3b984bf37476e0275c0eedb2c45fc9 (diff) | |
download | freebsd-ports-gnome-d2a02f11d6cb50cd3b96c554d1347c5176e59c2d.tar.gz freebsd-ports-gnome-d2a02f11d6cb50cd3b96c554d1347c5176e59c2d.tar.zst freebsd-ports-gnome-d2a02f11d6cb50cd3b96c554d1347c5176e59c2d.zip |
- Update to 1.28.
PR: ports/79486
Submitted by: Ports Fury
Diffstat (limited to 'x11/wdm')
-rw-r--r-- | x11/wdm/Makefile | 6 | ||||
-rw-r--r-- | x11/wdm/distinfo | 4 | ||||
-rw-r--r-- | x11/wdm/files/patch-src::wdm::session.c | 57 | ||||
-rw-r--r-- | x11/wdm/pkg-plist | 8 |
4 files changed, 53 insertions, 22 deletions
diff --git a/x11/wdm/Makefile b/x11/wdm/Makefile index a6a1d540658d..64f53904a150 100644 --- a/x11/wdm/Makefile +++ b/x11/wdm/Makefile @@ -6,7 +6,7 @@ # PORTNAME= wdm -PORTVERSION= 1.27 +PORTVERSION= 1.28 CATEGORIES= x11 windowmaker MASTER_SITES= http://voins.program.ru/wdm/ \ http://www.de.freebsd.org/de/gif/bsd/ \ @@ -28,7 +28,7 @@ USE_X_PREFIX= yes USE_REINPLACE= yes GNU_CONFIGURE= yes CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} -CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \ +CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \ DEF_SERVER="${DEF_SERVER}" CONFIGURE_ARGS= --with-logdir=/var/log \ --with-runlockdir=/var/run \ @@ -45,7 +45,7 @@ CONFIGURE_ARGS= --with-logdir=/var/log \ MAN1= wdm.1 wdmLogin.1 CPPFLAGS= -I${LOCALBASE}/include -DCSRG_BASED -DHAS_SETUSERCONTEXT -LDFLAGS= -L${LOCALBASE}/lib +LDFLAGS= -L${LOCALBASE}/lib -lintl DEF_SERVER?= ${X11BASE}/bin/X diff --git a/x11/wdm/distinfo b/x11/wdm/distinfo index 0e0b7095e115..4c93fff14e63 100644 --- a/x11/wdm/distinfo +++ b/x11/wdm/distinfo @@ -1,5 +1,5 @@ -MD5 (wdm/wdm-1.27.tar.bz2) = df2eeb24a4e56c075aae26a6d7b707a8 -SIZE (wdm/wdm-1.27.tar.bz2) = 379253 +MD5 (wdm/wdm-1.28.tar.bz2) = 4da8ffe3af233305786d9b6aab78b838 +SIZE (wdm/wdm-1.28.tar.bz2) = 381522 MD5 (wdm/beastie.xpm) = 0891d7d8ac81514f10aafeb8f8a89ca2 SIZE (wdm/beastie.xpm) = 66929 MD5 (wdm/daemon1-HQ-1280x960.jpg) = b38f175cf6b7167484afac423837ed1a diff --git a/x11/wdm/files/patch-src::wdm::session.c b/x11/wdm/files/patch-src::wdm::session.c index 884b5e7d664b..035205602185 100644 --- a/x11/wdm/files/patch-src::wdm::session.c +++ b/x11/wdm/files/patch-src::wdm::session.c @@ -1,6 +1,6 @@ ---- src/wdm/session.c.orig Fri Jun 6 23:48:46 2003 -+++ src/wdm/session.c Tue Jul 22 20:32:23 2003 -@@ -534,6 +534,7 @@ +--- src/wdm/session.c.orig Sat Mar 26 22:57:04 2005 ++++ src/wdm/session.c Sun Mar 27 09:22:42 2005 +@@ -533,6 +533,7 @@ int pid; #ifdef HAS_SETUSERCONTEXT struct passwd* pwd; @@ -8,20 +8,43 @@ #endif #ifdef USE_PAM pam_handle_t *pamh = thepamh(); -@@ -613,6 +614,8 @@ - * Set the user's credentials: uid, gid, groups, - * environment variables, resource limits, and umask. - */ +@@ -562,6 +563,7 @@ + /* Do system-dependent login setup here */ + + #ifndef AIXV3 ++#ifndef HAS_SETUSERCONTEXT + if (setgid(verify->gid) < 0) + { + WDMError("setgid %d (user \"%s\") failed, errno=%d\n", +@@ -609,6 +611,31 @@ + verify->uid, name, errno); + return (0); + } ++#else /* HAS_SETUSERCONTEXT */ ++ /* ++ * Set the user's credentials: uid, gid, groups, ++ * environment variables, resource limits, and umask. ++ */ + /* destroy user environment before calling setusercontext */ + environ = verify->userEnviron; - pwd = getpwnam(name); - if (pwd) - { -@@ -622,6 +625,7 @@ - errno); - return (0); - } ++ pwd = getpwnam(name); ++ if (pwd) ++ { ++ if (setusercontext(NULL, pwd, pwd->pw_uid, LOGIN_SETALL) < 0) ++ { ++ WDMError("setusercontext for \"%s\" failed, errno=%d\n", name, ++ errno); ++ return (0); ++ } + verify->userEnviron = environ; - endpwent(); - } - else ++ endpwent(); ++ } ++ else ++ { ++ WDMError("getpwnam for \"%s\" failed, errno=%d\n", name, errno); ++ return (0); ++ } ++#endif /* HAS_SETUSERCONTEXT */ + #else /* AIXV3 */ + /* + * Set the user's credentials: uid, gid, groups, diff --git a/x11/wdm/pkg-plist b/x11/wdm/pkg-plist index 04378fb301fb..bbdd4b0668a7 100644 --- a/x11/wdm/pkg-plist +++ b/x11/wdm/pkg-plist @@ -29,6 +29,14 @@ lib/X11/wdm/wdm-config.dist @exec [ -f %D/lib/X11/wdm/wdm-config ] || (cp %D/lib/X11/wdm/wdm-config.dist %D/lib/X11/wdm/wdm-config) lib/X11/wdm/wdm-config.in lib/X11/wdm/wdmReconfig +share/locale/cs/LC_MESSAGES/wdm.mo +share/locale/cy/LC_MESSAGES/wdm.mo +share/locale/de/LC_MESSAGES/wdm.mo +share/locale/en/LC_MESSAGES/wdm.mo +share/locale/es/LC_MESSAGES/wdm.mo +share/locale/fr_FR/LC_MESSAGES/wdm.mo +share/locale/ja/LC_MESSAGES/wdm.mo +share/locale/ru/LC_MESSAGES/wdm.mo @unexec rmdir %D/lib/X11/wdm/pixmaps 2>/dev/null || true @exec mkdir -p %D/lib/X11/wdm/authdir @unexec rmdir %D/lib/X11/wdm/authdir/authfiles 2>/dev/null || true |