SPECS: VMware-server.spec - default configs, packaging updates

glen glen at pld-linux.org
Tue Apr 8 08:23:13 CEST 2008


Author: glen                         Date: Tue Apr  8 06:23:13 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- default configs, packaging updates

---- Files affected:
SPECS:
   VMware-server.spec (1.48 -> 1.49) 

---- Diffs:

================================================================
Index: SPECS/VMware-server.spec
diff -u SPECS/VMware-server.spec:1.48 SPECS/VMware-server.spec:1.49
--- SPECS/VMware-server.spec:1.48	Mon Apr  7 21:34:23 2008
+++ SPECS/VMware-server.spec	Tue Apr  8 08:23:08 2008
@@ -1,12 +1,11 @@
 # $Revision$, $Date$
 # TODO
 # - make vmware-config.pl work
-# - put things back to subpackages
-# - use system java, tomcat, etc packages
-# - make use rc-inetd style config
-# - switch to proper %{_libdir} when done for 64bit arch
 # - sane permissions
+# - switch to proper %{_libdir} when done for 64bit arch
+# - use system java, tomcat, etc packages
 # - package webAccess elsewhere, seems noarch mostly (but if using system pkgs for java/tomcat leave it still huge)
+# - put things back to subpackages (if makes sense)
 #
 # Conditional build:
 %bcond_without	dist_kernel	# without distribution kernel
@@ -20,7 +19,7 @@
 #
 %define		ver	2.0
 %define		subver	84186
-%define		rel	0.3
+%define		rel	0.4
 %{expand:%%global	ccver	%(%{__cc} -dumpversion)}
 #
 Summary:	VMware Server
@@ -39,14 +38,15 @@
 # NoSource2-md5:	d81db3079785a7454902aed222e611ad
 Source3:	http://download3.vmware.com/software/vmserver/VMware-vix-e.x.p-%{subver}.x86_64.tar.gz
 # NoSource3-md5:	bc7bdf81d14887861b4f5413e78fd539
-Source5:	%{name}.init
-Source6:	%{name}-vmnet.conf
-Source7:	%{name}.png
-Source8:	%{name}.desktop
-Source9:	%{name}-nat.conf
-Source10:	%{name}-dhcpd.conf
+Source4:	%{name}.png
+Source5:	%{name}.desktop
+Source6:	%{name}-authd.rc-inetd
+Source7:	%{name}-nat.conf
+Source8:	%{name}-dhcpd.conf
+Source9:	%{name}-dhcpd-hostonly.conf
+Source10:	%{name}-parse-locations.pl
 Source11:	%{name}-libs
-Source12:	%{name}-authd.rc-inetd
+Source12:	%{name}-locations
 Patch0:		%{name}-config-rc-inetd.patch
 Patch1:		%{name}-config-kernel.patch
 Patch2:		%{name}-initscript.patch
@@ -310,7 +310,7 @@
 
 %if %{with userspace}
 install -d \
-	$RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet8/{nat,dhcpd} \
+	$RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet{1,8}/{nat,dhcpd} \
 	$RPM_BUILD_ROOT%{_sysconfdir}/vmware/state \
 	$RPM_BUILD_ROOT%{_bindir} \
 	$RPM_BUILD_ROOT%{_sbindir} \
@@ -318,19 +318,20 @@
 	$RPM_BUILD_ROOT%{_mandir} \
 	$RPM_BUILD_ROOT%{_pixmapsdir} \
 	$RPM_BUILD_ROOT%{_desktopdir} \
-	$RPM_BUILD_ROOT/etc/rc.d/init.d \
+	$RPM_BUILD_ROOT/etc/{pam.d,rc.d/init.d} \
 	$RPM_BUILD_ROOT/var/{log,run}/vmware \
 	$RPM_BUILD_ROOT/var/lib/vmware/{hostd,"Virtual Machines"}
 
-install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/vmnet
-install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet.conf
-install %{SOURCE7} $RPM_BUILD_ROOT%{_pixmapsdir}
-install %{SOURCE8} $RPM_BUILD_ROOT%{_desktopdir}
-install %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet8/nat/nat.conf
-install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.conf
+install %{SOURCE4} $RPM_BUILD_ROOT%{_pixmapsdir}
+install %{SOURCE5} $RPM_BUILD_ROOT%{_desktopdir}
+install %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet8/nat/nat.conf
+install %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.conf
+install %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet1/dhcpd/dhcpd.conf
+install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/vmware/parse-locations.pl
+cp -a %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/vmware/locations
 
-touch $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.leases
-touch $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.leases~
+touch $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet{1,8}/dhcpd/dhcpd.leases
+touch $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet{1,8}/dhcpd/dhcpd.leases~
 
 install bin/*-* $RPM_BUILD_ROOT%{_bindir}
 install sbin/*-* $RPM_BUILD_ROOT%{_sbindir}
@@ -341,10 +342,10 @@
 cp -a lib/vmacore $RPM_BUILD_ROOT%{_libdir}/vmware
 cp -a lib/net-services.sh $RPM_BUILD_ROOT%{_libdir}/vmware
 cp -a lib/configurator $RPM_BUILD_ROOT%{_libdir}/vmware
-cp -a %{SOURCE12} $RPM_BUILD_ROOT%{_libdir}/vmware/configurator/authd-rc-inetd.conf
+cp -a %{SOURCE6} $RPM_BUILD_ROOT%{_libdir}/vmware/configurator/authd-rc-inetd.conf
 cp -a etc/hostd $RPM_BUILD_ROOT/etc/vmware/hostd
 cp -a etc/installer.sh $RPM_BUILD_ROOT/etc/vmware
-cp -a etc/pam.d $RPM_BUILD_ROOT/etc/vmware
+cp -a etc/pam.d/vmware-authd $RPM_BUILD_ROOT/etc/pam.d
 cp -a etc/service $RPM_BUILD_ROOT/etc/vmware
 
 install -d $RPM_BUILD_ROOT%{_docdir}
@@ -357,18 +358,6 @@
 ln -s vmware $RPM_BUILD_ROOT/etc/rc.d/init.d/vmware-autostart
 ln -s vmware $RPM_BUILD_ROOT/etc/rc.d/init.d/vmware-core
 ln -s vmware $RPM_BUILD_ROOT/etc/rc.d/init.d/vmware-mgmt
-cat > $RPM_BUILD_ROOT%{_sysconfdir}/vmware/locations <<'EOF'
-file /etc/vmware/locations
-directory /etc/vmware/state
-answer BINDIR /usr/bin
-answer SBINDIR /usr/sbin
-answer LIBDIR /usr/lib/vmware
-answer DOCDIR /usr/share/doc/vmware
-answer MANDIR /usr/share/man
-answer INITDIR /etc/rc.d
-answer INITSCRIPTSDIR /etc/rc.d/init.d
-answer INSTALL_CYCLE yes
-EOF
 
 rm $RPM_BUILD_ROOT/usr/bin/vmware-uninstall.pl
 rm $RPM_BUILD_ROOT/usr/bin/vmware-vimdump
@@ -425,32 +414,35 @@
 
 %if %{with userspace}
 %files
-%defattr(444,root,root,755)
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/vmware-authd
 %dir %{_sysconfdir}/vmware
 %dir %{_sysconfdir}/vmware/state
 %dir %{_sysconfdir}/vmware/hostd
 %dir %{_sysconfdir}/vmware/hostd/env
-%attr(644,root,root) %{_sysconfdir}/vmware/hostd/env/*.xml
-%attr(444,root,root) %{_sysconfdir}/vmware/hostd/key.pub
-%attr(644,root,root) %{_sysconfdir}/vmware/hostd/*.vha
-%attr(644,root,root) %{_sysconfdir}/vmware/hostd/*.xml
-%dir %{_sysconfdir}/vmware/pam.d
-%attr(644,root,root) %{_sysconfdir}/vmware/pam.d/vmware-authd
+%{_sysconfdir}/vmware/hostd/env/*.xml
+%{_sysconfdir}/vmware/hostd/key.pub
+%{_sysconfdir}/vmware/hostd/*.vha
+%{_sysconfdir}/vmware/hostd/*.xml
 %dir %{_sysconfdir}/vmware/service
-%attr(644,root,root) %{_sysconfdir}/vmware/service/services.xml
-%attr(555,root,root) %{_sysconfdir}/vmware/installer.sh
+%{_sysconfdir}/vmware/service/services.xml
+%{_sysconfdir}/vmware/installer.sh
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vmware/locations
+%attr(755,root,root) %{_sysconfdir}/vmware/parse-locations.pl
+
+# vmnet1: HostOnly
+%dir %{_sysconfdir}/vmware/vmnet1
+%dir %{_sysconfdir}/vmware/vmnet1/dhcpd
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vmware/vmnet1/dhcpd/dhcpd.conf
+%ghost %{_sysconfdir}/vmware/vmnet1/dhcpd/dhcpd.leases*
 
-# TODO: vmnet
+# vmnet8: NAT
 %dir %{_sysconfdir}/vmware/vmnet8
 %dir %{_sysconfdir}/vmware/vmnet8/dhcpd
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.conf
 %dir %{_sysconfdir}/vmware/vmnet8/nat
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vmware/vmnet8/nat/nat.conf
-%verify(not md5 mtime size) %{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.leases*
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vmware/vmnet.conf
-%attr(754,root,root) /etc/rc.d/init.d/vmnet
-# TODO: vmnet
+%ghost %{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.leases*
 
 %attr(754,root,root) /etc/rc.d/init.d/vmware
 %attr(754,root,root) /etc/rc.d/init.d/vmware-autostart
@@ -467,6 +459,7 @@
 %attr(4555,root,root) %{_sbindir}/vmware-authd
 %attr(555,root,root) %{_sbindir}/vmware-authdlauncher
 %attr(555,root,root) %{_sbindir}/vmware-hostd
+
 %dir %{_libdir}/vmware
 %dir %{_libdir}/vmware/bin
 # warning: SUID !!!
@@ -565,6 +558,7 @@
 %defattr(-,root,root,755)
 %dir %{_libdir}/vmware/webAccess
 %defattr(444,root,root,755)
+# TODO: use system java-sun
 %dir %{_libdir}/vmware/webAccess/java
 %dir %{_libdir}/vmware/webAccess/java/jre*
 %attr(555,root,root) %{_libdir}/vmware/webAccess/java/jre*/bin/*
@@ -725,6 +719,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.49  2008-04-08 06:23:08  glen
+- default configs, packaging updates
+
 Revision 1.48  2008-04-07 19:34:23  glen
 - separate iso images, cleanup 1.0 junk
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/VMware-server.spec?r1=1.48&r2=1.49&f=u



More information about the pld-cvs-commit mailing list