]> git.pld-linux.org Git - packages/XFree86.git/commitdiff
- run xfs as user xfs, not root (use -droppriv in default config)
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 8 Feb 2001 17:37:20 +0000 (17:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- XFree86-devel Provides: xpm-devel
- fixed typo in startx_xauth patch
- call ldconfig in post/postun scripts of OpenGL-libs package
- release 7

Changed files:
    XFree86.spec -> 1.185

XFree86.spec

index 631ef4f91513d194f9c5787a4cdedf9f74ff7253..b7b0376f343cc564ee865ef0a2824f4308cb13fe 100644 (file)
@@ -5,7 +5,7 @@ Summary(pl):    XFree86 Window System wraz z podstawowymi programami
 Summary(tr):   XFree86 Pencereleme Sistemi sunucularý ve temel programlar
 Name:          XFree86
 Version:       4.0.2
-Release:       6
+Release:       7
 License:       MIT
 Group:         X11/XFree86
 Group(de):     X11/XFree86
@@ -202,6 +202,7 @@ Group(de):  X11/Libraries
 Group(pl):     X11/Biblioteki
 Requires:      %{name}-libs = %{version}
 Obsoletes:     xpm-devel
+Provides:      xpm-devel
 %ifarch sparc sparc64
 Obsoletes:     X11R6.1-devel
 %endif
@@ -955,6 +956,12 @@ Group(de): X11/XFree86
 Group(pl):     X11/XFree86
 Requires:      %{name}-libs = %{version}
 Prereq:                chkconfig
+Prereq:                /usr/sbin/useradd
+Prereq:                /usr/sbin/groupadd
+Prereq:                /usr/sbin/userdel
+Prereq:                /usr/sbin/groupdel
+Prereq:                /usr/bin/getgid
+Prereq:                /bin/id
 Obsoletes:     xfsft XFree86-xfs
 
 %description -n xfs
@@ -1193,6 +1200,24 @@ else
        echo "found"
 fi
 
+%pre -n xfs
+if [ -n "`/usr/bin/getgid xfs`" ]; then
+       if [ "`/usr/bin/getgid xfs`" != "56" ]; then
+               echo "Warning: group xfs hasn't gid=56. Correct this before installing xfs." 1>&2
+               exit 1
+       fi
+else
+       /usr/sbin/groupadd -g 56 -r -f xfs
+fi
+if [ -n "`/bin/id -u xfs 2>/dev/null`" ]; then
+       if [ "`/bin/id -u xfs`" != "56" ]; then
+               echo "Warning: user xfs hasn't uid=56. Corrent this before installing xfs." 1>&2
+               exit 1
+       fi
+else
+       /usr/sbin/useradd -u 56 -r -d /etc/X11/fs -s /bin/false -c "X Font Server" -g xfs xfs 1>&2
+fi
+
 %post -n xfs
 /sbin/chkconfig --add xfs
 if [ -f /var/lock/subsys/xfs ]; then
@@ -1201,14 +1226,6 @@ else
        echo "Run \"/etc/rc.d/init.d/xfs start\" to start font server." >&2
 fi
 
-%post -n xdm
-/sbin/chkconfig --add xdm
-if [ -f /var/lock/subsys/xdm ]; then
-       /etc/rc.d/init.d/xdm restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/xdm start\" to start xdm." >&2
-fi
-               
 %preun -n xfs
 if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/xfs ]; then
@@ -1217,6 +1234,20 @@ if [ "$1" = "0" ]; then
        /sbin/chkconfig --del xfs
 fi
 
+%postun -n xfs
+if [ $1 = 0 ]; then
+       /usr/sbin/userdel xfs 2>/dev/null
+       /usr/sbin/groupdel xfs 2>/dev/null
+fi
+
+%post -n xdm
+/sbin/chkconfig --add xdm
+if [ -f /var/lock/subsys/xdm ]; then
+       /etc/rc.d/init.d/xdm restart >&2
+else
+       echo "Run \"/etc/rc.d/init.d/xdm start\" to start xdm." >&2
+fi
+               
 %preun -n xdm
 if [ "$1" = "0" ]; then
        if [ -f /var/lock/subsys/xdm ]; then
@@ -1228,6 +1259,9 @@ fi
 %post   DPS -p /sbin/ldconfig
 %postun DPS -p /sbin/ldconfig
 
+%post  OpenGL-libs -p /sbin/ldconfig
+%postun        OpenGL-libs -p /sbin/ldconfig
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
This page took 0.04465 seconds and 4 git commands to generate.