1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193
|
# $Id: /trunk/debian/non-free/vmware-workstation-4/debian/packages 5 2005-02-16T19:48:00.421413Z svm $
# Environment variables:
# with_detected_depends=%{$with_detected_depends} - use build-time detected depends
%define with_detected_depends %{?$with_detected_depends:1}%{!?$with_detected_depends:0}
Source: vmware-workstation-4
Section: non-free/otherosfs
Priority: extra
Maintainer: Piotr Roszatycki <dexter@debian.org>
Standards-Version: 3.6.1
Upstream-Source: <URL:http://www.vmware.com/download/workstation.html>
Home-Page: <URL:http://www.vmware.com/>
Description: VMware Workstation 4
VMware Workstation Virtual Platform is a thin software layer that allows
multiple guest operating systems to run concurrently on a single standard
PC, without repartitioning or rebooting, and without significant loss of
performance.
Packaged-For: Debian
Copyright: .
Restricted.
%if %{with_detected_depends}
Build-Depends: libpopt-dev, libgdk-pixbuf-dev
%endif
Build: sh
install -d build-tree/modules/vmware-workstation-4/debian
cp -a lib/modules/source/* build-tree/modules/vmware-workstation-4
cp -a debian/changelog build-tree/modules/vmware-workstation-4/debian
cp -a debian/modules.packages build-tree/modules/vmware-workstation-4/debian/packages
( cd build-tree/modules/vmware-workstation-4; yada rebuild; debian/rules clean ) || exit 1
( cd build-tree; tar zcvf vmware-workstation-4.tar.gz modules ) || exit 1
Clean: sh
rm -rf build-tree
Package: vmware-workstation-4
Architecture: i386
%if %{!?with_detected_depends:1}
Depends: libc6 (>= 2.1.3), libgdk-pixbuf2, libpopt0, ucf (>= 0.8)
%endif
Recommends: vmware-workstation-4-modules
Conflicts: vmware-workstation-3
Description: VMware Workstation 4
This package provides VMware Workstation 4 binaries.
Install: sh
yada copy -into /usr/bin bin/*
yada remove -bin vmware-uninstall.pl
yada remove -bin vmware
yada copy -into /usr/lib/vmware lib/bin lib/bin-debug
for i in \
configurator floppies help help-guestinstall help-manual isoimages \
licenses messages smb xkeymap config; do
yada copy -into /usr/share/vmware lib/$i
yada symlink -into /usr/lib/vmware -as $i /usr/share/vmware/$i
done
yada symlink -bin /usr/lib/vmware/bin/vmware
yada install -man man/man1/vmware.1.gz
yada install -doc doc/EULA doc/open_source_licenses.txt
yada install -conf -ucf -subdir vmware debian/conf/config
yada install -conf -ucf -subdir vmware debian/conf/vmnet
Finalise: sh
chmod u+s $ROOT/usr/lib/vmware/bin/vmware-vmx
Postinst: sh
if [ "$1" = "configure" ]; then
if ! getenv group vmware >/dev/null 2>&1; then
addgroup --system vmware
fi
if ! dpkg-statoverride --list /etc/vmware > /dev/null 2>&1; then
dpkg-statoverride --update --add root vmware 0775 \
/etc/vmware
fi
if ! dpkg-statoverride --list /etc/vmware/config > /dev/null 2>&1; then
dpkg-statoverride --update --add root vmware 0664 \
/etc/vmware/config
fi
if ! dpkg-statoverride --list /usr/lib/vmware/bin/vmware-vmx > /dev/null 2>&1; then
dpkg-statoverride --update --add root vmware 4750 \
/usr/lib/vmware/bin/vmware-vmx
fi
fi
Contains: unstripped
Init: sh
start 90 2 3 4 5 . stop 8 0 1 6 .
#
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DESC="VMware services"
.
test -f /etc/vmware/vmnet || exit 0
.
. /etc/vmware/vmnet
.
set -e
.
case "$1" in
start)
modprobe -k vmmon > /dev/null 2>&1
modprobe -k vmnet > /dev/null 2>&1
echo -n "Starting $DESC:"
if [ -n "$VMNET0" ] && [ -c /dev/vmnet0 ]; then
echo -n " vmnet0"
start-stop-daemon --start --quiet --pidfile /var/run/vmnet-bridge.pid \
--exec /usr/bin/vmnet-bridge -- \
-d /var/run/vmnet-bridge.pid /dev/vmnet0 $VMNET0
fi
if [ -n "$VMNET1" ] && [ -c /dev/vmnet1 ]; then
echo -n " vmnet1"
start-stop-daemon --start --quiet --pidfile /var/run/vmnet-netifup.pid \
--exec /usr/bin/vmnet-netifup -- \
-d /var/run/vmnet-netifup.pid /dev/vmnet1 vmnet1
for net in $VMNET1; do
if [ -z "$alias" ]; then
ifconfig vmnet1 ${net%/*} netmask ${net#*/} up
alias=0
else
ifconfig vmnet1:$alias ${net%/*} netmask ${net#*/} up
alias=$(($alias+1))
fi
done
fi
echo "."
;;
stop)
echo -n "Stopping $DESC:"
echo -n " vmnet0"
start-stop-daemon --stop --oknodo --quiet --pidfile /var/run/vmnet-bridge.pid \
--exec /usr/bin/vmnet-bridge
echo -n " vmnet1"
start-stop-daemon --stop --oknodo --quiet --pidfile /var/run/vmnet-netifup.pid \
--exec /usr/bin/vmnet-netifup
for m in vmmon vmnet vmppuser; do
rmmod $m 2>/dev/null || true
done
echo "."
;;
restart|force-reload)
$0 stop
sleep 1
$0 start
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
Package: vmware-workstation-4-modules-source
Architecture: i386
Recommends: c-compiler, make, yada (>= %{YADA_VERSION})
Description: VMware Workstation 4 - kernel modules source
This package provides kernel modules in source form for compilation.
Install: sh
yada install -into /usr/src build-tree/vmware-workstation-4.tar.gz
Package: vmware-workstation-4-modules-common
Architecture: i386
Recommends: vmware-workstation-4-modules
Conflicts: vmware-workstation-3-modules-common
Description: VMware Workstation 4 - common files used by kernel modules
This package provides common files used by kernel modules.
Install: sh
yada install -conf -subdir devfs/devices.d -as vmware debian/conf/vmware.devfs
yada install -conf -subdir modutils -as vmware debian/conf/vmware.modutils
Postinst: sh
if [ "$1" = "configure" ]; then
test -x /usr/sbin/update-devfsd && /usr/sbin/update-devfsd -f
if [ ! -c /dev/.devfsd ]; then
cat << END | while read name type major minor owner group mode; do
%`sed -e 's/^$/./' -e 's/^/ /' debian/conf/vmware.devfs`
END
name=${name#*misc/}
if [ ! -$type /dev/$name ]; then
rm -f /dev/$name
mknod /dev/$name $type $major $minor
chown $owner:$group /dev/$name
chmod $mode /dev/$name
fi
done
fi
test -x /sbin/update-modules && /sbin/update-modules
fi
Postrm: sh
if [ "$1" = "purge" ]; then
test -x /usr/sbin/update-devfsd && /usr/sbin/update-devfsd -f
if [ ! -c /dev/.devfsd ]; then
for f in \
/dev/parport0 /dev/parport16 /dev/parport32 /dev/parport48 \
/dev/vmmon /dev/vmnet[0-9]; do
rm -f $f
done
fi
test -x /sbin/update-modules && /sbin/update-modules
fi
|