VirtualBox

source: vbox/trunk/src/VBox/Additions/solaris/Installer/makepackage.sh@ 7402

最後變更 在這個檔案從7402是 7402,由 vboxsync 提交於 17 年 前

Export attribs for Additions/solaris.

  • 屬性 svn:eol-style 設為 LF
  • 屬性 svn:keywords 設為 Id
檔案大小: 1.7 KB
 
1#!/bin/sh
2#
3# innotek VirtualBox Solaris Guest Additions package creation script.
4# Usage:
5# makespackage.sh $(PATH_TARGET)/install packagename
6
7if [ -z "$2" ]; then
8 echo "Usage: $0 installdir packagename"
9 exit 1
10fi
11
12cd "$1"
13echo 'i pkginfo=./vboxguest.pkginfo' > prototype
14echo 'i postinstall=./postinstall.sh' >> prototype
15echo 'i preremove=./preremove.sh' >> prototype
16find . -print | /usr/sfw/bin/ggrep -v -E 'prototype|makepackage.sh|vboxguest.pkginfo|postinstall.sh|preremove.sh' | pkgproto >> prototype
17
18/usr/bin/awk 'NF == 6 { $5 = "root"; $6 = "bin" } { print }' prototype > prototype2
19/usr/bin/awk 'NF == 6 { $3 = "opt/VirtualBoxAdditions/"$3"="$3 } { print }' prototype2 > prototype
20
21# install the kernel module to the right place (for now only 32-bit guests)
22/usr/bin/awk 'NF == 6 && $3 == "opt/VirtualBoxAdditions/vboxguest=vboxguest" { $3 = "platform/i86pc/kernel/drv/vboxguest=vboxguest" } { print }' prototype > prototype2
23/usr/bin/awk 'NF == 6 && $3 == "opt/VirtualBoxAdditions/vboxguest.conf=vboxguest.conf" { $3 = "platform/i86pc/kernel/drv/vboxguest.conf=vboxguest.conf" } { print }' prototype2 > prototype
24
25# install the vboxclient daemon
26/usr/bin/awk 'NF == 6 && $3 == "opt/VirtualBoxAdditions/1099.vboxclient=1099.vboxclient" { $3 = "usr/dt/config/Xsession.d/1099.vboxclient=1099.vboxclient" } { print }' prototype > prototype2
27
28#install the timesync daemon
29/usr/bin/awk 'NF == 6 && $3 == "opt/VirtualBoxAdditions/vboxservice.xml=vboxservice.xml" { $3 = "/var/svc/manifest/system/virtualbox/vboxservice.xml=vboxservice.xml" } { print }' prototype2 > prototype
30
31rm prototype2
32pkgmk -o -r .
33pkgtrans -s -o /var/spool/pkg `pwd`/$2 INNOvboxguest
34rm -rf /var/spool/pkg/INNOvboxguest
35
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette