|
From: Reindl H. <h.r...@th...> - 2013-04-18 16:50:46
|
thats why i use "--without-kernel-modules"
i am running Fedora 17/18 and do only need the vmtoolsd
for VMwareHA and to freeze the FS for VMware-Data-Recovery
because recent kernels have the vmware-drivers upstream
my sysv-init times are long ago, so i have only the systemd-unit
[root@buildserver:~]$ cat /usr/lib/systemd/system/vmtoolsd.service
[Unit]
Description=open-vm-tools
[Service]
Type=simple
ExecStart=/usr/bin/vmtoolsd
Restart=always
RestartSec=2
TimeoutStopSec=1
[Install]
WantedBy=multi-user.target
Am 18.04.2013 18:44, schrieb Bhuvan Racham:
> Thanks a lot.
>
> In my case, i want bare minimum install and want ONLY operational guestd and nothing else.
>
> Are these instructions still good for that. I did not see any references to guestd in your instructions. Then
> again, you have to forgive lack my indepth knowledge if it is obvious in your response.
>
>
> On Thu, Apr 18, 2013 at 9:30 AM, Reindl Harald <h.r...@th... <mailto:h.r...@th...>> wrote:
>
>
>
> Am 18.04.2013 02:53, schrieb Bhuvan Racham:
> > I am wondering if there is a doc somewhere that you can point me to on:
> > - How to (compile &) install open-vm-vmtools with only guestd module ?
> > Base OS: CentOS
>
> only the systemd-unit and systemctl needs to
> get replaced with sysv-init stuff but i would
> expect no other differences between Fedora/CentOS
>
> [root@buildserver:~]$ cat /rpmbuild/SPECS/vmware-tools.spec
> %define vmtooolsver 9.2.2
> %define buildver 958366
> %global kernel_uname_r %(echo $(uname -r))
>
> Name: open-vm-tools
> Version: %{vmtooolsver}.%{buildver}
> Release: 6%{?dist}
> Summary: VMware Guest OS Tools
> Group: Applications/System
> License: LGPLv2
> URL: http://open-vm-tools.sourceforge.net/
> Source0: http://downloads.sourceforge.net/open-vm-tools/%{name}-%{vmtooolsver}-%{buildver}.tar.gz
> Source1 <http://downloads.sourceforge.net/open-vm-tools/%{name}-%{vmtooolsver}-%{buildver}.tar.gz Source1>:
> vmtoolsd.service
> BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
> ExclusiveArch: %{ix86} x86_64
> Requires(post): systemd-units
> Requires(preun): systemd-units
> Requires: systemd-units
> Requires: /usr/bin/bash
> BuildRequires: uriparser-devel
> BuildRequires: libnotify-devel
> BuildRequires: fuse-devel
> Obsoletes: open-vm-tools-kmod kmod-open-vm-tools akmod-open-vm-tools open-vm-tools-kmod-common
> open-vm-tools-libs
>
> %description
> open-vm-tools are the open source implementation of VMware Tools
>
> %package devel
> Summary: Development package for %{name}
> Group: Development/Libraries
> Requires: %{name} = %{version}-%{release}
>
> %description devel
> development files for open-vm-tools
>
> %prep
> %setup -q -n %{name}-%{vmtooolsver}-%{buildver}
>
>
> %build
>
> CXXFLAGS="$RPM_OPT_FLAGS -Wno-deprecated-declarations"
> CFLAGS="$RPM_OPT_FLAGS -Wno-deprecated-declarations"
> export CXXFLAGS
> export CFLAGS
> %configure --disable-static \
> --disable-dependency-tracking \
> --disable-multimon \
> --disable-tests \
> --disable-docs \
> --without-gtk2 \
> --without-gtkmm \
> --without-x \
> --without-icu \
> --without-root-privileges \
> --with-gnu-ld \
> --without-kernel-modules \
> --without-procps \
> --without-dnet \
> --without-pam
> sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
> sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
> %{__make} %{?_smp_mflags}
>
> %install
> rm -rf $RPM_BUILD_ROOT
> make install DESTDIR=$RPM_BUILD_ROOT
> find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
> mkdir -p $RPM_BUILD_ROOT/sbin
> mv $RPM_BUILD_ROOT%{_sbindir}/mount.* $RPM_BUILD_ROOT/sbin
> rm -f $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/vmware-user.desktop
> rm -f $RPM_BUILD_ROOT/%{_libdir}/open-vm-tools/plugins/common/libhgfsServer.so
> rm -f $RPM_BUILD_ROOT/sbin/mount.vmhgfs
> rm -f $RPM_BUILD_ROOT/usr/bin/vmware-hgfsclient
> mkdir -p ${RPM_BUILD_ROOT}/%{_unitdir}
> mkdir -p ${RPM_BUILD_ROOT}%{_libexecdir}
> install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_unitdir}/
> chmod 700 $RPM_BUILD_ROOT/usr/bin/vmtoolsd
> chmod 700 $RPM_BUILD_ROOT/usr/bin/vmware-checkvm
> chmod 700 $RPM_BUILD_ROOT/usr/bin/vmware-rpctool
> chmod 700 $RPM_BUILD_ROOT/usr/bin/vmware-toolbox-cmd
> chmod 700 $RPM_BUILD_ROOT/usr/bin/vmware-vmblock-fuse
> chmod 700 $RPM_BUILD_ROOT/usr/bin/vmware-xferlogs
>
> %clean
> rm -rf $RPM_BUILD_ROOT
>
> %post
> /usr/sbin/ldconfig
> /usr/bin/systemctl --system daemon-reload 2> /dev/null > /dev/null
> exit 0
>
> %postun
> /usr/sbin/ldconfig
> /usr/bin/systemctl --system daemon-reload 2> /dev/null > /dev/null
> exit 0
>
> %preun
> if [ "$1" = 0 ]
> then
> /usr/bin/systemctl stop vmtoolsd.service 2> /dev/null > /dev/null
> /usr/bin/systemctl disable vmtoolsd.service 2> /dev/null > /dev/null
> fi
> exit 0
>
> %files
> %defattr(-,root,root,-)
> %{_bindir}/vm*
> %{_datadir}/%{name}
> %{_unitdir}/vmtoolsd.service
> %{_sysconfdir}/vmware-tools
> %{_libdir}/*.so.*
> %{_libdir}/%{name}
>
> %files devel
> %defattr(-,root,root,-)
> %{_includedir}/*
> %{_libdir}/*.so
> %{_libdir}/pkgconfig/*.pc
>
> %changelog
> * Wed Feb 27 2013 Reindl Harald <h.r...@th... <mailto:h.r...@th...>>
> - build Fedora 18 package
> - build without 'procps', 'dnet' and 'multimon' to relax dependency chain
> - build with CFLAGS "Wno-deprecated-declarations" to satisfy glib/gcc of F18
> - TimeoutStopSec=1
>
> * Sun Nov 02 2012 Reindl Harald <h.r...@th... <mailto:h.r...@th...>>
> - chmod 700 for command-line tools
>
> * Sat Jun 02 2012 Reindl Harald <h.r...@th... <mailto:h.r...@th...>>
> - open-vm-tools-2012.05.21-724730
>
> * Fri May 18 2012 Reindl Harald <h.r...@th... <mailto:h.r...@th...>>
> - build without kernel-modules
>
> * Sat Mar 17 2012 Reindl Harald <h.r...@th... <mailto:h.r...@th...>>
> - open-vm-tools-2012.03.13-651368
>
> * Tue Jan 31 2012 Reindl Harald <h.r...@th... <mailto:h.r...@th...>>
> - open-vm-tools-2011.12.20-562307
> - Rebuild fpr F15 rebased 3.2
>
> * Tue Nov 29 2011 Reindl Harald <h.r...@th... <mailto:h.r...@th...>>
> - include depmod-call from old rpmfusion-pakcages in post/postun
>
> * Wed Nov 23 2011 Reindl Harald <h.r...@th... <mailto:h.r...@th...>>
> - reintroduce and update for fedora 15 kernel >= 2.6.41 (3.1)
> - remove gui-crap and ghfs to relax dependencies on servers
> - switch to systemd-unit
>
>
--
Reindl Harald
the lounge interactive design GmbH
A-1060 Vienna, Hofmühlgasse 17
CTO / CISO / Software-Development
p: +43 (1) 595 3999 33, m: +43 (676) 40 221 40
icq: 154546673, http://www.thelounge.net/
http://www.thelounge.net/signature.asc.what.htm
|