diff options
author | Magnus Feuer <mfeuer@jaguarllandrover.com> | 2015-11-27 17:18:54 -0800 |
---|---|---|
committer | Magnus Feuer <mfeuer@jaguarllandrover.com> | 2015-11-27 17:18:54 -0800 |
commit | 64633ff243c602747826d547f38524992e7ec1eb (patch) | |
tree | 6ab116bbebfdfaf5c4054db778a9452a068d81b9 | |
parent | d302616c273d1c1b1137d3d45cc1d1529707d45f (diff) | |
download | rvi_core-64633ff243c602747826d547f38524992e7ec1eb.tar.gz |
First stab at debian packaging
-rw-r--r-- | Makefile | 51 | ||||
-rw-r--r-- | debian/README.Debian | 10 | ||||
-rw-r--r-- | debian/README.source | 6 | ||||
-rw-r--r-- | debian/changelog | 5 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 13 | ||||
-rw-r--r-- | debian/copyright | 12 | ||||
-rw-r--r-- | debian/docs | 0 | ||||
-rwxr-xr-x | debian/rules | 15 | ||||
-rw-r--r-- | debian/source/format | 1 |
10 files changed, 104 insertions, 10 deletions
@@ -12,6 +12,27 @@ .PHONY: all deps compile clean rpm rpmclean +SRC_LIST=BUILD.md \ + CONFIGURE.md \ + doc \ + LICENSE \ + Makefile \ + README.md \ + rebar \ + rebar.config \ + rel \ + RELEASE.md \ + scripts/setup_gen \ + scripts/rvi.service \ + scripts/rvi.sh \ + scripts/rvi_install.sh \ + components \ + ebin \ + src \ + rvi_sample.config \ + rvi_yocto.config \ + TODO + VERSION=0.4.0 all: deps compile @@ -25,28 +46,38 @@ compile: recomp: ./rebar compile skip_deps=true -clean: rpmclean +clean: ./rebar clean -rpmclean: +debian_clean: + rm -rf ./debian_build + +rpm_clean: rm -rf ./rpm/BUILD/* \ ./rpm/BUILDROOT/* \ ./rpm/RPMS/* \ ./rpm/SOURCES/* \ ./rpm/SRPMS/* -# Create a SOURCES tarball for RPM -rpm_tarball: rpmclean clean - tar czf /tmp/rvi-$(VERSION).tgz BUILD.md CONFIGURE.md doc \ - LICENSE Makefile README.md rebar rebar.config rel \ - RELEASE.md rpm scripts/setup_gen scripts/rvi \ - scripts/rvi.service scripts/rvi_node.sh scripts/rvi.sh \ +# Create a source tarball +src_tarball: clean + tar czf ./rvi-$(VERSION).tgz $(SRC_LIST) components rvi_sample.config scripts/setup_rvi_node.sh src \ TODO - mv /tmp/rvi-$(VERSION).tgz ./rpm/SOURCES/ +# Create a SOURCES tarball for RPM +rpm_tarball: clean rpm_clean + tar czf ./rvi-$(VERSION).tgz $(SRC_LIST) rpm + mv ./rvi-$(VERSION).tgz ./rpm/SOURCES/ + +# Create a debian tarball +debian_package: clean debian_clean + install --mode=0755 -d ./debian_build + tar czf ./debian_build/rvi_$(VERSION).orig.tar.gz --transform="s|^|./rvi-$(VERSION)/|" $(SRC_LIST) debian + (cd ./debian_build; tar xf rvi_$(VERSION).orig.tar.gz) + (cd ./debian_build/rvi-$(VERSION); debuild -us -uc) -rpm: rpm_tarball +rpm: rpmclean rpm_tarball rpmbuild --define "_topdir $$PWD/rpm" -ba rpm/SPECS/rvi-$(VERSION).spec install: # deps compile diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 0000000..f80c683 --- /dev/null +++ b/debian/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/README.source b/debian/README.source new file mode 100644 index 0000000..9e3c927 --- /dev/null +++ b/debian/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/changelog b/debian/changelog new file mode 100644 index 0000000..cc4feb0 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +rvi (0.4.0-1ubuntu1) trusty; urgency=low + + * Initial release + + -- Magnus Feuer <mfeuer@jaguarlandrover.com> Fri, 27 Nov 2015 15:34:39 -0800 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..3179b4f --- /dev/null +++ b/debian/control @@ -0,0 +1,13 @@ +Source: rvi +Section: Network +Priority: optional +Maintainer: Magnus Feuer <mfeuer@jaguarlandrover.com> +Build-Depends: debhelper (>= 9), libbluetooth-dev, erlang (= 1:16.b.3-dfsg-1ubuntu2.1) +Standards-Version: 3.9.5 +Homepage: https://github.com/PDXostc/rvi_core + +Package: rvi +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends},bluez, erlang (= 1:16.b.3-dfsg-1ubuntu2.1) +Description: Remote Vehicle Interaction + GENIVI Remote Vehicle Interaction Transport diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..8b4b34b --- /dev/null +++ b/debian/copyright @@ -0,0 +1,12 @@ +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/docs b/debian/docs new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/debian/docs diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..a5b1397 --- /dev/null +++ b/debian/rules @@ -0,0 +1,15 @@ +#!/usr/bin/make -f +# -*- makefile --* + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +%: + dh $@ + +override_dh_auto_install: + echo "YESSSSSSS" + $(MAKE) DESTDIR=$$(pwd) install + +#override_dh_auto_configure: +# dh_auto_configure -- --prefix=/opt/rvi diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) |