Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# meta-openxt-qt
# meta-openxt-qt

OpenXT components using the Qt software library.

This layer depends upon the OpenEmbedded meta-qt5 layer.
35 changes: 35 additions & 0 deletions conf/layer.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# It really depends on order of the layers appearing in BBLAYERS
# variable in toplevel bblayers.conf file, where bitbake will search
# for .inc files and others where bitbake uses BBPATH since it will
# search the directories from first to last as specified in BBPATH
# Therefore if you want a given layer to be considered high priority
# for the .inc and .conf etc. then consider it adding at the beginning
# of BBPATH. For bblayers bitbake will use BBFILES_PRIORITY to resolve
# the recipe contention so the order of directories in BBFILES does
# not matter.

# We have a conf and classes directory, append to BBPATH
BBPATH .= ":${LAYERDIR}"

# We have a recipes directory, add to BBFILES
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb ${LAYERDIR}/recipes-*/*/*.bbappend"

BBFILE_COLLECTIONS += "openxt-qt-layer"
BBFILE_PATTERN_openxt-qt-layer := "^${LAYERDIR}/"

# Define the priority for recipes (.bb files) from this layer,
# choosing carefully how this layer interacts with all of the
# other layers.

BBFILE_PRIORITY_openxt-qt-layer = "12"

# This should only be incremented on significant changes that will
# cause compatibility issues with other layers
LAYERVERSION_openxt-qt-layer = "1"

#LAYERDEPENDS_openxt-qt-layer = "xenclient-oe"

LICENSE_PATH += "${LAYERDIR}/licenses"

PREFERRED_PROVIDER_dbd = "qtdbd"
PREFERRED_PROVIDER_db-tools = "qtdbd-tools"
20 changes: 20 additions & 0 deletions recipes-openxt/qtdbd/qtdbd/db-cat-dom0
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh
#
# Copyright (c) 2014 Citrix Systems, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#

LD_PRELOAD=/usr/lib/libv4v-1.0.so.0 INET_IS_V4V=1 DBUS_SYSTEM_BUS_ADDRESS=tcp:host=1.0.0.0,port=5555 db-cat "$@"
21 changes: 21 additions & 0 deletions recipes-openxt/qtdbd/qtdbd/db-dump-dom0
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh
#
# Copyright (c) 2015 Assured Information Security, Inc.
# Copyright (c) 2014 Citrix Systems, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#

LD_PRELOAD=/usr/lib/libv4v-1.0.so.0 INET_IS_V4V=1 DBUS_SYSTEM_BUS_ADDRESS=tcp:host=1.0.0.0,port=5555 db-dump "$@"
20 changes: 20 additions & 0 deletions recipes-openxt/qtdbd/qtdbd/db-exists-dom0
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh
#
# Copyright (c) 2014 Citrix Systems, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#

LD_PRELOAD=/usr/lib/libv4v-1.0.so.0 INET_IS_V4V=1 DBUS_SYSTEM_BUS_ADDRESS=tcp:host=1.0.0.0,port=5555 db-exists "$@"
21 changes: 21 additions & 0 deletions recipes-openxt/qtdbd/qtdbd/db-inject-dom0
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh
#
# Copyright (c) 2015 Assured Information Security, Inc.
# Copyright (c) 2014 Citrix Systems, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#

LD_PRELOAD=/usr/lib/libv4v-1.0.so.0 INET_IS_V4V=1 DBUS_SYSTEM_BUS_ADDRESS=tcp:host=1.0.0.0,port=5555 db-inject "$@"
20 changes: 20 additions & 0 deletions recipes-openxt/qtdbd/qtdbd/db-ls-dom0
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh
#
# Copyright (c) 2014 Citrix Systems, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#

LD_PRELOAD=/usr/lib/libv4v-1.0.so.0 INET_IS_V4V=1 DBUS_SYSTEM_BUS_ADDRESS=tcp:host=1.0.0.0,port=5555 db-ls "$@"
20 changes: 20 additions & 0 deletions recipes-openxt/qtdbd/qtdbd/db-nodes-dom0
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh
#
# Copyright (c) 2014 Citrix Systems, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#

LD_PRELOAD=/usr/lib/libv4v-1.0.so.0 INET_IS_V4V=1 DBUS_SYSTEM_BUS_ADDRESS=tcp:host=1.0.0.0,port=5555 db-nodes "$@"
20 changes: 20 additions & 0 deletions recipes-openxt/qtdbd/qtdbd/db-read-dom0
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh
#
# Copyright (c) 2014 Citrix Systems, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#

LD_PRELOAD=/usr/lib/libv4v-1.0.so.0 INET_IS_V4V=1 DBUS_SYSTEM_BUS_ADDRESS=tcp:host=1.0.0.0,port=5555 db-read "$@"
20 changes: 20 additions & 0 deletions recipes-openxt/qtdbd/qtdbd/db-rm-dom0
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh
#
# Copyright (c) 2014 Citrix Systems, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#

LD_PRELOAD=/usr/lib/libv4v-1.0.so.0 INET_IS_V4V=1 DBUS_SYSTEM_BUS_ADDRESS=tcp:host=1.0.0.0,port=5555 db-rm "$@"
20 changes: 20 additions & 0 deletions recipes-openxt/qtdbd/qtdbd/db-write-dom0
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/sh
#
# Copyright (c) 2014 Citrix Systems, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#

LD_PRELOAD=/usr/lib/libv4v-1.0.so.0 INET_IS_V4V=1 DBUS_SYSTEM_BUS_ADDRESS=tcp:host=1.0.0.0,port=5555 db-write "$@"
14 changes: 14 additions & 0 deletions recipes-openxt/qtdbd/qtdbd/db.default
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"db-version": "9",
"touchpad": {
"tap-to-click-enable": "true",
"scrolling-enable": "true",
"speed": "5"
},
"power-management": {
"ac-lid-close-action": "nothing",
"battery-lid-close-action": "sleep"
},
"xenmgr": { "showMsgOnVmStart": true },
"display-driver-whitelist": "vga,citrix,intel,RDP,netmeeting"
}
71 changes: 71 additions & 0 deletions recipes-openxt/qtdbd/qtdbd/qtdbd.initscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
#!/bin/sh
#
# Copyright (c) 2015 Assured Information Security, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#

# Provides: dbd

set -e

test -x /usr/bin/dbd || exit 0

export PATH="/usr/sbin:/sbin:${PATH}"

DBD_ARGS=""

upgradedb() {
if [ ! -f /config/db ]; then
if [ ! -f /config/db.tmp ]; then
echo "Installing default dbd database in /config/db"
cp --preserve=xattr /usr/share/xenclient/db.default /config/db
fi
fi

echo -n "Upgrading database format: "

/usr/bin/upgrade-db | logger -s -t upgrade-db -p user.notice

if [ ${PIPESTATUS[0]} -ne 0 ]; then
echo "FAILED to upgrade database. NOT starting dbd."
exit 1
fi

echo "db version OK"
}

case "$1" in
start)
echo "Starting dbd"
upgradedb && start-stop-daemon --start --quiet --oknodo --exec /usr/bin/dbd -- ${DBD_ARGS}
;;
stop)
echo "Stopping dbd"
killall dbd
sleep 1
;;
restart)
echo "Restarting dbd"
killall dbd
sleep 1
start-stop-daemon --start --quiet --oknodo --exec /usr/bin/dbd -- ${DBD_ARGS}
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac

exit 0
Loading