summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules50
1 files changed, 50 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..50f0e38
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,50 @@
+#!/usr/bin/make -f
+
+PACKAGE = oracle-instantclient-basic
+
+SHELL := sh -e
+
+%:
+ dh ${@}
+
+execute_after_dh_auto_clean:
+ rm -rf build
+
+override_dh_auto_build:
+ mkdir -p build
+ unzip instantclient*.zip -d build
+
+override_dh_auto_install:
+ mkdir -p debian/$(PACKAGE)/usr/lib/oracle-instantclient
+ cp -a build/instantclient*/* debian/$(PACKAGE)/usr/lib/oracle-instantclient
+
+ # removing unused files
+ rm -f debian/$(PACKAGE)/usr/lib/oracle-instantclient/*_LICENSE
+
+ # moving etc
+ mkdir -p debian/$(PACKAGE)/etc
+ mv debian/$(PACKAGE)/usr/lib/oracle-instantclient/network/admin debian/$(PACKAGE)/etc/oracle-instantclient
+ rmdir debian/$(PACKAGE)/usr/lib/oracle-instantclient/network
+
+ # moving doc
+ mkdir -p debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)
+ mv debian/$(PACKAGE)/usr/lib/oracle-instantclient/*_README debian/$(PACKAGE)/usr/share/doc/$(PACKAGE)/README.txt
+
+ # adding bin
+ mkdir -p debian/$(PACKAGE)/usr/bin
+ for BIN in adrci genezi uidrvci; \
+ do \
+ cp debian/local/bin.sh debian/$(PACKAGE)/usr/bin/$${BIN}; \
+ done
+
+override_dh_dwz:
+ # disabled
+
+override_dh_shlibdeps:
+ dh_shlibdeps -l$(CURDIR)/debian/$(PACKAGE)/usr/lib/oracle-instantclient
+
+override_dh_strip:
+ # disabled
+
+override_dh_strip_nondeterminism:
+ # disabled