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:           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.rei...@thelounge.net>
- 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.rei...@thelounge.net>
- chmod 700 for command-line tools

* Sat Jun 02 2012 Reindl Harald <h.rei...@thelounge.net>
- open-vm-tools-2012.05.21-724730

* Fri May 18 2012 Reindl Harald <h.rei...@thelounge.net>
- build without kernel-modules

* Sat Mar 17 2012 Reindl Harald <h.rei...@thelounge.net>
- open-vm-tools-2012.03.13-651368

* Tue Jan 31 2012 Reindl Harald <h.rei...@thelounge.net>
- open-vm-tools-2011.12.20-562307
- Rebuild fpr F15 rebased 3.2

* Tue Nov 29 2011 Reindl Harald <h.rei...@thelounge.net>
- include depmod-call from old rpmfusion-pakcages in post/postun

* Wed Nov 23 2011 Reindl Harald <h.rei...@thelounge.net>
- 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

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
open-vm-tools-devel mailing list
open-vm-tools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open-vm-tools-devel

Reply via email to