printer facts?

Signed-off-by: Christine Dodrill <me@christine.website>
This commit is contained in:
Cadey Ratio 2021-05-22 18:19:14 -04:00
parent 4d65b3d188
commit 2fd4177373
3 changed files with 9 additions and 3 deletions

View File

@ -0,0 +1,5 @@
# logging config
RUST_LOG=info
# socket path
SOCKPATH=/tmp/printerfacts.sock

View File

@ -9,7 +9,6 @@ ExecStart=/usr/bin/printerfacts
Restart=on-failure
User=printerfacts
WorkingDirectory=/var/lib/printerfacts
Environment=RUST_LOG=info
[Install]
WantedBy=multi-user.target

View File

@ -7,9 +7,10 @@ Summary: Printer facts: The API
Version: @@VERSION@@
Release: @@RELEASE@@%{?dist}
License: MIT
Group: Applications/System
Group: Network
Source0: %{name}-%{version}.tar.gz
Source1: printerfacts.service
Source2: printerfacts.default
Requires(pre): /usr/sbin/useradd, /usr/bin/getent
Requires(postun): /usr/sbin/userdel
@ -62,7 +63,8 @@ rm -rf %{buildroot}
mkdir -p %{buildroot}
cp -a * %{buildroot}
mkdir -p %{buildroot}%{_unitdir}
install -m 0644 %{pkgname}.service %{buildroot}%{_unitdir}
install -m 0644 ./%{pkgname}.service %{buildroot}%{_unitdir}
install -m 0644 ./%{pkgname}.default %{buildroot}/etc/default/printerfacts
%clean
rm -rf %{buildroot}