From: R. Steve McKown Date: Fri, 23 Apr 2010 19:00:17 +0000 (-0600) Subject: Run tos-install-jni at postinstall time. X-Git-Tag: debian/2.1.1-4.3-1tmi~7^2~2 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=523fac8d49f08eeb8589c0f26d29e66f4a56b3f8 Run tos-install-jni at postinstall time. --- 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