diff options
| author | root | 2013-02-27 22:19:53 +0100 |
|---|---|---|
| committer | root | 2013-02-27 22:19:53 +0100 |
| commit | 83dcd2b34cefd5b324b5a4f54be141a858dc5238 (patch) | |
| tree | d0b5db5602029646fe4af2e22891bed813406258 /remote/tools | |
| parent | tihi (diff) | |
| download | tm-scripts-83dcd2b34cefd5b324b5a4f54be141a858dc5238.tar.gz tm-scripts-83dcd2b34cefd5b324b5a4f54be141a858dc5238.tar.xz tm-scripts-83dcd2b34cefd5b324b5a4f54be141a858dc5238.zip | |
Generalization:
- Rework install_dependencies: make it a global function, not per tools.build
- Determine packet manager of local system (currently supports apt/dpkg and zypper/rpm)
- Look for packet manager specific tools.conf.$MANAGER first, use tools.conf otherwise
- Added list_package_files which should be used instead of "for $(dpkg -L | grep ...) ... >> ... done"
Diffstat (limited to 'remote/tools')
| -rw-r--r-- | remote/tools/base/base.build | 4 | ||||
| -rw-r--r-- | remote/tools/base/base.conf | 3 | ||||
| -rw-r--r-- | remote/tools/base/base.conf.zypper | 56 | ||||
| -rw-r--r-- | remote/tools/busybox/busybox.build | 5 | ||||
| -rw-r--r-- | remote/tools/busybox/busybox.conf | 1 | ||||
| -rw-r--r-- | remote/tools/dbus/dbus.build | 9 | ||||
| -rw-r--r-- | remote/tools/dbus/dbus.conf | 4 | ||||
| -rw-r--r-- | remote/tools/dbus/dbus.conf.zypper | 9 | ||||
| -rw-r--r-- | remote/tools/ldm-gtk-greeter/ldm-gtk-greeter.build | 4 | ||||
| -rw-r--r-- | remote/tools/ldm-gtk-greeter/ldm-gtk-greeter.conf | 2 | ||||
| -rw-r--r-- | remote/tools/ldm/ldm.build | 4 | ||||
| -rw-r--r-- | remote/tools/ldm/ldm.conf | 2 | ||||
| -rw-r--r-- | remote/tools/plymouth/plymouth.build | 6 | ||||
| -rw-r--r-- | remote/tools/plymouth/plymouth.conf | 2 | ||||
| -rw-r--r-- | remote/tools/policykit/policykit.build | 4 | ||||
| -rw-r--r-- | remote/tools/policykit/policykit.conf | 2 | ||||
| -rw-r--r-- | remote/tools/sshd/sshd.build | 4 | ||||
| -rw-r--r-- | remote/tools/systemd/systemd.build | 37 | ||||
| -rw-r--r-- | remote/tools/systemd/systemd.conf | 2 | ||||
| -rw-r--r-- | remote/tools/xorg/xorg.build | 4 |
20 files changed, 85 insertions, 79 deletions
diff --git a/remote/tools/base/base.build b/remote/tools/base/base.build index efabaedd..71886d8a 100644 --- a/remote/tools/base/base.build +++ b/remote/tools/base/base.build @@ -1,7 +1,3 @@ -install_dependencies() { - apt-get install -y $DEPS -} - fetch_source() { : } diff --git a/remote/tools/base/base.conf b/remote/tools/base/base.conf index 6a95ab2c..22e91214 100644 --- a/remote/tools/base/base.conf +++ b/remote/tools/base/base.conf @@ -1,4 +1,4 @@ -DEPS="nfs-common aufs-tools squashfs-tools" +REQUIRED_DEPENDENCIES="nfs-common aufs-tools squashfs-tools" REQUIRED_BINARIES=" bash agetty cat @@ -12,7 +12,6 @@ REQUIRED_BINARIES=" bash mount.nfs4 umount.nfs4 mount.aufs - umount.aufs rm ldd strace diff --git a/remote/tools/base/base.conf.zypper b/remote/tools/base/base.conf.zypper new file mode 100644 index 00000000..084bff5c --- /dev/null +++ b/remote/tools/base/base.conf.zypper @@ -0,0 +1,56 @@ +REQUIRED_DEPENDENCIES="nfs-client aufs squashfs" +REQUIRED_BINARIES=" bash + agetty + cat + false + loadkeys + setfont + login + sulogin + mount + umount + mount.nfs4 + umount.nfs4 + mount.aufs + rm + ldd + strace + blkid + modprobe + rsyslogd + ps + scp + ssh" +REQUIRED_LIBRARIES=" libcap + libcidn + libcom_err + libcrypt + libcrypto + libnsl + libnss_compat + libnss_dns + libnss_files + libnss_hesiod + libnss_nis + libnss_nisplus + libpam + libutil + libtinfo + libresolv + libau" +REQUIRED_DIRECTORIES=" /etc/pam.d + /etc/security" +REQUIRED_FILES=" /etc/environment + /etc/pam.conf + /etc/issue + /etc/inputrc + /etc/localtime + /etc/login.defs + /etc/nsswitch.conf + /etc/securetty + /etc/default/locale + /etc/default/aufs + /etc/protocols + /etc/services + /etc/networks + /etc/netconfig" diff --git a/remote/tools/busybox/busybox.build b/remote/tools/busybox/busybox.build index 050da667..936f0730 100644 --- a/remote/tools/busybox/busybox.build +++ b/remote/tools/busybox/busybox.build @@ -1,10 +1,5 @@ #!/bin/bash -install_dependencies() -{ - : -} - fetch_source() { [ ! -d src ] && mkdir src diff --git a/remote/tools/busybox/busybox.conf b/remote/tools/busybox/busybox.conf index bcfc4bf5..b0c1f886 100644 --- a/remote/tools/busybox/busybox.conf +++ b/remote/tools/busybox/busybox.conf @@ -1,5 +1,4 @@ GIT=git://git.openslx.org/openslx/tools/busybox -DEPS="" TARGET_DIR="openslx" REQUIRED_BINARIES=" busybox" REQUIRED_DIRECTORIES=" /$TARGET_DIR/bin diff --git a/remote/tools/dbus/dbus.build b/remote/tools/dbus/dbus.build index 83cc8efa..e0e03943 100644 --- a/remote/tools/dbus/dbus.build +++ b/remote/tools/dbus/dbus.build @@ -1,9 +1,5 @@ #!/bin/bash -install_dependencies() { - echo "No dependencies." -} - fetch_source() { echo "Extracting from running system..." } @@ -14,10 +10,7 @@ build() { COPYLIST="list_dpkg_output" [ -e "${COPYLIST}" ] && rm "${COPYLIST}" - for FILE in $(dpkg -L dbus | grep -v share/doc | grep -v share/man) - do - [ ! -d "${FILE}" ] && echo ${FILE} >> "${COPYLIST}" - done + list_packet_files >> "${COPYLIST}" # prepare target dir & copy there [ ! -d ${BUILDDIR} ] && mkdir -p ${BUILDDIR} diff --git a/remote/tools/dbus/dbus.conf b/remote/tools/dbus/dbus.conf index 9847862f..a8c97d9c 100644 --- a/remote/tools/dbus/dbus.conf +++ b/remote/tools/dbus/dbus.conf @@ -1,3 +1,4 @@ +REQUIRED_PACKAGES="dbus" REQUIRED_BINARIES=" dbus-cleanup-sockets dbus-daemon dbus-uuidgen @@ -5,5 +6,4 @@ REQUIRED_BINARIES=" dbus-cleanup-sockets dbus-send dbus-daemon-launch-helper" REQUIRED_DIRECTORIES=" /etc/dbus-1" -REQUIRED_FILES=" /etc/default/dbus - /etc/init/dbus.conf" +REQUIRED_FILES=" /etc/default/dbus" diff --git a/remote/tools/dbus/dbus.conf.zypper b/remote/tools/dbus/dbus.conf.zypper new file mode 100644 index 00000000..db7183c5 --- /dev/null +++ b/remote/tools/dbus/dbus.conf.zypper @@ -0,0 +1,9 @@ +REQUIRED_PACKAGES="dbus-1" +REQUIRED_BINARIES=" dbus-cleanup-sockets + dbus-daemon + dbus-uuidgen + dbus-monitor + dbus-send + dbus-daemon-launch-helper" +REQUIRED_DIRECTORIES=" /etc/dbus-1" +REQUIRED_FILES="" diff --git a/remote/tools/ldm-gtk-greeter/ldm-gtk-greeter.build b/remote/tools/ldm-gtk-greeter/ldm-gtk-greeter.build index edd3427a..23895580 100644 --- a/remote/tools/ldm-gtk-greeter/ldm-gtk-greeter.build +++ b/remote/tools/ldm-gtk-greeter/ldm-gtk-greeter.build @@ -5,10 +5,6 @@ fetch_source () { touch .fetched_source } -install_dependencies() { - apt-get install -y $DEPS -} - build () { BUILDDIR="$TOOL_DIR/$TOOL/build" diff --git a/remote/tools/ldm-gtk-greeter/ldm-gtk-greeter.conf b/remote/tools/ldm-gtk-greeter/ldm-gtk-greeter.conf index f243fc20..800e5f79 100644 --- a/remote/tools/ldm-gtk-greeter/ldm-gtk-greeter.conf +++ b/remote/tools/ldm-gtk-greeter/ldm-gtk-greeter.conf @@ -1,6 +1,6 @@ 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 -DEPS="gtk+-3.0 liblightdm-gobject-1-dev libgdk-pixbuf2.0-0 libpango1.0-0 librsvg2-common shared-mime-info gnome-themes-standard" +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 policykit-1" 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 /usr/share/polkit-1 /usr/share/dbus-1" diff --git a/remote/tools/ldm/ldm.build b/remote/tools/ldm/ldm.build index 9f45e058..c1bc08e8 100644 --- a/remote/tools/ldm/ldm.build +++ b/remote/tools/ldm/ldm.build @@ -5,10 +5,6 @@ fetch_source () { touch .fetched_source } -install_dependencies() { - apt-get install -y $DEPS -} - build () { BUILDDIR="$TOOL_DIR/$TOOL/build" if [ ! -e .built ]; then diff --git a/remote/tools/ldm/ldm.conf b/remote/tools/ldm/ldm.conf index 7e133e54..d40aab7f 100644 --- a/remote/tools/ldm/ldm.conf +++ b/remote/tools/ldm/ldm.conf @@ -1,6 +1,6 @@ VERSION=lightdm-1.4.0 URL=https://launchpad.net/lightdm/1.4/1.4.0/+download/lightdm-1.4.0.tar.gz -DEPS="libpam-dev itstool liblightdm-gobject-1-dev" +REQUIRED_DEPENDENCIES="libpam-dev itstool liblightdm-gobject-1-dev" REQUIRED_PACKAGES="" REQUIRED_BINARIES="dm-tool lightdm lightdm-set-defaults gdmflexiserver lightdm-guest-session-wrapper lightdm-set-defaults" REQUIRED_DIRECTORIES="/etc /lib" diff --git a/remote/tools/plymouth/plymouth.build b/remote/tools/plymouth/plymouth.build index fd54d876..b7302971 100644 --- a/remote/tools/plymouth/plymouth.build +++ b/remote/tools/plymouth/plymouth.build @@ -1,11 +1,5 @@ #!/bin/bash -install_dependencies() { - - # TODO dev libs check (no gtk) - apt-get install --yes $DEPS -} - fetch_source() { if [ ! -e .fetched_source ]; then # download and extract tarball diff --git a/remote/tools/plymouth/plymouth.conf b/remote/tools/plymouth/plymouth.conf index 3b4126ef..04144a0f 100644 --- a/remote/tools/plymouth/plymouth.conf +++ b/remote/tools/plymouth/plymouth.conf @@ -1,6 +1,6 @@ VERSION=plymouth-0.8.6.1 URL=http://www.freedesktop.org/software/plymouth/releases/${VERSION}.tar.bz2 -DEPS=" libpng-dev +REQUIRED_DEPENDENCIES=" libpng-dev libpango1.0-dev libcairo-dev libgtk2.0-dev diff --git a/remote/tools/policykit/policykit.build b/remote/tools/policykit/policykit.build index a42f48b7..079985ac 100644 --- a/remote/tools/policykit/policykit.build +++ b/remote/tools/policykit/policykit.build @@ -6,10 +6,6 @@ fetch_source () { touch .fetched_source } -install_dependencies() { - apt-get install -y $DEPS -} - build () { BUILDDIR=$TOOL_DIR/$TOOL/build diff --git a/remote/tools/policykit/policykit.conf b/remote/tools/policykit/policykit.conf index c8c27cf3..fbf997f6 100644 --- a/remote/tools/policykit/policykit.conf +++ b/remote/tools/policykit/policykit.conf @@ -1,6 +1,6 @@ VERSION=polkit-0.110 URL=http://www.freedesktop.org/software/polkit/releases/polkit-0.110.tar.gz -DEPS="libmozjs185-dev" +REQUIRED_DEPENDENCIES="libmozjs185-dev" REQUIRED_PACKAGES="" REQUIRED_BINARIES="" REQUIRED_DIRECTORIES="/bin /etc /lib /usr/share/dbus-1 /usr/share/polkit-1" diff --git a/remote/tools/sshd/sshd.build b/remote/tools/sshd/sshd.build index 82dc8a54..efd4f728 100644 --- a/remote/tools/sshd/sshd.build +++ b/remote/tools/sshd/sshd.build @@ -1,7 +1,3 @@ -install_dependencies() { - : -} - fetch_source() { : } diff --git a/remote/tools/systemd/systemd.build b/remote/tools/systemd/systemd.build index 7d9588c0..1d5a9a87 100644 --- a/remote/tools/systemd/systemd.build +++ b/remote/tools/systemd/systemd.build @@ -5,34 +5,19 @@ fetch_source () { touch .fetched_source } -install_dependencies() { - # quick fix for missing libkmod repo... - #libkmod=$(apt-cache search libkmod-dev) - #if [[ -z $libkmod ]]; - #then - # echo "libkmod cannot be found. Adding ppa:pitti/systemd" - # add-apt-repository --yes ppa:pitti/systemd - # apt-get update --force-yes - #fi - # install libkmod from source - # TODO: Use download_untar - local libkmodversion=kmod-12 - if [ ! -d $libkmodversion ]; then - wget http://www.kernel.org/pub/linux/utils/kernel/kmod/${libkmodversion}.tar.gz - tar xf $libkmodversion.tar.gz - rm ${libkmodversion}.tar.gz - cd $libkmodversion - ./configure - make -j5 - make install - cd - - fi - - apt-get install -y $DEPS -} - build () { if [ ! -e .built ]; then + local libkmodversion=kmod-12 + if [ ! -d $libkmodversion ]; then + wget http://www.kernel.org/pub/linux/utils/kernel/kmod/${libkmodversion}.tar.gz + tar xf $libkmodversion.tar.gz + rm ${libkmodversion}.tar.gz + cd $libkmodversion + ./configure + make -j5 + make install + cd - + fi cd "src/$VERSION/" pinfo "calling configure" ./configure --disable-manpages --enable-split-usr --sysconfdir="/etc" --enable-gtk-doc-html=no || perror "configure failed." diff --git a/remote/tools/systemd/systemd.conf b/remote/tools/systemd/systemd.conf index 98cd8ba9..c5e72aeb 100644 --- a/remote/tools/systemd/systemd.conf +++ b/remote/tools/systemd/systemd.conf @@ -1,6 +1,6 @@ VERSION=systemd-197 URL=http://www.freedesktop.org/software/systemd/${VERSION}.tar.xz -DEPS=" intltool +REQUIRED_DEPENDENCIES=" intltool gperf dbus pkg-config diff --git a/remote/tools/xorg/xorg.build b/remote/tools/xorg/xorg.build index 6ce5747c..9cd90db9 100644 --- a/remote/tools/xorg/xorg.build +++ b/remote/tools/xorg/xorg.build @@ -1,9 +1,5 @@ #!/bin/bash -install_dependencies() { - : -} - fetch_source() { : } |
