Skip to content
This repository was archived by the owner on Feb 17, 2022. It is now read-only.

Commit b5b0a6f

Browse files
Merge pull request #4 from perrin-1/master
Fix compilation for DSM-7.0
2 parents c577650 + eebbd4b commit b5b0a6f

File tree

10 files changed

+61
-68
lines changed

10 files changed

+61
-68
lines changed

README.md

+12-6
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Delete the `.tar.gz`-file:
9090

9191
**6.** Clone the `open-vm-tools` build files:
9292

93-
`git clone https://github.com/NeverEatYellowSwissSnow/synology-dsm-open-vm-tools.git ~/tmp/open-vm-tools`
93+
`git clone https://github.com/perrin-1/synology-dsm-open-vm-tools.git ~/tmp/open-vm-tools`
9494

9595
**7.** Edit the following file which holds the according checksum files and replace all values with the previously generated checksums from `~/tmp/checksums.txt`:
9696

@@ -120,17 +120,23 @@ Save the file and quit the editor.
120120

121121
`make setup`
122122

123-
**12.** Compile:
123+
**12.** Install missing package `sponge`
124124

125-
`cd /spksrc/spk/open-vm-tools/ && make arch-apollolake-6.2`
125+
The official synocommunity/spksrc docker container is missing the binary sponge. You need to install that for the build to finish:
126+
`apt update`
127+
`apt install moreutils`
128+
129+
**13.** Compile:
130+
131+
`cd /spksrc/spk/open-vm-tools/ && make arch-apollolake-7.0`
126132

127133
Sidenote: Other common architectures could be:
128134

129-
`arch-bromolow-6.2`
135+
`arch-bromolow-6.2` or `arch-bromolow-7.0`
130136

131137
or
132138

133-
`arch-broadwell-6.2`
139+
`arch-broadwell-6.2` or `arch-broadwell-7.0`
134140

135141
or
136142

@@ -144,6 +150,6 @@ You can now find the compiled `.spk`-package here:
144150

145151
`~/tmp/spksrc/packages`
146152

147-
**13.** Install the compiled `.spk`-package on your `Synology DSM` system.
153+
**14.** Install the compiled `.spk`-package on your `Synology DSM` system.
148154

149155
Done.

cross/open-vm-tools/Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PKG_NAME = open-vm-tools
2-
PKG_VERS = 11.3.0
3-
PKG_BUILD = 18090558
2+
PKG_VERS = 11.3.5
3+
PKG_BUILD = 18557794
44
PKG_EXT = tar.gz
55
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS)-$(PKG_BUILD).$(PKG_EXT)
66
PKG_DIST_SITE = https://github.com/vmware/open-vm-tools/releases/download/stable-$(PKG_VERS)
@@ -45,4 +45,4 @@ vmtools_post_install:
4545
chmod a-x $(STAGING_INSTALL_PREFIX)/etc/vmware-tools/*.conf.example
4646
# chmod a-x $(STAGING_INSTALL_PREFIX)/etc/vmware-tools/vgauth/schemas/*
4747
chmod a-x $(STAGING_INSTALL_PREFIX)/lib/udev/rules.d/99-vmware-scsi-udev.rules
48-
mv $(STAGING_INSTALL_PREFIX)/usr/bin/vm-support $(STAGING_INSTALL_PREFIX)/bin/
48+
mv $(STAGING_INSTALL_PREFIX)/usr/bin/vm-support $(STAGING_INSTALL_PREFIX)/bin/

cross/open-vm-tools/PLIST

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ lib:lib/open-vm-tools/plugins/vmsvc/libpowerOps.so
3434
lib:lib/open-vm-tools/plugins/vmsvc/libtimeSync.so
3535
lib:lib/open-vm-tools/plugins/vmsvc/libvmbackup.so
3636
rsc:lib/udev/rules.d/99-vmware-scsi-udev.rules
37-
bin:sbin/mount.vmhgfs
3837
rsc:share/open-vm-tools/messages/de/toolboxcmd.vmsg
3938
rsc:share/open-vm-tools/messages/de/vmtoolsd.vmsg
4039
rsc:share/open-vm-tools/messages/ja/toolboxcmd.vmsg

cross/open-vm-tools/digests

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
open-vm-tools-11.3.0-18090558.tar.gz SHA1 3959daf1acc10c565806fe3c8569776d2ea508c3
2-
open-vm-tools-11.3.0-18090558.tar.gz SHA256 9bad3ee755340853bf7990e92f3d3880959a73e0749e8aaae62730854368bd2c
3-
open-vm-tools-11.3.0-18090558.tar.gz MD5 1b8a211ce9c757cfea72b40c82bf8d80
1+
open-vm-tools-11.3.5-18557794.tar.gz SHA1 f6990193579d96a04bfec6f09e93e0164deef71e
2+
open-vm-tools-11.3.5-18557794.tar.gz SHA256 2053daf7b224ab7ae1a9cfcd6ae12494c646e2bf9aaca998225bd082a4a43fb7
3+
open-vm-tools-11.3.5-18557794.tar.gz MD5 5ee21a56d5fd7a1838f41e328c061084

cross/procps-ng/Makefile

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
PKG_NAME = procps-ng
2+
PKG_VERS = 3.3.8
3+
PKG_EXT = tar.xz
4+
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
5+
PKG_DIST_SITE = http://downloads.sourceforge.net/project/$(PKG_NAME)/Production
6+
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)
7+
8+
HOMEPAGE = http://sourceforge.net/projects/procps-ng/
9+
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.
10+
LICENSE = GPLv2
11+
12+
GNU_CONFIGURE = 1
13+
14+
CONFIGURE_ARGS = ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes --without-ncurses
15+
16+
include ../../mk/spksrc.cross-cc.mk

cross/procps-ng/PLIST

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
bin:bin/kill
2+
bin:bin/ps
3+
lnk:lib/libprocps.so
4+
lnk:lib/libprocps.so.1
5+
lib:lib/libprocps.so.1.1.2
6+
bin:sbin/sysctl
7+
bin:usr/bin/free
8+
bin:usr/bin/pgrep
9+
bin:usr/bin/pkill
10+
bin:usr/bin/pmap
11+
bin:usr/bin/pwdx
12+
bin:usr/bin/tload
13+
bin:usr/bin/uptime
14+
bin:usr/bin/vmstat
15+
bin:usr/bin/w

cross/procps-ng/digests

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
procps-ng-3.3.8.tar.xz SHA1 4fa6a373f969989a9e490df5eb49a2df62eca19a
2+
procps-ng-3.3.8.tar.xz SHA256 a4109cfb6fe3bcfb5a0efb37efe04d0c8ce858bff3820d48cc258bad41bed46b
3+
procps-ng-3.3.8.tar.xz MD5 aecbeeda2ab308f8d09dddcb4cb9a572

spk/open-vm-tools/Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
SPK_NAME = open-vm-tools
2-
SPK_VERS = 11.3.0
2+
SPK_VERS = 11.3.5
33
SPK_REV = 1
44
SPK_ICON = src/open-vm-tools.png
55
BETA = 1
66

77
DEPENDS = cross/$(SPK_NAME)
88

9-
MAINTAINER = neverEatYellowSwissSnow
9+
MAINTAINER = perrin-1
1010
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.
1111
RELOAD_UI = yes
1212
DISPLAY_NAME = VMware Tools
13-
CHANGELOG = "* 2021-06-23 open-vm-tools 11.3.0 SPK rev. 1"
13+
CHANGELOG = "SPK Open-vm-tools | 23 SEP 2021 | Build 18557794"
1414

1515
HOMEPAGE = https://github.com/vmware/open-vm-tools
1616
LICENSE = GPLv2/LGPLv2.1

spk/open-vm-tools/src/conf/privilege

+3-32
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,5 @@
11
{
2-
"defaults":{
3-
"run-as": "package"
4-
},
5-
"username": "sc-open-vm-tools",
6-
"ctrl-script": [{
7-
"action": "preinst",
8-
"run-as": "root"
9-
}, {
10-
"action": "postinst",
11-
"run-as": "root"
12-
}, {
13-
"action": "preuninst",
14-
"run-as": "root"
15-
}, {
16-
"action": "postuninst",
17-
"run-as": "root"
18-
}, {
19-
"action": "preupgrade",
20-
"run-as": "root"
21-
}, {
22-
"action": "postupgrade",
23-
"run-as": "root"
24-
}, {
25-
"action": "start",
26-
"run-as": "root"
27-
}, {
28-
"action": "stop",
29-
"run-as": "root"
30-
}, {
31-
"action": "status",
32-
"run-as": "root"
33-
}]
2+
"defaults": {
3+
"run-as": "package"
4+
}
345
}
+3-20
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,16 @@
11

22
# Package specific behaviors
33
# Sourced script by generic installer and start-stop-status scripts
4-
VMTOOLS_DIR="/usr/local/${SYNOPKG_PKGNAME}"
4+
VMTOOLS_DIR=${SYNOPKG_PKGDEST}
55
VMTOOLS_DAEMON="${VMTOOLS_DIR}/bin/vmtoolsd"
6-
CONF_FILE=/etc/vmware-tools/tools.conf
6+
CONF_FILE=${VMTOOLS_DIR}/etc/vmware-tools/tools.conf
77

88
PATH="${VMTOOLS_DIR}/bin:${PATH}"
99

1010
SERVICE_COMMAND="${VMTOOLS_DAEMON} -b ${PID_FILE} -c ${CONF_FILE}"
1111

1212
service_postinst ()
1313
{
14-
# Symlink
15-
ln -s ${SYNOPKG_PKGDEST} ${VMTOOLS_DIR}
16-
17-
# create link for etc and lib
18-
[ -e /etc/vmware-tools ] || ln -s ${SYNOPKG_PKGDEST}/etc/vmware-tools /etc/vmware-tools
19-
[ -e /lib/open-vm-tools ] || ln -s ${SYNOPKG_PKGDEST}/lib/open-vm-tools /lib/open-vm-tools
20-
if [ ! -e /lib/udev/rules.d/99-vmware-scsi-udev.rules ]; then
21-
ln -s ${SYNOPKG_PKGDEST}/lib/udev/rules.d/99-vmware-scsi-udev.rules /lib/udev/rules.d/99-vmware-scsi-udev.rules
22-
udevadm control --reload
23-
fi
2414

2515
cat > ${CONF_FILE} << EOF
2616
bindir = "${SYNOPKG_PKGDEST}/bin"
@@ -33,11 +23,4 @@ service_postuninst ()
3323
# Remove link
3424
rm -f ${VMTOOLS_DIR}
3525

36-
# Remove link for etc and lib
37-
[ -L /etc/vmware-tools ] && rm -f /etc/vmware-tools
38-
[ -L /lib/open-vm-tools ] && rm -f /lib/open-vm-tools
39-
if [ -L /lib/udev/rules.d/99-vmware-scsi-udev.rules ]; then
40-
rm -f /lib/udev/rules.d/99-vmware-scsi-udev.rules
41-
udevadm control --reload
42-
fi
43-
}
26+
}

0 commit comments

Comments
 (0)