Added misc files for VIGS X11 video driver. 82/12382/1
authorjinhyung.jo <jinhyung.jo@samsung.com>
Wed, 13 Nov 2013 09:50:47 +0000 (18:50 +0900)
committerjinhyung.jo <jinhyung.jo@samsung.com>
Wed, 13 Nov 2013 09:57:27 +0000 (18:57 +0900)
This source has copied from xf86-misc-emulfb.
And then has modified.

Change-Id: I16388f69e440e69e9050f6492ed9296702f3e0be
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
26 files changed:
AUTHORS [new file with mode: 0644]
COPYING [new file with mode: 0644]
LICENSE.MIT [new file with mode: 0644]
Makefile.am [new file with mode: 0644]
NOTICE [new file with mode: 0644]
README [new file with mode: 0644]
autogen.sh [new file with mode: 0755]
conf-i386-vigs/display.conf [new file with mode: 0644]
conf-i386-vigs/input.conf [new file with mode: 0644]
conf-i386-vigs/module.conf [new file with mode: 0644]
configure.ac [new file with mode: 0644]
i386-common/Xmodmap [new file with mode: 0644]
i386-common/Xorg.arch-options [new file with mode: 0644]
i386-common/Xorg.sh [new file with mode: 0755]
i386-common/Xresources [new file with mode: 0644]
i386-common/arch-preinit.d/i386-enumerate-input [new file with mode: 0755]
i386-common/scripts/setcpu [new file with mode: 0755]
i386-common/scripts/setpoll [new file with mode: 0755]
i386-common/startx [new file with mode: 0755]
i386-common/xinitrc [new file with mode: 0755]
i386-common/xorg.conf [new file with mode: 0644]
i386-common/xresources [new file with mode: 0755]
i386-common/xserver [new file with mode: 0755]
i386-common/xsetrc [new file with mode: 0755]
packaging/xf86-misc-vigs.spec [new file with mode: 0644]
xf86-misc-vigs.manifest [new file with mode: 0644]

diff --git a/AUTHORS b/AUTHORS
new file mode 100644 (file)
index 0000000..0eced88
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1 @@
+Jinhyung Jo <jinhyung.jo@samsung.com>
diff --git a/COPYING b/COPYING
new file mode 100644 (file)
index 0000000..d4266b0
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,20 @@
+Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
diff --git a/LICENSE.MIT b/LICENSE.MIT
new file mode 100644 (file)
index 0000000..c0ababd
--- /dev/null
@@ -0,0 +1,20 @@
+Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved 
+
+Permission to use, copy, modify, distribute, and sell this software
+and its documentation for any purpose is hereby granted without
+fee, provided that the above copyright notice appear in all copies
+and that both that copyright notice and this permission notice
+appear in supporting documentation, and that the name of Red Hat
+not be used in advertising or publicity pertaining to distribution
+of the software without specific, written prior permission.  Red
+Hat makes no representations about the suitability of this software
+for any purpose.  It is provided "as is" without express or implied
+warranty.
+
+THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
+NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
+OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/Makefile.am b/Makefile.am
new file mode 100644 (file)
index 0000000..03c91aa
--- /dev/null
@@ -0,0 +1,30 @@
+#  Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved 
+# 
+#  Permission to use, copy, modify, distribute, and sell this software and its
+#  documentation for any purpose is hereby granted without fee, provided that
+#  the above copyright notice appear in all copies and that both that
+#  copyright notice and this permission notice appear in supporting
+#  documentation, and that the name of Red Hat not be used in
+#  advertising or publicity pertaining to distribution of the software without
+#  specific, written prior permission.  Red Hat makes no
+#  representations about the suitability of this software for any purpose.  It
+#  is provided "as is" without express or implied warranty.
+# 
+#  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+#  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+#  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+#  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+#  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+#  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+#  PERFORMANCE OF THIS SOFTWARE.
+
+bin_SCRIPTS = $(top_srcdir)/@ARCH@-common/startx       \
+           $(top_srcdir)/@ARCH@-common/scripts/setcpu  \
+           $(top_srcdir)/@ARCH@-common/scripts/setpoll
+
+confdir = @CONF_PREFIX@/etc/X11
+conf_DATA = $(top_srcdir)/@ARCH@-common/xorg.conf      \
+           $(top_srcdir)/@ARCH@-common/Xresources
+
+
+
diff --git a/NOTICE b/NOTICE
new file mode 100644 (file)
index 0000000..ad43441
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1,3 @@
+Copyright (c) 2013 Samsung Electronics Co., Ltd. All rights reserved.
+Except as noted, this software is licensed under MIT License.
+Please, see the LICENSE.MIT file for MIT License terms and conditions.
diff --git a/README b/README
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/autogen.sh b/autogen.sh
new file mode 100755 (executable)
index 0000000..218197d
--- /dev/null
@@ -0,0 +1,12 @@
+#! /bin/sh
+
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+ORIGDIR=`pwd`
+cd $srcdir
+
+autoreconf -v --install || exit 1
+cd $ORIGDIR || exit $?
+
+#$srcdir/configure --enable-maintainer-mode "$@"
diff --git a/conf-i386-vigs/display.conf b/conf-i386-vigs/display.conf
new file mode 100644 (file)
index 0000000..37ebff8
--- /dev/null
@@ -0,0 +1,24 @@
+Section "ServerLayout"
+       Identifier              "Test Layout"
+       Screen          0       "Screen0" 0 0
+EndSection
+
+Section "Screen"
+       Identifier              "Screen0"
+       Device                  "vigs"
+       Monitor                 "Monitor0"
+       #       SubSection              "Display"
+       #               Modes           "480x800"
+       #       EndSubSection
+EndSection
+
+Section "Monitor"
+       Identifier              "Monitor0"
+       Option                  "DPMS"  "true"
+EndSection
+
+Section "Device"
+       Identifier              "vigs"
+       Driver                  "vigs"
+       Option                  "fbdev"         "/dev/fb0"
+EndSection
diff --git a/conf-i386-vigs/input.conf b/conf-i386-vigs/input.conf
new file mode 100644 (file)
index 0000000..0d2770f
--- /dev/null
@@ -0,0 +1,28 @@
+Section "InputClass"
+       Identifier "evdev pointer catchall"
+       MatchIsPointer "on"
+       MatchDevicePath "/dev/input/event*"
+       Driver "evdev"
+EndSection
+
+Section "InputClass"
+       Identifier "evdev pointer catchall"
+       MatchIsTablet   "on"
+       MatchDevicePath "/dev/input/event*"
+       Driver "evdev"
+EndSection
+
+Section "InputClass"
+        Identifier "evdev touchscreen catchall"
+        MatchIsTouchScreen "on"
+        MatchDevicePath "/dev/input/event*"
+        Driver "evdevmultitouch"
+       Option "MultiTouch"     "10"
+EndSection
+
+Section "InputClass"
+       Identifier "evdev keyboard catchall"
+       MatchIsKeyboard "on"
+       MatchDevicePath "/dev/input/event*"
+       Driver "evdev"
+EndSection
diff --git a/conf-i386-vigs/module.conf b/conf-i386-vigs/module.conf
new file mode 100644 (file)
index 0000000..05b566c
--- /dev/null
@@ -0,0 +1,5 @@
+Section "Module"
+    SubSection  "xdbg"
+        Option  "log_path"   "/var/log/Xorg.0.log2"
+    EndSubSection
+EndSection
diff --git a/configure.ac b/configure.ac
new file mode 100644 (file)
index 0000000..a3cc640
--- /dev/null
@@ -0,0 +1,55 @@
+#  Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved 
+# 
+#  Permission to use, copy, modify, distribute, and sell this software and its
+#  documentation for any purpose is hereby granted without fee, provided that
+#  the above copyright notice appear in all copies and that both that
+#  copyright notice and this permission notice appear in supporting
+#  documentation, and that the name of Red Hat not be used in
+#  advertising or publicity pertaining to distribution of the software without
+#  specific, written prior permission.  Red Hat makes no
+#  representations about the suitability of this software for any purpose.  It
+#  is provided "as is" without express or implied warranty.
+# 
+#  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+#  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+#  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+#  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+#  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+#  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+#  PERFORMANCE OF THIS SOFTWARE.
+#                                               -*- Autoconf -*-
+
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ(2.61)
+AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
+
+# Checks for programs.
+AC_PROG_INSTALL
+AC_PROG_MAKE_SET
+
+AC_CONFIG_SRCDIR([Makefile.am])
+AM_CONFIG_HEADER([config.h])
+AC_CONFIG_AUX_DIR(.)
+
+AM_INIT_AUTOMAKE([dist-bzip2])
+
+AM_MAINTAINER_MODE
+
+# Checks for programs.
+AC_DISABLE_STATIC
+AC_PROG_LIBTOOL
+AC_PROG_CC
+
+AC_ARG_WITH(arch,         AS_HELP_STRING([--with-arch=ARCH], [Architecture (default: arm)]),
+                                [ ARCH="$withval" ],
+                                [ ARCH="arm" ])
+AC_ARG_WITH(conf-prefix,      AS_HELP_STRING([--with-conf-prefix=CONF_PREFIX], [Architecture (default: /opt/etc)]),
+                                [ CONF_PREFIX="$withval" ],
+                                [ CONF_PREFIX="/opt/etc" ])
+
+AC_SUBST(ARCH)
+AC_SUBST(CONF_PREFIX)
+
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
diff --git a/i386-common/Xmodmap b/i386-common/Xmodmap
new file mode 100644 (file)
index 0000000..be42e4b
--- /dev/null
@@ -0,0 +1,25 @@
+keycode 123 = XF86AudioRaiseVolume
+keycode 122 = XF86AudioLowerVolume
+keycode 231 = Cancel
+keycode 177 = XF86Send
+keycode 147 = XF86Phone
+keycode 166 = XF86Stop
+keycode 225 = XF86Search
+keycode 124 = XF86PowerOff
+keycode 179 = XF86WebCam
+keycode 220 = XF86Pictures
+keycode 208 = XF86AudioPlay
+keycode 209 = XF86AudioPause
+keycode 174 = XF86AudioStop
+keycode 171 = XF86AudioNext
+keycode 173 = XF86AudioPrev
+keycode 176 = XF86AudioRewind
+keycode 216 = XF86AudioForward
+keycode 234 = XF86AudioMedia
+keycode 153 = 
+keycode 239 = 
+keycode 136 = 
+keycode 140 =
+keycode 182 =
+keycode 172 =
+keycode 215 =
diff --git a/i386-common/Xorg.arch-options b/i386-common/Xorg.arch-options
new file mode 100644 (file)
index 0000000..803571b
--- /dev/null
@@ -0,0 +1 @@
+XORG_ARCH_OPTS="-dumbSched"
diff --git a/i386-common/Xorg.sh b/i386-common/Xorg.sh
new file mode 100755 (executable)
index 0000000..79a0def
--- /dev/null
@@ -0,0 +1,2 @@
+export HOME=/root
+export DISPLAY=:0
diff --git a/i386-common/Xresources b/i386-common/Xresources
new file mode 100644 (file)
index 0000000..032fd26
--- /dev/null
@@ -0,0 +1 @@
+Xft.dpi: 72
diff --git a/i386-common/arch-preinit.d/i386-enumerate-input b/i386-common/arch-preinit.d/i386-enumerate-input
new file mode 100755 (executable)
index 0000000..3bf4915
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+udevadm trigger --subsystem-match=input &
+
diff --git a/i386-common/scripts/setcpu b/i386-common/scripts/setcpu
new file mode 100755 (executable)
index 0000000..99787dc
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+if [ "$1" = "" ]; then
+       echo "Usage> /usr/bin/setcpu <performance | ondemand>"
+       exit 1
+fi
+
+if [ "$1" = "perf" ]; then
+       echo "Setting CPU @ Performance Mode"
+       echo "performance" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
+else
+       if [ "$1" = "performance" ]; then
+               echo "Setting CPU @ Performance Mode"
+               echo "performance" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
+       else
+               if [ "$1" = "ondemand" ]; then
+                       echo "Setting CPU @ Ondemand Mode"
+                       echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
+               else
+                       echo "Usage> /usr/bin/setcpu <performance | ondemand>"
+                       exit 1
+               fi
+       fi
+fi
diff --git a/i386-common/scripts/setpoll b/i386-common/scripts/setpoll
new file mode 100755 (executable)
index 0000000..6011698
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ "$1" = "" ]; then
+       echo "Usage> /usr/bin/setpoll < 0 or 1 >"
+       exit 1
+fi
+
+xinput set-prop "Pointer1" --type=int --format=8 "Evdev Use Poll" $1
diff --git a/i386-common/startx b/i386-common/startx
new file mode 100755 (executable)
index 0000000..d8e579d
--- /dev/null
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+[ -r /etc/X11/Xorg.arch-options ] && . /etc/X11/Xorg.arch-options
+
+DISPLAY=":0"
+LOGDIR="/var/log"
+XORG_CONF=" -config /etc/X11/xorg.conf -configdir /etc/X11/xorg.conf.d "
+OTHER_OPTIONS=" -logfile /var/log/Xorg.0.log -ac -noreset +accessx 0 +dpmsphone $XORG_ARCH_OPTS"
+
+# Xorg automatically preserves logs in $LOGDIR/Xorg.DPY.log.(old)
+
+
+for scriptlet in $(find /etc/X11/arch-preinit.d ! -type d); do
+    test -x "$scriptlet" && . "$scriptlet"
+done
+
+if [ -e ~/.xinitrc ]; then
+       XINITRC=~/.xinitrc
+else
+       XINITRC=/etc/X11/xinitrc
+fi
+
+XSERVER_OPTIONS=" ${DISPLAY} ${OTHER_OPTIONS} ${XORG_CONF} "
+
+if [ "$1" = "--gdb" ]; then
+       gdb --args Xorg ${XSERVER_OPTIONS}
+else
+       if [ "$1" = "--only" ]; then
+
+               Xorg ${XSERVER_OPTIONS} &
+       else
+               xinit ${XINITRC} -- /usr/bin/Xorg ${XSERVER_OPTIONS} &
+       fi
+fi
+
diff --git a/i386-common/xinitrc b/i386-common/xinitrc
new file mode 100755 (executable)
index 0000000..b3beafa
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+/usr/bin/scim -d &
+
+# Link .e
+export HOME=/opt/home/app
+
+if [ ! -d ${HOME}/.e ]; then
+       cp -rf /opt/home/root/.e ${HOME}/.e
+       chown -R app:app ${HOME}/.e
+fi
+
+E17_USER=`id -u app`
+E17_GROUP=`id -g app`
+
+HOME=/opt/home/app USER=app /usr/bin/enlightenment_start -profile samsung -i-really-know-what-i-am-doing-and-accept-full-responsibility-for-it -user ${E17_USER} -group ${E17_GROUP} &
+#su -c "HOME=/opt/home/app /usr/bin/enlightenment_start -profile samsung -i-really-know-what-i-am-doing-and-accept-full-responsibility-for-it &" -l app
+
diff --git a/i386-common/xorg.conf b/i386-common/xorg.conf
new file mode 100644 (file)
index 0000000..53d0b72
--- /dev/null
@@ -0,0 +1,6 @@
+Section "ServerFlags"
+       Option "blank time"     "0"
+       Option "standby time"   "0"
+       Option "suspend time"   "0"
+       Option "off time"       "0"
+EndSection
diff --git a/i386-common/xresources b/i386-common/xresources
new file mode 100755 (executable)
index 0000000..d7a6b1f
--- /dev/null
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+  start|stop|restart|reload|force-reload)
+  # Setting dpi to 72
+    if [ -x /usr/bin/xrdb ]; then
+      if [ -e ~/.Xresources ]; then
+        /usr/bin/xrdb -load -nocpp ~/.Xresources
+      else
+        /usr/bin/xrdb -load -nocpp /etc/X11/Xresources
+      fi
+      mkdir -p /tmp/hibernation
+      touch /tmp/hibernation/xresources_ready
+    fi
+  ;;
+
+  status)
+    if [ -x /usr/bin/xrdb ]; then
+      /usr/bin/xrdb -query -nocpp
+    fi
+  ;;
+
+  *)
+    echo "Usage: /etc/init.d/xresource {start|stop|status|restart|reload|force-reload}"
+    exit 1
+    ;;
+esac
+
+exit 0
diff --git a/i386-common/xserver b/i386-common/xserver
new file mode 100755 (executable)
index 0000000..40f2667
--- /dev/null
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+set -e
+
+export DISPLAY=:0
+export PATH=/bin:/usr/bin/:/sbin:/usr/sbin
+
+case "$1" in
+  start)
+    is_running=`ps ax | awk '{ print \$5 }' | grep Xorg` || true
+    if [ "${is_running}" = "" ]; then                          
+        echo "Starting Xorg server..."
+        /usr/bin/startx
+    else
+        echo "Xorg server is running already..."
+    fi
+  ;;
+
+  restart|reload|force-reload)
+    is_running=`ps ax | awk '{ print \$5 }' | grep Xorg` || true                
+    if [ "${is_running}" != "" ]; then                                           
+        $0 stop || true
+        sleep 3
+    fi
+    $0 start || true
+  ;;
+
+  stop)
+    is_running=`ps ax | awk '{ print \$5 }' | grep Xorg` || true
+    if [ "${is_running}" != "" ]; then                        
+        echo "Stopping Xorg server..."
+        killall -9 Xorg
+    else
+        echo "Xorg server is not running..."
+    fi
+  ;;
+
+  status)
+    is_running=`ps ax | awk '{ print \$5 }' | grep Xorg` || true
+    if [ "${is_running}" = "" ]; then
+        echo "Xorg server is not running..."
+    else
+        echo "Xorg server is running..."
+    fi
+  ;;
+
+  *)
+    echo "Usage: /etc/init.d/xserver {start|stop|status|restart|reload|force-reload}"
+    exit 1
+    ;;
+esac
+
+exit 0
diff --git a/i386-common/xsetrc b/i386-common/xsetrc
new file mode 100755 (executable)
index 0000000..e614117
--- /dev/null
@@ -0,0 +1 @@
+xset -r 123 -r 122 -r 231 -r 177 -r 147 -r 166 -r 225 -r 124 -r 179 -r 220 -r 208 -r 209 -r 174 -r 171 -r 173 -r 176 -r 216 -r 234 &
diff --git a/packaging/xf86-misc-vigs.spec b/packaging/xf86-misc-vigs.spec
new file mode 100644 (file)
index 0000000..8e6a76c
--- /dev/null
@@ -0,0 +1,87 @@
+Name:    xf86-misc-vigs
+Summary:    X.Org X11 X server misc files for vigs
+Version:    0.1.0
+Release:    1
+ExclusiveArch:    %ix86
+Group:      System/X11
+License:    MIT
+Source0:    %{name}-%{version}.tar.gz
+
+Requires:   xserver-xorg-core
+Requires:   xorg-x11-drv-evdev-multitouch
+
+%description
+Description: %{summary}
+
+%prep
+%setup -q
+
+%install
+
+mkdir -p %{buildroot}/usr/share/license
+cp -af COPYING %{buildroot}/usr/share/license/%{name}
+
+mkdir -p %{buildroot}/usr/bin
+mkdir -p %{buildroot}/etc/X11/xorg.conf.d
+mkdir -p %{buildroot}/etc/X11/arch-preinit.d
+mkdir -p %{buildroot}/etc/rc.d/init.d
+mkdir -p %{buildroot}/etc/rc.d/rc3.d
+mkdir -p %{buildroot}/etc/rc.d/rc4.d
+mkdir -p %{buildroot}/etc/profile.d
+
+install -m 755 i386-common/startx %{buildroot}/usr/bin/startx
+install -m 755 i386-common/scripts/setcpu %{buildroot}/usr/bin/setcpu
+install -m 755 i386-common/scripts/setpoll %{buildroot}/usr/bin/setpoll
+install -m 755 i386-common/xinitrc %{buildroot}/etc/X11/xinitrc
+install -m 644 i386-common/xorg.conf %{buildroot}/etc/X11/xorg.conf
+
+install -m 755 i386-common/Xorg.sh %{buildroot}/etc/profile.d/Xorg.sh
+install -m 755 i386-common/xserver %{buildroot}/etc/rc.d/init.d/xserver
+install -m 755 i386-common/xresources %{buildroot}/etc/rc.d/init.d/xresources
+
+install -m 644 i386-common/Xmodmap %{buildroot}/etc/X11/Xmodmap
+install -m 644 i386-common/Xresources %{buildroot}/etc/X11/Xresources
+install -m 644 i386-common/Xorg.arch-options %{buildroot}/etc/X11/Xorg.arch-options
+install -m 755 i386-common/xsetrc %{buildroot}/etc/X11/xsetrc
+
+if [ -d i386-common/arch-preinit.d ]; then
+    cp -a i386-common/arch-preinit.d %{buildroot}/etc/X11/
+fi
+
+ln -s /etc/rc.d/init.d/xserver %{buildroot}/etc/rc.d/rc3.d/S20xserver
+ln -s /etc/rc.d/init.d/xserver %{buildroot}/etc/rc.d/rc4.d/S20xserver
+ln -s /etc/rc.d/init.d/xresources %{buildroot}/etc/rc.d/rc3.d/S80xresources
+ln -s /etc/rc.d/init.d/xresources %{buildroot}/etc/rc.d/rc4.d/S80xresources
+
+cp -Rd conf-i386* %{buildroot}/etc/X11/
+
+%post
+mkdir -p /etc/X11/xorg.conf.d
+for i in /etc/X11/conf-i386-vigs/*; do
+    f="${i##*/}"
+    d="/etc/X11/xorg.conf.d/$f"
+    rm -f "$d"
+    ln -s "$i" "$d"
+done
+
+%files
+%manifest xf86-misc-vigs.manifest
+%defattr(-,root,root,-)
+/usr/share/license/%{name}
+/usr/bin/startx
+/usr/bin/setcpu
+/usr/bin/setpoll
+/etc/X11/xinitrc
+/etc/profile.d/Xorg.sh
+/etc/rc.d/init.d/*
+/etc/X11/xorg.conf
+/etc/rc.d/rc3.d/*
+/etc/rc.d/rc4.d/*
+/etc/X11/Xmodmap
+/etc/X11/Xresources
+%attr(755,root,root) etc/X11/xsetrc
+/etc/X11/xorg.conf.d/*.conf
+/etc/X11/Xorg.arch-options
+%dir /etc/X11/arch-preinit.d
+/etc/X11/arch-preinit.d/*
+/etc/X11/conf-i386-vigs/*
diff --git a/xf86-misc-vigs.manifest b/xf86-misc-vigs.manifest
new file mode 100644 (file)
index 0000000..0b4cee5
--- /dev/null
@@ -0,0 +1,13 @@
+<manifest>
+       <request>
+               <domain name="xorg"/>
+       </request>
+       <assign>
+               <filesystem path="/etc/rc.d/init.d/xserver" label="_" exec_label="none" />
+               <filesystem path="/etc/rc.d/init.d/xresources" label="_" exec_label="none" />
+               <filesystem path="/etc/rc.d/rc3.d/S20xserver" label="_" exec_label="none" />
+               <filesystem path="/etc/rc.d/rc4.d/S20xserver" label="_" exec_label="none" />
+               <filesystem path="/etc/rc.d/rc3.d/S80xresources" label="_" exec_label="none" />
+               <filesystem path="/etc/rc.d/rc4.d/S80xresources" label="_" exec_label="none" />
+       </assign>
+</manifest>