refactor patterns, scripts and ks accepted/tizen/generic/20140227.194254 submit/tizen/20140227.194021
authorStephane Desneux <stephane.desneux@open.eurogiciel.org>
Thu, 27 Feb 2014 13:17:22 +0000 (14:17 +0100)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Thu, 27 Feb 2014 18:06:23 +0000 (19:06 +0100)
Change-Id: I71ce2e385973f1fee6ae48fc193a2a17668386cd
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
56 files changed:
generic.yaml
ks/generic-minimal-mbr-i586.yaml [new file with mode: 0644]
ks/generic-minimal-mbr-x86_64.yaml [new file with mode: 0644]
ks/generic-qa-unsafe-minimal-mbr-i586.yaml [new file with mode: 0644]
ks/generic-qa-unsafe-minimal-mbr-x86_64.yaml [new file with mode: 0644]
ks/generic-qa-unsafe-wayland-mbr-i586.yaml
ks/generic-qa-unsafe-wayland-mbr-x86_64.yaml
ks/generic-qa-unsafe-wayland-xwalk-mbr-i586.yaml [new file with mode: 0644]
ks/generic-qa-unsafe-wayland-xwalk-mbr-x86_64.yaml [new file with mode: 0644]
ks/generic-qa-unsafe-x11-mbr-i586.yaml
ks/generic-qa-unsafe-x11-mbr-x86_64.yaml
ks/generic-wayland-xwalk-mbr-i586.yaml [new file with mode: 0644]
ks/generic-wayland-xwalk-mbr-x86_64.yaml [new file with mode: 0644]
patterns/generic-adaptation.yaml
patterns/generic-applications.yaml
patterns/generic-autoqa.yaml
patterns/generic-base-micro.yaml
patterns/generic-base.yaml
patterns/generic-bluetooth.yaml
patterns/generic-console-tools.yaml
patterns/generic-crosswalk.yaml [new file with mode: 0644]
patterns/generic-desktop-applications.yaml
patterns/generic-development.yaml
patterns/generic-middleware.yaml
patterns/generic-multimedia.yaml
patterns/generic-packaging.yaml
patterns/generic-qa.yaml
patterns/generic-qt5.yaml [new file with mode: 0644]
patterns/generic-wayland.yaml
patterns/generic-webkit.yaml
patterns/generic-x11.yaml
scripts/base-general.post [deleted file]
scripts/base-generic-minimal.post [deleted file]
scripts/base-weston-default.post [deleted file]
scripts/generic-adaptation.post [new file with mode: 0644]
scripts/generic-applications.post [new file with mode: 0644]
scripts/generic-autoqa.post [moved from scripts/autoqa.post with 96% similarity]
scripts/generic-base-micro.post [new file with mode: 0644]
scripts/generic-base.post [new file with mode: 0644]
scripts/generic-bluetooth.post [new file with mode: 0644]
scripts/generic-console-tools.post [moved from scripts/customize.post with 68% similarity]
scripts/generic-crosswalk.post [new file with mode: 0644]
scripts/generic-desktop-applications.post [new file with mode: 0644]
scripts/generic-development.post [new file with mode: 0644]
scripts/generic-middleware.post [new file with mode: 0644]
scripts/generic-multimedia.post [new file with mode: 0644]
scripts/generic-packaging.post [new file with mode: 0644]
scripts/generic-qa.post [new file with mode: 0644]
scripts/generic-qt5.post [new file with mode: 0644]
scripts/generic-wayland.post [new file with mode: 0644]
scripts/generic-webkit.post [new file with mode: 0644]
scripts/generic-x11.post [moved from scripts/base-x11-default.post with 66% similarity]
scripts/optimization.post [deleted file]
scripts/rpm.post [deleted file]
scripts/vconf-keys-default.post [deleted file]
scripts/wrt-widgets.post [deleted file]

index 7f6c23b..8d60df7 100644 (file)
@@ -21,27 +21,19 @@ Default:
     SaveRepos: False
     UserGroups: "audio,video"
     Groups:
-        - Generic Base System
+        - Generic Base
         - Generic Console Tools
         - Generic Packaging
     PostScripts:
-        - base-general
-        - rpm
-        - optimization
-        - customize
+        - generic-base
+        - generic-console-tools
+        - generic-packaging
     NoChrootScripts:
         - buildname
 
 Minimal:
     Part: generic-mbr
 
-Minimal_QA:
-    Part: generic-mbr
-    Groups:
-        - Generic Automated QA Tools
-    PostScripts:
-        - autoqa
-
 Wayland:
     Part: generic-mbr
     UserGroups: "audio,video,weston-launch"
@@ -50,41 +42,19 @@ Wayland:
         - Generic Adaptation
         - Generic Middleware
         - Generic Applications
-    PostScripts:
-        - base-weston-default
-        - vconf-keys-default
-
-Wayland_QA:
-    Part: generic-mbr
-    UserGroups: "audio,video,weston-launch"
-    Groups:
-        - Generic Wayland
-        - Generic Adaptation
-        - Generic Middleware
-        - Generic Applications
-        - Generic Automated QA Tools
-    PostScripts:
-        - base-weston-default
-        - vconf-keys-default
-        - autoqa
-
-X11:
-    Part: generic-mbr
-    Groups:
-        - Generic X11
-        - Generic Adaptation
-        - Generic Middleware
-        - Generic Applications
         - Generic Bluetooth
         - Generic Multimedia
-        - Generic Webkit
         - Generic Desktop Applications
     PostScripts:
-        - base-x11-default
-        - wrt-widgets
-        - vconf-keys-default
+        - generic-wayland
+        - generic-adaptation
+        - generic-middleware
+        - generic-applications
+        - generic-bluetooth
+        - generic-multimedia
+        - generic-desktop-applications
 
-X11_QA:
+X11:
     Part: generic-mbr
     Groups:
         - Generic X11
@@ -95,10 +65,13 @@ X11_QA:
         - Generic Multimedia
         - Generic Webkit
         - Generic Desktop Applications
-        - Generic Automated QA Tools
     PostScripts:
-        - base-x11-default
-        - wrt-widgets
-        - vconf-keys-default
-        - autoqa
+        - generic-x11
+        - generic-adaptation
+        - generic-middleware
+        - generic-applications
+        - generic-bluetooth
+        - generic-multimedia
+        - generic-webkit
+        - generic-desktop-applications
 
diff --git a/ks/generic-minimal-mbr-i586.yaml b/ks/generic-minimal-mbr-i586.yaml
new file mode 100644 (file)
index 0000000..1fa3f7d
--- /dev/null
@@ -0,0 +1,9 @@
+Name: Generic Minimal MBR i586
+Schedule: "*"
+Active: True
+Platform: Minimal
+Part: generic-mbr
+FileName: generic-minimal-mbr-i586
+Kernel: kernel-x86-generic
+Repos:
+    - generic-wayland_i586
diff --git a/ks/generic-minimal-mbr-x86_64.yaml b/ks/generic-minimal-mbr-x86_64.yaml
new file mode 100644 (file)
index 0000000..a3ea9b8
--- /dev/null
@@ -0,0 +1,10 @@
+Name: Generic Minimal MBR x86_64
+Architecture: x86_64
+Schedule: "*"
+Active: True
+Platform: Minimal
+Part: generic-mbr
+FileName: generic-minimal-mbr-x86_64
+Kernel: kernel-x86-generic
+Repos:
+    - generic-wayland_x86_64
diff --git a/ks/generic-qa-unsafe-minimal-mbr-i586.yaml b/ks/generic-qa-unsafe-minimal-mbr-i586.yaml
new file mode 100644 (file)
index 0000000..e875731
--- /dev/null
@@ -0,0 +1,14 @@
+Name: Generic Minimal MBR i586
+Schedule: "*"
+Active: True
+Platform: Minimal
+Part: generic-mbr
+FileName: generic-minimal-mbr-i586
+Kernel: kernel-x86-generic
+Repos:
+    - generic-wayland_i586
+Groups:
+    - Generic Automated QA Tools
+PostScripts:
+    - generic-autoqa
+
diff --git a/ks/generic-qa-unsafe-minimal-mbr-x86_64.yaml b/ks/generic-qa-unsafe-minimal-mbr-x86_64.yaml
new file mode 100644 (file)
index 0000000..d9fb996
--- /dev/null
@@ -0,0 +1,14 @@
+Name: Generic Minimal MBR x86_64
+Architecture: x86_64
+Schedule: "*"
+Active: True
+Platform: Minimal
+Part: generic-mbr
+FileName: generic-minimal-mbr-x86_64
+Kernel: kernel-x86-generic
+Repos:
+    - generic-wayland_x86_64
+Groups:
+    - Generic Automated QA Tools
+PostScripts:
+    - generic-autoqa
index 6a143d6..3c1d8fb 100644 (file)
@@ -1,9 +1,13 @@
 Name: Generic QA Unsafe Wayland MBR i586
 Schedule: "*"
 Active: True
-Platform: Wayland_QA
+Platform: Wayland
 Part: generic-mbr
 FileName: generic-qa-unsafe-wayland-mbr-i586
 Kernel: kernel-x86-generic
 Repos:
     - generic-wayland_i586
+Groups:
+    - Generic Automated QA Tools
+PostScripts:
+    - generic-autoqa
index cc821d1..7f8dc28 100644 (file)
@@ -2,9 +2,13 @@ Name: Generic QA Unsafe Wayland MBR x86_64
 Architecture: x86_64
 Schedule: "*"
 Active: True
-Platform: Wayland_QA
+Platform: Wayland
 Part: generic-mbr
 FileName: generic-qa-unsafe-wayland-mbr-x86_64
 Kernel: kernel-x86-generic
 Repos:
     - generic-wayland_x86_64
+Groups:
+    - Generic Automated QA Tools
+PostScripts:
+    - generic-autoqa
diff --git a/ks/generic-qa-unsafe-wayland-xwalk-mbr-i586.yaml b/ks/generic-qa-unsafe-wayland-xwalk-mbr-i586.yaml
new file mode 100644 (file)
index 0000000..e4d9990
--- /dev/null
@@ -0,0 +1,15 @@
+Name: Generic QA Unsafe Wayland XWalk MBR i586
+Schedule: "*"
+Active: True
+Platform: Wayland
+Part: generic-mbr
+FileName: generic-qa-unsafe-wayland-xwalk-mbr-i586
+Kernel: kernel-x86-generic
+Repos:
+    - generic-wayland_i586
+Groups:
+    - Generic Crosswalk
+    - Generic Automated QA Tools
+PostScripts:
+    - generic-crosswalk
+    - generic-autoqa
diff --git a/ks/generic-qa-unsafe-wayland-xwalk-mbr-x86_64.yaml b/ks/generic-qa-unsafe-wayland-xwalk-mbr-x86_64.yaml
new file mode 100644 (file)
index 0000000..13b3165
--- /dev/null
@@ -0,0 +1,16 @@
+Name: Generic QA Unsafe Wayland XWalk MBR x86_64
+Architecture: x86_64
+Schedule: "*"
+Active: True
+Platform: Wayland
+Part: generic-mbr
+FileName: generic-qa-unsafe-wayland-xwalk-mbr-x86_64
+Kernel: kernel-x86-generic
+Repos:
+    - generic-wayland_x86_64
+Groups:
+    - Generic Crosswalk
+    - Generic Automated QA Tools
+PostScripts:
+    - generic-crosswalk
+    - generic-autoqa
index 77d1bdc..99297ac 100644 (file)
@@ -1,9 +1,13 @@
 Name: Generic QA Unsafe X11 MBR i586
 Schedule: "*"
 Active: True
-Platform: X11_QA
+Platform: X11
 Part: generic-mbr
 FileName: generic-qa-unsafe-x11-mbr-i586
 Kernel: kernel-x86-generic
 Repos:
     - generic-x11_i586
+Groups:
+    - Generic Automated QA Tools
+PostScripts:
+    - generic-autoqa
index c140742..28b72d1 100644 (file)
@@ -2,9 +2,13 @@ Name: Generic QA Unsafe X11 MBR x86_64
 Architecture: x86_64
 Schedule: "*"
 Active: True
-Platform: X11_QA
+Platform: X11
 Part: generic-mbr
 FileName: generic-qa-unsafe-x11-mbr-x86_64
 Kernel: kernel-x86-generic
 Repos:
     - generic-x11_x86_64
+Groups:
+    - Generic Automated QA Tools
+PostScripts:
+    - generic-autoqa
diff --git a/ks/generic-wayland-xwalk-mbr-i586.yaml b/ks/generic-wayland-xwalk-mbr-i586.yaml
new file mode 100644 (file)
index 0000000..156300b
--- /dev/null
@@ -0,0 +1,13 @@
+Name: Generic Wayland XWalk MBR i586
+Schedule: "*"
+Active: True
+Platform: Wayland
+Part: generic-mbr
+FileName: generic-wayland-xwalk-mbr-i586
+Kernel: kernel-x86-generic
+Repos:
+    - generic-wayland_i586
+Groups:
+    - Generic Crosswalk
+PostScripts:
+    - generic-crosswalk
diff --git a/ks/generic-wayland-xwalk-mbr-x86_64.yaml b/ks/generic-wayland-xwalk-mbr-x86_64.yaml
new file mode 100644 (file)
index 0000000..2f4b4c4
--- /dev/null
@@ -0,0 +1,14 @@
+Name: Generic Wayland XWalk MBR x86_64
+Architecture: x86_64
+Schedule: "*"
+Active: True
+Platform: Wayland
+Part: generic-mbr
+FileName: generic-wayland-xwalk-mbr-x86_64
+Kernel: kernel-x86-generic
+Repos:
+    - generic-wayland_x86_64
+Groups:
+    - Generic Crosswalk
+PostScripts:
+    - generic-crosswalk
index 0b444d1..f59df02 100644 (file)
@@ -1,5 +1,5 @@
+Summary: Generic Adaptation
 Description: Generic Adaptation
 Name: generic-adaptation
 Packages:
 - linux-firmware
-Summary: Generic Adaptation
index a330676..a7b2cc8 100644 (file)
@@ -1,7 +1,7 @@
+Summary: Generic Applications
 Description: Generic Applications
 Name: generic-applications
 Packages:
 - ail
 - ca-certificates
 - ca-certificates-mozilla
-Summary: Generic Applications
index 9b04aed..4330b72 100644 (file)
@@ -1,7 +1,7 @@
+Summary: Generic Automated QA Tools
 Description: Generic Automated QA Tools
 Name: generic-autoqa
 Packages:
 - testkit-lite
 - screen
 - which
-Summary: Generic Automated QA Tools
index 95ed75f..754fd59 100644 (file)
@@ -1,5 +1,6 @@
-Description: Generic Base Micro System
-Name: generic-base-micro-system
+Summary: Generic Base Micro
+Description: Generic Base Micro
+Name: generic-base-micro
 Packages:
 - bluez
 - kmod
@@ -14,4 +15,3 @@ Packages:
 - glibc-locale
 - pciutils
 - lrzsz
-Summary: Generic Base Micro System
index ae4b014..6090af5 100644 (file)
@@ -1,5 +1,6 @@
-Description: Generic Base System
-Name: generic-base-system
+Summary: Generic Base
+Description: Generic Base
+Name: generic-base
 Packages:
 - e2fsprogs
 - connman
@@ -29,4 +30,3 @@ Packages:
 - default-ac-domains
 - wpa_supplicant
 - prelink
-Summary: Generic Base System
index 4beb9a1..b4cfc6b 100644 (file)
@@ -1,3 +1,4 @@
+Summary: Generic Bluetooth
 Description: Generic Bluetooth
 Name: generic-bluetooth
 Packages:
@@ -5,4 +6,3 @@ Packages:
 - bluetooth-frwk
 - bluetooth-share
 - bluetooth-tools-no-firmware
-Summary: Generic Bluetooth
index 6400f8b..552cac2 100644 (file)
@@ -1,3 +1,4 @@
+Summary: Generic Console Tools
 Description: Generic Console Tools
 Name: generic-console-tools
 Packages:
@@ -26,4 +27,4 @@ Packages:
 - ca-certificates-mozilla
 - iptables
 - tree
-Summary: Generic Console Tools
+- intel-gpu-tools
diff --git a/patterns/generic-crosswalk.yaml b/patterns/generic-crosswalk.yaml
new file mode 100644 (file)
index 0000000..a1005d1
--- /dev/null
@@ -0,0 +1,6 @@
+Summary: Generic Crosswalk
+Description: Generic Crosswalk
+Name: generic-crosswalk
+Packages:
+- crosswalk
+
index f0d2136..d56cc7d 100644 (file)
@@ -1,8 +1,8 @@
+Summary: Generic Desktop Applications
 Description: Generic Desktop Applications
 Name: generic-desktop-applications
 Packages:
 - emotion
-- econnman
-- bluetooth-agent
+#- econnman
+#- bluetooth-agent
 - net-config
-Summary: Generic Desktop Applications
index c452c98..1259a12 100644 (file)
@@ -1,3 +1,4 @@
+Summary: Generic Development
 Description: Generic Development
 Name: generic-development
 Packages:
@@ -46,4 +47,3 @@ Packages:
 - iputils
 - iproute2
 - which
-Summary: Generic Development
index 565463a..95ece19 100644 (file)
@@ -1,3 +1,4 @@
+Summary: Generic Middleware
 Description: Generic Middleware
 Name: generic-middleware
 Packages:
@@ -15,4 +16,3 @@ Packages:
 - ofono
 - pkgmgr-server
 - sqlite3
-Summary: Generic Middleware
index ec7d83d..b4388b4 100644 (file)
@@ -1,3 +1,4 @@
+Summary: Generic Multimedia
 Description: Generic Multimedia
 Name: generic-multimedia
 Packages:
@@ -17,4 +18,3 @@ Packages:
 - gstreamer-utils
 - libva-intel-driver
 - vaapi-tools
-Summary: Generic Multimedia
index a32efa8..427f3f2 100644 (file)
@@ -1,6 +1,6 @@
+Summary: Generic Packaging
 Description: Generic Packaging
 Name: generic-packaging
 Packages:
 - gpg2
 - zypper
-Summary: Generic Packaging
index 96fba3b..69e039c 100644 (file)
@@ -1,3 +1,4 @@
+Summary: Generic QA Tools
 Description: Generic QA Tools
 Name: generic-qa
 Packages:
@@ -12,4 +13,3 @@ Packages:
 - ofono-test
 - python-xml
 - wget
-Summary: Generic QA Tools
diff --git a/patterns/generic-qt5.yaml b/patterns/generic-qt5.yaml
new file mode 100644 (file)
index 0000000..e37dcc9
--- /dev/null
@@ -0,0 +1,5 @@
+Summary: Generic QT5
+Description: Generic QT5
+Name: generic-qt5
+Packages:
+- qt5-tools
index d43a6bc..6f68f57 100644 (file)
@@ -1,3 +1,4 @@
+Summary: Generic Wayland
 Description: Generic Wayland
 Name: generic-wayland
 Packages:
@@ -9,4 +10,3 @@ Packages:
 - tizen-branding-default
 - user-session-units
 - desktop-skin
-Summary: Generic Wayland
index 5e3996a..25950ab 100644 (file)
@@ -1,5 +1,6 @@
+Summary: Generic Webkit
 Description: Generic Webkit
-Name: webkit
+Name: generic-webkit
 Packages:
 - wrt-widgets
 - wrt
@@ -14,4 +15,3 @@ Packages:
 - web-ui-fw-theme-default
 - web-ui-fw-theme-tizen-black
 - web-ui-fw-theme-tizen-white
-Summary: Base System
\ No newline at end of file
index 5b722a6..c95e778 100644 (file)
@@ -1,3 +1,4 @@
+Summary: Generic X11
 Description: Generic X11
 Name: generic-x11
 Packages:
@@ -5,4 +6,6 @@ Packages:
 - xf86-input-synaptics
 - xf86-video-intel
 - xf86-input-keyboard
-Summary: Generic X11
+- xorg-launch-helper
+- enlightenment
+- user-session-units
diff --git a/scripts/base-general.post b/scripts/base-general.post
deleted file mode 100644 (file)
index 5a74bad..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-################ base-general.post ##################
-
-ln -sf /proc/self/mounts /etc/mtab
-
-rm -rf /root/.zypp
-
diff --git a/scripts/base-generic-minimal.post b/scripts/base-generic-minimal.post
deleted file mode 100644 (file)
index 65e09eb..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-################### base-generic-minimal.post #################
-
-rm /usr/lib/systemd/system/default.target
-ln -sf multi-user.target  /usr/lib/systemd/system/default.target
diff --git a/scripts/base-weston-default.post b/scripts/base-weston-default.post
deleted file mode 100644 (file)
index 4facb35..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-#################### base-weston-default.post ##################
-# Initialize the native application database
-pkg_initdb
-
-# Add 'app' user to the weston-launch group
-/usr/sbin/groupmod -A app weston-launch
-
-# Temporary work around for bug in filesystem package resulting in the 'app' user home
-# directory being only readable by root
-chown -R app:app /opt/home/app
-
-# Since weston-launch runs with the "User" label, the app
-# home dir must have the same label
-chsmack -a User /opt/home/app
-
-# Enable a logind session for 'app' user on seat0 (the default seat for
-# graphical sessions)
-mkdir -p /usr/lib/systemd/system/graphical.target.wants
-ln -s ../user-session-launch@.service /usr/lib/systemd/system/graphical.target.wants/user-session-launch@seat0-5000.service
-ln -sf weston.target  /usr/lib/systemd/user/default.target
-
-# Enable user@5000.service by setting the linger for user 'app'
-#mkdir -p /var/lib/systemd/linger
-#touch /var/lib/systemd/linger/app
-
-# Add over-riding environment to enable the web runtime to
-# run as a different user than the tizen user
-# Some notes on some of the variables:
-#  - ELM_THEME is needed in order for the wrt to have visible content
-#  - WRT_PROCESS_POOL_DISABLE is a work around for TIVI-2062
-cat > /etc/sysconfig/wrt <<EOF
-DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/5000/dbus/user_bus_socket
-XDG_RUNTIME_DIR=/run/user/5000
-ELM_ENGINE=wayland_egl
-ECORE_EVAS_ENGINE=wayland_egl
-ELM_THEME=tizen-HD-light
-WRT_PROCESS_POOL_DISABLE=1
-EOF
-
-# Use the same over-rides for the native prelaunch daemon
-cp /etc/sysconfig/wrt /etc/sysconfig/launchpad
-
-# sdx: for AMD (ac.service)
-#cp /etc/sysconfig/wrt /etc/sysconfig/prelaunch
-
-# Add a rule to ensure the app user has permissions to
-# open the graphics device
-cat > /etc/udev/rules.d/99-dri.rules <<EOF
-SUBSYSTEM=="drm", MODE="0666"
-EOF
-
-############
-
-# sdx: add ELM theme in weston.sh
-cat >>/etc/profile.d/weston.sh <<'EOF'
-# sdx: patch commfrom meta-generic/scripts/base-weston-default.post
-export ELM_THEME=tizen-HD-light
-EOF
-  
-# sdx: set DBUS env inside weston shell (login shell)
-cat >/etc/profile.d/user-dbus.sh <<'EOF'
-export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$UID/dbus/user_bus_socket
-EOF
-
-# sdx: user 'app' must own /dev/tty1 for weston to start correctly
-cat >/usr/lib/udev/rules.d/99-tty.rules <<EOF
-SUBSYSTEM=="tty", KERNEL=="tty1", GROUP="app", OWNER="app"
-EOF
-
-# sdx: fix smack labels on /var/log
-chsmack -a '*' /var/log
-
diff --git a/scripts/generic-adaptation.post b/scripts/generic-adaptation.post
new file mode 100644 (file)
index 0000000..f0ba774
--- /dev/null
@@ -0,0 +1 @@
+############### generic-adaptation.post ################
diff --git a/scripts/generic-applications.post b/scripts/generic-applications.post
new file mode 100644 (file)
index 0000000..a24d02e
--- /dev/null
@@ -0,0 +1,2 @@
+############### generic-applications.post ################
+
similarity index 96%
rename from scripts/autoqa.post
rename to scripts/generic-autoqa.post
index f6f0064..d9e9d9e 100644 (file)
@@ -1,4 +1,4 @@
-##################### autoqa.post #######################
+##################### generic-autoqa.post #######################
 
 # generate private/public key for autologin as root
 
diff --git a/scripts/generic-base-micro.post b/scripts/generic-base-micro.post
new file mode 100644 (file)
index 0000000..0a2008d
--- /dev/null
@@ -0,0 +1,2 @@
+############### generic-base-micro.post ################
+
diff --git a/scripts/generic-base.post b/scripts/generic-base.post
new file mode 100644 (file)
index 0000000..d4c3635
--- /dev/null
@@ -0,0 +1,26 @@
+################ generic-base.post ##################
+
+# was base-general-minimal.post - not used actually
+#rm /usr/lib/systemd/system/default.target
+#ln -sf multi-user.target  /usr/lib/systemd/system/default.target
+
+# Run prelink to speed up dynamic binary/library loading
+/usr/sbin/prelink --all
+
+ln -sf /proc/self/mounts /etc/mtab
+
+# fix TIVI-2291
+sed -ri "s/(^blacklist i8042.*$)/#fix from base-general.post \1/" /etc/modprobe.d/blacklist.conf
+
+# sdx: fix smack labels on /var/log
+chsmack -a '*' /var/log
+
+# Temporary work around for bug in filesystem package resulting in the 'app' user home
+# directory being only readable by root
+chown -R app:app /opt/home/app
+
+# Since weston-launch runs with the "User" label, the app
+# home dir must have the same label
+chsmack -a User /opt/home/app
+
+
diff --git a/scripts/generic-bluetooth.post b/scripts/generic-bluetooth.post
new file mode 100644 (file)
index 0000000..3d572d6
--- /dev/null
@@ -0,0 +1,2 @@
+############### generic-bluetooth.post ################
+
similarity index 68%
rename from scripts/customize.post
rename to scripts/generic-console-tools.post
index 66745c1..decef35 100644 (file)
@@ -1,13 +1,9 @@
-##################### customize.post ####################
+##################### generic-console-tools.post ####################
 
 # customize bash prompt
 cat >/etc/profile.d/bash_prompt_custom.sh <<'EOF'
 if [ "$PS1" ]; then
 
-       function parse_git_branch {
-               [ -x "/usr/bin/git" ] && git branch --no-color 2>/dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
-       }
-
        function proml {
                # set a fancy prompt (overwrite the one in /etc/profile)
                local default="\[\e[0m\]"
@@ -23,7 +19,7 @@ if [ "$PS1" ]; then
                        _p="#"
                fi
 
-               PS1="${usercol}\u${default}@${hostcol}\h${default}:${pathcol}\w${default}${gitcol}\$(parse_git_branch)${default}${_p} ${termcmd}"
+               PS1="${usercol}\u${default}@${hostcol}\h${default}:${pathcol}\w${default}${gitcol}${default}${_p} ${termcmd}"
        }
 
        proml
@@ -36,10 +32,6 @@ if [ "$PS1" ]; then
        alias lr="ls -ltrZ"
        alias la="ls -alZ"
 
-       function dbus_find () {
-               echo export     $(tr '\0' '\n' </proc/$(pgrep gnome-session)/environ |grep ^DB)
-       }
-
        function get_manifest () {
                rpm -qa --queryformat="%{name} %{Version} %{Release} %{VCS}\n" | sort
        }
diff --git a/scripts/generic-crosswalk.post b/scripts/generic-crosswalk.post
new file mode 100644 (file)
index 0000000..2d7c1b8
--- /dev/null
@@ -0,0 +1,24 @@
+############### generic-crosswalk.post ################
+
+# patch install path of crosswalk
+if [ -d /usr/lib64/xwalk ]; then
+       ln -s ../lib64/xwalk /usr/lib
+fi
+
+if [ -f /usr/bin/weston ]; then
+
+       cat >>/etc/xdg/weston/weston.ini <<EOF
+
+## crosswalk applications ##
+
+[launcher]
+icon=/usr/share/icons/tizen/32x32/web-browser.png
+path=/usr/lib64/xwalk/xwalk http://www.tizen.org
+EOF
+
+[launcher]
+icon=/usr/share/icons/tizen/32x32/web-browser.png
+path=/usr/lib64/xwalk/xwalk http://www.google.com
+EOF
+
+fi
diff --git a/scripts/generic-desktop-applications.post b/scripts/generic-desktop-applications.post
new file mode 100644 (file)
index 0000000..c8f9b50
--- /dev/null
@@ -0,0 +1,2 @@
+############### generic-desktop-applications.post ################
+
diff --git a/scripts/generic-development.post b/scripts/generic-development.post
new file mode 100644 (file)
index 0000000..002aed4
--- /dev/null
@@ -0,0 +1,2 @@
+############### generic-development.post ################
+
diff --git a/scripts/generic-middleware.post b/scripts/generic-middleware.post
new file mode 100644 (file)
index 0000000..a89c0a5
--- /dev/null
@@ -0,0 +1,2 @@
+############### generic-middleware.post ################
+
diff --git a/scripts/generic-multimedia.post b/scripts/generic-multimedia.post
new file mode 100644 (file)
index 0000000..88a53ec
--- /dev/null
@@ -0,0 +1,17 @@
+############### generic-multimedia.post ################
+
+if [ -f /usr/bin/weston ]; then
+
+       cat >>/etc/xdg/weston/weston.ini <<EOF
+
+## multimedia applications ##
+
+[launcher]
+icon=/usr/share/icons/tizen/32x32/webcam.png
+path=/usr/bin/launch_cam.sh
+
+[launcher]
+icon=/usr/share/icons/tizen/32x32/video.png
+path=/usr/bin/launch_video.sh
+
+fi
diff --git a/scripts/generic-packaging.post b/scripts/generic-packaging.post
new file mode 100644 (file)
index 0000000..95f5b9c
--- /dev/null
@@ -0,0 +1,31 @@
+############### generic-packaging.post ################
+
+rm -rf /root/.zypp
+
+# was: rpm.post
+rm -f /var/lib/rpm/__db*
+rpmdb --rebuilddb
+
+# generate repo files for zypper
+function genrepo() {
+       local reponame=$1
+       local url=$2
+
+cat >> /etc/zypp/repos.d/${reponame}.repo << EOF
+[${reponame}]
+name=${reponame}
+enabled=1
+autorefresh=0
+baseurl=
+baseurl=${url}?ssl_verify=no
+type=rpm-md
+gpgcheck=0
+EOF
+}
+
+if [ -x /usr/bin/weston ]; then
+       genrepo generic-wayland-@ARCH@ http://download.tizen.org/snapshots/tizen/generic/generic-wayland-@ARCH@/latest/repos/generic/@ARCH@/packages/
+else
+       genrepo generic-x11-@ARCH@ http://download.tizen.org/snapshots/tizen/generic/generic-x11-@ARCH@/latest/repos/generic/@ARCH@/packages/
+fi
+
diff --git a/scripts/generic-qa.post b/scripts/generic-qa.post
new file mode 100644 (file)
index 0000000..626d792
--- /dev/null
@@ -0,0 +1,2 @@
+############### generic-qa.post ################
+
diff --git a/scripts/generic-qt5.post b/scripts/generic-qt5.post
new file mode 100644 (file)
index 0000000..15ae1b5
--- /dev/null
@@ -0,0 +1,2 @@
+############### generic-qt5.post ################
+
diff --git a/scripts/generic-wayland.post b/scripts/generic-wayland.post
new file mode 100644 (file)
index 0000000..89c8367
--- /dev/null
@@ -0,0 +1,22 @@
+#################### generic-wayland.post ##################
+
+# Add 'app' user to the weston-launch group
+/usr/sbin/groupmod -A app weston-launch
+
+# Enable a logind session for 'app' user on seat0 (the default seat for
+# graphical sessions)
+mkdir -p /usr/lib/systemd/system/graphical.target.wants
+ln -s ../user-session-launch@.service /usr/lib/systemd/system/graphical.target.wants/user-session-launch@seat0-5000.service
+ln -sf weston.target  /usr/lib/systemd/user/default.target
+
+# Add a rule to ensure the app user has permissions to
+# open the graphics device
+cat > /etc/udev/rules.d/99-dri.rules <<EOF
+SUBSYSTEM=="drm", MODE="0666"
+EOF
+
+# sdx: user 'app' must own /dev/tty1 for weston to start correctly
+cat >/usr/lib/udev/rules.d/99-tty.rules <<EOF
+SUBSYSTEM=="tty", KERNEL=="tty1", GROUP="app", OWNER="app"
+EOF
+
diff --git a/scripts/generic-webkit.post b/scripts/generic-webkit.post
new file mode 100644 (file)
index 0000000..c41b119
--- /dev/null
@@ -0,0 +1,59 @@
+######### generic-webkit.post #############
+
+################ WAYLAND MODE #####################################
+# Add over-riding environment to enable the web runtime to
+# run as a different user than the tizen user
+# Some notes on some of the variables:
+#  - ELM_THEME is needed in order for the wrt to have visible content
+#  - WRT_PROCESS_POOL_DISABLE is a work around for TIVI-2062
+if [ -x /usr/bin/weston ]; then
+       cat > /etc/sysconfig/wrt <<EOF
+DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/5000/dbus/user_bus_socket
+XDG_RUNTIME_DIR=/run/user/5000
+ELM_ENGINE=wayland_egl
+ECORE_EVAS_ENGINE=wayland_egl
+ELM_THEME=tizen-HD-light
+WRT_PROCESS_POOL_DISABLE=1
+EOF
+
+       # Use the same over-rides for the native prelaunch daemon
+       cp /etc/sysconfig/wrt /etc/sysconfig/launchpad
+fi
+
+# Initialize the native application database
+pkg_initdb
+
+# start wrt widgets preinstall
+prepare_widgets.sh
+install_widgets.sh
+
+# Needed to fix TIVI-1629
+if [ -x /usr/bin/vconftool ]; then
+       vconftool set -t int -f db/setting/default_memory/wap 0
+fi
+
+if [ -f /usr/bin/weston ]; then
+
+       cat >>/etc/xdg/weston/weston.ini <<EOF
+
+## crosswalk applications ##
+
+[launcher]
+icon=/usr/share/icons/tizen/32x32/annex.png
+path=/usr/bin/wrt-launcher -s 33CFo0eFJe.annex
+
+[launcher]
+icon=/usr/share/icons/tizen/32x32/bubblewrap.png
+path=/usr/bin/wrt-launcher -s ewqPdCunAO.bubblewrap
+
+[launcher]
+icon=/usr/share/icons/tizen/32x32/go.png
+path=/usr/bin/wrt-launcher -s SM31mV8fq9.go
+
+[launcher]
+icon=/usr/share/icons/tizen/32x32/mancala.png
+path=/usr/bin/wrt-launcher -s yKrWwxz1KX.mancala
+
+EOF
+
+fi
similarity index 66%
rename from scripts/base-x11-default.post
rename to scripts/generic-x11.post
index 4d0a022..a5f0674 100644 (file)
@@ -1,4 +1,4 @@
-###################### base-x11-default.post ###################
+###################### generic-x11.post ###################
 
 # enable X11 forwarding on ssh
 echo "X11Forwarding yes" >>/etc/ssh/sshd_config
diff --git a/scripts/optimization.post b/scripts/optimization.post
deleted file mode 100644 (file)
index 9f1c964..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-######################## optimization.post #######################
-
-# Run prelink to speed up dynamic binary/library loading
-/usr/sbin/prelink --all
diff --git a/scripts/rpm.post b/scripts/rpm.post
deleted file mode 100644 (file)
index 36da676..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-##################### rpm.post #######################
-
-rm -f /var/lib/rpm/__db*
-rpmdb --rebuilddb
diff --git a/scripts/vconf-keys-default.post b/scripts/vconf-keys-default.post
deleted file mode 100644 (file)
index 6149b75..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-##################### vconf-keys-default.post #######################
-
-# Needed to fix TIVI-1629
-vconftool set -t int -f db/setting/default_memory/wap 0
diff --git a/scripts/wrt-widgets.post b/scripts/wrt-widgets.post
deleted file mode 100644 (file)
index beb8fa4..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-######### wrt-widgets.post #############
-
-# start wrt widgets preinstall
-prepare_widgets.sh
-install_widgets.sh
-
-