blob: bb4a12e51134ac98b24e73f700dc098c1b4ad9d3 (
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
|
version '12.1.0.2.0'
// load binaries from random internet sources... :( fuck you oracle
final downloadSqlplus = makeDownloadTask(
url: "http://cmsrep.cern.ch/cms/cpt/Software/download/cms/SOURCES/cache/" +
"cd00b0b11561c3ebd1518f9eaa8b7721/instantclient-sqlplus-linux.x64-12.1.0.2.0.zip",
sha256: 'b52a7fca7279d4e9584674ea6f24464411f62f6ba95a2a16ec92979e99cac4bd')
task unpackSqlplus(type: Copy) {
from zipTree(downloadSqlplus.dest)
into file("${buildDir}/unpacked/dist")
eachFile { FileCopyDetails fcd ->
fcd.path = fcd.path.substring(path.indexOf('/') + 1)
}
}
unpackSqlplus.dependsOn(downloadSqlplus)
final downloadClient = makeDownloadTask(
url: "http://202.74.244.40/instantclient-basic-linux.x64-12.1.0.2.0.zip",
sha256: 'c4e1b7201f23bc855782157ebeaaa3635eb6f5f01189bc1d3335bbdadfcb1fbb')
task unpackClient(type: Copy) {
from zipTree(downloadClient.dest)
into file("${buildDir}/unpacked/dist")
eachFile { FileCopyDetails fcd ->
fcd.path = fcd.path.substring(path.indexOf('/') + 1)
}
}
unpackClient.dependsOn(downloadClient)
ospackage {
into "/opt/${project.name}"
from unpackSqlplus.outputs.files
from unpackClient.outputs.files
}
activator.bin['sqlplus'] = "LD_LIBRARY_PATH=/opt/${project.name} /opt/${project.name}/sqlplus"
|