diff options
author | Magnus Feuer <mfeuer@jaguarlandrover.com> | 2016-02-04 19:14:39 -0800 |
---|---|---|
committer | Magnus Feuer <mfeuer@jaguarlandrover.com> | 2016-02-04 19:14:39 -0800 |
commit | a7f3bc345c3616793163bb284d226f783fb88db9 (patch) | |
tree | 2e187da52d7a2bcee88f62dd46ea37e993625878 /debian_template | |
parent | 7c49e09cdae54d1de23bc0aaa19f94e60b93b95b (diff) | |
parent | 52e8b1a77a8c19b1fba5b3f9a344e6f90f30e993 (diff) | |
download | rvi_core-a7f3bc345c3616793163bb284d226f783fb88db9.tar.gz |
Merge branch 'mfeuer-0.5.0_ubuntu_build' of github.com:magnusfeuer/rvi_core into mfeuer-0.5.0_ubuntu_build
Diffstat (limited to 'debian_template')
-rw-r--r-- | debian_template/README.Debian | 10 | ||||
-rw-r--r-- | debian_template/README.source | 6 | ||||
-rw-r--r-- | debian_template/changelog | 5 | ||||
-rw-r--r-- | debian_template/compat | 1 | ||||
-rw-r--r-- | debian_template/control | 13 | ||||
-rw-r--r-- | debian_template/copyright | 11 | ||||
-rw-r--r-- | debian_template/docs | 0 | ||||
-rwxr-xr-x | debian_template/rules | 23 | ||||
-rw-r--r-- | debian_template/rvi.lintian-overrides | 3 | ||||
-rw-r--r-- | debian_template/rvi.postinst | 50 | ||||
-rw-r--r-- | debian_template/rvi.postrm | 41 | ||||
-rw-r--r-- | debian_template/source/format | 1 | ||||
-rw-r--r-- | debian_template/source/lintian-overrides | 1 |
13 files changed, 165 insertions, 0 deletions
diff --git a/debian_template/README.Debian b/debian_template/README.Debian new file mode 100644 index 0000000..f80c683 --- /dev/null +++ b/debian_template/README.Debian @@ -0,0 +1,10 @@ +rvi for Debian +-------------- + +Will rely on existing Erlang installation to work. + +We will copy out the Erlang VM BEAM files to /opt/rvi and the configuration files to /etc/opt/rvi + +/opt/rvi/rvi.sh is the main control program. + + -- Magnus Feuer <mfeuer@jaguarlandrover.com> Fri, 27 Nov 2015 15:34:39 -0800 diff --git a/debian_template/README.source b/debian_template/README.source new file mode 100644 index 0000000..9e3c927 --- /dev/null +++ b/debian_template/README.source @@ -0,0 +1,6 @@ +rvi for Debian +-------------- + + + -- Magnus Feuer <mfeuer@jaguarlandrover.com> Fri, 27 Nov 2015 15:34:39 -0800 + diff --git a/debian_template/changelog b/debian_template/changelog new file mode 100644 index 0000000..62e7b16 --- /dev/null +++ b/debian_template/changelog @@ -0,0 +1,5 @@ +rvi (0.5.0-1ubuntu1) trusty; urgency=low + + * Initial release + + -- Magnus Feuer <mfeuer@jaguarlandrover.com> Fri, 27 Nov 2015 15:34:39 -0800 diff --git a/debian_template/compat b/debian_template/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian_template/compat @@ -0,0 +1 @@ +9 diff --git a/debian_template/control b/debian_template/control new file mode 100644 index 0000000..9465e15 --- /dev/null +++ b/debian_template/control @@ -0,0 +1,13 @@ +Source: rvi +Section: net +Priority: optional +Maintainer: Magnus Feuer <mfeuer@jaguarlandrover.com> +Build-Depends: debhelper (>= 9), libbluetooth-dev, esl-erlang (>= 1:18.2) +Standards-Version: 3.9.5 +Homepage: https://github.com/PDXostc/rvi_core + +Package: rvi +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends},bluez, esl-erlang (>= 1:18.2), python-jsonrpclib (>= 0.1.3-1build1), python (>= 2.7.5-5ubuntu3) +Description: Remote Vehicle Interaction + GENIVI Remote Vehicle Interaction Core diff --git a/debian_template/copyright b/debian_template/copyright new file mode 100644 index 0000000..89597cf --- /dev/null +++ b/debian_template/copyright @@ -0,0 +1,11 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: rvi +Source: http://github.com/PDXostc/rvi_core + +Files: * +Copyright: Copyright 2014,2015,2016 Jaguar Land Rover +License: MPL-2.0 + This program is licensed under the terms and conditions of the + Mozilla Public License, version 2.0. The full text of the + Mozilla Public License is at https://www.mozilla.org/MPL/2.0/ + diff --git a/debian_template/docs b/debian_template/docs new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/debian_template/docs diff --git a/debian_template/rules b/debian_template/rules new file mode 100755 index 0000000..cec0914 --- /dev/null +++ b/debian_template/rules @@ -0,0 +1,23 @@ +#!/usr/bin/make -f +# -*- makefile --* + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +%: + dh $@ + +override_dh_auto_install: + ./scripts/rvi_install \ + -s ./debian/rvi \ + -k priv/keys/insecure_device_key.pem \ + -r priv/certificates/insecure_root_cert.crt \ + -d priv/certificates/insecure_device_cert.crt \ + -c priv/credentials/insecure_credential.jwt \ + -l ./debian/rvi/var/log/rvi ./debian/rvi/usr/lib/rvi_core +# Copy out rvi_ctl to /usr/bin + install -D -m 0755 ./debian/rvi/usr/lib/rvi_core/rvi_ctl ./debian/rvi/usr/bin/rvi_ctl +# Install default config + install -D -m 0644 ./priv/config/rvi_ubuntu.config ./debian/rvi/etc/rvi/rvi.config +# Install start/stop scripts + install -D -m 0755 ./scripts/rvi.debian.ubuntu ./debian/rvi/etc/init.d/rvi diff --git a/debian_template/rvi.lintian-overrides b/debian_template/rvi.lintian-overrides new file mode 100644 index 0000000..c307106 --- /dev/null +++ b/debian_template/rvi.lintian-overrides @@ -0,0 +1,3 @@ +executable-not-elf-or-script +missing-dep-for-interpreter +binary-without-manpage
\ No newline at end of file diff --git a/debian_template/rvi.postinst b/debian_template/rvi.postinst new file mode 100644 index 0000000..f6d5de5 --- /dev/null +++ b/debian_template/rvi.postinst @@ -0,0 +1,50 @@ +#!/bin/sh +# postinst script for rvi +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <postinst> `abort-remove' +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +# source debconf library +. /usr/share/debconf/confmodule + +case "$1" in + + configure) + # Set up our config for apache + cat /proc/sys/kernel/random/uuid > /etc/rvi/device_id + echo "RVI Device ID set to $(cat /etc/rvi/device_id) in /etc/rvi/device_id" + update-rc.d rvi defaults + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + exit 0 + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +db_stop + +exit 0 diff --git a/debian_template/rvi.postrm b/debian_template/rvi.postrm new file mode 100644 index 0000000..0ded6f8 --- /dev/null +++ b/debian_template/rvi.postrm @@ -0,0 +1,41 @@ +#!/bin/sh +# postrm script for rvi +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <postinst> `abort-remove' +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +# source debconf library +. /usr/share/debconf/confmodule + +case "$1" in + + remove|purge|upgrde|disappear) + rm -f /etc/init.d/rvi + update-rc.d rvi remove + ;; + + *) + exit 0 + ;; + + +esac + +#DEBHELPER# + +db_stop + +exit 0 diff --git a/debian_template/source/format b/debian_template/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian_template/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian_template/source/lintian-overrides b/debian_template/source/lintian-overrides new file mode 100644 index 0000000..463abe9 --- /dev/null +++ b/debian_template/source/lintian-overrides @@ -0,0 +1 @@ +source-is-missing |