/[smecontribs]/rpms/smeserver-virtualbox/contribs10/smeserver-virtualbox.spec
ViewVC logotype

Annotation of /rpms/smeserver-virtualbox/contribs10/smeserver-virtualbox.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Tue Oct 18 09:20:00 2022 UTC (2 years ago) by trevorb
Branch: MAIN
CVS Tags: smeserver-virtualbox-5_2-1_el7_sme
Changes since 1.1: +39 -27 lines
Initial load sme10

1 jpp 1.1 %define name smeserver-virtualbox
2 trevorb 1.2 %define version 5.2
3     %define release 1
4     %define rpmver 5.2
5     Summary: smserver rpm to install VirtualBox
6 jpp 1.1 Name: %{name}
7     Version: %{version}
8     Release: %{release}%{?dist}
9     Source: %{name}-%{version}.tar.gz
10     License: GNU GPL version 2
11     URL: http://mirror.de-labrusse.fr
12     Group: SMEserver/addon
13     BuildRoot: %{_tmppath}/%{name}-buildroot
14     Prefix: %{_prefix}
15     BuildArchitectures: noarch
16     BuildRequires: e-smith-devtools
17     Requires: e-smith-release >= 10.0
18 trevorb 1.2 Requires: VirtualBox-5.2
19     Requires: kernel-devel
20     Requires: gcc
21 jpp 1.1 AutoReqProv: no
22    
23     %description
24 trevorb 1.2 smserver rpm to install VirtualBox-5.2
25 jpp 1.1
26     %changelog
27 trevorb 1.2 * Tue Oct 11 2022 Trevor Batley <trevor@batley.id.au> 5.2-0
28     - first import to sme10
29     - requires VirtualBox-5.2
30     - create vbox user and run vboxweb-service as vbox user
31     - create vbousers group and add admin,vbox as members
32     - add vbox & vboxusers as full sme accounts so tha they are in ldap (for ldap authentication)
33     - use systemd for vboxdrv
34     - move fix_vboxdrv_kerenel_module.sh script into /usr/lib/virtualbox and include as pre step in vboxdrv service start
35    
36     * Fri Aug 07 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 5.0.0-3
37 jpp 1.1 - vboxweb-service start now at S99
38    
39     * Thu Aug 06 2015 stephane de labrusse <stephdl@de-labrusse.fr> 5.0.0-2
40     - require virtualbox-5.0
41    
42     * Wed Mar 19 2014 stephane de labrusse <stephdl@de-labrusse.fr> 4.3.1-1
43     - added a script to verify if the vboxdrv module is compiled for the kernel used by the system
44    
45     * Mon Dec 30 2013 JP Pialasse <tests@pialasse.com> 4.3.0-5
46     - changing naming of contrib for import into buildsys
47    
48     * Tue Nov 05 2013 stephane de labrusse <stephdl@de-labrusse.fr> 4.3.0-4
49     - change name to match the virtualbox version
50    
51     * Sat Oct 19 2013 stephane de labrusse <stephdl@de-labrusse.fr> 4.3.0-3
52     - Initial release
53    
54     %prep
55 trevorb 1.2
56 jpp 1.1 %setup
57 trevorb 1.2
58 jpp 1.1 %build
59 trevorb 1.2 perl createlinks
60 jpp 1.1
61     %install
62     rm -rf $RPM_BUILD_ROOT
63     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
64     rm -f %{name}-%{version}-filelist
65     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
66     echo "%doc COPYING" >> %{name}-%{version}-filelist
67    
68     %clean
69     cd ..
70     rm -rf %{name}-%{version}
71    
72     %pre
73 trevorb 1.2 /usr/lib/virtualbox/vboxdrv.sh stop >/dev/null 2>&1
74     if /sbin/e-smith/db accounts get vbox >/dev/null
75     then
76     echo "the vbox user already exists - we'll use this"
77     else
78     /sbin/e-smith/db accounts set vbox user PasswordSet yes
79     /sbin/e-smith/signal-event user-create vbox
80     usermod -s /bin/bash vbox
81     /sbin/e-smith/db accounts set vboxusers group Description "VBox users" Members "admin,vbox"
82     /sbin/e-smith/signal-event group-create vboxusers
83     mkdir /home/e-smith/files/users/vbox/.virtualbox
84     cat /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c 32 > /home/e-smith/files/users/vbox/.virtualbox/vbox.passwd
85     cat /home/e-smith/files/users/vbox/.virtualbox/vbox.passwd | passwd --stdin vbox
86     fi
87 jpp 1.1
88     %preun
89 trevorb 1.2 /sbin-e-smith/systemctl stop vboxweb-service
90     /sbin/e-smith/systemctl stop vboxdrv
91 jpp 1.1
92     %post
93 trevorb 1.2 /usr/lib/virtualbox/vboxdrv.sh start >/dev/null 2>&1
94 jpp 1.1 /usr/bin/vboxmanage setproperty websrvauthlibrary null
95    
96     %postun
97     #uninstall
98     %files -f %{name}-%{version}-filelist
99     %defattr(-,root,root)
100 trevorb 1.2 %attr(755,root,root) /usr/lib/virtualbox/fix_vboxdrv_kernel_module.sh
101 jpp 1.1

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed