~ubuntu-branches/ubuntu/vivid/virtualbox/vivid

« back to all changes in this revision

Viewing changes to src/VBox/Additions/solaris/Installer/makepackage.sh

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2011-12-29 12:29:25 UTC
  • mfrom: (3.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20111229122925-8ota2o33fuk0bkf8
Tags: 4.1.8-dfsg-1
* New upstream release.
* Move all transitional packages to section oldlibs and priority extra.
* Refresh 16-no-update.patch.
* Drop 36-kernel-3.2.patch, applied upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
    mv -f "tmp-$1" "$1"
59
59
}
60
60
 
 
61
dirlist_fixup()
 
62
{
 
63
  "$VBOX_AWK" 'NF == 6 && $1 == "d" && '"$2"' { '"$3"' } { print }' "$1" > "tmp-$1"
 
64
  mv -f "tmp-$1" "$1"
 
65
}
61
66
 
62
67
# Create relative hardlinks
63
68
cd "$VBOX_INSTALLED_DIR"
80
85
find . ! -type d | $VBOX_GGREP -v -E 'prototype|makepackage.sh|vboxguest.pkginfo|postinstall.sh|preremove.sh|vboxguest.space|vboxguest.depend|vboxguest.copyright' | pkgproto >> prototype
81
86
 
82
87
# Include opt/VirtualBoxAdditions and subdirectories as we want uninstall to clean up directory structure as well
83
 
find . -type d | $VBOX_GGREP -E 'opt/VirtualBoxAdditions' | pkgproto >> prototype
 
88
find . -type d | $VBOX_GGREP -E 'opt/VirtualBoxAdditions|var/svc/manifest/application/virtualbox' | pkgproto >> prototype
84
89
 
85
90
# Include /etc/fs/vboxfs (as we need to create the subdirectory)
86
91
find . -type d | $VBOX_GGREP -E 'etc/fs/vboxfs' | pkgproto >> prototype
93
98
filelist_fixup prototype '$3 == "opt/VirtualBoxAdditions/VBoxService"'                                       '$4 = "4755"'
94
99
filelist_fixup prototype '$3 == "opt/VirtualBoxAdditions/amd64/VBoxService"'                                 '$4 = "4755"'
95
100
 
 
101
# Manifest class action scripts
 
102
filelist_fixup prototype '$3 == "var/svc/manifest/application/virtualbox/vboxservice.xml"'                   '$2 = "manifest";$6 = "sys"'
 
103
 
96
104
# vboxguest
97
105
filelist_fixup prototype '$3 == "usr/kernel/drv/vboxguest"'                                                  '$6="sys"'
98
106
filelist_fixup prototype '$3 == "usr/kernel/drv/amd64/vboxguest"'                                            '$6="sys"'
99
107
 
 
108
# Use 'root' as group so as to match attributes with the previous installation and prevent a conflict. Otherwise pkgadd bails out thinking
 
109
# we're violating directory attributes of another (non existing) package
 
110
dirlist_fixup prototype  '$3 == "var/svc/manifest/application/virtualbox"'                                   '$6 = "root"'
 
111
 
100
112
echo " --- start of prototype  ---"
101
113
cat prototype
102
114
echo " --- end of prototype --- "