summaryrefslogtreecommitdiff
path: root/autodeps/solaris.prov
diff options
context:
space:
mode:
Diffstat (limited to 'autodeps/solaris.prov')
-rw-r--r--autodeps/solaris.prov14
1 files changed, 14 insertions, 0 deletions
diff --git a/autodeps/solaris.prov b/autodeps/solaris.prov
new file mode 100644
index 0000000..6e0fe9f
--- /dev/null
+++ b/autodeps/solaris.prov
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# This script reads filenames from STDIN and outputs any relevant provides
+# information that needs to be included in the package.
+
+PATH=/usr/bin:/usr/ccs/bin:/usr/sbin:/sbin
+export PATH
+
+filelist=`grep "lib.*\\.so" | xargs /usr/ucb/file -L 2>/dev/null |\
+ grep "ELF.*dynamic lib" | cut -d: -f1 | sort -u`
+for I in $filelist; do
+ basename $I
+done
+