diff --git a/Cargo.lock b/Cargo.lock index de527d4c..a1a3b538 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -678,7 +678,7 @@ dependencies = [ [[package]] name = "rog-daemon" -version = "0.9.0" +version = "0.9.1" dependencies = [ "dbus", "dbus-tokio", diff --git a/README.md b/README.md index ba408577..f1dddff9 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,8 @@ $ sudo systemctl start rog-core.service $ sudo systemctl enable rog-core.service ``` +You may also need to activate the service for debian install. If running Pop!_OS, I suggest disabling `system76-power` gnome-shell extension, or at least limiting use of the power-management parts as `rog-core` lets you set the same things (one or the other will overwrite pstates). I will create a shell extension at some point similar to system76, but using the rog-core parts. It is safe to leave `system76-power.service` enabled and use for switching between graphics modes. + ## Updating Occasionally I might break things for you by tweaking or changing the config file layout. Usually this will mean you need to remove `/etc/rog-core.toml' and restart the daemon to create a new one. You *can* back up the old one and copy settings back over (then restart daemon again). diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 00000000..ea25f36e --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +rog-core (0.9.0) focal; urgency=medium + + * Initial packaging + + -- Luke Jones Sat, 02 May 2020 20:17:12 +1200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 00000000..ec635144 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..69cae113 --- /dev/null +++ b/debian/control @@ -0,0 +1,23 @@ +Source: rog-core +Section: admin +Priority: optional +Maintainer: Luke Jones +Build-Depends: + debhelper (>=9), + cargo, + dh-systemd, + libusb-1.0-0-dev, + libdbus-1-dev, + pkg-config +Standards-Version: 4.1.1 +Homepage: https://github.com/flukejones/rog-core + +Package: rog-core +Architecture: amd64 +Depends: + dbus, + systemd, + libusb-1.0-0, + ${misc:Depends}, + ${shlib:Depends} +Description: ASUS ROG Laptop Management diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..167496ab --- /dev/null +++ b/debian/copyright @@ -0,0 +1,7 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: rog-core +Source: https://github.com/flukejones/rog-core + +Files: * +Copyright: Copyright 2020 Luke Jones +License: MPL-2.0 diff --git a/debian/rog-core.postinst b/debian/rog-core.postinst new file mode 100644 index 00000000..9f36e048 --- /dev/null +++ b/debian/rog-core.postinst @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e + +case "$1" in + configure) + mv /etc/rogcore.conf /etc/rogcore.save || true + ;; + + *) + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/debian/rog-core.postrm b/debian/rog-core.postrm new file mode 100644 index 00000000..d0e919f6 --- /dev/null +++ b/debian/rog-core.postrm @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e + +case "$1" in + remove) + rm -f /etc/rogcore.conf + ;; + + *) + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/debian/rules b/debian/rules new file mode 100644 index 00000000..98ec82b4 --- /dev/null +++ b/debian/rules @@ -0,0 +1,21 @@ +#!/usr/bin/make -f + +export VENDORED ?= 1 +CLEAN ?= 1 + +%: + dh $@ --with=systemd + +override_dh_auto_build: + env CARGO_HOME="$$(pwd)/target/cargo" \ + dh_auto_build + +override_dh_auto_clean: +ifeq ($(CLEAN),1) + make clean +endif +ifeq ($(VENDORED),1) + if ! ischroot; then \ + make vendor; \ + fi +endif diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 00000000..89ae9db8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/rog-core/Cargo.toml b/rog-core/Cargo.toml index 34dee876..9d48e8f5 100644 --- a/rog-core/Cargo.toml +++ b/rog-core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rog-daemon" -version = "0.9.0" +version = "0.9.1" license = "MPL-2.0" readme = "README.md" authors = ["Luke "] diff --git a/rog-core/src/main.rs b/rog-core/src/main.rs index cd19d8fe..83a3d221 100644 --- a/rog-core/src/main.rs +++ b/rog-core/src/main.rs @@ -7,7 +7,7 @@ use rog_aura::{ AuraDbusWriter, LED_MSG_LEN, }; -static VERSION: &'static str = "0.8.0"; +static VERSION: &'static str = "0.9.1"; #[derive(Debug, Options)] struct CLIStart {