From 523fac8d49f08eeb8589c0f26d29e66f4a56b3f8 Mon Sep 17 00:00:00 2001 From: "R. Steve McKown" Date: Fri, 23 Apr 2010 13:00:17 -0600 Subject: [PATCH] Run tos-install-jni at postinstall time. --- rules | 4 ++++ tinyos-tools.postinst | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 tinyos-tools.postinst diff --git a/rules b/rules index dcc48766..206ad31b 100755 --- a/rules +++ b/rules @@ -106,6 +106,10 @@ binary-arch: checkroot build install : # Build the tinyos-tools package $(install_dir) $(dtmp)/$(toolspkg)/DEBIAN + $(install_script) debian/$(toolspkg).postinst \ + $(dtmp)/$(toolspkg)/DEBIAN/postinst + : # $(install_script) debian/$(toolspkg).postrm \ + : # $(dtmp)/$(toolspkg)/DEBIAN/postrm $(install_dir) $(dtmp)/$(toolspkg)/usr/share/doc/$(toolspkg)/ $(install_file) debian/changelog \ $(dtmp)/$(toolspkg)/usr/share/doc/$(toolspkg)/changelog.Debian diff --git a/tinyos-tools.postinst b/tinyos-tools.postinst new file mode 100644 index 00000000..6c78b024 --- /dev/null +++ b/tinyos-tools.postinst @@ -0,0 +1,7 @@ +#! /bin/sh + +set -e + +if [ "$1" = "configure" ]; then + sudo tos-install-jni +fi -- 2.39.2