added some first version of a quick'n'dirty snappy package

This commit is contained in:
Michael Zanetti 2015-06-29 23:59:26 +02:00
parent 98c2dc1dd1
commit 36b020d404
5 changed files with 47 additions and 0 deletions

21
guh.pro
View File

@ -73,3 +73,24 @@ contains(DEFINES, GPIO433){
} else {
message("Radio 433 for GPIO's disabled")
}
ubuntu {
message("Building Ubuntu snappy package.")
meta.files = meta/package.yaml \
meta/readme.md
meta.path = /meta/
wrapper.files = meta/guhd-wrapper.sh
wrapper.path = /usr/bin/
# We need to bring our own Qt libs, at least for now
qtlibs.files=/usr/lib/arm-linux-gnueabihf/libQt5Network.so.5 \
/usr/lib/arm-linux-gnueabihf/libQt5Sql.so.5 \
/usr/lib/arm-linux-gnueabihf/libQt5Core.so.5 \
/usr/lib/arm-linux-gnueabihf/libicui18n.so.52 \
/usr/lib/arm-linux-gnueabihf/libicuuc.so.52 \
/usr/lib/arm-linux-gnueabihf/libicudata.so.52
qtlibs.path=/usr/lib/
INSTALLS += meta wrapper qtlibs
}

3
meta/create_snap.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash

4
meta/guhd-wrapper.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
export LD_LIBRARY_PATH=$SNAPP_APP_PATH/usr/lib:$LD_LIBRARY_PATH
$SNAPP_APP_PATH/usr/bin/guhd -n

16
meta/package.yaml Normal file
View File

@ -0,0 +1,16 @@
name: guh
version: 0.1.0
architecture: [armhf]
services:
- name: guhd
start: usr/bin/guhd-wrapper.sh
description: "guhd - gear up your home daemon"
security-template: unconfined
caps:
- networking
- network-service
binaries:
- name: guh-webserver
start: usr/bin/guh-webserver
- name: guh-cli
exec: usr/bin/guh-cli

3
meta/readme.md Normal file
View File

@ -0,0 +1,3 @@
guh - gear up your home!
TODO: Some readme stuff