mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 05:57:15 +08:00
update virtualbox 5.1.2
This commit is contained in:
parent
abc4767727
commit
9a5f7145e3
39
dev86/PKGBUILD
Normal file
39
dev86/PKGBUILD
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
# Arch contributor: https://projects.archlinux.org/svntogit/community.git/plain/trunk/PKGBUILD?h=packages/dev86
|
||||||
|
|
||||||
|
pkgname=dev86
|
||||||
|
pkgver=0.16.21
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Simple C compiler to generate 8086 code"
|
||||||
|
arch=('i686' 'x86_64')
|
||||||
|
url="http://v3.sk/~lkundrak/dev86/"
|
||||||
|
license=(GPL)
|
||||||
|
if [ "${CARCH}" == "x86_64" ]; then
|
||||||
|
depends=('lib32-glibc')
|
||||||
|
makedepends=('bin86' 'gcc-multilib')
|
||||||
|
else
|
||||||
|
makedepends=('bin86')
|
||||||
|
fi
|
||||||
|
options=('!libtool' '!strip' '!makeflags' 'staticlibs')
|
||||||
|
source=(http://v3.sk/~lkundrak/dev86/Dev86src-$pkgver.tar.gz
|
||||||
|
mandir.patch)
|
||||||
|
md5sums=('6b96fe9d2d1c546842a4d1c7ef387e4c'
|
||||||
|
'509df653dec8956faf1a40a8c544d9ce')
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd $srcdir/$pkgname-$pkgver
|
||||||
|
patch -p1 <$srcdir/mandir.patch
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd $srcdir/$pkgname-$pkgver
|
||||||
|
make PREFIX=/usr DIST="$pkgdir"
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd $srcdir/$pkgname-$pkgver
|
||||||
|
mkdir -p $pkgdir/usr/share/man/man1
|
||||||
|
make install-all DIST="$pkgdir"
|
||||||
|
# remove all the stuff supplied by bin86
|
||||||
|
rm $pkgdir/usr/bin/{as,ld,nm,objdump,size}86
|
||||||
|
rm $pkgdir/usr/share/man/man1/{as,ld}86.1
|
||||||
|
}
|
34
dev86/mandir.patch
Normal file
34
dev86/mandir.patch
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
diff -wbBur dev86-0.16.19.org/dis88/Makefile dev86-0.16.19/dis88/Makefile
|
||||||
|
--- dev86-0.16.19.org/dis88/Makefile 1998-07-31 17:01:40.000000000 +0400
|
||||||
|
+++ dev86-0.16.19/dis88/Makefile 2012-10-24 14:46:02.684587469 +0400
|
||||||
|
@@ -38,7 +38,7 @@
|
||||||
|
|
||||||
|
install: dis88
|
||||||
|
install -m 755 -s dis88 $(DIST)$(PREFIX)/bin/dis86
|
||||||
|
- install -m 644 dis88.1 $(DIST)$(PREFIX)/man/man1/dis86.1
|
||||||
|
+ install -m 644 dis88.1 $(DIST)$(PREFIX)/share/man/man1/dis86.1
|
||||||
|
|
||||||
|
$(OBJ): dis.h a.out.h
|
||||||
|
|
||||||
|
diff -wbBur dev86-0.16.19.org/Makefile dev86-0.16.19/Makefile
|
||||||
|
--- dev86-0.16.19.org/Makefile 2012-08-14 00:10:08.000000000 +0400
|
||||||
|
+++ dev86-0.16.19/Makefile 2012-10-24 14:45:50.917920191 +0400
|
||||||
|
@@ -17,7 +17,7 @@
|
||||||
|
LIBDIR= $(PREFIX)/lib/bcc
|
||||||
|
INCLDIR= $(PREFIX)/lib/bcc
|
||||||
|
ASLDDIR= $(BINDIR)
|
||||||
|
-MANDIR= $(PREFIX)/man
|
||||||
|
+MANDIR= $(PREFIX)/share/man
|
||||||
|
CFLAGS= -O
|
||||||
|
IFDEFNAME= ifdef
|
||||||
|
|
||||||
|
diff -wbBur dev86-0.16.19.org/man/Makefile dev86-0.16.19/man/Makefile
|
||||||
|
--- dev86-0.16.19.org/man/Makefile 1998-07-31 17:03:30.000000000 +0400
|
||||||
|
+++ dev86-0.16.19/man/Makefile 2012-10-24 14:45:55.494587123 +0400
|
||||||
|
@@ -1,5 +1,5 @@
|
||||||
|
|
||||||
|
-MANDIR=/usr/man
|
||||||
|
+MANDIR=/usr/share/man
|
||||||
|
MAN1PG=as86.1 bcc.1 elks.1 elksemu.1 ld86.1
|
||||||
|
MAN1DIR=$(MANDIR)/man1
|
||||||
|
|
163
gsoap/LICENSE
Normal file
163
gsoap/LICENSE
Normal file
@ -0,0 +1,163 @@
|
|||||||
|
gSOAP Public License
|
||||||
|
Version 1.3a
|
||||||
|
The gSOAP public license is derived from the Mozilla Public License (MPL1.1). The sections that were deleted from the original MPL1.1 text are 1.0.1, 2.1.(c),(d), 2.2.(c),(d), 8.2.(b), 10, and 11. Section 3.8 was added. The modified sections are 2.1.(b), 2.2.(b), 3.2 (simplified), 3.5 (deleted the last sentence), and 3.6 (simplified).
|
||||||
|
1 DEFINITIONS.
|
||||||
|
|
||||||
|
1.0.1.
|
||||||
|
1.1. "Contributor"
|
||||||
|
means each entity that creates or contributes to the creation of Modifications.
|
||||||
|
1.2. "Contributor Version"
|
||||||
|
means the combination of the Original Code, prior Modifications used by a Contributor, and the Modifications made by that particular Contributor.
|
||||||
|
1.3. "Covered Code"
|
||||||
|
means the Original Code, or Modifications or the combination of the Original Code, and Modifications, in each case including portions thereof.
|
||||||
|
1.4. "Electronic Distribution Mechanism"
|
||||||
|
means a mechanism generally accepted in the software development community for the electronic transfer of data.
|
||||||
|
1.5. "Executable"
|
||||||
|
means Covered Code in any form other than Source Code.
|
||||||
|
1.6. "Initial Developer"
|
||||||
|
means the individual or entity identified as the Initial Developer in the Source Code notice required by Exhibit A.
|
||||||
|
1.7. "Larger Work"
|
||||||
|
means a work which combines Covered Code or portions thereof with code not governed by the terms of this License.
|
||||||
|
1.8. "License"
|
||||||
|
means this document.
|
||||||
|
1.8.1. "Licensable"
|
||||||
|
means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently acquired, any and all of the rights conveyed herein.
|
||||||
|
1.9. "Modifications"
|
||||||
|
means any addition to or deletion from the substance or structure of either the Original Code or any previous Modifications. When Covered Code is released as a series of files, a Modification is:
|
||||||
|
|
||||||
|
A.
|
||||||
|
Any addition to or deletion from the contents of a file containing Original Code or previous Modifications.
|
||||||
|
B.
|
||||||
|
Any new file that contains any part of the Original Code, or previous Modifications.
|
||||||
|
|
||||||
|
1.10. "Original Code"
|
||||||
|
means Source Code of computer software code which is described in the Source Code notice required by Exhibit A as Original Code, and which, at the time of its release under this License is not already Covered Code governed by this License.
|
||||||
|
1.10.1. "Patent Claims"
|
||||||
|
means any patent claim(s), now owned or hereafter acquired, including without limitation, method, process, and apparatus claims, in any patent Licensable by grantor.
|
||||||
|
1.11. "Source Code"
|
||||||
|
means the preferred form of the Covered Code for making modifications to it, including all modules it contains, plus any associated interface definition files, scripts used to control compilation and installation of an Executable, or source code differential comparisons against either the Original Code or another well known, available Covered Code of the Contributor's choice. The Source Code can be in a compressed or archival form, provided the appropriate decompression or de-archiving software is widely available for no charge.
|
||||||
|
1.12. "You" (or "Your")
|
||||||
|
means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License or a future version of this License issued under Section 6.1. For legal entities, "You" includes any entity which controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity.
|
||||||
|
|
||||||
|
2 SOURCE CODE LICENSE.
|
||||||
|
|
||||||
|
2.1. The Initial Developer Grant.
|
||||||
|
|
||||||
|
The Initial Developer hereby grants You a world-wide, royalty-free, non-exclusive license, subject to third party intellectual property claims:
|
||||||
|
|
||||||
|
(a)
|
||||||
|
under intellectual property rights (other than patent or trademark) Licensable by Initial Developer to use, reproduce, modify, display, perform, sublicense and distribute the Original Code (or portions thereof) with or without Modifications, and/or as part of a Larger Work; and
|
||||||
|
(b)
|
||||||
|
under patents now or hereafter owned or controlled by Initial Developer, to make, have made, use and sell ("offer to sell and import") the Original Code, Modifications, or portions thereof, but solely to the extent that any such patent is reasonably necessary to enable You to utilize, alone or in combination with other software, the Original Code, Modifications, or any combination or portions thereof.
|
||||||
|
(c)
|
||||||
|
(d)
|
||||||
|
|
||||||
|
|
||||||
|
2.2. Contributor Grant.
|
||||||
|
|
||||||
|
Subject to third party intellectual property claims, each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license
|
||||||
|
|
||||||
|
(a)
|
||||||
|
under intellectual property rights (other than patent or trademark) Licensable by Contributor, to use, reproduce, modify, display, perform, sublicense and distribute the Modifications created by such Contributor (or portions thereof) either on an unmodified basis, with other Modifications, as Covered Code and/or as part of a Larger Work; and
|
||||||
|
(b)
|
||||||
|
under patents now or hereafter owned or controlled by Contributor, to make, have made, use and sell ("offer to sell and import") the Contributor Version (or portions thereof), but solely to the extent that any such patent is reasonably necessary to enable You to utilize, alone or in combination with other software, the Contributor Version (or portions thereof).
|
||||||
|
(c)
|
||||||
|
(d)
|
||||||
|
|
||||||
|
3 DISTRIBUTION OBLIGATIONS.
|
||||||
|
|
||||||
|
3.1. Application of License.
|
||||||
|
|
||||||
|
The Modifications which You create or to which You contribute are governed by the terms of this License, including without limitation Section 2.2. The Source Code version of Covered Code may be distributed only under the terms of this License or a future version of this License released under Section 6.1, and You must include a copy of this License with every copy of the Source Code You distribute. You may not offer or impose any terms on any Source Code version that alters or restricts the applicable version of this License or the recipients' rights hereunder. However, You may include an additional document offering the additional rights described in Section 3.5.
|
||||||
|
|
||||||
|
3.2. Availability of Source Code.
|
||||||
|
|
||||||
|
Any Modification created by You will be provided to the Initial Developer in Source Code form and are subject to the terms of the License.
|
||||||
|
|
||||||
|
3.3. Description of Modifications.
|
||||||
|
|
||||||
|
You must cause all Covered Code to which You contribute to contain a file documenting the changes You made to create that Covered Code and the date of any change. You must include a prominent statement that the Modification is derived, directly or indirectly, from Original Code provided by the Initial Developer and including the name of the Initial Developer in (a) the Source Code, and (b) in any notice in an Executable version or related documentation in which You describe the origin or ownership of the Covered Code.
|
||||||
|
|
||||||
|
3.4. Intellectual Property Matters.
|
||||||
|
|
||||||
|
(a) Third Party Claims.
|
||||||
|
If Contributor has knowledge that a license under a third party's intellectual property rights is required to exercise the rights granted by such Contributor under Sections 2.1 or 2.2, Contributor must include a text file with the Source Code distribution titled "LEGAL" which describes the claim and the party making the claim in sufficient detail that a recipient will know whom to contact. If Contributor obtains such knowledge after the Modification is made available as described in Section 3.2, Contributor shall promptly modify the LEGAL file in all copies Contributor makes available thereafter and shall take other steps (such as notifying appropriate mailing lists or newsgroups) reasonably calculated to inform those who received the Covered Code that new knowledge has been obtained.
|
||||||
|
(b) Contributor APIs.
|
||||||
|
If Contributor's Modifications include an application programming interface and Contributor has knowledge of patent licenses which are reasonably necessary to implement that API, Contributor must also include this information in the LEGAL file.
|
||||||
|
(c) Representations.
|
||||||
|
Contributor represents that, except as disclosed pursuant to Section 3.4(a) above, Contributor believes that Contributor's Modifications are Contributor's original creation(s) and/or Contributor has sufficient rights to grant the rights conveyed by this License.
|
||||||
|
|
||||||
|
|
||||||
|
3.5. Required Notices.
|
||||||
|
|
||||||
|
You must duplicate the notice in Exhibit A in each file of the Source Code. If it is not possible to put such notice in a particular Source Code file due to its structure, then You must include such notice in a location (such as a relevant directory) where a user would be likely to look for such a notice. If You created one or more Modification(s) You may add your name as a Contributor to the notice described in Exhibit A. You must also duplicate this License in any documentation for the Source Code where You describe recipients' rights or ownership rights relating to Covered Code. You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Code. However, You may do so only on Your own behalf, and not on behalf of the Initial Developer or any Contributor.
|
||||||
|
|
||||||
|
3.6. Distribution of Executable Versions.
|
||||||
|
|
||||||
|
You may distribute Covered Code in Executable form only if the requirements of Section 3.1-3.5 have been met for that Covered Code. You may distribute the Executable version of Covered Code or ownership rights under a license of Your choice, which may contain terms different from this License, provided that You are in compliance with the terms of this License and that the license for the Executable version does not attempt to limit or alter the recipient's rights in the Source Code version from the rights set forth in this License. If You distribute the Executable version under a different license You must make it absolutely clear that any terms which differ from this License are offered by You alone, not by the Initial Developer or any Contributor. If you distribute executable versions containing Covered Code as part of a product, you must reproduce the notice in Exhibit B in the documentation and/or other materials provided with the product.
|
||||||
|
|
||||||
|
3.7. Larger Works.
|
||||||
|
|
||||||
|
You may create a Larger Work by combining Covered Code with other code not governed by the terms of this License and distribute the Larger Work as a single product. In such a case, You must make sure the requirements of this License are fulfilled for the Covered Code.
|
||||||
|
|
||||||
|
3.8. Restrictions.
|
||||||
|
|
||||||
|
You may not remove any product identification, copyright, proprietary notices or labels from gSOAP.
|
||||||
|
|
||||||
|
4 INABILITY TO COMPLY DUE TO STATUTE OR REGULATION.
|
||||||
|
If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Code due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be included in the LEGAL file described in Section 3.4 and must be included with all distributions of the Source Code. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it.
|
||||||
|
5 APPLICATION OF THIS LICENSE.
|
||||||
|
This License applies to code to which the Initial Developer has attached the notice in Exhibit A and to related Covered Code.
|
||||||
|
6 VERSIONS OF THE LICENSE.
|
||||||
|
|
||||||
|
6.1. New Versions.
|
||||||
|
|
||||||
|
Grantor may publish revised and/or new versions of the License from time to time. Each version will be given a distinguishing version number.
|
||||||
|
|
||||||
|
6.2. Effect of New Versions.
|
||||||
|
|
||||||
|
Once Covered Code has been published under a particular version of the License, You may always continue to use it under the terms of that version. You may also choose to use such Covered Code under the terms of any subsequent version of the License.
|
||||||
|
|
||||||
|
6.3. Derivative Works.
|
||||||
|
|
||||||
|
If You create or use a modified version of this License (which you may only do in order to apply it to code which is not already Covered Code governed by this License), You must (a) rename Your license so that the phrase "gSOAP" or any confusingly similar phrase do not appear in your license (except to note that your license differs from this License) and (b) otherwise make it clear that Your version of the license contains terms which differ from the gSOAP Public License. (Filling in the name of the Initial Developer, Original Code or Contributor in the notice described in Exhibit A shall not of themselves be deemed to be modifications of this License.)
|
||||||
|
|
||||||
|
7 DISCLAIMER OF WARRANTY.
|
||||||
|
COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY, OF FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY RIGHTS, AND ANY WARRANTY THAT MAY ARISE BY REASON OF TRADE USAGE, CUSTOM, OR COURSE OF DEALING. WITHOUT LIMITING THE FOREGOING, YOU ACKNOWLEDGE THAT THE SOFTWARE IS PROVIDED "AS IS" AND THAT THE AUTHORS DO NOT WARRANT THE SOFTWARE WILL RUN UNINTERRUPTED OR ERROR FREE. LIMITED LIABILITY THE ENTIRE RISK AS TO RESULTS AND PERFORMANCE OF THE SOFTWARE IS ASSUMED BY YOU. UNDER NO CIRCUMSTANCES WILL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES OF ANY KIND OR NATURE WHATSOEVER, WHETHER BASED ON CONTRACT, WARRANTY, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, ARISING OUT OF OR IN ANY WAY RELATED TO THE SOFTWARE, EVEN IF THE AUTHORS HAVE BEEN ADVISED ON THE POSSIBILITY OF SUCH DAMAGE OR IF SUCH DAMAGE COULD HAVE BEEN REASONABLY FORESEEN, AND NOTWITHSTANDING ANY FAILURE OF ESSENTIAL PURPOSE OF ANY EXCLUSIVE REMEDY PROVIDED. SUCH LIMITATION ON DAMAGES INCLUDES, BUT IS NOT LIMITED TO, DAMAGES FOR LOSS OF GOODWILL, LOST PROFITS, LOSS OF DATA OR SOFTWARE, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION OR IMPAIRMENT OF OTHER GOODS. IN NO EVENT WILL THE AUTHORS BE LIABLE FOR THE COSTS OF PROCUREMENT OF SUBSTITUTE SOFTWARE OR SERVICES. YOU ACKNOWLEDGE THAT THIS SOFTWARE IS NOT DESIGNED FOR USE IN ON-LINE EQUIPMENT IN HAZARDOUS ENVIRONMENTS SUCH AS OPERATION OF NUCLEAR FACILITIES, AIRCRAFT NAVIGATION OR CONTROL, OR LIFE-CRITICAL APPLICATIONS. THE AUTHORS EXPRESSLY DISCLAIM ANY LIABILITY RESULTING FROM USE OF THE SOFTWARE IN ANY SUCH ON-LINE EQUIPMENT IN HAZARDOUS ENVIRONMENTS AND ACCEPTS NO LIABILITY IN RESPECT OF ANY ACTIONS OR CLAIMS BASED ON THE USE OF THE SOFTWARE IN ANY SUCH ON-LINE EQUIPMENT IN HAZARDOUS ENVIRONMENTS BY YOU. FOR PURPOSES OF THIS PARAGRAPH, THE TERM "LIFE-CRITICAL APPLICATION" MEANS AN APPLICATION IN WHICH THE FUNCTIONING OR MALFUNCTIONING OF THE SOFTWARE MAY RESULT DIRECTLY OR INDIRECTLY IN PHYSICAL INJURY OR LOSS OF HUMAN LIFE. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
|
||||||
|
8 TERMINATION.
|
||||||
|
|
||||||
|
8.1.
|
||||||
|
This License and the rights granted hereunder will terminate automatically if You fail to comply with terms herein and fail to cure such breach within 30 days of becoming aware of the breach. All sublicenses to the Covered Code which are properly granted shall survive any termination of this License. Provisions which, by their nature, must remain in effect beyond the termination of this License shall survive.
|
||||||
|
8.2.
|
||||||
|
8.3.
|
||||||
|
If You assert a patent infringement claim against Participant alleging that such Participant's Contributor Version directly or indirectly infringes any patent where such claim is resolved (such as by license or settlement) prior to the initiation of patent infringement litigation, then the reasonable value of the licenses granted by such Participant under Sections 2.1 or 2.2 shall be taken into account in determining the amount or value of any payment or license.
|
||||||
|
8.4.
|
||||||
|
In the event of termination under Sections 8.1 or 8.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or any distributor hereunder prior to termination shall survive termination.
|
||||||
|
|
||||||
|
9 LIMITATION OF LIABILITY.
|
||||||
|
UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
|
||||||
|
10 U.S. GOVERNMENT END USERS.
|
||||||
|
11 MISCELLANEOUS.
|
||||||
|
12 RESPONSIBILITY FOR CLAIMS.
|
||||||
|
As between Initial Developer and the Contributors, each party is responsible for claims and damages arising, directly or indirectly, out of its utilization of rights under this License and You agree to work with Initial Developer and Contributors to distribute such responsibility on an equitable basis. Nothing herein is intended or shall be deemed to constitute any admission of liability.
|
||||||
|
EXHIBIT A.
|
||||||
|
"The contents of this file are subject to the gSOAP Public License Version 1.3 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://genivia.com/Products/gsoap/license.pdf
|
||||||
|
|
||||||
|
More information on licensing options, support contracts, and consulting can be found at
|
||||||
|
|
||||||
|
http://genivia.com/Products/gsoap/contract.html
|
||||||
|
|
||||||
|
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
|
||||||
|
The Original Code of the gSOAP Software is: stdsoap.h, stdsoap2.h, stdsoap.c, stdsoap2.c, stdsoap.cpp, stdsoap2.cpp, soapcpp2.h, soapcpp2.c, soapcpp2_lex.l, soapcpp2_yacc.y, error2.h, error2.c, symbol2.c, init2.c, soapdoc2.html, and soapdoc2.pdf, httpget.h, httpget.c, stl.h, stldeque.h, stllist.h, stlvector.h, stlset.h.
|
||||||
|
The Initial Developer of the Original Code is Robert A. van Engelen. Portions created by Robert A. van Engelen are Copyright (C) 2001-2004 Robert A. van Engelen, Genivia inc. All Rights Reserved.
|
||||||
|
Contributor(s):
|
||||||
|
|
||||||
|
"________________________."
|
||||||
|
|
||||||
|
[Note: The text of this Exhibit A may differ slightly form the text of the notices in the Source Code files of the Original code. You should use the text of this Exhibit A rather than the text found in the Original Code Source Code for Your Modifications.]
|
||||||
|
EXHIBIT B.
|
||||||
|
"Part of the software embedded in this product is gSOAP software.
|
||||||
|
Portions created by gSOAP are Copyright (C) 2001-2004 Robert A. van Engelen, Genivia inc. All Rights Reserved.
|
||||||
|
THE SOFTWARE IN THIS PRODUCT WAS IN PART PROVIDED BY GENIVIA INC AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
36
gsoap/PKGBUILD
Normal file
36
gsoap/PKGBUILD
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
# Arch contributor: https://projects.archlinux.org/svntogit/community.git/plain/trunk/PKGBUILD?h=packages/gsoap
|
||||||
|
|
||||||
|
pkgname=gsoap
|
||||||
|
pkgver=2.8.33
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Offers an XML language binding to ease the development of SOAP/XML Web services in C and C/C++"
|
||||||
|
url="http://www.cs.fsu.edu/~engelen/soap.html"
|
||||||
|
arch=('i686' 'x86_64')
|
||||||
|
license=('GPL' 'custom')
|
||||||
|
depends=('openssl' 'zlib' 'gcc-libs')
|
||||||
|
makedepends=('autoconf' 'automake')
|
||||||
|
options=('staticlibs')
|
||||||
|
source=(http://prdownloads.sourceforge.net/gsoap2/${pkgname}_${pkgver}.zip
|
||||||
|
LICENSE)
|
||||||
|
md5sums=('43dade7839252500f7671f8fe6a3739c'
|
||||||
|
'27aaa3f5166db94d44044c11a7b2c37b')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd $srcdir/gsoap-2.8
|
||||||
|
# needed for programs which use gsoap and have -fPIC enabled
|
||||||
|
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=353724
|
||||||
|
export CFLAGS+=" -fPIC"
|
||||||
|
export CXXFLAGS+=" -fPIC"
|
||||||
|
./configure --prefix=/usr --enable-openssl
|
||||||
|
make -j1
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd $srcdir/gsoap-2.8
|
||||||
|
make DESTDIR=$pkgdir install
|
||||||
|
mkdir -p $pkgdir/usr/share/gsoap/import
|
||||||
|
mkdir -p $pkgdir/usr/share/gsoap/WS
|
||||||
|
cp -R gsoap/import $pkgdir/usr/share/gsoap/
|
||||||
|
cp -R gsoap/WS $pkgdir/usr/share/gsoap/
|
||||||
|
install -D ../LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
|
||||||
|
}
|
28
virtualbox/002-dri-driver-path.patch
Normal file
28
virtualbox/002-dri-driver-path.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
# 2013 © Sébastien Luttringer
|
||||||
|
--- a/src/VBox/Additions/common/crOpenGL/fakedri_drv.c 2013-09-04 21:03:47.040743507 +0200
|
||||||
|
+++ b/src/VBox/Additions/common/crOpenGL/fakedri_drv.c 2013-10-20 23:23:49.705371815 +0200
|
||||||
|
@@ -58,23 +58,8 @@
|
||||||
|
//#define DEBUG_DRI_CALLS
|
||||||
|
|
||||||
|
//@todo this could be different...
|
||||||
|
-#ifdef RT_ARCH_AMD64
|
||||||
|
-# ifdef RT_OS_FREEBSD
|
||||||
|
-# define DRI_DEFAULT_DRIVER_DIR "/usr/local/lib/dri"
|
||||||
|
-# define DRI_XORG_DRV_DIR "/usr/local/lib/xorg/modules/drivers/"
|
||||||
|
-# else
|
||||||
|
-# define DRI_DEFAULT_DRIVER_DIR "/usr/lib64/dri:/usr/lib/dri:/usr/lib/x86_64-linux-gnu/dri:/usr/lib/xorg/modules/dri"
|
||||||
|
+# define DRI_DEFAULT_DRIVER_DIR "/usr/lib/xorg/modules/dri"
|
||||||
|
# define DRI_XORG_DRV_DIR "/usr/lib/xorg/modules/drivers/"
|
||||||
|
-# endif
|
||||||
|
-#else
|
||||||
|
-# ifdef RT_OS_FREEBSD
|
||||||
|
-# define DRI_DEFAULT_DRIVER_DIR "/usr/local/lib/dri"
|
||||||
|
-# define DRI_XORG_DRV_DIR "/usr/local/lib/xorg/modules/drivers/"
|
||||||
|
-# else
|
||||||
|
-# define DRI_DEFAULT_DRIVER_DIR "/usr/lib/dri:/usr/lib/i386-linux-gnu/dri:/usr/lib/xorg/modules/dri"
|
||||||
|
-# define DRI_XORG_DRV_DIR "/usr/lib/xorg/modules/drivers/"
|
||||||
|
-# endif
|
||||||
|
-#endif
|
||||||
|
|
||||||
|
#ifdef DEBUG_DRI_CALLS
|
||||||
|
#define SWDRI_SHOWNAME(pext, func) \
|
43
virtualbox/003-ogl-include-path.patch
Normal file
43
virtualbox/003-ogl-include-path.patch
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
Index: virtualbox/src/VBox/Additions/common/crOpenGL/Makefile.kmk
|
||||||
|
===================================================================
|
||||||
|
--- virtualbox.orig/src/VBox/Additions/common/crOpenGL/Makefile.kmk 2015-04-02 15:44:24.955670965 +0200
|
||||||
|
+++ virtualbox/src/VBox/Additions/common/crOpenGL/Makefile.kmk 2015-04-02 15:44:24.955670965 +0200
|
||||||
|
@@ -67,18 +67,12 @@
|
||||||
|
VBoxOGL_INCS = .
|
||||||
|
if1of ($(KBUILD_TARGET), linux solaris freebsd)
|
||||||
|
VBoxOGL_INCS += \
|
||||||
|
- $(VBOX_PATH_X11_ROOT)/libXdamage-1.1 \
|
||||||
|
- $(VBOX_PATH_X11_ROOT)/libXcomposite-0.4.0 \
|
||||||
|
- $(VBOX_PATH_X11_ROOT)/libXext-1.3.1 \
|
||||||
|
- $(VBOX_PATH_X11_ROOT)/libXfixes-4.0.3 \
|
||||||
|
- $(VBOX_PATH_X11_ROOT)/damageproto-1.1.0 \
|
||||||
|
- $(VBOX_PATH_X11_ROOT)/compositeproto-0.4 \
|
||||||
|
- $(VBOX_PATH_X11_ROOT)/fixesproto-4.0 \
|
||||||
|
- $(VBOX_PATH_X11_ROOT)/libx11-1.1.5-other \
|
||||||
|
- $(VBOX_PATH_X11_ROOT)/xextproto-7.1.1 \
|
||||||
|
- $(VBOX_PATH_X11_ROOT)/xproto-7.0.18 \
|
||||||
|
+ /usr/include/x11 \
|
||||||
|
+ /usr/include/xorg \
|
||||||
|
+ /usr/include/pixman-1 \
|
||||||
|
$(VBOX_MESA_INCS) \
|
||||||
|
- $(PATH_ROOT)/src/VBox/Additions/x11/x11include/libdrm-2.4.13
|
||||||
|
+ /usr/include/drm \
|
||||||
|
+ /usr/include/libdrm
|
||||||
|
VBoxOGL_DEFS += VBOX_NO_NATIVEGL
|
||||||
|
endif
|
||||||
|
|
||||||
|
@@ -213,10 +207,10 @@
|
||||||
|
|
||||||
|
if1of ($(KBUILD_TARGET), linux solaris freebsd)
|
||||||
|
VBoxOGL_LIBS += \
|
||||||
|
- $(PATH_STAGE_LIB)/libXcomposite.so \
|
||||||
|
- $(PATH_STAGE_LIB)/libXdamage.so \
|
||||||
|
- $(PATH_STAGE_LIB)/libXfixes.so \
|
||||||
|
- $(PATH_STAGE_LIB)/libXext.so
|
||||||
|
+ Xcomposite \
|
||||||
|
+ Xdamage \
|
||||||
|
+ Xfixes \
|
||||||
|
+ Xext
|
||||||
|
ifdef VBoxOGL_FAKEDRI
|
||||||
|
ifeq ($(KBUILD_TARGET), freebsd)
|
||||||
|
VBoxOGL_LIBS += \
|
11
virtualbox/005-gsoap-build.patch
Normal file
11
virtualbox/005-gsoap-build.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- a/src/VBox/Main/webservice/Makefile.kmk 2013-11-21 19:00:46.812761628 +0100
|
||||||
|
+++ b/src/VBox/Main/webservice/Makefile.kmk 2014-01-04 04:37:05.803599026 +0100
|
||||||
|
@@ -683,7 +683,7 @@
|
||||||
|
: $(VBOXWEB_GSOAPH_FROM_GSOAP) $(VBOXWEB_GSOAPH_FROM_XSLT) $(VBOX_NSMAP) $(RECOMPILE_ON_MAKEFILE_CURRENT) | $$(dir $$@)
|
||||||
|
$(call MSG_GENERATE,,lots of files,$(GSOAPH_RELEVANT))
|
||||||
|
$(RM) -f $@
|
||||||
|
- $(REDIRECT) -C $(VBOXWEB_OUT_DIR) -- $(VBOX_SOAPCPP2) $(VBOXWEB_SOAPCPP2_SKIP_FILES) -L -2 -w -I$(VBOX_PATH_GSOAP_IMPORT) $(GSOAPH_RELEVANT)
|
||||||
|
+ $(REDIRECT) -C $(VBOXWEB_OUT_DIR) -- $(VBOX_SOAPCPP2) $(VBOXWEB_SOAPCPP2_SKIP_FILES) -z1 -L -2 -w -I$(VBOX_PATH_GSOAP_IMPORT) $(GSOAPH_RELEVANT)
|
||||||
|
$(APPEND) $@ done
|
||||||
|
|
||||||
|
# copy the generated headers and stuff. This has to be a separate rule if we
|
12
virtualbox/006-rdesktop-vrdp-keymap-path.patch
Normal file
12
virtualbox/006-rdesktop-vrdp-keymap-path.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# 2015 © Sébastien Luttringer
|
||||||
|
--- a/src/VBox/RDP/client-1.8.3/Makefile.kmk 2013-02-19 23:12:20.207464901 +0100
|
||||||
|
+++ b/src/VBox/RDP/client-1.8.3/Makefile.kmk 2014-01-04 04:17:26.700618600 +0100
|
||||||
|
@@ -41,7 +41,7 @@
|
||||||
|
EGD_SOCKET=\"/var/run/egd-pool\" WITH_RDPSND=1 HAVE_DIRENT_H=1 \
|
||||||
|
HAVE_ICONV=1 HAVE_SYS_STATVFS_H=1 \
|
||||||
|
HAVE_SYS_PARAM_H=1 HAVE_SYS_MOUNT_H=1 HAVE_STRUCT_STATVFS_F_NAMEMAX=1 \
|
||||||
|
- KEYMAP_PATH=$(if $(findstring RTPATH_APP_PRIVATE,$(CDEFS)),RTPATH_APP_PRIVATE,\"/opt/VirtualBox\")\"/rdesktop-vrdp-keymaps\" \
|
||||||
|
+ KEYMAP_PATH=$(if $(findstring RTPATH_APP_PRIVATE,$(CDEFS)),RTPATH_APP_PRIVATE,\"/usr/share/virtualbox\")\"/rdesktop-vrdp-keymaps\" \
|
||||||
|
RDESKTOP=1
|
||||||
|
ifdef WITH_BIRD_VD_HACKS
|
||||||
|
rdesktop-vrdp_DEFS += WITH_BIRD_VD_HACKS
|
9
virtualbox/007-python2-path.patch
Normal file
9
virtualbox/007-python2-path.patch
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# 2013 © Sébastien Luttringer
|
||||||
|
--- a/src/VBox/Frontends/VBoxShell/vboxshell.py 2014-01-03 01:38:41.831615590 +0100
|
||||||
|
+++ b/src/VBox/Frontends/VBoxShell/vboxshell.py 2014-01-04 04:23:33.884544420 +0100
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-#!/usr/bin/env python
|
||||||
|
+#!/usr/bin/python2
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# $Id: vboxshell.py 49841 2013-12-09 13:32:33Z vboxsync $
|
||||||
|
"""
|
@ -6,4 +6,3 @@ SUBSYSTEM=="usb_device", ACTION=="add", RUN+="/usr/share/virtualbox/VBoxCreateUS
|
|||||||
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", RUN+="/usr/share/virtualbox/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass} vboxusers"
|
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", RUN+="/usr/share/virtualbox/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass} vboxusers"
|
||||||
SUBSYSTEM=="usb_device", ACTION=="remove", RUN+="/usr/share/virtualbox/VBoxCreateUSBNode.sh --remove $major $minor"
|
SUBSYSTEM=="usb_device", ACTION=="remove", RUN+="/usr/share/virtualbox/VBoxCreateUSBNode.sh --remove $major $minor"
|
||||||
SUBSYSTEM=="usb", ACTION=="remove", ENV{DEVTYPE}=="usb_device", RUN+="/usr/share/virtualbox/VBoxCreateUSBNode.sh --remove $major $minor"
|
SUBSYSTEM=="usb", ACTION=="remove", ENV{DEVTYPE}=="usb_device", RUN+="/usr/share/virtualbox/VBoxCreateUSBNode.sh --remove $major $minor"
|
||||||
|
|
2
virtualbox/60-vboxguest.rules
Normal file
2
virtualbox/60-vboxguest.rules
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
ACTION=="add", KERNEL=="vboxguest", SUBSYSTEM=="misc", OWNER="root", MODE="0600"
|
||||||
|
ACTION=="add", KERNEL=="vboxuser", SUBSYSTEM=="misc", OWNER="root", MODE="0666"
|
28
virtualbox/LocalConfig.kmk
Normal file
28
virtualbox/LocalConfig.kmk
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
# do not build test cases
|
||||||
|
VBOX_WITH_TESTCASES :=
|
||||||
|
VBOX_WITH_TESTSUITE :=
|
||||||
|
VBOX_WITH_VALIDATIONKIT :=
|
||||||
|
|
||||||
|
# archlinux path
|
||||||
|
VBOX_WITH_ORIGIN :=
|
||||||
|
VBOX_PATH_APP_PRIVATE_ARCH := /usr/lib/virtualbox
|
||||||
|
VBOX_PATH_SHARED_LIBS := $(VBOX_PATH_APP_PRIVATE_ARCH)
|
||||||
|
VBOX_WITH_RUNPATH := $(VBOX_PATH_APP_PRIVATE_ARCH)
|
||||||
|
VBOX_PATH_APP_PRIVATE := /usr/share/virtualbox
|
||||||
|
VBOX_PATH_APP_DOCS := /usr/share/doc/virtualbox
|
||||||
|
VBOX_PATH_PACKAGE_DOCS := $(VBOX_PATH_APP_DOCS)
|
||||||
|
VBOX_BLD_PYTHON = python2
|
||||||
|
VBOX_JAVA_HOME = /usr/lib/jvm/java-8-openjdk
|
||||||
|
|
||||||
|
# do not fail on warning
|
||||||
|
VBOX_GCC_WERR =
|
||||||
|
VBOX_GCC_WARN =
|
||||||
|
|
||||||
|
# fix gsoap missing zlib include and produce errors with --as-needed
|
||||||
|
VBOX_GSOAP_CXX_LIBS := gsoapssl++ z
|
||||||
|
|
||||||
|
# use system xorg
|
||||||
|
VBOX_USE_SYSTEM_XORG_HEADERS = 1
|
||||||
|
|
||||||
|
# no update request. update are handled via pacman
|
||||||
|
VBOX_WITH_UPDATE_REQUEST := 0
|
@ -1,212 +1,381 @@
|
|||||||
#
|
# Arch contributor: https://projects.archlinux.org/svntogit/community.git/plain/trunk/PKGBUILD?h=packages/virtualbox
|
||||||
# The VirtualBox Guest Additions are extracted into the ${srcdir}, but with
|
|
||||||
# root rights. So a simple :cp can't delete them. Please remove the ${srcdir}
|
|
||||||
# with sudo rm -R src.
|
|
||||||
#
|
|
||||||
|
|
||||||
pkgbase=virtualbox
|
pkgbase=virtualbox
|
||||||
pkgname=('virtualbox' 'virtualbox-ext-oracle' 'virtualbox-guest-additions')
|
pkgname=('virtualbox'
|
||||||
pkgver=5.0.24
|
'virtualbox-host-dkms'
|
||||||
_build_virtualbox=108355
|
'virtualbox-guest-dkms'
|
||||||
|
'virtualbox-sdk'
|
||||||
|
'virtualbox-guest-utils'
|
||||||
|
'virtualbox-guest-utils-nox'
|
||||||
|
'virtualbox-ext-vnc')
|
||||||
|
pkgver=5.1.2
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
arch=('x86_64')
|
arch=('i686' 'x86_64')
|
||||||
url='http://virtualbox.org/'
|
url='http://virtualbox.org'
|
||||||
license=('GPL2' 'custom:PUEL')
|
license=('GPL' 'custom')
|
||||||
options=('!strip')
|
makedepends=('alsa-lib'
|
||||||
makedepends=('libidl2' 'libxcursor' 'libxinerama' 'libxslt' 'curl' 'linux-headers' 'python2' 'make' 'gcc')
|
'bin86'
|
||||||
source=("VirtualBox-${pkgver}-${_build_virtualbox}-Linux_amd64.run::http://download.virtualbox.org/virtualbox/${pkgver}/VirtualBox-${pkgver}-${_build_virtualbox}-Linux_amd64.run"
|
'cdrkit'
|
||||||
"http://download.virtualbox.org/virtualbox/${pkgver}/Oracle_VM_VirtualBox_Extension_Pack-${pkgver}-${_build_virtualbox}.vbox-extpack"
|
'curl'
|
||||||
"http://download.virtualbox.org/virtualbox/${pkgver}/VBoxGuestAdditions_${pkgver}.iso"
|
'dev86'
|
||||||
'10-vboxdrv.rules'
|
'device-mapper'
|
||||||
'vboxdrv.conf'
|
'glu'
|
||||||
'vboxweb.conf'
|
'gsoap'
|
||||||
|
'iasl'
|
||||||
|
'openjdk'
|
||||||
|
'libidl2'
|
||||||
|
'libpulse'
|
||||||
|
'libstdc++5'
|
||||||
|
'libvncserver'
|
||||||
|
'libvpx'
|
||||||
|
'libxcomposite'
|
||||||
|
'libxcursor'
|
||||||
|
'libxinerama'
|
||||||
|
'libxml2'
|
||||||
|
'libxmu'
|
||||||
|
'libxrandr'
|
||||||
|
'libxslt'
|
||||||
|
'libxtst'
|
||||||
|
'linux-headers'
|
||||||
|
'mesa'
|
||||||
|
'python2'
|
||||||
|
'qt5-base'
|
||||||
|
'qt5-x11extras'
|
||||||
|
'qt5-tools'
|
||||||
|
'sdl'
|
||||||
|
'sdl_ttf'
|
||||||
|
'sed'
|
||||||
|
'vde2'
|
||||||
|
'xalan-c'
|
||||||
|
'xf86driproto'
|
||||||
|
'xorg-server-devel')
|
||||||
|
makedepends_x86_64=('gcc-multilib' 'lib32-glibc')
|
||||||
|
source=("http://download.virtualbox.org/virtualbox/$pkgver/VirtualBox-$pkgver.tar.bz2"
|
||||||
|
'virtualbox-host-dkms.conf'
|
||||||
|
'virtualbox-guest-dkms.conf'
|
||||||
|
'virtualbox.sysusers'
|
||||||
|
'virtualbox-guest-utils.sysusers'
|
||||||
|
'60-vboxdrv.rules'
|
||||||
|
'60-vboxguest.rules'
|
||||||
|
'LocalConfig.kmk'
|
||||||
|
'vboxservice.service'
|
||||||
|
'vboxservice-nox.service'
|
||||||
'vboxweb.service'
|
'vboxweb.service'
|
||||||
'vboxusb.service'
|
'vboxreload'
|
||||||
'virtualbox.conf'
|
'002-dri-driver-path.patch'
|
||||||
'vboxclient.conf'
|
'003-ogl-include-path.patch'
|
||||||
'vboxsetup.sh'
|
'005-gsoap-build.patch'
|
||||||
'PUEL'
|
'006-rdesktop-vrdp-keymap-path.patch'
|
||||||
'vboxservice.service')
|
'007-python2-path.patch'
|
||||||
# the checksum can be found here: https://www.virtualbox.org/download/hashes/${pkgver}/SHA256SUMS
|
'cxx11.patch'
|
||||||
sha256sums=('66a71f1cf6417c2f152be79c8f0efccbbaf1e7237e65c04950804e12286cb9aa'
|
)
|
||||||
'aeee163c3d1bea8d3de9647d2ce6771fbf0e873bd20de6b39f84ef9d2de4b0c9'
|
md5sums=('aff1647170dd92914cddfbd0254b9773'
|
||||||
'2d76c8812353b6c764078a6f2eabfe2cf67026d076a963f6d77493d647ad4610'
|
'a19774e8c56f2c4d12c528992525c444'
|
||||||
'e0122a9a33df9704bf73c1904330f95dde25488b49972e8a28f48934f3921c67'
|
'331f69783ea9d4e762f7103954c500a3'
|
||||||
'71740893a5f226f9d9fcc607ab9d39b7de816b2759625b34da19162bc7e579ff'
|
'984412a63aa9c07ddc3cfd970381d5df'
|
||||||
'12dbba3b59991f2b68cddeeeda20236aeff63e11b7e2d1b08d9d6a82225f6651'
|
'4833c8e0524fd2272b24ba0d94aef006'
|
||||||
'e6e875ef186578b53106d7f6af48e426cdaf1b4e86834f01696b8ef1c685787f'
|
'6e2722bfd7013c1b0174382626ac1b8d'
|
||||||
'251750f41d334ef9871194b3407c2ee2c0330eac92849c6b5d30c46e5c72b765'
|
'ed1341881437455d9735875ddf455fbe'
|
||||||
'9b3c4dc5385fb3b4aeb841043384879c5c7ee926f5343d6a4177e913604f869d'
|
'91811cbc8a4cb69a5b729312568a9e7e'
|
||||||
'399c63efe01e57bfe12ddc843bc55ad0a7489bfa530acf568f66f31a4054c05e'
|
'8ba9179c4a3516904417d773816dd992'
|
||||||
'28833ef89fed96aa2cdb071c98687e8aa88e3c4c249b261f9b905e6621fa0e23'
|
'fcf6bcef98b16849d5c9f048592739c0'
|
||||||
'50658c653cde4dc43ba73a64c72761d2e996fd8e360fc682aa2844e1ad5b045f'
|
'bc9efed88e0469cd7fc460d5a5cd7b4b'
|
||||||
'aaa8d3d71c8585edf43ed11676ccd567cc85fc23752d3c3499506741cef3c9ba')
|
'0bab94ff2f4835fd907f89eb23ebbe21'
|
||||||
|
'9be7e2703afeee1fca9368bd8750e710'
|
||||||
|
'9e49bbaa2192b141c27ee43cef8cbab7'
|
||||||
|
'ecfd13297d7753ebe7b8763ca5b792d9'
|
||||||
|
'd82a6f19be739341ed7f1cf4ee8070ca'
|
||||||
|
'188ea65918309f737ce28216c2b07c3b'
|
||||||
|
'9893e7742c72593ec981f44f17b68cc3')
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd "VirtualBox-$pkgver"
|
||||||
|
|
||||||
_installdir='/opt/VirtualBox'
|
# apply patch from the source array (should be a pacman feature)
|
||||||
|
local filename
|
||||||
package_virtualbox() {
|
for filename in "${source[@]}"; do
|
||||||
pkgdesc='Oracle VM VirtualBox Binary Edition'
|
if [[ "$filename" =~ \.patch$ ]]; then
|
||||||
arch=('x86_64')
|
msg2 "Applying patch $filename"
|
||||||
screenshot='https://www.virtualbox.org/raw-attachment/wiki/Screenshots/gnome.png'
|
patch -p1 -N -i "$srcdir/$filename"
|
||||||
license=('GPL2')
|
|
||||||
depends=('libidl2' 'libxcursor' 'libxinerama' 'libxslt' 'curl' 'linux-headers'
|
|
||||||
'python2' 'make' 'gcc' 'qt')
|
|
||||||
optdepends=('virtualbox-ext-oracle: for Oracle extensions'
|
|
||||||
'dkms: for handling kernel modules with dkms'
|
|
||||||
'qt: for GUI support'
|
|
||||||
'sdl: for VBoxSDL and GUI support'
|
|
||||||
'mesa: for OpenGL support'
|
|
||||||
'libgl: for shared OpenGL support'
|
|
||||||
'libxt: for shared clipboard support'
|
|
||||||
'alsa-lib: for ALSA support'
|
|
||||||
'pulseaudio: for PulseAudio support')
|
|
||||||
provides=("virtualbox=${pkgver}")
|
|
||||||
backup=('etc/vbox/vbox.cfg' 'etc/conf.d/vboxdrv' 'etc/conf.d/vboxweb' 'etc/modules-load.d/virtualbox.conf')
|
|
||||||
install=${pkgname}.install
|
|
||||||
|
|
||||||
# Check and unpack the run package via sh(1)
|
|
||||||
sh "VirtualBox-${pkgver}-${_build_virtualbox}-Linux_amd64.run" --check
|
|
||||||
echo yes | sh "VirtualBox-${pkgver}-${_build_virtualbox}-Linux_amd64.run" --target "${srcdir}" \
|
|
||||||
--nox11 --noexec &> /dev/null
|
|
||||||
|
|
||||||
# Unpack bundled files
|
|
||||||
install -d "${pkgdir}/${_installdir}"
|
|
||||||
cd "${pkgdir}/${_installdir}"
|
|
||||||
tar -xjf "${srcdir}/VirtualBox.tar.bz2"
|
|
||||||
|
|
||||||
# Hardened build: Mark binaries suid root, create symlinks for working around
|
|
||||||
# unsupported $ORIGIN/.. in VBoxC.so and make sure the
|
|
||||||
# directory is only writable by the user (paranoid).
|
|
||||||
chmod 4511 VirtualBox VBox{SDL,Headless,NetDHCP,NetAdpCtl}
|
|
||||||
for _lib in VBox{VMM,REM,RT,DDU,XPCOM}.so; do
|
|
||||||
ln -sf "${_installdir}/${_lib}" "components/${_lib}"
|
|
||||||
done
|
|
||||||
chmod go-w .
|
|
||||||
|
|
||||||
# Patch "vboxshell.py" to use Python 2.x instead of Python 3
|
|
||||||
sed -i 's#/usr/bin/python#\02#' "${pkgdir}/${_installdir}/vboxshell.py"
|
|
||||||
|
|
||||||
# Update new initscripts way of life in VBox.sh
|
|
||||||
sed -i -e 's,sudo /etc/init.d/vboxdrv setup,/usr/bin/vboxsetup setup,g' \
|
|
||||||
"${pkgdir}/${_installdir}/VBox.sh"
|
|
||||||
|
|
||||||
# Install vboxdrv configuration
|
|
||||||
install -Dm0644 "${srcdir}/vboxdrv.conf" "${pkgdir}/etc/conf.d/vboxdrv"
|
|
||||||
|
|
||||||
# Install vboxweb configuration
|
|
||||||
install -Dm0644 "${srcdir}/vboxweb.conf" "${pkgdir}/etc/conf.d/vboxweb"
|
|
||||||
|
|
||||||
# Install systemd units
|
|
||||||
install -Dm0644 "${srcdir}/vboxweb.service" "${pkgdir}/usr/lib/systemd/system/vboxweb.service"
|
|
||||||
install -Dm0644 "${srcdir}/vboxusb.service" "${pkgdir}/usr/lib/systemd/system/vboxusb.service"
|
|
||||||
|
|
||||||
# Install udev rules
|
|
||||||
install -Dm0644 "${srcdir}/10-vboxdrv.rules" "${pkgdir}/usr/lib/udev/rules.d/10-vboxdrv.rules"
|
|
||||||
install -dm0755 "${pkgdir}/usr/share/virtualbox"
|
|
||||||
ln -s "${_installdir}/VBoxCreateUSBNode.sh" "${pkgdir}/usr/share/virtualbox/VBoxCreateUSBNode.sh"
|
|
||||||
|
|
||||||
# Install setup script for modules and usb devices
|
|
||||||
install -Dm0755 "${srcdir}/vboxsetup.sh" "${pkgdir}/usr/bin/vboxsetup"
|
|
||||||
install -Dm0644 "${srcdir}/virtualbox.conf" "${pkgdir}/etc/modules-load.d/virtualbox.conf"
|
|
||||||
|
|
||||||
# Install the SDK
|
|
||||||
cd "${pkgdir}/${_installdir}/sdk/installer"
|
|
||||||
VBOX_INSTALL_PATH="${_installdir}" python2 vboxapisetup.py install --root "${pkgdir}"
|
|
||||||
rm -r -f build
|
|
||||||
cd "${pkgdir}/${_installdir}"
|
|
||||||
|
|
||||||
# Symlink the launchers. Second link can fail if fs is not case sensitive.
|
|
||||||
install -dm0755 "${pkgdir}/usr/bin"
|
|
||||||
for _bin in VirtualBox VBox{Headless,Manage,SDL,SVC,Tunctl,NetAdpCtl} rdesktop-vrdp vboxwebsrv; do
|
|
||||||
ln -s "${_installdir}/${_bin}" "${pkgdir}/usr/bin/${_bin}"
|
|
||||||
ln -s "${_installdir}/${_bin}" "${pkgdir}/usr/bin/${_bin,,}" &>/dev/null || :
|
|
||||||
done
|
|
||||||
|
|
||||||
# Symlink the desktop icon and ".desktop" files
|
|
||||||
install -d -m 0755 "${pkgdir}/usr/"{share/applications,share/pixmaps}
|
|
||||||
ln -s "${_installdir}/VBox.png" "${pkgdir}/usr/share/pixmaps/VBox.png"
|
|
||||||
ln -s "${_installdir}/icons/128x128/virtualbox.png" "${pkgdir}/usr/share/pixmaps/virtualbox.png"
|
|
||||||
ln -s "${_installdir}/virtualbox.desktop" "${pkgdir}/usr/share/applications/virtualbox.desktop"
|
|
||||||
|
|
||||||
# Symlink mime info
|
|
||||||
install -dm0755 "${pkgdir}/usr/share/mime/packages"
|
|
||||||
ln -s "${_installdir}/virtualbox.xml" "${pkgdir}/usr/share/mime/packages/virtualbox.xml"
|
|
||||||
|
|
||||||
# Symlink doc
|
|
||||||
install -dm0755 "${pkgdir}/usr/share/doc/${pkgname}"
|
|
||||||
ln -s "${_installdir}/VirtualBox.chm" "${pkgdir}/usr/share/doc/$pkgname/virtualbox.chm"
|
|
||||||
|
|
||||||
# Symlink module sources
|
|
||||||
install -dm0755 "${pkgdir}/usr/src"
|
|
||||||
ln -s "${_installdir}/src/vboxhost" "${pkgdir}/usr/src/vboxhost-${pkgver}"
|
|
||||||
|
|
||||||
# Symlink icons
|
|
||||||
cd "${pkgdir}/${_installdir}/icons"
|
|
||||||
for _dir in *; do
|
|
||||||
cd "${_dir}"
|
|
||||||
install -d -m 0755 "${pkgdir}/usr/share/icons/hicolor/${_dir}/"{apps,mimetypes}
|
|
||||||
for _icon in *; do
|
|
||||||
if [[ "${_icon}" = 'virtualbox.png' ]]; then
|
|
||||||
ln -s "${_installdir}/icons/${_dir}/${_icon}" "${pkgdir}/usr/share/icons/hicolor/${_dir}/apps/${_icon}"
|
|
||||||
else
|
|
||||||
ln -s "${_installdir}/icons/${_dir}/${_icon}" "${pkgdir}/usr/share/icons/hicolor/${_dir}/mimetypes/${_icon}"
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
cd - >/dev/null
|
|
||||||
|
msg2 'Applying local config'
|
||||||
|
cp "$srcdir/LocalConfig.kmk" .
|
||||||
|
|
||||||
|
msg2 'Use our CFLAGS'
|
||||||
|
echo "VBOX_GCC_OPT=$CXXFLAGS" >> LocalConfig.kmk
|
||||||
|
|
||||||
|
msg2 'Remove gcc version censorship'
|
||||||
|
sed -i 's/^check_gcc$/#check_gcc/' configure
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "VirtualBox-$pkgver"
|
||||||
|
|
||||||
|
msg2 'Build virtualbox'
|
||||||
|
./configure \
|
||||||
|
--disable-docs \
|
||||||
|
--enable-webservice \
|
||||||
|
--enable-vde \
|
||||||
|
--enable-vnc \
|
||||||
|
--disable-kmods \
|
||||||
|
--with-makeself=/usr/bin/echo
|
||||||
|
# fake makeself binary to compile without nofatal
|
||||||
|
# makeself is used by linux installer. we don't need it.
|
||||||
|
source ./env.sh
|
||||||
|
kmk
|
||||||
|
|
||||||
|
msg2 'Build rdesktop-vrdp'
|
||||||
|
kmk -C src/VBox/RDP/client-1.8.3
|
||||||
|
|
||||||
|
msg2 'Build VNC extension pack'
|
||||||
|
kmk -C src/VBox/ExtPacks/VNC packing
|
||||||
|
}
|
||||||
|
|
||||||
|
package_virtualbox() {
|
||||||
|
pkgdesc='Powerful x86 virtualization for enterprise as well as home use'
|
||||||
|
depends=('glibc' 'openssl' 'curl' 'gcc-libs' 'libpng' 'python2' 'sdl'
|
||||||
|
'libvpx' 'libxml2' 'procps-ng' 'shared-mime-info' 'zlib'
|
||||||
|
'libxcursor' 'libxinerama' 'libx11' 'libxext' 'libxmu' 'libxt'
|
||||||
|
'VIRTUALBOX-HOST-MODULES')
|
||||||
|
optdepends=('qt5-x11extras: GUI support'
|
||||||
|
'vde2: Virtual Distributed Ethernet support'
|
||||||
|
'virtualbox-guest-iso: Guest Additions CD image'
|
||||||
|
'virtualbox-ext-vnc: VNC server support'
|
||||||
|
'virtualbox-sdk: Developer kit'
|
||||||
|
'net-tools: Host-only or bridged networking support')
|
||||||
|
backup=('etc/vbox/vbox.cfg')
|
||||||
|
replaces=('virtualbox-ose')
|
||||||
|
conflicts=('virtualbox-ose')
|
||||||
|
install=virtualbox.install
|
||||||
|
|
||||||
|
source "VirtualBox-$pkgver/env.sh"
|
||||||
|
cd "VirtualBox-$pkgver/out/linux.$BUILD_PLATFORM_ARCH/release/bin"
|
||||||
|
|
||||||
|
# binaries
|
||||||
|
install -dm755 "$pkgdir/usr/bin"
|
||||||
|
install -m755 VBox.sh "$pkgdir/usr/bin/VBox"
|
||||||
|
for i in VBoxHeadless VBoxManage VBoxSDL VirtualBox vboxwebsrv VBoxBalloonCtrl; do
|
||||||
|
ln -sf VBox "$pkgdir/usr/bin/$i"
|
||||||
|
ln -sf VBox "$pkgdir/usr/bin/${i,,}"
|
||||||
done
|
done
|
||||||
|
install -m755 VBoxTunctl "$pkgdir/usr/bin"
|
||||||
|
install -m755 rdesktop-vrdp "$pkgdir/usr/bin"
|
||||||
|
|
||||||
# Write the configuration file
|
# libraries
|
||||||
install -dm0755 "${pkgdir}/etc/vbox"
|
install -dm755 "$pkgdir/usr/lib/virtualbox"
|
||||||
echo "# VirtualBox installation directory" > "${pkgdir}/etc/vbox/vbox.cfg"
|
install -m755 *.so "$pkgdir/usr/lib/virtualbox"
|
||||||
echo "INSTALL_DIR='${_installdir}'" >> "${pkgdir}/etc/vbox/vbox.cfg"
|
install -m644 *.rc *.r0 VBoxEFI*.fd "$pkgdir/usr/lib/virtualbox"
|
||||||
echo "# VirtualBox version" >> "${pkgdir}/etc/vbox/vbox.cfg"
|
## setuid root binaries
|
||||||
echo "INSTALL_VER='${pkgver}'" >> "${pkgdir}/etc/vbox/vbox.cfg"
|
install -m4755 VBoxSDL VirtualBox VBoxHeadless VBoxNetDHCP VBoxNetAdpCtl VBoxNetNAT -t "$pkgdir/usr/lib/virtualbox"
|
||||||
echo "INSTALL_REV='${_build_virtualbox}'" >> "${pkgdir}/etc/vbox/vbox.cfg"
|
## other binaries
|
||||||
chmod 0644 "${pkgdir}/etc/vbox/vbox.cfg"
|
install -m755 VBoxManage VBoxSVC VBoxExtPackHelperApp VBoxXPCOMIPCD VBoxTestOGL VBoxBalloonCtrl vboxwebsrv webtest -t "$pkgdir/usr/lib/virtualbox"
|
||||||
|
|
||||||
# Use system's Qt
|
# components
|
||||||
rm "${pkgdir}/opt/VirtualBox/libQtCoreVBox.so.4"
|
install -dm755 "$pkgdir/usr/lib/virtualbox/components"
|
||||||
rm "${pkgdir}/opt/VirtualBox/libQtGuiVBox.so.4"
|
install -m755 components/* -t "$pkgdir/usr/lib/virtualbox/components"
|
||||||
rm "${pkgdir}/opt/VirtualBox/libQtOpenGLVBox.so.4"
|
|
||||||
#rm "${pkgdir}/opt/VirtualBox/libQtNetworkVBox.so.4"
|
|
||||||
cd "${pkgdir}/opt/VirtualBox"
|
|
||||||
ln -s /usr/lib/libQtCore.so.4 libQtCoreVBox.so.4
|
|
||||||
ln -s /usr/lib/libQtGui.so.4 libQtGuiVBox.so.4
|
|
||||||
ln -s /usr/lib/libQtOpenGL.so.4 libQtOpenGLVBox.so.4
|
|
||||||
ln -s /usr/lib/libQtNetwork.so.4 libQtNetworkVBox.so.4
|
|
||||||
|
|
||||||
# Register into DKMS
|
# extensions packs
|
||||||
install -dm 755 "$pkgdir/var/lib/dkms/vboxhost/$pkgver"
|
## as virtualbox install itself stuff in this directory, move it to /var and
|
||||||
ln -s '/opt/VirtualBox/src/vboxhost' "$pkgdir/var/lib/dkms/vboxhost/$pkgver/source"
|
## trick it with a symlink
|
||||||
|
## FIXME: trick is disabled for now
|
||||||
|
#install -dm755 "$pkgdir/var/lib/virtualbox/extensions"
|
||||||
|
#install -dm755 "$pkgdir/usr/share/virtualbox/extensions"
|
||||||
|
#ln -s ../../../var/lib/virtualbox/extensions "$pkgdir/usr/lib/virtualbox/ExtensionPacks"
|
||||||
|
install -dm755 "$pkgdir/usr/lib/virtualbox/ExtensionPacks"
|
||||||
|
|
||||||
|
# languages
|
||||||
|
install -dm755 "$pkgdir/usr/share/virtualbox/nls"
|
||||||
|
install -m755 nls/*.qm -t "$pkgdir/usr/share/virtualbox/nls"
|
||||||
|
|
||||||
|
# rdesktop keymaps
|
||||||
|
install -dm755 "$pkgdir/usr/share/virtualbox/rdesktop-vrdp-keymaps"
|
||||||
|
install -m644 rdesktop-vrdp-keymaps/* "$pkgdir/usr/share/virtualbox/rdesktop-vrdp-keymaps"
|
||||||
|
|
||||||
|
# useless scripts
|
||||||
|
install -m755 VBoxCreateUSBNode.sh VBoxSysInfo.sh -t "$pkgdir/usr/share/virtualbox"
|
||||||
|
|
||||||
|
# icons
|
||||||
|
install -Dm644 VBox.png "$pkgdir/usr/share/pixmaps/VBox.png"
|
||||||
|
|
||||||
|
pushd icons >/dev/null
|
||||||
|
for i in *; do
|
||||||
|
install -d "$pkgdir/usr/share/icons/hicolor/$i/mimetypes"
|
||||||
|
cp $i/* "$pkgdir/usr/share/icons/hicolor/$i/mimetypes"
|
||||||
|
done
|
||||||
|
popd >/dev/null
|
||||||
|
|
||||||
|
#desktop
|
||||||
|
install -Dm644 virtualbox.desktop "$pkgdir/usr/share/applications/virtualbox.desktop"
|
||||||
|
install -Dm644 virtualbox.xml "$pkgdir/usr/share/mime/packages/virtualbox.xml"
|
||||||
|
|
||||||
|
#install configuration
|
||||||
|
install -dm755 "$pkgdir/etc/vbox"
|
||||||
|
echo 'INSTALL_DIR=/usr/lib/virtualbox' > "$pkgdir/etc/vbox/vbox.cfg"
|
||||||
|
|
||||||
|
# back to srcdir
|
||||||
|
cd "$srcdir"
|
||||||
|
|
||||||
|
#licence
|
||||||
|
install -Dm644 VirtualBox-$pkgver/COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||||
|
|
||||||
|
# install systemd stuff
|
||||||
|
install -Dm644 60-vboxdrv.rules "$pkgdir/usr/lib/udev/rules.d/60-vboxdrv.rules"
|
||||||
|
install -Dm644 vboxweb.service "$pkgdir/usr/lib/systemd/system/vboxweb.service"
|
||||||
|
install -Dm644 virtualbox.sysusers "$pkgdir/usr/lib/sysusers.d/virtualbox.conf"
|
||||||
|
|
||||||
|
# install module reloading shortcut (with a symlink with default helper)
|
||||||
|
install -Dm755 vboxreload "$pkgdir/usr/bin"
|
||||||
|
ln -s vboxreload "$pkgdir/usr/bin/rcvboxdrv"
|
||||||
}
|
}
|
||||||
|
|
||||||
package_virtualbox-ext-oracle() {
|
package_virtualbox-sdk() {
|
||||||
pkgdesc="Oracle VM VirtualBox Extension Pack"
|
pkgdesc='VirtualBox Software Developer Kit (SDK)'
|
||||||
arch=('any')
|
depends=('python2')
|
||||||
license=('custom:PUEL')
|
|
||||||
depends=("virtualbox")
|
|
||||||
install=${pkgname}.install
|
|
||||||
|
|
||||||
install -Dm0644 "Oracle_VM_VirtualBox_Extension_Pack-${pkgver}-${_build_virtualbox}.vbox-extpack" \
|
install -dm755 "$pkgdir/usr/lib/virtualbox"
|
||||||
"${pkgdir}/usr/share/virtualbox/extensions/Oracle_VM_VirtualBox_Extension_Pack-${pkgver}.vbox-extpack"
|
|
||||||
install -Dm0644 PUEL "${pkgdir}/usr/share/licenses/${pkgname}/PUEL"
|
source "VirtualBox-$pkgver/env.sh"
|
||||||
|
cd "VirtualBox-$pkgver/out/linux.$BUILD_PLATFORM_ARCH/release/bin"
|
||||||
|
|
||||||
|
install -Dm755 vboxshell.py "$pkgdir/usr/lib/virtualbox/vboxshell.py"
|
||||||
|
# python sdk
|
||||||
|
pushd sdk/installer
|
||||||
|
VBOX_INSTALL_PATH="/usr/lib/virtualbox" python2 vboxapisetup.py install --root "$pkgdir"
|
||||||
|
popd
|
||||||
|
rm -rf sdk/installer
|
||||||
|
cp -r sdk "$pkgdir/usr/lib/virtualbox"
|
||||||
|
# licence
|
||||||
|
install -Dm644 "$srcdir/VirtualBox-$pkgver/COPYING" \
|
||||||
|
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||||
}
|
}
|
||||||
|
|
||||||
package_virtualbox-guest-additions() {
|
package_virtualbox-host-dkms() {
|
||||||
pkgdesc="Oracle VM VirtualBox Guest Additions for Chakra"
|
pkgdesc='VirtualBox Host kernel modules sources'
|
||||||
arch=('x86_64')
|
depends=('dkms' 'gcc' 'make')
|
||||||
license=('GPL2')
|
replaces=('virtualbox-source'
|
||||||
depends=('linux-headers' 'make' 'gcc')
|
'virtualbox-host-source'
|
||||||
install=${pkgname}.install
|
'virtualbox-host-modules-lts')
|
||||||
|
conflicts=('virtualbox-source' 'virtualbox-host-source')
|
||||||
|
provides=('VIRTUALBOX-HOST-MODULES')
|
||||||
|
optdepends=('linux-headers: build modules against Arch kernel'
|
||||||
|
'linux-lts-headers: build modules against LTS kernel'
|
||||||
|
'linux-zen-headers: build modules against ZEN kernel')
|
||||||
|
install=virtualbox-host-dkms.install
|
||||||
|
|
||||||
# Install VBoxLinuxAdditions
|
install -dm755 "$pkgdir/usr/src"
|
||||||
install -Dm0755 VBoxLinuxAdditions.run "${pkgdir}/usr/share/virtualbox/guest-additions/VBoxLinuxAdditions.run"
|
source "VirtualBox-$pkgver/env.sh"
|
||||||
|
cd "VirtualBox-$pkgver/out/linux.$BUILD_PLATFORM_ARCH/release/bin"
|
||||||
# Install service file
|
cp -r src "$pkgdir/usr/src/vboxhost-${pkgver}_OSE"
|
||||||
install -Dm0644 vboxservice.service "${pkgdir}/usr/lib/systemd/system/vboxservice.service"
|
# licence
|
||||||
|
install -Dm644 "$srcdir/VirtualBox-$pkgver/COPYING" \
|
||||||
# Install vboxclient.conf for vboxsf module
|
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||||
install -Dm0644 "${srcdir}/vboxclient.conf" "${pkgdir}/etc/modules-load.d/vboxclient.conf"
|
# module loading
|
||||||
|
local _p="$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
|
||||||
|
install -Dm644 /dev/null "$_p"
|
||||||
|
printf "vboxdrv\nvboxpci\nvboxnetadp\nvboxnetflt\n" > "$_p"
|
||||||
|
# starting vbox 5.1, dkms.conf file was dropped
|
||||||
|
local _p="$pkgdir/usr/src/vboxhost-${pkgver}_OSE/dkms.conf"
|
||||||
|
install -Dm644 "$srcdir/$pkgname.conf" "$_p"
|
||||||
|
sed -i "s,@VERSION@,$pkgver," "$_p"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
package_virtualbox-guest-dkms() {
|
||||||
|
pkgdesc='VirtualBox Guest kernel modules sources'
|
||||||
|
depends=('dkms' 'gcc' 'make')
|
||||||
|
replaces=('virtualbox-archlinux-source'
|
||||||
|
'virtualbox-guest-source'
|
||||||
|
'virtualbox-guest-modules-lts')
|
||||||
|
provides=('VIRTUALBOX-GUEST-MODULES')
|
||||||
|
conflicts=('virtualbox-archlinux-source' 'virtualbox-guest-source')
|
||||||
|
optdepends=('linux-headers: build modules against Arch kernel'
|
||||||
|
'linux-lts-headers: build modules against LTS kernel'
|
||||||
|
'linux-zen-headers: build modules against ZEN kernel')
|
||||||
|
install=virtualbox-guest-dkms.install
|
||||||
|
|
||||||
|
install -dm755 "$pkgdir/usr/src"
|
||||||
|
source "VirtualBox-$pkgver/env.sh"
|
||||||
|
cd "VirtualBox-$pkgver/out/linux.$BUILD_PLATFORM_ARCH/release/bin/additions"
|
||||||
|
cp -r src "$pkgdir/usr/src/vboxguest-${pkgver}_OSE"
|
||||||
|
# licence
|
||||||
|
install -Dm644 "$srcdir/VirtualBox-$pkgver/COPYING" \
|
||||||
|
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||||
|
# module loading
|
||||||
|
local _p="$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
|
||||||
|
install -Dm644 /dev/null "$_p"
|
||||||
|
printf "vboxguest\nvboxsf\nvboxvideo\n" > "$_p"
|
||||||
|
# starting vbox 5.1, dkms.conf file was dropped
|
||||||
|
local _p="$pkgdir/usr/src/vboxguest-${pkgver}_OSE/dkms.conf"
|
||||||
|
install -Dm644 "$srcdir/$pkgname.conf" "$_p"
|
||||||
|
sed -i "s,@VERSION@,$pkgver," "$_p"
|
||||||
|
}
|
||||||
|
|
||||||
|
package_virtualbox-guest-utils() {
|
||||||
|
pkgdesc='VirtualBox Guest userspace utilities'
|
||||||
|
depends=('glibc' 'pam' 'libx11' 'libxcomposite'
|
||||||
|
'libxdamage' 'libxext' 'libxfixes' 'libxmu' 'libxt' 'xorg-xrandr'
|
||||||
|
'VIRTUALBOX-GUEST-MODULES' 'X-ABI-VIDEODRV_VERSION=20')
|
||||||
|
replaces=('virtualbox-archlinux-additions' 'virtualbox-guest-additions')
|
||||||
|
conflicts=('virtualbox-archlinux-additions' 'virtualbox-guest-additions' 'virtualbox-guest-utils-nox')
|
||||||
|
install=virtualbox-guest-utils.install
|
||||||
|
|
||||||
|
source "VirtualBox-$pkgver/env.sh"
|
||||||
|
pushd "VirtualBox-$pkgver/out/linux.$BUILD_PLATFORM_ARCH/release/bin/additions"
|
||||||
|
install -d "$pkgdir/usr/bin"
|
||||||
|
install -m755 VBoxClient VBoxControl VBoxService mount.vboxsf "$pkgdir/usr/bin"
|
||||||
|
install -m755 -D "$srcdir"/VirtualBox-$pkgver/src/VBox/Additions/x11/Installer/98vboxadd-xclient \
|
||||||
|
"$pkgdir"/usr/bin/VBoxClient-all
|
||||||
|
install -m644 -D "$srcdir"/VirtualBox-$pkgver/src/VBox/Additions/x11/Installer/vboxclient.desktop \
|
||||||
|
"$pkgdir"/etc/xdg/autostart/vboxclient.desktop
|
||||||
|
install -D vboxvideo_drv_system.so \
|
||||||
|
"$pkgdir/usr/lib/xorg/modules/drivers/vboxvideo.so"
|
||||||
|
install -d "$pkgdir/usr/lib/xorg/modules/dri"
|
||||||
|
install -m755 VBoxOGL*.so "$pkgdir/usr/lib"
|
||||||
|
ln -s /usr/lib/VBoxOGL.so "$pkgdir/usr/lib/xorg/modules/dri/vboxvideo_dri.so"
|
||||||
|
install -m755 -D pam_vbox.so "$pkgdir/usr/lib/security/pam_vbox.so"
|
||||||
|
popd
|
||||||
|
# systemd stuff
|
||||||
|
install -Dm644 60-vboxguest.rules "$pkgdir/usr/lib/udev/rules.d/60-vboxguest.rules"
|
||||||
|
install -Dm644 vboxservice.service "$pkgdir/usr/lib/systemd/system/vboxservice.service"
|
||||||
|
install -Dm644 virtualbox-guest-utils.sysusers "$pkgdir/usr/lib/sysusers.d/virtualbox-guest-utils.conf"
|
||||||
|
# licence
|
||||||
|
install -Dm644 VirtualBox-$pkgver/COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||||
|
}
|
||||||
|
|
||||||
|
package_virtualbox-guest-utils-nox() {
|
||||||
|
pkgdesc='VirtualBox Guest userspace utilities without X support'
|
||||||
|
depends=('glibc' 'pam' 'VIRTUALBOX-GUEST-MODULES')
|
||||||
|
conflicts=('virtualbox-guest-utils')
|
||||||
|
install=virtualbox-guest-utils.install
|
||||||
|
|
||||||
|
source "VirtualBox-$pkgver/env.sh"
|
||||||
|
pushd "VirtualBox-$pkgver/out/linux.$BUILD_PLATFORM_ARCH/release/bin/additions"
|
||||||
|
install -d "$pkgdir/usr/bin"
|
||||||
|
install -m755 VBoxControl VBoxService mount.vboxsf "$pkgdir/usr/bin"
|
||||||
|
install -m755 -D pam_vbox.so "$pkgdir/usr/lib/security/pam_vbox.so"
|
||||||
|
popd
|
||||||
|
# systemd stuff
|
||||||
|
install -Dm644 60-vboxguest.rules "$pkgdir/usr/lib/udev/rules.d/60-vboxguest.rules"
|
||||||
|
install -Dm644 vboxservice-nox.service "$pkgdir/usr/lib/systemd/system/vboxservice.service"
|
||||||
|
install -Dm644 virtualbox-guest-utils.sysusers "$pkgdir/usr/lib/sysusers.d/virtualbox-guest-utils.conf"
|
||||||
|
# licence
|
||||||
|
install -Dm644 "$srcdir/VirtualBox-$pkgver/COPYING" \
|
||||||
|
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||||
|
}
|
||||||
|
|
||||||
|
package_virtualbox-ext-vnc() {
|
||||||
|
pkgdesc='VirtualBox VNC extension pack'
|
||||||
|
depends=('virtualbox' 'libvncserver')
|
||||||
|
optdepends=('tigervnc: vnc client')
|
||||||
|
install=virtualbox-ext-vnc.install
|
||||||
|
|
||||||
|
source "VirtualBox-$pkgver/env.sh"
|
||||||
|
cd "VirtualBox-$pkgver/out/linux.$BUILD_PLATFORM_ARCH/release/packages"
|
||||||
|
install -Dm644 VNC-*.vbox-extpack "$pkgdir/usr/share/virtualbox/extensions/VNC-${pkgver}.vbox-extpack"
|
||||||
|
# licence
|
||||||
|
install -Dm644 "$srcdir/VirtualBox-$pkgver/COPYING" \
|
||||||
|
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:set ts=4 sw=4 et:
|
||||||
|
@ -1,34 +0,0 @@
|
|||||||
VirtualBox PUEL terms and conditions
|
|
||||||
License version 8, April 19, 2010
|
|
||||||
|
|
||||||
ORACLE CORPORATION (“ORACLE”) IS WILLING TO LICENSE THE PRODUCT (AS DEFINED IN § 1 BELOW) TO YOU ONLY UPON THE CONDITION THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS VIRTUALBOX PERSONAL USE AND EVALUATION LICENSE AGREEMENT (“AGREEMENT”). PLEASE READ THE AGREEMENT CAREFULLY. BY DOWNLOADING OR INSTALLING THIS PRODUCT, YOU ACCEPT THE FULL TERMS OF THIS AGREEMENT.
|
|
||||||
|
|
||||||
IF YOU ARE AGREEING TO THIS LICENSE ON BEHALF OF AN ENTITY OTHER THAN AN INDIVIDUAL PERSON, YOU REPRESENT THAT YOU ARE BINDING AND HAVE THE RIGHT TO BIND THE ENTITY TO THE TERMS AND CONDITIONS OF THIS AGREEMENT.
|
|
||||||
|
|
||||||
§ 1 Subject of Agreement. “Product”, as referred to in this Agreement, shall be the binary software package “Oracle VM VirtualBox,” which Product allows for creating multiple virtual computers, each with different operating systems (“Guest Computers”), on a physical computer with a specific operating system (“Host Computer”), to allow for installing and executing these Guest Computers simultaneously. The Product consists of executable files in machine code for the Solaris, Windows, Linux, and Mac OS X operating systems as well as other data files as required by the executable files at run-time and documentation in electronic form. The Product includes all documentation and updates provided to You by Oracle under this Agreement and the terms of this Agreement will apply to all such documentation and updates unless a different license is provided with an update or documentation.
|
|
||||||
|
|
||||||
§ 2 Grant of license. (1) Oracle grants you a personal, non-exclusive, non-transferable, limited license without fees to reproduce, install, execute, and use internally the Product a Host Computer for your Personal Use, Educational Use, or Evaluation. “Personal Use” requires that you use the Product on the same Host Computer where you installed it yourself and that no more than one client connect to that Host Computer at a time for the purpose of displaying Guest Computers remotely. “Educational use” is any use in an academic institution (schools, colleges and universities, by teachers and students). “Evaluation” means testing the Product for a reasonable period (that is, normally for a few weeks); after expiry of that term, you are no longer permitted to evaluate the Product.
|
|
||||||
|
|
||||||
(2) The “VirtualBox Guest Additions” are a set of drivers and utilities that are shipped as a subset of the Product for the purpose of being installed inside a Guest Computer to improve its performance and cooperation with the rest of the Product. In addition to and independent of the rights granted by subsection 1, Oracle allows you to install, execute, copy and redistribute a) unmodified copies of the ISO installation medium of the VirtualBox Guest Additions as shipped with the Product and b) the VirtualBox Guest Additions together with the Guest Computer into which they have been installed.
|
|
||||||
|
|
||||||
§ 3 Restrictions and Reservation of Rights. (1) Any use beyond the provisions of § 2 is prohibited. The Product and copies thereof provided to you under this Agreement are copyrighted and licensed, not sold, to you by Oracle. Oracle reserves all copyrights and other intellectual property rights. This includes, but is not limited to, the right to modify, make available or public, rent out, lease, lend or otherwise distribute the Product. This does not apply as far as applicable law may require otherwise or if Oracle grants you additional rights of use in a separate agreement in writing.
|
|
||||||
|
|
||||||
(2) You may not do any of the following: (a) modify the Product. However if the documentation accompanying Product lists specific portions of Product, such as header files, class libraries, reference source code, and/or redistributable files, that may be handled differently, you may do so only as provided in the documentation; (b) rent, lease, lend or encumber the Product; (c) remove or alter any proprietary legends or notices contained in the Product; or (d) decompile, or reverse engineer the Product (unless enforcement of this restrictions is prohibited by applicable law).
|
|
||||||
|
|
||||||
(3) The Product is not designed, licensed or intended for use in the design, construction, operation or maintenance of any nuclear facility and Oracle and its licensors disclaim any express or implied warranty of fitness for such uses.
|
|
||||||
|
|
||||||
(4) No right, title or interest in or to any trademark, service mark, logo or trade name of Oracle or its licensors is granted under this Agreement.
|
|
||||||
|
|
||||||
§ 4 Termination. The Agreement is effective on the Date you receive the Product and remains effective until terminated. Your rights under this Agreement will terminate immediately without notice from Oracle if you materially breach it or take any action in derogation of Oracle's and/or its licensors' rights to Product. Oracle may terminate this Agreement should any Product become, or in Oracle's reasonable opinion likely to become, the subject of a claim of intellectual property infringement or trade secret misappropriation. Upon termination, you will cease use of, and destroy, Product and confirm compliance in writing to Oracle. Sections 3-9, inclusive, will survive termination of the Agreement.
|
|
||||||
|
|
||||||
§ 5 Disclaimer of Warranty. TO THE EXTENT NOT PROHIBITED BY APPLICABLE LAW, ORACLE PROVIDES THE PRODUCT “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, EXCEPT TO THE EXTENT THAT THESE DISCLAIMERS ARE HELD TO BE LEGALLY INVALID. The entire risk as to the quality and performance of the Product is with you. Should it prove defective, you assume the cost of all necessary servicing, repair, or correction. In addition, Oracle shall be allowed to provide updates to the Product in urgent cases. You are then obliged to install such updates. Such an urgent case includes, but is not limited to, a claim of rights to the Product by a third party.
|
|
||||||
|
|
||||||
§ 6 Limitation of Liability. TO THE EXTENT NOT PROHIBITED BY APPLICABLE LAW, IN NO EVENT WILL ORACLE OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR SPECIAL, INDIRECT, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF OR RELATED TO THE USE OF OR INABILITY TO USE PRODUCT, EVEN IF ORACLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. In no event will Oracle's liability to you, whether in contract, tort (including negligence), or otherwise, exceed the amount paid by you for Product under this Agreement. Some states do not allow the exclusion of incidental or consequential damages, so some of the terms above may not be applicable to you.
|
|
||||||
|
|
||||||
§ 7 Third Party Code. Portions of Product may be provided with notices and open source licenses from communities and third parties that govern the use of those portions, and any licenses granted hereunder do not alter any rights and obligations You may have under such open source licenses, however, the disclaimer of warranty and limitation of liability provisions in this Agreement will apply to all the Product.
|
|
||||||
|
|
||||||
§ 8 Export Regulations. All Product, documents, technical data, and any other materials delivered under this Agreement are subject to U.S. export control laws and may be subject to export or import regulations in other countries. You agree to comply strictly with these laws and regulations and acknowledge that you have the responsibility to obtain any licenses to export, re-export, or import as may be required after delivery to you.
|
|
||||||
|
|
||||||
§ 9 U.S. Government Restricted Rights. If Product is being acquired by or on behalf of the U.S. Government or by a U.S. Government prime contractor or subcontractor (at any tier), then the Government's rights in Product and accompanying documentation will be only as set forth in this Agreement; this is in accordance with 48 CFR 227.7201 through 227.7202-4 (for Department of Defense (DOD) acquisitions) and with 48 CFR 2.101 and 12.212 (for non-DOD acquisitions).
|
|
||||||
|
|
||||||
§ 10 Miscellaneous. This Agreement is the entire agreement between you and Oracle relating to its subject matter. It supersedes all prior or contemporaneous oral or written communications, proposals, representations and warranties and prevails over any conflicting or additional terms of any quote, order, acknowledgment, or other communication between the parties relating to its subject matter during the term of this Agreement. No modification of this Agreement will be binding, unless in writing and signed by an authorized representative of each party. If any provision of this Agreement is held to be unenforceable, this Agreement will remain in effect with the provision omitted, unless omission would frustrate the intent of the parties, in which case this Agreement will immediately terminate. Course of dealing and other standard business conditions of the parties or the industry shall not apply. This Agreement is governed by the substantive and procedural laws of California and you and Oracle agree to submit to the exclusive jurisdiction of, and venue in, the courts in San Francisco, San Mateo, or Santa Clara counties in California in any dispute arising out of or relating to this Agreement.
|
|
10
virtualbox/cxx11.patch
Normal file
10
virtualbox/cxx11.patch
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
--- VirtualBox-5.1.2/configure.orig 2016-07-21 23:15:11.118121629 +0100
|
||||||
|
+++ VirtualBox-5.1.2/configure 2016-07-21 23:17:07.133529084 +0100
|
||||||
|
@@ -1691,6 +1691,7 @@
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
echo "(Qt5 from pkg-config)" >> $LOG
|
||||||
|
FLGQT5=`pkg-config Qt5Core --cflags`
|
||||||
|
+ FLGQT5="-std=gnu++11 $FLGQT5"
|
||||||
|
INCQT5=`strip_I "$FLGQT5"`
|
||||||
|
LIBDIR5=`pkg-config Qt5Core --variable=libdir`
|
||||||
|
LIBQT5=`pkg-config Qt5Core --libs`
|
@ -1 +0,0 @@
|
|||||||
vboxsf
|
|
@ -1,7 +0,0 @@
|
|||||||
# Try to build module if don't exist when calling start
|
|
||||||
# This variable is automatically set to no when DKMS is in use
|
|
||||||
START_BUILD=Yes
|
|
||||||
|
|
||||||
# Disable use of DKMS
|
|
||||||
# Elsewhere script try to detect DKMS
|
|
||||||
DISABLE_DKMS=Yes
|
|
37
virtualbox/vboxreload
Executable file
37
virtualbox/vboxreload
Executable file
@ -0,0 +1,37 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# vboxreload: shortcut to reload virtualbox host modules
|
||||||
|
#
|
||||||
|
# Copyright © 2016 Sébastien Luttringer
|
||||||
|
#
|
||||||
|
# This program is free software; you can redistribute it and/or
|
||||||
|
# modify it under the terms of the GNU General Public License
|
||||||
|
# as published by the Free Software Foundation; either version 2
|
||||||
|
# of the License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
|
(( UID > 0 )) && { echo 'You must be root' >&2; exit 1; }
|
||||||
|
|
||||||
|
modules=(vboxnetadp vboxnetflt vboxpci vboxdrv)
|
||||||
|
|
||||||
|
echo -n 'Unloading modules: '
|
||||||
|
for _m in "${modules[@]}"; do
|
||||||
|
lsmod|grep -q "$_m" && rmmod "$_m" && echo -n "$_m "
|
||||||
|
done
|
||||||
|
echo
|
||||||
|
|
||||||
|
echo -n 'Loading modules: '
|
||||||
|
for _m in "${modules[@]}"; do
|
||||||
|
modprobe "$_m" && echo -n "$_m "
|
||||||
|
done
|
||||||
|
echo
|
||||||
|
|
||||||
|
# vim:set ts=2 sw=2 ai et:
|
11
virtualbox/vboxservice-nox.service
Normal file
11
virtualbox/vboxservice-nox.service
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=VirtualBox Guest Service
|
||||||
|
ConditionVirtualization=oracle
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStartPre=-/usr/bin/modprobe vboxguest
|
||||||
|
ExecStartPre=-/usr/bin/modprobe vboxsf
|
||||||
|
ExecStart=/usr/bin/VBoxService -f
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
@ -3,7 +3,10 @@ Description=VirtualBox Guest Service
|
|||||||
ConditionVirtualization=oracle
|
ConditionVirtualization=oracle
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/sbin/VBoxService -f
|
ExecStartPre=-/usr/bin/modprobe vboxguest
|
||||||
|
ExecStartPre=-/usr/bin/modprobe vboxvideo
|
||||||
|
ExecStartPre=-/usr/bin/modprobe vboxsf
|
||||||
|
ExecStart=/usr/bin/VBoxService -f
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -1,147 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
. /etc/vbox/vbox.cfg
|
|
||||||
. /etc/conf.d/vboxdrv
|
|
||||||
|
|
||||||
if [ "$EUID" -ne "0" ]; then
|
|
||||||
echo "Please run this script with root privileges"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -n "$INSTALL_DIR" ]]; then
|
|
||||||
MODULE_SRC="$INSTALL_DIR/src/vboxhost"
|
|
||||||
else
|
|
||||||
echo "Missing /etc/vbox/vbox.cfg"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
BUILDINTMP="$MODULE_SRC/build_in_tmp"
|
|
||||||
DODKMS="$MODULE_SRC/do_dkms"
|
|
||||||
|
|
||||||
# detection of dkms (if not disabled)
|
|
||||||
if [[ "$DISABLE_DKMS" =~ [yY][eE][sS] ]]; then
|
|
||||||
USE_DKMS=0
|
|
||||||
else
|
|
||||||
which dkms &>/dev/null
|
|
||||||
USE_DKMS=$((! $?))
|
|
||||||
fi
|
|
||||||
|
|
||||||
# STARTBUILD cannot be used with dkms
|
|
||||||
(( USE_DKMS == 1 )) && START_BUILD=no
|
|
||||||
|
|
||||||
|
|
||||||
load() {
|
|
||||||
if [[ "$START_BUILD" =~ [yY][eE][sS] ]]; then
|
|
||||||
# check if module exists
|
|
||||||
c=$('find' "/lib/modules/$(uname -r)" -type f -regex '.*/vbox\(drv\|netadp\|netflt\|pci\).ko' | wc -l)
|
|
||||||
((c == 0 )) && setup
|
|
||||||
fi
|
|
||||||
echo "Loading VirtualBox kernel modules"
|
|
||||||
# trivial loading
|
|
||||||
for module in vbox{drv,netadp,netflt,pci}; do
|
|
||||||
modprobe $module &>/dev/null
|
|
||||||
done
|
|
||||||
# check
|
|
||||||
for module in vbox{drv,netadp,netflt,pci}; do
|
|
||||||
if ! grep -q "^${module}" /proc/modules; then
|
|
||||||
echo "Module ${module} could not be loaded"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
unload() {
|
|
||||||
echo "Unloading VirtualBox kernel modules"
|
|
||||||
# trivial unload
|
|
||||||
for module in vbox{pci,netflt,netadp,drv}; do
|
|
||||||
if grep -q "^${module}" /proc/modules; then
|
|
||||||
modprobe -r $module &>/dev/null
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
# check
|
|
||||||
for module in vbox{pci,drv,netadp,netflt}; do
|
|
||||||
if grep -q "^${module}" /proc/modules; then
|
|
||||||
echo "Module ${module} could not be unloaded"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
remove() {
|
|
||||||
unload
|
|
||||||
if (( USE_DKMS == 1 )); then
|
|
||||||
echo "Removing VirtualBox kernel modules with DKMS"
|
|
||||||
$DODKMS uninstall vboxhost vboxdrv vboxnetflt vboxnetadp > $LOG
|
|
||||||
else
|
|
||||||
echo "Removing VirtualBox kernel modules"
|
|
||||||
find "/lib/modules/$(uname -r)" -type f -regex '.*/vbox\(pci\|drv\|netadp\|netflt\).ko' -delete
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
setup() {
|
|
||||||
if (( USE_DKMS == 1 )); then
|
|
||||||
echo "Trying to register the VirtualBox kernel modules using DKMS"
|
|
||||||
$DODKMS install vboxhost "$INSTALL_VER" >> $LOG
|
|
||||||
else
|
|
||||||
remove
|
|
||||||
echo "Compiling VirtualBox kernel modules"
|
|
||||||
LOG="/tmp/vbox-install.log"
|
|
||||||
if ! $BUILDINTMP \
|
|
||||||
--save-module-symvers /tmp/vboxdrv-Module.symvers \
|
|
||||||
--module-source "$MODULE_SRC/vboxdrv" \
|
|
||||||
--no-print-directory install > $LOG 2>&1; then
|
|
||||||
echo "Look at $LOG to find out what went wrong"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
if ! $BUILDINTMP \
|
|
||||||
--use-module-symvers /tmp/vboxdrv-Module.symvers \
|
|
||||||
--module-source "$MODULE_SRC/vboxnetflt" \
|
|
||||||
--no-print-directory install >> $LOG 2>&1; then
|
|
||||||
echo "Look at $LOG to find out what went wrong"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
if ! $BUILDINTMP \
|
|
||||||
--use-module-symvers /tmp/vboxdrv-Module.symvers \
|
|
||||||
--module-source "$MODULE_SRC/vboxnetadp" \
|
|
||||||
--no-print-directory install >> $LOG 2>&1; then
|
|
||||||
echo "Look at $LOG to find out what went wrong"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
if ! $BUILDINTMP \
|
|
||||||
--use-module-symvers /tmp/vboxdrv-Module.symvers \
|
|
||||||
--module-source "$MODULE_SRC/vboxpci" \
|
|
||||||
--no-print-directory install >> $LOG 2>&1; then
|
|
||||||
echo "Look at $LOG to find out what went wrong"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
depmod -A
|
|
||||||
fi
|
|
||||||
echo -e "\n==> Make sure to load the required modules to use VirtualBox"
|
|
||||||
}
|
|
||||||
|
|
||||||
fixusb() {
|
|
||||||
# Build our device tree
|
|
||||||
for i in /sys/bus/usb/devices/*; do
|
|
||||||
if test -r "$i/dev"; then
|
|
||||||
dev="`cat "$i/dev" 2> /dev/null`"
|
|
||||||
major="`expr "$dev" : '\(.*\):' 2> /dev/null`"
|
|
||||||
minor="`expr "$dev" : '.*:\(.*\)' 2> /dev/null`"
|
|
||||||
class="`cat $i/bDeviceClass 2> /dev/null`"
|
|
||||||
sh "$INSTALL_DIR/VBoxCreateUSBNode.sh" "$major" "$minor" "$class" 2>/dev/null
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
setup)
|
|
||||||
setup
|
|
||||||
load
|
|
||||||
;;
|
|
||||||
fixusb)
|
|
||||||
fixusb
|
|
||||||
;;
|
|
||||||
remove)
|
|
||||||
remove
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "usage: $0 {setup|fixusb}"
|
|
||||||
esac
|
|
@ -1,11 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Creates the required USB nodes for VirtualBox
|
|
||||||
Wants=local-fs.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
RemainAfterExit=yes
|
|
||||||
ExecStart=/usr/bin/vboxsetup fixusb
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
@ -1,11 +0,0 @@
|
|||||||
# WebService Mandatory Variables
|
|
||||||
#VBOXWEB_USER=
|
|
||||||
|
|
||||||
# WebService Variables
|
|
||||||
#VBOXWEB_LOGFILE=
|
|
||||||
#$VBOXWEB_HOST=
|
|
||||||
#$VBOXWEB_PORT=
|
|
||||||
#$VBOXWEB_TIMEOUT=
|
|
||||||
#$VBOXWEB_CHECK_INTERVAL=
|
|
||||||
#$VBOXWEB_THREADS=
|
|
||||||
#$VBOXWEB_KEEPALIVE=
|
|
@ -1,17 +0,0 @@
|
|||||||
post_install () {
|
|
||||||
VBoxManage extpack install "/usr/share/virtualbox/extensions/Oracle_VM_VirtualBox_Extension_Pack-${1%%-*}.vbox-extpack" >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
pre_upgrade() {
|
|
||||||
post_remove $*
|
|
||||||
}
|
|
||||||
|
|
||||||
post_upgrade() {
|
|
||||||
post_install $*
|
|
||||||
}
|
|
||||||
|
|
||||||
post_remove() {
|
|
||||||
VBoxManage extpack uninstall "Oracle VM VirtualBox Extension Pack" >/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
# vim:set ts=2 sw=2 ft=sh et:
|
|
25
virtualbox/virtualbox-ext-vnc.install
Normal file
25
virtualbox/virtualbox-ext-vnc.install
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
#/bin/bash
|
||||||
|
|
||||||
|
# arg 1: the new package version
|
||||||
|
post_install() {
|
||||||
|
VBoxManage extpack install "/usr/share/virtualbox/extensions/VNC-${1%%-*}.vbox-extpack" >/dev/null
|
||||||
|
}
|
||||||
|
|
||||||
|
# arg 1: the new package version
|
||||||
|
# arg 2: the old package version
|
||||||
|
pre_upgrade() {
|
||||||
|
pre_remove "$2"
|
||||||
|
}
|
||||||
|
|
||||||
|
# arg 1: the new package version
|
||||||
|
# arg 2: the old package version
|
||||||
|
post_upgrade() {
|
||||||
|
post_install "$1"
|
||||||
|
}
|
||||||
|
|
||||||
|
# arg 1: the old package version
|
||||||
|
pre_remove() {
|
||||||
|
VBoxManage extpack uninstall 'VNC' >/dev/null
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:set ts=2 sw=2 ft=sh et:
|
@ -1,60 +0,0 @@
|
|||||||
created_rclocal=0
|
|
||||||
|
|
||||||
# arg 1: the new package version
|
|
||||||
post_install() {
|
|
||||||
vbox_create_workaround
|
|
||||||
|
|
||||||
# Run the VBoxLinuxAdditions Skript
|
|
||||||
/usr/share/virtualbox/guest-additions/VBoxLinuxAdditions.run
|
|
||||||
|
|
||||||
modprobe vboxsf
|
|
||||||
|
|
||||||
vbox_remove_workaround
|
|
||||||
|
|
||||||
# Show information
|
|
||||||
/bin/cat <<EOF
|
|
||||||
|
|
||||||
==> To start virtualbox guest service automatically, enable and
|
|
||||||
==> start the service through systemctl:
|
|
||||||
==> sudo systemctl enable vboxservice.service
|
|
||||||
==> sudo systemctl start vboxservice.service
|
|
||||||
EOF
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
# arg 1: the new package version
|
|
||||||
# arg 2: the old package version
|
|
||||||
post_upgrade() {
|
|
||||||
post_install "$1"
|
|
||||||
}
|
|
||||||
|
|
||||||
# arg 1: the old package version
|
|
||||||
post_remove() {
|
|
||||||
# ${1%-*} : version without pkgrel (4.2.2)
|
|
||||||
|
|
||||||
vbox_create_workaround
|
|
||||||
|
|
||||||
/opt/VBoxGuestAdditions-${1%-*}/uninstall.sh
|
|
||||||
|
|
||||||
vbox_remove_workaround
|
|
||||||
groupdel vboxsf >/dev/null 2>&1 || true
|
|
||||||
}
|
|
||||||
|
|
||||||
# Create rc.local file as workaround
|
|
||||||
vbox_create_workaround() {
|
|
||||||
# workaround: create /etc/rc.local, if not exists
|
|
||||||
if [ ! -e /etc/rc.local ]; then
|
|
||||||
touch /etc/rc.local
|
|
||||||
created_rclocal=1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# Remove rc.local, if we created this file
|
|
||||||
vbox_remove_workaround() {
|
|
||||||
# If created_rclocal, remove /etc/rc.local
|
|
||||||
if [ ${created_rclocal} -eq 1 ]; then
|
|
||||||
rm -f /etc/rc.local
|
|
||||||
fi
|
|
||||||
# Remove rc.vbox* files
|
|
||||||
rm -f /etc/rc.d/rc.vbox*
|
|
||||||
}
|
|
31
virtualbox/virtualbox-guest-dkms.conf
Normal file
31
virtualbox/virtualbox-guest-dkms.conf
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
## @file
|
||||||
|
# Linux DKMS config script for the VirtualBox guest kernel modules
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Copyright (C) 2006-2015 Oracle Corporation
|
||||||
|
#
|
||||||
|
# This file is part of VirtualBox Open Source Edition (OSE), as
|
||||||
|
# available from http://www.virtualbox.org. This file is free software;
|
||||||
|
# you can redistribute it and/or modify it under the terms of the GNU
|
||||||
|
# General Public License (GPL) as published by the Free Software
|
||||||
|
# Foundation, in version 2 as it comes in the "COPYING" file of the
|
||||||
|
# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
||||||
|
# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
||||||
|
#
|
||||||
|
|
||||||
|
PACKAGE_NAME="vboxguest"
|
||||||
|
PACKAGE_VERSION=@VERSION@_OSE
|
||||||
|
AUTOINSTALL=yes
|
||||||
|
|
||||||
|
BUILT_MODULE_NAME[0]="vboxguest"
|
||||||
|
BUILT_MODULE_LOCATION[0]="vboxguest"
|
||||||
|
DEST_MODULE_LOCATION[0]="/kernel/misc"
|
||||||
|
|
||||||
|
BUILT_MODULE_NAME[1]="vboxsf"
|
||||||
|
BUILT_MODULE_LOCATION[1]="vboxsf"
|
||||||
|
DEST_MODULE_LOCATION[1]="/kernel/misc"
|
||||||
|
|
||||||
|
BUILT_MODULE_NAME[2]="vboxvideo"
|
||||||
|
BUILT_MODULE_LOCATION[2]="vboxvideo"
|
||||||
|
DEST_MODULE_LOCATION[2]="/kernel/misc"
|
12
virtualbox/virtualbox-guest-dkms.install
Normal file
12
virtualbox/virtualbox-guest-dkms.install
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# arg 1: the new package version
|
||||||
|
# arg 2: the old package version
|
||||||
|
post_upgrade() {
|
||||||
|
if (( $(vercmp $2 5.0.16-3) < 0 )); then
|
||||||
|
echo '==> Since version 5.0.16-2 kernel modules are loaded at boot by systemd-modules-load.'
|
||||||
|
echo '==> Read modules-load.d man page to disable them.'
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:set ts=2 sw=2 ft=sh et:
|
23
virtualbox/virtualbox-guest-utils.install
Normal file
23
virtualbox/virtualbox-guest-utils.install
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# arg 1: the new package version
|
||||||
|
post_install() {
|
||||||
|
systemd-sysusers virtualbox-guest-utils.conf
|
||||||
|
}
|
||||||
|
|
||||||
|
# arg 1: the new package version
|
||||||
|
# arg 2: the old package version
|
||||||
|
post_upgrade() {
|
||||||
|
post_install "$1"
|
||||||
|
# rename /etc/rc.d/vboxservice
|
||||||
|
if [[ $(vercmp "$2" 4.1.18-3) < 0 ]]; then
|
||||||
|
echo "==> rc.d vbox-service script was renamed to vboxservice."
|
||||||
|
fi
|
||||||
|
# fix gid of vboxsf
|
||||||
|
if [[ $(vercmp "$2" 4.1.18-4) < 0 ]]; then
|
||||||
|
groupmod -g 109 vboxsf
|
||||||
|
fi
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:set ts=2 sw=2 ft=sh et:
|
1
virtualbox/virtualbox-guest-utils.sysusers
Normal file
1
virtualbox/virtualbox-guest-utils.sysusers
Normal file
@ -0,0 +1 @@
|
|||||||
|
g vboxsf 109 -
|
35
virtualbox/virtualbox-host-dkms.conf
Normal file
35
virtualbox/virtualbox-host-dkms.conf
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
## @file
|
||||||
|
# Linux DKMS config script for the VirtualBox guest kernel modules
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Copyright (C) 2006-2015 Oracle Corporation
|
||||||
|
#
|
||||||
|
# This file is part of VirtualBox Open Source Edition (OSE), as
|
||||||
|
# available from http://www.virtualbox.org. This file is free software;
|
||||||
|
# you can redistribute it and/or modify it under the terms of the GNU
|
||||||
|
# General Public License (GPL) as published by the Free Software
|
||||||
|
# Foundation, in version 2 as it comes in the "COPYING" file of the
|
||||||
|
# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
||||||
|
# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
||||||
|
#
|
||||||
|
|
||||||
|
PACKAGE_NAME="vboxhost"
|
||||||
|
PACKAGE_VERSION=@VERSION@_OSE
|
||||||
|
AUTOINSTALL=yes
|
||||||
|
|
||||||
|
BUILT_MODULE_NAME[0]="vboxdrv"
|
||||||
|
BUILT_MODULE_LOCATION[0]="vboxdrv"
|
||||||
|
DEST_MODULE_LOCATION[0]="/kernel/misc"
|
||||||
|
|
||||||
|
BUILT_MODULE_NAME[1]="vboxnetflt"
|
||||||
|
BUILT_MODULE_LOCATION[1]="vboxnetflt"
|
||||||
|
DEST_MODULE_LOCATION[1]="/kernel/misc"
|
||||||
|
|
||||||
|
BUILT_MODULE_NAME[2]="vboxnetadp"
|
||||||
|
BUILT_MODULE_LOCATION[2]="vboxnetadp"
|
||||||
|
DEST_MODULE_LOCATION[2]="/kernel/misc"
|
||||||
|
|
||||||
|
BUILT_MODULE_NAME[3]="vboxpci"
|
||||||
|
BUILT_MODULE_LOCATION[3]="vboxpci"
|
||||||
|
DEST_MODULE_LOCATION[3]="/kernel/misc"
|
12
virtualbox/virtualbox-host-dkms.install
Normal file
12
virtualbox/virtualbox-host-dkms.install
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# arg 1: the new package version
|
||||||
|
# arg 2: the old package version
|
||||||
|
post_upgrade() {
|
||||||
|
if (( $(vercmp $2 5.0.16-3) < 0 )); then
|
||||||
|
echo '==> Since version 5.0.16-2 kernel modules are loaded at boot by systemd-modules-load.'
|
||||||
|
echo '==> Read modules-load.d man page to disable them.'
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:set ts=2 sw=2 ft=sh et:
|
@ -1,4 +0,0 @@
|
|||||||
vboxdrv
|
|
||||||
vboxnetadp
|
|
||||||
vboxnetflt
|
|
||||||
vboxpci
|
|
@ -1,88 +1,15 @@
|
|||||||
#!/bin/bash
|
# vim:set ts=2 sw=2 ft=sh et:
|
||||||
|
|
||||||
update_databases() {
|
|
||||||
# Update mime database
|
|
||||||
type -P update-mime-database &>/dev/null &&
|
|
||||||
update-mime-database /usr/share/mime &>/dev/null
|
|
||||||
|
|
||||||
# Update xdg icon database
|
|
||||||
type -P xdg-icon-resource &>/dev/null &&
|
|
||||||
xdg-icon-resource forceupdate --theme hicolor &>/dev/null
|
|
||||||
|
|
||||||
# Update desktop database
|
|
||||||
type -P update-desktop-database &>/dev/null &&
|
|
||||||
update-desktop-database -q &>/dev/null
|
|
||||||
}
|
|
||||||
|
|
||||||
# arg 1: the new package version
|
# arg 1: the new package version
|
||||||
post_install() {
|
post_install() {
|
||||||
# Add vboxusers group, GID 108 is reserved (http://wiki.archlinux.org/index.php/UID_and_GID_list),
|
systemd-sysusers virtualbox.conf
|
||||||
getent group vboxusers &> /dev/null || groupadd -f -g 108 vboxusers
|
|
||||||
|
|
||||||
# Load new udev rule for module vboxdrv
|
|
||||||
udevadm control --reload-rules
|
|
||||||
|
|
||||||
# Update databases
|
|
||||||
update_databases
|
|
||||||
|
|
||||||
# Show warnings
|
|
||||||
cat <<EOF
|
|
||||||
|
|
||||||
==> Remember to add allowed users to the vboxusers group:
|
|
||||||
==> # gpasswd -a USERNAME vboxusers
|
|
||||||
==
|
|
||||||
==> To compile/load virtualbox modules automatically at startup you can systemctl enable dkms.service
|
|
||||||
==
|
|
||||||
==> To build and install your modules
|
|
||||||
==> # run dkms autoinstall
|
|
||||||
==> or
|
|
||||||
==> # vboxsetup setup
|
|
||||||
==> if you don't use dkms
|
|
||||||
EOF
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# arg 1: the new package version
|
# arg 1: the new package version
|
||||||
# arg 2: the old package version
|
# arg 2: the old package version
|
||||||
pre_upgrade() {
|
|
||||||
(($(vercmp $2 '4.3.14-3') < 0 )) && /usr/bin/vboxsetup remove || true
|
|
||||||
pre_remove "$2"
|
|
||||||
|
|
||||||
# Remove any stuff remaining from the module compilation
|
|
||||||
rm -Rf "/opt/VirtualBox"
|
|
||||||
}
|
|
||||||
|
|
||||||
post_upgrade() {
|
post_upgrade() {
|
||||||
post_install
|
if (( $(vercmp $2 5.0.16-1) < 0 )); then
|
||||||
}
|
echo '==> Since version 5.0.14-2 kernel modules are provided via dkms'
|
||||||
|
echo '==> Check you have the headers matching your kernel installed'
|
||||||
pre_remove() {
|
|
||||||
# Stop running services
|
|
||||||
_service="vboxweb.service"
|
|
||||||
systemctl is-active ${_service} &>/dev/null
|
|
||||||
if [[ "$?" -eq 0 ]]; then
|
|
||||||
systemctl stop ${_service}
|
|
||||||
fi
|
fi
|
||||||
systemctl is-enabled ${_service} &>/dev/null
|
|
||||||
if [[ "$?" -eq 0 ]]; then
|
|
||||||
systemctl disable ${_service}
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Remove modules
|
|
||||||
[[ -n $1 ]] && dkms remove vboxhost/${1%-*} --all &>/dev/null || true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
post_remove() {
|
|
||||||
# Remove any stuff remaining from the module compilation
|
|
||||||
rm -Rf "/opt/VirtualBox"
|
|
||||||
|
|
||||||
# Remove any run files
|
|
||||||
rm -Rf "/var/run/VirtualBox"
|
|
||||||
|
|
||||||
# Update databases
|
|
||||||
update_databases
|
|
||||||
|
|
||||||
# remove vboxusers group
|
|
||||||
groupdel vboxusers &>/dev/null || true
|
|
||||||
}
|
|
||||||
|
|
||||||
# vim:set ts=2 sw=2 ft=sh et:
|
|
||||||
|
1
virtualbox/virtualbox.sysusers
Normal file
1
virtualbox/virtualbox.sysusers
Normal file
@ -0,0 +1 @@
|
|||||||
|
g vboxusers 108 -
|
31
xalan-c/PKGBUILD
Normal file
31
xalan-c/PKGBUILD
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# $Id$
|
||||||
|
# Maintainer: Roman Kyrylych <Roman.Kyrylych@gmail.com>
|
||||||
|
# Contributor: William Rea <sillywilly@gmail.com>
|
||||||
|
|
||||||
|
pkgname=xalan-c
|
||||||
|
pkgver=1.11
|
||||||
|
pkgrel=1
|
||||||
|
epoch=1
|
||||||
|
pkgdesc="A XSLT processor for transforming XML documents"
|
||||||
|
arch=('i686' 'x86_64')
|
||||||
|
url="http://xalan.apache.org/"
|
||||||
|
license=('APACHE')
|
||||||
|
depends=('xerces-c')
|
||||||
|
source=("http://www.eu.apache.org/dist/xalan/xalan-c/sources/xalan_c-$pkgver-src.tar.gz"{,.asc})
|
||||||
|
md5sums=('9227d3e7ab375da3c643934b33a585b8'
|
||||||
|
'SKIP')
|
||||||
|
validpgpkeys=('78C476CF17BB57E17475C80B828B1A23586A109E') # David N. Bertoni <david_n_bertoni@us.ibm.com>
|
||||||
|
|
||||||
|
build() {
|
||||||
|
export XALANCROOT=${srcdir}/$pkgname-$pkgver/c
|
||||||
|
cd $pkgname-$pkgver/c
|
||||||
|
|
||||||
|
./runConfigure -p linux -c gcc -x g++ -P/usr
|
||||||
|
# ./configure --prefix=/usr
|
||||||
|
make -j1
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd $pkgname-$pkgver/c
|
||||||
|
make DESTDIR="$pkgdir" install
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user