diff options
author | Yves Fischer <yves.fischer@cern.ch> | 2016-12-01 13:35:20 +0100 |
---|---|---|
committer | Yves Fischer <yves.fischer@cern.ch> | 2016-12-01 13:35:52 +0100 |
commit | 855b88202f7e91f47bd2b285e055546bc8c3f51f (patch) | |
tree | a0577f2190c2c4d7bf5dd2d6bcaefbb0f9eb1918 /packages/sqlplus/build.gradle | |
parent | e0a261fe574772df3fa6dabea5e41d50fb419cad (diff) | |
download | debian-packages-855b88202f7e91f47bd2b285e055546bc8c3f51f.tar.gz debian-packages-855b88202f7e91f47bd2b285e055546bc8c3f51f.zip |
Add sqlplus
Diffstat (limited to 'packages/sqlplus/build.gradle')
-rw-r--r-- | packages/sqlplus/build.gradle | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/packages/sqlplus/build.gradle b/packages/sqlplus/build.gradle new file mode 100644 index 0000000..bb4a12e --- /dev/null +++ b/packages/sqlplus/build.gradle @@ -0,0 +1,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" + |