mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Remove misc files
This commit is contained in:
@@ -1,70 +0,0 @@
|
|||||||
%if %{defined fedora}
|
|
||||||
%global debug_package %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# Use hardening ldflags.
|
|
||||||
%global rustflags -Clink-arg=-Wl,-z,relro,-z,now
|
|
||||||
Name: asus-nb-ctrl
|
|
||||||
Version: 1.0.2
|
|
||||||
Release: 0
|
|
||||||
Summary: ASUS Notebook control
|
|
||||||
License: MPLv2
|
|
||||||
Group: System Environment/Daemons
|
|
||||||
URL: https://gitlab.com/asus-linux/asus-nb-ctrl
|
|
||||||
Source: https://gitlab.com/asus-linux/asus-nb-ctrl/-/archive/%version/%{name}-%{version}.tar.gz
|
|
||||||
# cargo vendor &&
|
|
||||||
# tar cfJ vendor.tar.xz vendor
|
|
||||||
Source1: vendor.tar.xz
|
|
||||||
BuildRequires: clang-devel
|
|
||||||
BuildRequires: cargo
|
|
||||||
BuildRequires: rust
|
|
||||||
BuildRequires: rust-std-static
|
|
||||||
BuildRequires: pkgconfig(dbus-1)
|
|
||||||
BuildRequires: pkgconfig(libudev)
|
|
||||||
|
|
||||||
%description
|
|
||||||
ASUS Laptop control
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -q
|
|
||||||
%setup -q -D -T -a 1
|
|
||||||
|
|
||||||
mkdir .cargo
|
|
||||||
cat >.cargo/config <<EOF
|
|
||||||
[source.crates-io]
|
|
||||||
replace-with = "vendored-sources"
|
|
||||||
|
|
||||||
[source.vendored-sources]
|
|
||||||
directory = "vendor"
|
|
||||||
EOF
|
|
||||||
|
|
||||||
%build
|
|
||||||
export RUSTFLAGS="%{rustflags}"
|
|
||||||
RUST_BACKTRACE=1 cargo build --release
|
|
||||||
|
|
||||||
%install
|
|
||||||
export RUSTFLAGS="%{rustflags}"
|
|
||||||
|
|
||||||
mkdir -p "%{buildroot}%{_bindir}"
|
|
||||||
install -D -m 0755 target/release/asusd %{buildroot}%{_bindir}/asusd
|
|
||||||
install -D -m 0755 target/release/asusctl %{buildroot}%{_bindir}/asusctl
|
|
||||||
install -D -m 0644 data/asusd.rules %{buildroot}%{_udevrulesdir}/90-asusd.rules
|
|
||||||
install -D -m 0644 data/asusd.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/asusd.conf
|
|
||||||
install -D -m 0644 data/asusd.service %{buildroot}%{_unitdir}/asusd.service
|
|
||||||
install -D -m 0644 data/asusd-ledmodes.toml %{buildroot}%{_sysconfdir}/asusd/asusd-ledmodes.toml
|
|
||||||
|
|
||||||
mkdir -p "%{buildroot}%{_datadir}/licenses/%{name}"
|
|
||||||
cp LICENSE "%{buildroot}%{_datadir}/licenses/%{name}/"
|
|
||||||
|
|
||||||
mkdir -p "%{buildroot}/bin"
|
|
||||||
|
|
||||||
%files
|
|
||||||
%license LICENSE
|
|
||||||
%{_bindir}/asusd
|
|
||||||
%{_bindir}/asusctl
|
|
||||||
%{_unitdir}/asusd.service
|
|
||||||
%{_udevrulesdir}/90-asusd.rules
|
|
||||||
%{_sysconfdir}/dbus-1/system.d/asusd.conf
|
|
||||||
%{_sysconfdir}/asusd/asusd-ledmodes.toml
|
|
||||||
|
|
||||||
%changelog
|
|
||||||
22
debian/asus-nb-ctrl.postinst
vendored
22
debian/asus-nb-ctrl.postinst
vendored
@@ -1,22 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
configure)
|
|
||||||
CONF='/etc/asusd.conf'
|
|
||||||
if [ -f $CONF ]; then
|
|
||||||
mv $CONF $CONF.save
|
|
||||||
fi
|
|
||||||
systemctl unmask asusd.service
|
|
||||||
#ROG=$(lsusb |grep 0b05 |cut -d ' ' -f 6 |cut -d ':' -f 2)
|
|
||||||
#sed -i -e "s|==/"1866/"|==/"${ROG}/"|g" /etc/udev/rules.d/99-rog-core.rules
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
#DEBHELPER#
|
|
||||||
|
|
||||||
exit 0
|
|
||||||
19
debian/asus-nb-ctrl.postrm
vendored
19
debian/asus-nb-ctrl.postrm
vendored
@@ -1,19 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
remove)
|
|
||||||
CONF='/etc/rogcore.conf'
|
|
||||||
if [ -f $CONF ]; then
|
|
||||||
rm -rf $CONF
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
#DEBHELPER#
|
|
||||||
|
|
||||||
exit 0
|
|
||||||
5
debian/changelog
vendored
5
debian/changelog
vendored
@@ -1,5 +0,0 @@
|
|||||||
asus-nb-ctrl (1.0.2) focal; urgency=medium
|
|
||||||
|
|
||||||
- Minor corrections to two laptops
|
|
||||||
|
|
||||||
-- Luke Jones <luke@ljones.dev> Wed, 22 Jul 2020 10:35:05 +1200
|
|
||||||
1
debian/compat
vendored
1
debian/compat
vendored
@@ -1 +0,0 @@
|
|||||||
9
|
|
||||||
38
debian/control
vendored
38
debian/control
vendored
@@ -1,38 +0,0 @@
|
|||||||
Source: asus-nb-ctrl
|
|
||||||
Section: admin
|
|
||||||
Priority: optional
|
|
||||||
Maintainer: Luke Jones <luke@ljones.dev>
|
|
||||||
Homepage: https://gitlab.com/asus-linux/asus-nb-ctrl
|
|
||||||
Build-Depends:
|
|
||||||
debhelper (>=9),
|
|
||||||
cargo,
|
|
||||||
llvm,
|
|
||||||
libclang-dev,
|
|
||||||
libdbus-1-dev,
|
|
||||||
libudev-dev,
|
|
||||||
pkg-config
|
|
||||||
Standards-Version: 4.1.1
|
|
||||||
|
|
||||||
Package: asus-nb-ctrl
|
|
||||||
Architecture: amd64
|
|
||||||
Depends:
|
|
||||||
dbus,
|
|
||||||
systemd,
|
|
||||||
libdbus-1,
|
|
||||||
libudev,
|
|
||||||
${misc:Depends},
|
|
||||||
${shlibs:Depends}
|
|
||||||
Description:ASUS ROG Laptop Management
|
|
||||||
Extra support for ASUS laptop models:
|
|
||||||
- GM501
|
|
||||||
- GX502
|
|
||||||
- GX531
|
|
||||||
- G512
|
|
||||||
- G712
|
|
||||||
- GX531
|
|
||||||
- G531
|
|
||||||
- GA14/GA401. You will need kernel patches
|
|
||||||
+ https://lab.retarded.farm/zappel/asus-rog-zephyrus-g14/-/tree/master/kernel_patches
|
|
||||||
- GA15/GA502/GU502 appears to have most things working
|
|
||||||
- GL703(0x1869)
|
|
||||||
- GL553/GL753
|
|
||||||
7
debian/copyright
vendored
7
debian/copyright
vendored
@@ -1,7 +0,0 @@
|
|||||||
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
|
|
||||||
24
debian/rules
vendored
24
debian/rules
vendored
@@ -1,24 +0,0 @@
|
|||||||
#!/usr/bin/make -f
|
|
||||||
|
|
||||||
export VENDORED ?= 1
|
|
||||||
CLEAN ?= 1
|
|
||||||
|
|
||||||
%:
|
|
||||||
dh $@ --with=systemd
|
|
||||||
|
|
||||||
override_dh_auto_build:
|
|
||||||
cp ../SOURCES/vendor.tar.xz ./
|
|
||||||
mkdir .cargo
|
|
||||||
cp ../SOURCES/cargo-config .cargo/config
|
|
||||||
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
|
|
||||||
1
debian/source/format
vendored
1
debian/source/format
vendored
@@ -1 +0,0 @@
|
|||||||
3.0 (native)
|
|
||||||
Reference in New Issue
Block a user