From 901a1deea8174f2f4da167e07ab9b3ce79632935 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 17 May 2013 17:46:48 +0200 Subject: Fix OpenSLX Banner Clean up some scripts --- remote/modules/dbus/dbus.build | 6 --- remote/modules/dbus/dbus.conf.zypper | 1 + remote/modules/systemd/systemd.conf.zypper | 73 ------------------------------ 3 files changed, 1 insertion(+), 79 deletions(-) (limited to 'remote/modules') diff --git a/remote/modules/dbus/dbus.build b/remote/modules/dbus/dbus.build index 7f6d663f..bcab63b0 100644 --- a/remote/modules/dbus/dbus.build +++ b/remote/modules/dbus/dbus.build @@ -13,11 +13,5 @@ build() { } post_copy() { - - # quick fix to get the unit files from the package - # moved them from lib/systemd to usr/lib/systemd - #cd "${BUILDDIR}" - #tarcopy lib/systemd "${TARGET_BUILD_DIR}"/usr - #cd - &> /dev/null : } diff --git a/remote/modules/dbus/dbus.conf.zypper b/remote/modules/dbus/dbus.conf.zypper index e34e47d8..97c58411 100644 --- a/remote/modules/dbus/dbus.conf.zypper +++ b/remote/modules/dbus/dbus.conf.zypper @@ -8,3 +8,4 @@ REQUIRED_BINARIES=" dbus-cleanup-sockets REQUIRED_DIRECTORIES=" /etc/dbus-1 /usr/lib/systemd" REQUIRED_FILES="" + diff --git a/remote/modules/systemd/systemd.conf.zypper b/remote/modules/systemd/systemd.conf.zypper index 8fd38a30..4f415ded 100644 --- a/remote/modules/systemd/systemd.conf.zypper +++ b/remote/modules/systemd/systemd.conf.zypper @@ -7,76 +7,3 @@ REQUIRED_DEPENDENCIES=" intltool libudev-devel dbus-1-devel libxslt-tools" -REQUIRED_BINARIES=" hostnamectl - journalctl - localectl - loginctl - systemctl - systemd-analyze - systemd-ask-password - systemd-cat - systemd-cgls - systemd-cgtop - systemd-coredumpctl - systemd-delta - systemd-detect-virt - systemd-inhibit - systemd-machine-id-setup - systemd-notify - systemd-nspawn - systemd-stdio-bridge - systemd-tmpfiles - systemd-tty-ask-password-agent - timedatectl - udevadm - systemd - systemd-ac-power - systemd-binfmt - systemd-bootchart - systemd-cgroups-agent - systemd-coredump - systemd-fsck - systemd-hostnamed - systemd-initctl - systemd-journald - systemd-localed - systemd-logind - systemd-modules-load - systemd-multi-seat-x - systemd-quotacheck - systemd-random-seed - systemd-readahead - systemd-remount-fs - systemd-reply-password - systemd-shutdown - systemd-shutdownd - systemd-sleep - systemd-sysctl - systemd-timedated - systemd-timestamp - systemd-udevd - systemd-update-utmp - systemd-user-sessions - systemd-vconsole-setup - systemd-fstab-generator - systemd-getty-generator - systemd-rc-local-generator - systemd-system-update-generator - accelerometer - ata_id - cdrom_id - collect - keymap - mtd_probe - scsi_id - v4l_id" -REQUIRED_DIRECTORIES=" /etc - /usr/lib - /usr/include - /usr/share/dbus-1 - /usr/share/polkit-1 - /usr/lib/udev/rules.d" -REQUIRED_FILES=" /usr/bin/systemd-analyze - /usr/share/systemd/kbd-model-map - /usr/lib/udev/findkeyboards - /usr/lib/udev/keyboard-force-release.sh" -- cgit v1.2.3-55-g7522 From ffdff07941620b6f1e9869772dd9a47b29639804 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 21 May 2013 15:35:34 +0200 Subject: Refactoring: REQUIRED_DEPENDENCIES -> REQUIRED_INSTALLED_PACKAGES REQUIRED_PACKAGES -> REQUIRED_CONTENT_PACKAGES --- helper/fileutil.inc | 14 +++++++------- remote/modules/consolekit/consolekit.conf | 2 +- remote/modules/consolekit/consolekit.conf.zypper | 2 +- remote/modules/dbus/dbus.conf | 2 +- remote/modules/dbus/dbus.conf.zypper | 2 +- remote/modules/hwinfo/hwinfo.conf | 2 +- remote/modules/kdm/kdm.conf | 4 ++-- remote/modules/kdm/kdm.conf.zypper | 4 ++-- remote/modules/ldm-gtk-greeter/ldm-gtk-greeter.conf | 4 ++-- remote/modules/ldm/ldm.conf | 4 ++-- remote/modules/openbox/openbox.conf | 4 ++-- remote/modules/pam/pam.conf | 4 ++-- remote/modules/pam/pam.conf.zypper | 4 ++-- remote/modules/plymouth/plymouth.conf | 2 +- remote/modules/plymouth/plymouth.conf.zypper | 2 +- remote/modules/policykit-src/policykit.conf | 4 ++-- remote/modules/policykit/policykit.conf | 4 ++-- remote/modules/policykit/policykit.conf.zypper | 4 ++-- remote/modules/rsyslogd/rsyslogd.conf | 2 +- remote/modules/rsyslogd/rsyslogd.conf.zypper | 2 +- remote/modules/systemd/systemd.conf | 2 +- remote/modules/systemd/systemd.conf.zypper | 2 +- remote/modules/vmchooser/vmchooser.conf | 2 +- remote/modules/vmplayer/vmplayer.conf | 4 ++-- remote/modules/xorg/xorg.conf | 2 +- remote/modules/xorg/xorg.conf.zypper | 2 +- remote/rootfs/rootfs-stage32/rootfs-stage32.build | 2 +- remote/rootfs/rootfs-stage32/rootfs-stage32.conf | 2 +- remote/rootfs/rootfs-stage32/rootfs-stage32.conf.zypper | 4 ++-- 29 files changed, 47 insertions(+), 47 deletions(-) (limited to 'remote/modules') diff --git a/helper/fileutil.inc b/helper/fileutil.inc index 24b50a5f..de4bd409 100644 --- a/helper/fileutil.inc +++ b/helper/fileutil.inc @@ -45,9 +45,9 @@ tarcopy () { # get all files of required packages by a module list_packet_files() { - [ -z "$REQUIRED_PACKAGES" ] && pinfo "No required packages for $TOOL" && return 1 + [ -z "$REQUIRED_CONTENT_PACKAGES" ] && pinfo "No required packages for $TOOL" && return 1 local PACKAGE="" - for PACKAGE in $REQUIRED_PACKAGES; do + for PACKAGE in $REQUIRED_CONTENT_PACKAGES; do local OPTIONAL="$(echo "$PACKAGE" | cut -c 1)" [ "x$OPTIONAL" = "x@" ] && PACKAGE="$(echo "$PACKAGE" | cut -c 2-)" local FILES="" @@ -72,15 +72,15 @@ list_packet_files() { } # # install all dependencies of a module -# goes through all package as given in the variable REQUIRED_DEPENDENCIES +# goes through all package as given in the variable REQUIRED_INSTALLED_PACKAGES install_dependencies() { - [ -z "$REQUIRED_DEPENDENCIES" ] && return + [ -z "$REQUIRED_INSTALLED_PACKAGES" ] && return if [ "$PACKET_MANAGER" = "apt" ]; then # install package, only if not already installed, TODO fix me - #dpkg -l $(echo $(echo "$REQUIRED_DEPENDENCIES")) &> /dev/null && return - apt-get install -y $REQUIRED_DEPENDENCIES || perror "Could not apt-get install $REQUIRED_DEPENDENCIES" + #dpkg -l $(echo $(echo "$REQUIRED_INSTALLED_PACKAGES")) &> /dev/null && return + apt-get install -y $REQUIRED_INSTALLED_PACKAGES || perror "Could not apt-get install $REQUIRED_INSTALLED_PACKAGES" elif [ "$PACKET_MANAGER" = "zypper" ]; then - zypper --no-refresh install -y -n $REQUIRED_DEPENDENCIES || perror "Could not zypper install $REQUIRED_DEPENDENCIES" + zypper --no-refresh install -y -n $REQUIRED_INSTALLED_PACKAGES || perror "Could not zypper install $REQUIRED_INSTALLED_PACKAGES" fi } # diff --git a/remote/modules/consolekit/consolekit.conf b/remote/modules/consolekit/consolekit.conf index 38f1718f..afb573ce 100644 --- a/remote/modules/consolekit/consolekit.conf +++ b/remote/modules/consolekit/consolekit.conf @@ -1,4 +1,4 @@ -REQUIRED_PACKAGES="consolekit" +REQUIRED_CONTENT_PACKAGES="consolekit" REQUIRED_BINARIES=" ck-history ck-launch-session ck-list-sessions diff --git a/remote/modules/consolekit/consolekit.conf.zypper b/remote/modules/consolekit/consolekit.conf.zypper index c528ddc0..394ee0da 100644 --- a/remote/modules/consolekit/consolekit.conf.zypper +++ b/remote/modules/consolekit/consolekit.conf.zypper @@ -1,4 +1,4 @@ -REQUIRED_PACKAGES="ConsoleKit" +REQUIRED_CONTENT_PACKAGES="ConsoleKit" REQUIRED_BINARIES=" ck-history ck-launch-session ck-list-sessions diff --git a/remote/modules/dbus/dbus.conf b/remote/modules/dbus/dbus.conf index 4a1bc6a5..c8fa050d 100644 --- a/remote/modules/dbus/dbus.conf +++ b/remote/modules/dbus/dbus.conf @@ -1,4 +1,4 @@ -REQUIRED_PACKAGES="dbus" +REQUIRED_CONTENT_PACKAGES="dbus" REQUIRED_BINARIES=" dbus-cleanup-sockets dbus-daemon dbus-uuidgen diff --git a/remote/modules/dbus/dbus.conf.zypper b/remote/modules/dbus/dbus.conf.zypper index 97c58411..ce3d5d08 100644 --- a/remote/modules/dbus/dbus.conf.zypper +++ b/remote/modules/dbus/dbus.conf.zypper @@ -1,4 +1,4 @@ -REQUIRED_PACKAGES="dbus-1" +REQUIRED_CONTENT_PACKAGES="dbus-1" REQUIRED_BINARIES=" dbus-cleanup-sockets dbus-daemon dbus-uuidgen diff --git a/remote/modules/hwinfo/hwinfo.conf b/remote/modules/hwinfo/hwinfo.conf index 2d3db99d..c254fc71 100644 --- a/remote/modules/hwinfo/hwinfo.conf +++ b/remote/modules/hwinfo/hwinfo.conf @@ -1,3 +1,3 @@ REQUIRED_BINARIES=" hwinfo" -REQUIRED_DEPENDENCIES=" flex +REQUIRED_INSTALLED_PACKAGES=" flex hwinfo" diff --git a/remote/modules/kdm/kdm.conf b/remote/modules/kdm/kdm.conf index a6f0161e..d59f0009 100644 --- a/remote/modules/kdm/kdm.conf +++ b/remote/modules/kdm/kdm.conf @@ -1,6 +1,6 @@ -REQUIRED_DEPENDENCIES=" kdm +REQUIRED_INSTALLED_PACKAGES=" kdm kde-workspace-kgreet-plugins" -REQUIRED_PACKAGES=" kdm +REQUIRED_CONTENT_PACKAGES=" kdm kde-workspace-kgreet-plugins libicu48 libxcursor1 diff --git a/remote/modules/kdm/kdm.conf.zypper b/remote/modules/kdm/kdm.conf.zypper index 23034356..a2266c52 100644 --- a/remote/modules/kdm/kdm.conf.zypper +++ b/remote/modules/kdm/kdm.conf.zypper @@ -1,5 +1,5 @@ -REQUIRED_DEPENDENCIES="kdm" -REQUIRED_PACKAGES="kdm kde4-kgreeter-plugins" +REQUIRED_INSTALLED_PACKAGES="kdm" +REQUIRED_CONTENT_PACKAGES="kdm kde4-kgreeter-plugins" REQUIRED_BINARIES="" REQUIRED_DIRECTORIES=" /etc/dbus-1 /usr/lib/kde4 diff --git a/remote/modules/ldm-gtk-greeter/ldm-gtk-greeter.conf b/remote/modules/ldm-gtk-greeter/ldm-gtk-greeter.conf index 58d189b7..e9349002 100644 --- a/remote/modules/ldm-gtk-greeter/ldm-gtk-greeter.conf +++ b/remote/modules/ldm-gtk-greeter/ldm-gtk-greeter.conf @@ -1,7 +1,7 @@ VERSION=lightdm-gtk-greeter-1.3.1 URL=https://launchpad.net/lightdm-gtk-greeter/1.4/1.3.1/+download/lightdm-gtk-greeter-1.3.1.tar.gz -REQUIRED_DEPENDENCIES="gtk+-3.0 liblightdm-gobject-1-dev libgdk-pixbuf2.0-0 libpango1.0-0 librsvg2-common shared-mime-info gnome-themes-standard" -REQUIRED_PACKAGES="libgdk-pixbuf2.0-0 libpango1.0-0 librsvg2-common shared-mime-info gnome-themes-standard" +REQUIRED_INSTALLED_PACKAGES="gtk+-3.0 liblightdm-gobject-1-dev libgdk-pixbuf2.0-0 libpango1.0-0 librsvg2-common shared-mime-info gnome-themes-standard" +REQUIRED_CONTENT_PACKAGES="libgdk-pixbuf2.0-0 libpango1.0-0 librsvg2-common shared-mime-info gnome-themes-standard" REQUIRED_BINARIES="lightdm-gtk-greeter" REQUIRED_DIRECTORIES="/usr/lib /usr/share/lightdm-gtk-greeter /usr/share/mime /usr/share/xgreeters /usr/share/icons /usr/share/themes /etc /usr/bin" REQUIRED_FILES="/etc/lightdm/lightdm-gtk-greeter.conf" diff --git a/remote/modules/ldm/ldm.conf b/remote/modules/ldm/ldm.conf index d40aab7f..74ab9450 100644 --- a/remote/modules/ldm/ldm.conf +++ b/remote/modules/ldm/ldm.conf @@ -1,7 +1,7 @@ VERSION=lightdm-1.4.0 URL=https://launchpad.net/lightdm/1.4/1.4.0/+download/lightdm-1.4.0.tar.gz -REQUIRED_DEPENDENCIES="libpam-dev itstool liblightdm-gobject-1-dev" -REQUIRED_PACKAGES="" +REQUIRED_INSTALLED_PACKAGES="libpam-dev itstool liblightdm-gobject-1-dev" +REQUIRED_CONTENT_PACKAGES="" REQUIRED_BINARIES="dm-tool lightdm lightdm-set-defaults gdmflexiserver lightdm-guest-session-wrapper lightdm-set-defaults" REQUIRED_DIRECTORIES="/etc /lib" REQUIRED_FILES="" diff --git a/remote/modules/openbox/openbox.conf b/remote/modules/openbox/openbox.conf index 67c63c4c..f7d09947 100644 --- a/remote/modules/openbox/openbox.conf +++ b/remote/modules/openbox/openbox.conf @@ -1,6 +1,6 @@ -REQUIRED_DEPENDENCIES=" openbox +REQUIRED_INSTALLED_PACKAGES=" openbox libpango1.0-0" -REQUIRED_PACKAGES=" openbox +REQUIRED_CONTENT_PACKAGES=" openbox libpango1.0-0" REQUIRED_BINARIES=" openbox openbox-session" diff --git a/remote/modules/pam/pam.conf b/remote/modules/pam/pam.conf index 0afd3ec3..2d334b52 100644 --- a/remote/modules/pam/pam.conf +++ b/remote/modules/pam/pam.conf @@ -1,7 +1,7 @@ -REQUIRED_DEPENDENCIES=" libpam-ldap +REQUIRED_INSTALLED_PACKAGES=" libpam-ldap libnss-ldap libpam-script" -REQUIRED_PACKAGES=" libpam0g +REQUIRED_CONTENT_PACKAGES=" libpam0g libpam-modules libpam-ck-connector libpam-cap diff --git a/remote/modules/pam/pam.conf.zypper b/remote/modules/pam/pam.conf.zypper index ab0039ff..bdabe4a4 100644 --- a/remote/modules/pam/pam.conf.zypper +++ b/remote/modules/pam/pam.conf.zypper @@ -1,5 +1,5 @@ -REQUIRED_DEPENDENCIES=" pam_ldap pam pam-devel nss_ldap pam-modules" -REQUIRED_PACKAGES=" pam_ldap pam pam-devel nss_ldap pam-modules" +REQUIRED_INSTALLED_PACKAGES=" pam_ldap pam pam-devel nss_ldap pam-modules" +REQUIRED_CONTENT_PACKAGES=" pam_ldap pam pam-devel nss_ldap pam-modules" REQUIRED_DIRECTORIES=" /lib /usr/lib /etc/security" diff --git a/remote/modules/plymouth/plymouth.conf b/remote/modules/plymouth/plymouth.conf index 026aff9c..0e3e6eda 100644 --- a/remote/modules/plymouth/plymouth.conf +++ b/remote/modules/plymouth/plymouth.conf @@ -1,6 +1,6 @@ VERSION=plymouth-0.8.6.1 URL=http://www.freedesktop.org/software/plymouth/releases/${VERSION}.tar.bz2 -REQUIRED_DEPENDENCIES=" libpng-dev +REQUIRED_INSTALLED_PACKAGES=" libpng-dev libpango1.0-dev libcairo-dev libgtk2.0-dev diff --git a/remote/modules/plymouth/plymouth.conf.zypper b/remote/modules/plymouth/plymouth.conf.zypper index 9166c137..ad9052e5 100644 --- a/remote/modules/plymouth/plymouth.conf.zypper +++ b/remote/modules/plymouth/plymouth.conf.zypper @@ -1,6 +1,6 @@ VERSION=plymouth-0.8.6.1 URL=http://www.freedesktop.org/software/plymouth/releases/${VERSION}.tar.bz2 -REQUIRED_DEPENDENCIES=" libpng12-devel +REQUIRED_INSTALLED_PACKAGES=" libpng12-devel pango-devel cairo-devel gtk2-devel diff --git a/remote/modules/policykit-src/policykit.conf b/remote/modules/policykit-src/policykit.conf index 73b04015..3e74c383 100644 --- a/remote/modules/policykit-src/policykit.conf +++ b/remote/modules/policykit-src/policykit.conf @@ -1,7 +1,7 @@ VERSION=polkit-0.110 URL=http://www.freedesktop.org/software/polkit/releases/polkit-0.110.tar.gz -REQUIRED_DEPENDENCIES="libmozjs185-1.0" -REQUIRED_PACKAGES="libmozjs185-1.0" +REQUIRED_INSTALLED_PACKAGES="libmozjs185-1.0" +REQUIRED_CONTENT_PACKAGES="libmozjs185-1.0" REQUIRED_BINARIES="" REQUIRED_DIRECTORIES="/bin /etc /lib /usr/share/dbus-1 /usr/share/polkit-1" REQUIRED_FILES="" diff --git a/remote/modules/policykit/policykit.conf b/remote/modules/policykit/policykit.conf index cf04281d..f13fe2c0 100644 --- a/remote/modules/policykit/policykit.conf +++ b/remote/modules/policykit/policykit.conf @@ -1,5 +1,5 @@ -REQUIRED_DEPENDENCIES="libmozjs185-1.0" -REQUIRED_PACKAGES="libmozjs185-1.0 policykit-1" +REQUIRED_INSTALLED_PACKAGES="libmozjs185-1.0" +REQUIRED_CONTENT_PACKAGES="libmozjs185-1.0 policykit-1" REQUIRED_BINARIES="" REQUIRED_DIRECTORIES=" /etc/pam.d /etc/dbus-1 /etc/polkit-1 /usr/bin diff --git a/remote/modules/policykit/policykit.conf.zypper b/remote/modules/policykit/policykit.conf.zypper index 5d334b1e..87c0014e 100644 --- a/remote/modules/policykit/policykit.conf.zypper +++ b/remote/modules/policykit/policykit.conf.zypper @@ -1,5 +1,5 @@ -REQUIRED_DEPENDENCIES="libmozjs185-1_0" -REQUIRED_PACKAGES="libmozjs185-1_0 polkit" +REQUIRED_INSTALLED_PACKAGES="libmozjs185-1_0" +REQUIRED_CONTENT_PACKAGES="libmozjs185-1_0 polkit" REQUIRED_BINARIES="" REQUIRED_DIRECTORIES=" /etc/pam.d /etc/dbus-1 /etc/polkit-1 /usr/bin diff --git a/remote/modules/rsyslogd/rsyslogd.conf b/remote/modules/rsyslogd/rsyslogd.conf index 602a6050..d0d46e77 100644 --- a/remote/modules/rsyslogd/rsyslogd.conf +++ b/remote/modules/rsyslogd/rsyslogd.conf @@ -1,4 +1,4 @@ -REQUIRED_PACKAGES=" rsyslog" +REQUIRED_CONTENT_PACKAGES=" rsyslog" REQUIRED_BINARIES=" rsyslogd" REQUIRED_FILES=" /etc/rsyslog.conf" REQUIRED_DIRECTORIES=" /usr/lib/rsyslog" diff --git a/remote/modules/rsyslogd/rsyslogd.conf.zypper b/remote/modules/rsyslogd/rsyslogd.conf.zypper index 782503e2..0a61d61b 100644 --- a/remote/modules/rsyslogd/rsyslogd.conf.zypper +++ b/remote/modules/rsyslogd/rsyslogd.conf.zypper @@ -1,3 +1,3 @@ REQUIRED_BINARIES=" rsyslogd rsyslog-service-prepare" -REQUIRED_PACKAGES=" rsyslog" +REQUIRED_CONTENT_PACKAGES=" rsyslog" diff --git a/remote/modules/systemd/systemd.conf b/remote/modules/systemd/systemd.conf index 2b116784..b5e8370d 100644 --- a/remote/modules/systemd/systemd.conf +++ b/remote/modules/systemd/systemd.conf @@ -2,7 +2,7 @@ VERSION=systemd-197 URL=http://www.freedesktop.org/software/systemd/${VERSION}.tar.xz LIBKMOD_VERSION="kmod-12" LIBKMOD_URL="http://www.kernel.org/pub/linux/utils/kernel/kmod/${LIBKMOD_VERSION}.tar.gz" -REQUIRED_DEPENDENCIES=" intltool +REQUIRED_INSTALLED_PACKAGES=" intltool gperf dbus pkg-config diff --git a/remote/modules/systemd/systemd.conf.zypper b/remote/modules/systemd/systemd.conf.zypper index 4f415ded..de89399e 100644 --- a/remote/modules/systemd/systemd.conf.zypper +++ b/remote/modules/systemd/systemd.conf.zypper @@ -1,6 +1,6 @@ VERSION=systemd-201 URL=http://www.freedesktop.org/software/systemd/${VERSION}.tar.xz -REQUIRED_DEPENDENCIES=" intltool +REQUIRED_INSTALLED_PACKAGES=" intltool gperf pkg-config libcap-devel diff --git a/remote/modules/vmchooser/vmchooser.conf b/remote/modules/vmchooser/vmchooser.conf index 976384aa..7f03ea83 100644 --- a/remote/modules/vmchooser/vmchooser.conf +++ b/remote/modules/vmchooser/vmchooser.conf @@ -1,5 +1,5 @@ GIT=git://git.openslx.org/openslx/tools/vmchooser.git -REQUIRED_DEPENDENCIES=" cmake +REQUIRED_INSTALLED_PACKAGES=" cmake libqt4-dev" PREFIX="/opt/openslx/bin" REQUIRED_BINARIES="vmchooser" diff --git a/remote/modules/vmplayer/vmplayer.conf b/remote/modules/vmplayer/vmplayer.conf index df88968e..2797303e 100644 --- a/remote/modules/vmplayer/vmplayer.conf +++ b/remote/modules/vmplayer/vmplayer.conf @@ -1,5 +1,5 @@ -#REQUIRED_DEPENDENCIES="libgconf-2-4 fontconfig-config" -#REQUIRED_PACKAGES="libgconf-2-4 fontconfig-config" +#REQUIRED_INSTALLED_PACKAGES="libgconf-2-4 fontconfig-config" +#REQUIRED_CONTENT_PACKAGES="libgconf-2-4 fontconfig-config" REQUIRED_BINARIES="" REQUIRED_SYSTEM_FILES="" REQUIRED_DIRECTORIES="/etc /usr" diff --git a/remote/modules/xorg/xorg.conf b/remote/modules/xorg/xorg.conf index a63ef508..81b5530b 100644 --- a/remote/modules/xorg/xorg.conf +++ b/remote/modules/xorg/xorg.conf @@ -1,4 +1,4 @@ -REQUIRED_PACKAGES=" xserver-xorg +REQUIRED_CONTENT_PACKAGES=" xserver-xorg xserver-xorg-core libgl1-mesa-dri xkb-data diff --git a/remote/modules/xorg/xorg.conf.zypper b/remote/modules/xorg/xorg.conf.zypper index 22a6bdd8..e0636dd7 100644 --- a/remote/modules/xorg/xorg.conf.zypper +++ b/remote/modules/xorg/xorg.conf.zypper @@ -1,4 +1,4 @@ -REQUIRED_PACKAGES=" xorg-x11 +REQUIRED_CONTENT_PACKAGES=" xorg-x11 xorg-x11-server xorg-x11-driver-input xorg-x11-driver-video diff --git a/remote/rootfs/rootfs-stage32/rootfs-stage32.build b/remote/rootfs/rootfs-stage32/rootfs-stage32.build index 0ca8d64c..713c0a3d 100644 --- a/remote/rootfs/rootfs-stage32/rootfs-stage32.build +++ b/remote/rootfs/rootfs-stage32/rootfs-stage32.build @@ -4,7 +4,7 @@ fetch_source() { } build() { - if [ ! -z "$REQUIRED_PACKAGES" ]; then + if [ ! -z "$REQUIRED_CONTENT_PACKAGES" ]; then COPYLIST="list_dpkg_output" [ -e "${COPYLIST}" ] && rm "${COPYLIST}" list_packet_files >> "${COPYLIST}" diff --git a/remote/rootfs/rootfs-stage32/rootfs-stage32.conf b/remote/rootfs/rootfs-stage32/rootfs-stage32.conf index a8bbf386..f5452f53 100644 --- a/remote/rootfs/rootfs-stage32/rootfs-stage32.conf +++ b/remote/rootfs/rootfs-stage32/rootfs-stage32.conf @@ -1,5 +1,5 @@ REQUIRED_MODULES=" kernel" -REQUIRED_DEPENDENCIES="nfs-common aufs-tools squashfs-tools whois xfsprogs" +REQUIRED_INSTALLED_PACKAGES="nfs-common aufs-tools squashfs-tools whois xfsprogs" REQUIRED_BINARIES=" bash more less diff --git a/remote/rootfs/rootfs-stage32/rootfs-stage32.conf.zypper b/remote/rootfs/rootfs-stage32/rootfs-stage32.conf.zypper index 8543a284..dbbd4697 100644 --- a/remote/rootfs/rootfs-stage32/rootfs-stage32.conf.zypper +++ b/remote/rootfs/rootfs-stage32/rootfs-stage32.conf.zypper @@ -1,7 +1,7 @@ pinfo "If aufs install fails, run zypper addrepo http://jftp.inai.de/openSUSE_12.3/ j.eng-i586" REQUIRED_MODULES=" kernel" -REQUIRED_DEPENDENCIES="nfs-client aufs squashfs" -REQUIRED_PACKAGES="timezone" +REQUIRED_INSTALLED_PACKAGES="nfs-client aufs squashfs" +REQUIRED_CONTENT_PACKAGES="timezone" REQUIRED_BINARIES=" bash agetty cat -- cgit v1.2.3-55-g7522 From 77c46bae1bc8aa0ea717710495c4ccf06ce01085 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 21 May 2013 17:59:10 +0200 Subject: 1. Fix ARCH_TRIPLET for distos that don'T have it. 2. Add suse-specific .conf file for openbox 3. Add libnss_mdns* to pam 4. Add vmchooser and openbox to stage32-opensuse --- helper/system.inc | 3 ++- remote/modules/openbox/openbox.build | 4 +++- remote/modules/openbox/openbox.conf | 7 +++---- remote/modules/openbox/openbox.conf.zypper | 5 +++++ remote/modules/pam/pam.conf.zypper | 2 +- remote/modules/vmchooser/vmchooser.conf.zypper | 5 +++++ remote/targets/stage32-opensuse/openbox | 1 + remote/targets/stage32-opensuse/vmchooser | 1 + 8 files changed, 21 insertions(+), 7 deletions(-) create mode 100644 remote/modules/openbox/openbox.conf.zypper create mode 100644 remote/modules/vmchooser/vmchooser.conf.zypper create mode 120000 remote/targets/stage32-opensuse/openbox create mode 120000 remote/targets/stage32-opensuse/vmchooser (limited to 'remote/modules') diff --git a/helper/system.inc b/helper/system.inc index 2e619a3c..0cfcfbc6 100644 --- a/helper/system.inc +++ b/helper/system.inc @@ -5,7 +5,8 @@ # please try not to use this to find/fetch libs in /lib or /usr/lib. # Use ARCH_LIB_DIR, like "$ARCH_LIB_DIR/somefile.so" or "/usr$ARCH_LIB_DIR/somefile.so" ARCH_TRIPLET=$(ldd $SHELL|grep "libc.so" | awk -F "/" '{print $3}') -[ -z "$ARCH_TRIPLET" ] && pwarning "Could not determine arch triplet." +#[ -z "$ARCH_TRIPLET" ] && pwarning "Could not determine arch triplet." +[[ $ARCH_TRIPLET == *\(*\) ]] && ARCH_TRIPLET="" ARCH_LIB_DIR=$(ldd $SHELL | grep "libc.so" | sed -r 's#^.*(/lib.*)/libc.so.*$#\1#g') [ -z "$ARCH_LIB_DIR" -o ! -d "$ARCH_LIB_DIR" ] && perror "Could not determine arch dependent lib dir (where libc.so resides)" diff --git a/remote/modules/openbox/openbox.build b/remote/modules/openbox/openbox.build index 3e56fbfb..51c6beec 100644 --- a/remote/modules/openbox/openbox.build +++ b/remote/modules/openbox/openbox.build @@ -7,7 +7,9 @@ build() { [ -e "$COPYLIST" ] && rm "$COPYLIST" list_packet_files >> "$COPYLIST" - tarcopy "$(cat "$COPYLIST" | sort -u)" "${MODULE_BUILD_DIR}" + # FIXME: Hack: openSUSE's rpm -ql lilsts non-existant pango.modules, which makes + # tarcopy fail. We probably can't fix that, so remove it using grep.... + tarcopy "$(cat "$COPYLIST" | grep -v 'pango\.modules$' | sort -u)" "${MODULE_BUILD_DIR}" return 0 } diff --git a/remote/modules/openbox/openbox.conf b/remote/modules/openbox/openbox.conf index f7d09947..2dc5da54 100644 --- a/remote/modules/openbox/openbox.conf +++ b/remote/modules/openbox/openbox.conf @@ -6,7 +6,6 @@ REQUIRED_BINARIES=" openbox openbox-session" REQUIRED_FILES=" /usr/share/xsessions/openbox.desktop" REQUIRED_DIRECTORIES=" /etc - /usr/lib/openbox - /usr/share/themes/Clearlooks - /usr/lib/$ARCH_TRIPLET/pango/" - + /usr/lib + /usr/share/themes/Clearlooks" + diff --git a/remote/modules/openbox/openbox.conf.zypper b/remote/modules/openbox/openbox.conf.zypper new file mode 100644 index 00000000..63e5e25d --- /dev/null +++ b/remote/modules/openbox/openbox.conf.zypper @@ -0,0 +1,5 @@ +REQUIRED_INSTALLED_PACKAGES=" openbox + libpango-1_0-0" +REQUIRED_CONTENT_PACKAGES=" openbox + libpango-1_0-0" + diff --git a/remote/modules/pam/pam.conf.zypper b/remote/modules/pam/pam.conf.zypper index bdabe4a4..191850db 100644 --- a/remote/modules/pam/pam.conf.zypper +++ b/remote/modules/pam/pam.conf.zypper @@ -1,5 +1,5 @@ REQUIRED_INSTALLED_PACKAGES=" pam_ldap pam pam-devel nss_ldap pam-modules" -REQUIRED_CONTENT_PACKAGES=" pam_ldap pam pam-devel nss_ldap pam-modules" +REQUIRED_CONTENT_PACKAGES=" pam_ldap pam pam-devel nss_ldap pam-modules nss-mdns" REQUIRED_DIRECTORIES=" /lib /usr/lib /etc/security" diff --git a/remote/modules/vmchooser/vmchooser.conf.zypper b/remote/modules/vmchooser/vmchooser.conf.zypper new file mode 100644 index 00000000..ca9944af --- /dev/null +++ b/remote/modules/vmchooser/vmchooser.conf.zypper @@ -0,0 +1,5 @@ +GIT=git://git.openslx.org/openslx/tools/vmchooser.git +REQUIRED_INSTALLED_PACKAGES=" cmake + libqt4-devel" +PREFIX="/opt/openslx/bin" +REQUIRED_BINARIES="vmchooser" diff --git a/remote/targets/stage32-opensuse/openbox b/remote/targets/stage32-opensuse/openbox new file mode 120000 index 00000000..0fb8d86d --- /dev/null +++ b/remote/targets/stage32-opensuse/openbox @@ -0,0 +1 @@ +../../modules/openbox \ No newline at end of file diff --git a/remote/targets/stage32-opensuse/vmchooser b/remote/targets/stage32-opensuse/vmchooser new file mode 120000 index 00000000..d918fbdc --- /dev/null +++ b/remote/targets/stage32-opensuse/vmchooser @@ -0,0 +1 @@ +../../modules/vmchooser \ No newline at end of file -- cgit v1.2.3-55-g7522 From 8a696696a3b026aff9afabf75da5eb1b284e4be8 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 23 May 2013 14:50:28 +0200 Subject: fix PATH for debug shell --- remote/modules/systemd/data/etc/systemd/system/debug-shell.service | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'remote/modules') diff --git a/remote/modules/systemd/data/etc/systemd/system/debug-shell.service b/remote/modules/systemd/data/etc/systemd/system/debug-shell.service index f702064d..fedd138d 100644 --- a/remote/modules/systemd/data/etc/systemd/system/debug-shell.service +++ b/remote/modules/systemd/data/etc/systemd/system/debug-shell.service @@ -12,8 +12,7 @@ DefaultDependencies=no IgnoreOnIsolate=yes [Service] -Environment=TERM=linux -EnvironmentPath=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/openslx/sbin:/opt/openslx/bin:/opt/openslx/usr/sbin:/opt/openslx/usr/bin +Environment=TERM=linux PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/openslx/sbin:/opt/openslx/bin:/opt/openslx/usr/sbin:/opt/openslx/usr/bin ExecStart=/bin/sh Restart=always RestartSec=0 -- cgit v1.2.3-55-g7522