From fd0a2c56c96c5d69d13b7617df3fbf0292b3480d Mon Sep 17 00:00:00 2001 From: perrin Date: Mon, 24 Jan 2022 12:15:58 +0100 Subject: [PATCH 1/7] Add procps-ng dependency --- cross/procps-ng/Makefile | 16 ++++++++++++++++ cross/procps-ng/PLIST | 18 ++++++++++++++++++ cross/procps-ng/digests | 3 +++ 3 files changed, 37 insertions(+) create mode 100644 cross/procps-ng/Makefile create mode 100644 cross/procps-ng/PLIST create mode 100644 cross/procps-ng/digests diff --git a/cross/procps-ng/Makefile b/cross/procps-ng/Makefile new file mode 100644 index 0000000..7ada0ea --- /dev/null +++ b/cross/procps-ng/Makefile @@ -0,0 +1,16 @@ +PKG_NAME = procps-ng +PKG_VERS = 3.3.8 +PKG_EXT = tar.xz +PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT) +PKG_DIST_SITE = http://downloads.sourceforge.net/project/$(PKG_NAME)/Production +PKG_DIR = $(PKG_NAME)-$(PKG_VERS) + +HOMEPAGE = http://sourceforge.net/projects/procps-ng/ +COMMENT = procps-ng is a fork of the procps project. It contains free, kill, pkill, pgrep, pmap, ps, pwdx, skill, slabtop, snice, sysctl, tload, top, uptime, vmstat, w, and watch. +LICENSE = GPLv2 + +GNU_CONFIGURE = 1 + +CONFIGURE_ARGS = ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes --without-ncurses + +include ../../mk/spksrc.cross-cc.mk diff --git a/cross/procps-ng/PLIST b/cross/procps-ng/PLIST new file mode 100644 index 0000000..ad9a23e --- /dev/null +++ b/cross/procps-ng/PLIST @@ -0,0 +1,18 @@ +bin:bin/kill +bin:bin/ps +lnk:lib/libprocps.so +lnk:lib/libprocps.so.1 +lib:lib/libprocps.so.1.1.2 +bin:sbin/sysctl +bin:usr/bin/free +bin:usr/bin/pgrep +bin:usr/bin/pkill +bin:usr/bin/pmap +bin:usr/bin/pwdx +bin:usr/bin/slabtop +bin:usr/bin/tload +bin:usr/bin/top +bin:usr/bin/uptime +bin:usr/bin/vmstat +bin:usr/bin/w +bin:usr/bin/watch diff --git a/cross/procps-ng/digests b/cross/procps-ng/digests new file mode 100644 index 0000000..af5f70a --- /dev/null +++ b/cross/procps-ng/digests @@ -0,0 +1,3 @@ +procps-ng-3.3.8.tar.xz SHA1 4fa6a373f969989a9e490df5eb49a2df62eca19a +procps-ng-3.3.8.tar.xz SHA256 a4109cfb6fe3bcfb5a0efb37efe04d0c8ce858bff3820d48cc258bad41bed46b +procps-ng-3.3.8.tar.xz MD5 aecbeeda2ab308f8d09dddcb4cb9a572 From f55b5e3668d46564295938c6fa0325c5e0fad4ca Mon Sep 17 00:00:00 2001 From: perrin Date: Mon, 24 Jan 2022 12:16:33 +0100 Subject: [PATCH 2/7] Fixed compile for DSM 7.x --- cross/open-vm-tools/Makefile | 6 ++--- cross/open-vm-tools/PLIST | 1 - cross/open-vm-tools/digests | 6 ++--- spk/open-vm-tools/Makefile | 6 ++--- spk/open-vm-tools/src/conf/privilege | 34 -------------------------- spk/open-vm-tools/src/service-setup.sh | 23 +++-------------- 6 files changed, 12 insertions(+), 64 deletions(-) delete mode 100644 spk/open-vm-tools/src/conf/privilege diff --git a/cross/open-vm-tools/Makefile b/cross/open-vm-tools/Makefile index d2a2e18..1803d72 100644 --- a/cross/open-vm-tools/Makefile +++ b/cross/open-vm-tools/Makefile @@ -1,6 +1,6 @@ PKG_NAME = open-vm-tools -PKG_VERS = 11.3.0 -PKG_BUILD = 18090558 +PKG_VERS = 11.3.5 +PKG_BUILD = 18557794 PKG_EXT = tar.gz PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS)-$(PKG_BUILD).$(PKG_EXT) PKG_DIST_SITE = https://github.com/vmware/open-vm-tools/releases/download/stable-$(PKG_VERS) @@ -45,4 +45,4 @@ vmtools_post_install: chmod a-x $(STAGING_INSTALL_PREFIX)/etc/vmware-tools/*.conf.example # chmod a-x $(STAGING_INSTALL_PREFIX)/etc/vmware-tools/vgauth/schemas/* chmod a-x $(STAGING_INSTALL_PREFIX)/lib/udev/rules.d/99-vmware-scsi-udev.rules - mv $(STAGING_INSTALL_PREFIX)/usr/bin/vm-support $(STAGING_INSTALL_PREFIX)/bin/ + mv $(STAGING_INSTALL_PREFIX)/usr/bin/vm-support $(STAGING_INSTALL_PREFIX)/bin/ \ No newline at end of file diff --git a/cross/open-vm-tools/PLIST b/cross/open-vm-tools/PLIST index 7dc1606..3f59b20 100644 --- a/cross/open-vm-tools/PLIST +++ b/cross/open-vm-tools/PLIST @@ -34,7 +34,6 @@ lib:lib/open-vm-tools/plugins/vmsvc/libpowerOps.so lib:lib/open-vm-tools/plugins/vmsvc/libtimeSync.so lib:lib/open-vm-tools/plugins/vmsvc/libvmbackup.so rsc:lib/udev/rules.d/99-vmware-scsi-udev.rules -bin:sbin/mount.vmhgfs rsc:share/open-vm-tools/messages/de/toolboxcmd.vmsg rsc:share/open-vm-tools/messages/de/vmtoolsd.vmsg rsc:share/open-vm-tools/messages/ja/toolboxcmd.vmsg diff --git a/cross/open-vm-tools/digests b/cross/open-vm-tools/digests index 8153def..d7cda6b 100644 --- a/cross/open-vm-tools/digests +++ b/cross/open-vm-tools/digests @@ -1,3 +1,3 @@ -open-vm-tools-11.3.0-18090558.tar.gz SHA1 3959daf1acc10c565806fe3c8569776d2ea508c3 -open-vm-tools-11.3.0-18090558.tar.gz SHA256 9bad3ee755340853bf7990e92f3d3880959a73e0749e8aaae62730854368bd2c -open-vm-tools-11.3.0-18090558.tar.gz MD5 1b8a211ce9c757cfea72b40c82bf8d80 +open-vm-tools-11.3.5-18557794.tar.gz SHA1 f6990193579d96a04bfec6f09e93e0164deef71e +open-vm-tools-11.3.5-18557794.tar.gz SHA256 2053daf7b224ab7ae1a9cfcd6ae12494c646e2bf9aaca998225bd082a4a43fb7 +open-vm-tools-11.3.5-18557794.tar.gz MD5 5ee21a56d5fd7a1838f41e328c061084 diff --git a/spk/open-vm-tools/Makefile b/spk/open-vm-tools/Makefile index 161d679..de17c4d 100644 --- a/spk/open-vm-tools/Makefile +++ b/spk/open-vm-tools/Makefile @@ -1,16 +1,16 @@ SPK_NAME = open-vm-tools -SPK_VERS = 11.3.0 +SPK_VERS = 11.3.5 SPK_REV = 1 SPK_ICON = src/open-vm-tools.png BETA = 1 DEPENDS = cross/$(SPK_NAME) -MAINTAINER = neverEatYellowSwissSnow +MAINTAINER = perrin-1 DESCRIPTION = open-vm-tools is a set of services and modules that enable several features in VMware products for better management of, and seamless user interactions with, guests. RELOAD_UI = yes DISPLAY_NAME = VMware Tools -CHANGELOG = "* 2021-06-23 open-vm-tools 11.3.0 SPK rev. 1" +CHANGELOG = "SPK Open-vm-tools | 23 SEP 2021 | Build 18557794" HOMEPAGE = https://github.com/vmware/open-vm-tools LICENSE = GPLv2/LGPLv2.1 diff --git a/spk/open-vm-tools/src/conf/privilege b/spk/open-vm-tools/src/conf/privilege deleted file mode 100644 index 373115c..0000000 --- a/spk/open-vm-tools/src/conf/privilege +++ /dev/null @@ -1,34 +0,0 @@ -{ - "defaults":{ - "run-as": "package" - }, - "username": "sc-open-vm-tools", - "ctrl-script": [{ - "action": "preinst", - "run-as": "root" - }, { - "action": "postinst", - "run-as": "root" - }, { - "action": "preuninst", - "run-as": "root" - }, { - "action": "postuninst", - "run-as": "root" - }, { - "action": "preupgrade", - "run-as": "root" - }, { - "action": "postupgrade", - "run-as": "root" - }, { - "action": "start", - "run-as": "root" - }, { - "action": "stop", - "run-as": "root" - }, { - "action": "status", - "run-as": "root" - }] -} \ No newline at end of file diff --git a/spk/open-vm-tools/src/service-setup.sh b/spk/open-vm-tools/src/service-setup.sh index e04a792..c53e4a6 100644 --- a/spk/open-vm-tools/src/service-setup.sh +++ b/spk/open-vm-tools/src/service-setup.sh @@ -1,9 +1,9 @@ # Package specific behaviors # Sourced script by generic installer and start-stop-status scripts -VMTOOLS_DIR="/usr/local/${SYNOPKG_PKGNAME}" +VMTOOLS_DIR=${SYNOPKG_PKGDEST} VMTOOLS_DAEMON="${VMTOOLS_DIR}/bin/vmtoolsd" -CONF_FILE=/etc/vmware-tools/tools.conf +CONF_FILE=${VMTOOLS_DIR}/etc/vmware-tools/tools.conf PATH="${VMTOOLS_DIR}/bin:${PATH}" @@ -11,16 +11,6 @@ SERVICE_COMMAND="${VMTOOLS_DAEMON} -b ${PID_FILE} -c ${CONF_FILE}" service_postinst () { - # Symlink - ln -s ${SYNOPKG_PKGDEST} ${VMTOOLS_DIR} - - # create link for etc and lib - [ -e /etc/vmware-tools ] || ln -s ${SYNOPKG_PKGDEST}/etc/vmware-tools /etc/vmware-tools - [ -e /lib/open-vm-tools ] || ln -s ${SYNOPKG_PKGDEST}/lib/open-vm-tools /lib/open-vm-tools - if [ ! -e /lib/udev/rules.d/99-vmware-scsi-udev.rules ]; then - ln -s ${SYNOPKG_PKGDEST}/lib/udev/rules.d/99-vmware-scsi-udev.rules /lib/udev/rules.d/99-vmware-scsi-udev.rules - udevadm control --reload - fi cat > ${CONF_FILE} << EOF bindir = "${SYNOPKG_PKGDEST}/bin" @@ -33,11 +23,4 @@ service_postuninst () # Remove link rm -f ${VMTOOLS_DIR} - # Remove link for etc and lib - [ -L /etc/vmware-tools ] && rm -f /etc/vmware-tools - [ -L /lib/open-vm-tools ] && rm -f /lib/open-vm-tools - if [ -L /lib/udev/rules.d/99-vmware-scsi-udev.rules ]; then - rm -f /lib/udev/rules.d/99-vmware-scsi-udev.rules - udevadm control --reload - fi -} +} \ No newline at end of file From fb36a06f226772d8740a047aa1bcd0ee5a2330f7 Mon Sep 17 00:00:00 2001 From: perrin Date: Mon, 24 Jan 2022 12:16:56 +0100 Subject: [PATCH 3/7] Update Readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4c0db1a..9f0dbdb 100644 --- a/README.md +++ b/README.md @@ -122,15 +122,15 @@ Save the file and quit the editor. **12.** Compile: -`cd /spksrc/spk/open-vm-tools/ && make arch-apollolake-6.2` +`cd /spksrc/spk/open-vm-tools/ && make arch-apollolake-7.0` Sidenote: Other common architectures could be: -`arch-bromolow-6.2` +`arch-bromolow-6.2` or `arch-bromolow-7.0` or -`arch-broadwell-6.2` +`arch-broadwell-6.2` or `arch-broadwell-7.0` or From aac12573570bad4586331186f87b991a50bc3884 Mon Sep 17 00:00:00 2001 From: perrin Date: Mon, 24 Jan 2022 12:30:54 +0100 Subject: [PATCH 4/7] Update Readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9f0dbdb..a195ec2 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ Delete the `.tar.gz`-file: **6.** Clone the `open-vm-tools` build files: -`git clone https://github.com/NeverEatYellowSwissSnow/synology-dsm-open-vm-tools.git ~/tmp/open-vm-tools` +`git clone https://github.com/perrin-1/synology-dsm-open-vm-tools.git ~/tmp/open-vm-tools` **7.** Edit the following file which holds the according checksum files and replace all values with the previously generated checksums from `~/tmp/checksums.txt`: From 3fc7c7f4c043e4a999eb2b999f8ddf9c8aad517c Mon Sep 17 00:00:00 2001 From: perrin Date: Mon, 24 Jan 2022 14:48:08 +0100 Subject: [PATCH 5/7] Remove binaries not being built --- cross/procps-ng/PLIST | 3 --- 1 file changed, 3 deletions(-) diff --git a/cross/procps-ng/PLIST b/cross/procps-ng/PLIST index ad9a23e..7a5dba2 100644 --- a/cross/procps-ng/PLIST +++ b/cross/procps-ng/PLIST @@ -9,10 +9,7 @@ bin:usr/bin/pgrep bin:usr/bin/pkill bin:usr/bin/pmap bin:usr/bin/pwdx -bin:usr/bin/slabtop bin:usr/bin/tload -bin:usr/bin/top bin:usr/bin/uptime bin:usr/bin/vmstat bin:usr/bin/w -bin:usr/bin/watch From 377c9bf5d6cf6fb4893e749f6a43b7055c2aa695 Mon Sep 17 00:00:00 2001 From: perrin Date: Mon, 24 Jan 2022 14:48:24 +0100 Subject: [PATCH 6/7] Add default privilege for DSM7.0 --- spk/open-vm-tools/src/conf/privilege | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 spk/open-vm-tools/src/conf/privilege diff --git a/spk/open-vm-tools/src/conf/privilege b/spk/open-vm-tools/src/conf/privilege new file mode 100644 index 0000000..fa4be1e --- /dev/null +++ b/spk/open-vm-tools/src/conf/privilege @@ -0,0 +1,5 @@ +{ + "defaults": { + "run-as": "package" + } +} \ No newline at end of file From eebbd4b984956ace40658eb3e1b534cbf952d374 Mon Sep 17 00:00:00 2001 From: perrin Date: Mon, 24 Jan 2022 14:49:53 +0100 Subject: [PATCH 7/7] Update Readme --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a195ec2..2f95ac9 100644 --- a/README.md +++ b/README.md @@ -120,7 +120,13 @@ Save the file and quit the editor. `make setup` -**12.** Compile: +**12.** Install missing package `sponge` + +The official synocommunity/spksrc docker container is missing the binary sponge. You need to install that for the build to finish: +`apt update` +`apt install moreutils` + +**13.** Compile: `cd /spksrc/spk/open-vm-tools/ && make arch-apollolake-7.0` @@ -144,6 +150,6 @@ You can now find the compiled `.spk`-package here: `~/tmp/spksrc/packages` -**13.** Install the compiled `.spk`-package on your `Synology DSM` system. +**14.** Install the compiled `.spk`-package on your `Synology DSM` system. Done.