blob: f50133f95d98377fdba77d1b9a10ff1a28951d8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
# Mantainer: RonaldMcDaddy <wannes.demeyer@protonmail.com>
# Contributor: Tinh Truong <xuantinh at gmail dot com>
# Contributor: Cedric Sougne <cedric@sougne.name>
# Contributor: untseac
# Contributor: siasia
# Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>
pkgbase=oracle-xe-11g
pkgname=oracle-xe-11g
pkgver=11.2.0_1.0
pkgrel=4
pkgdesc="A non free DBMS (legacy 11g version)"
url="http://www.oracle.com/"
license=('custom')
arch=('x86_64')
provides=('oracle-xe')
options=('!strip')
depends=('libaio>=0.3.104' 'gcc>=4.1.2' 'binutils>=2.16.91.0.5' 'make>=3.80' 'glibc>=2.3.4-2.41' 'bc' 'net-tools')
install='oracle.install'
source=(
'manual://download/file/from/oracle/page/oracle-xe-11.2.0-1.0.x86_64.rpm.zip'
'oracle_env.csh'
'oracle_env.sh'
'oracle-xe'
'oracle-xe.conf'
'listener.ora'
'oracle-xe.service'
)
DLAGENTS+=('manual::/usr/bin/echo The source file for this package needs to be downloaded manually, since it requires a login and is not redistributable. Please visit https://www.oracle.com/technetwork/database/database-technologies/express-edition/downloads/xe-prior-releases-5172097.html')
md5sums=(
'dd7881a55569d890241f11cd0eeb7d48'
'cff2a6dbbbbf4d3454c05970183cc1b8'
'6dd1d97571b823e8f682f290edeb9e7b'
'e558d7dcb9e455f8cb03db8638832774'
'5a3eaff3cb867d97cd250f04fe372ae7'
'4d4a2e1bcc29b9c1fd197b42ccc4e0ac'
'3dd923ac2df9fd38827fc9fc0048273a'
)
build() {
cd $srcdir
bsdtar -xf Disk1/oracle-xe-${pkgver/_/-}.x86_64.rpm
}
package() {
cd $srcdir
mkdir -p $pkgdir/etc/rc.d
cp $srcdir/oracle-xe $pkgdir/etc/rc.d/
chmod +x $pkgdir/etc/rc.d/oracle-xe
mkdir -p $pkgdir/usr/lib
mv $srcdir/u01/app/oracle $pkgdir/usr/lib/
# Fix the listener.ora
cp -f $srcdir/listener.ora $pkgdir/usr/lib/oracle/product/11.2.0/xe/network/admin/
find $pkgdir -exec chmod 755 {} \;
# Export environment variables
mkdir -p $pkgdir/etc/profile.d
cp $srcdir/oracle_env.* $pkgdir/etc/profile.d/
chmod +x $pkgdir/etc/profile.d/oracle_env.*
# Desktop files
cp -a $srcdir/usr $pkgdir
# LD_LIBRARY_PATH
mkdir -p $pkgdir/etc/ld.so.conf.d/
cp $srcdir/oracle-xe.conf $pkgdir/etc/ld.so.conf.d/
# License
mkdir -p $pkgdir/usr/share/licenses/custom/$pkgname
cp $srcdir/usr/share/doc/oracle_xe/LICENSE $pkgdir/usr/share/licenses/custom/$pkgname
# Directory corrections
corr1="s_/u01/app/_/usr/lib/_g"
corr2="s_/usr/bin/groups_/bin/groups_g"
sed -i "${corr1}" $pkgdir/usr/lib/oracle/product/11.2.0/xe/config/scripts/*
sed -i "${corr2}" $pkgdir/usr/lib/oracle/product/11.2.0/xe/config/scripts/*
sed -i "${corr1}" $pkgdir/usr/lib/oracle/product/11.2.0/xe/odbc/lib/env_odbc.mk
sed -i "${corr1}" $pkgdir/usr/share/applications/*
sed -i "${corr1}" $pkgdir/usr/lib/oracle/product/11.2.0/xe/bin/oracle_env.*
# For systemd
mkdir -p $pkgdir/etc/systemd/system
cp $srcdir/oracle-xe.service $pkgdir/etc/systemd/system
}
|