summaryrefslogtreecommitdiffstats
path: root/perl-unix-syslog/perl-unix-syslog.install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-unix-syslog/perl-unix-syslog.install')
-rw-r--r--perl-unix-syslog/perl-unix-syslog.install19
1 files changed, 19 insertions, 0 deletions
diff --git a/perl-unix-syslog/perl-unix-syslog.install b/perl-unix-syslog/perl-unix-syslog.install
new file mode 100644
index 0000000..641c385
--- /dev/null
+++ b/perl-unix-syslog/perl-unix-syslog.install
@@ -0,0 +1,19 @@
+post_install()
+{
+
+ echo -n "module test... "
+
+ perl -mUnix::Syslog -e "exit 0;" 2> /dev/null && echo 'pass.' || echo 'fail.'
+
+}
+
+post_upgrade()
+{
+ post_install
+}
+
+op=$1
+
+shift
+
+$op $*