printer facts?
Signed-off-by: Christine Dodrill <me@christine.website>
This commit is contained in:
parent
4d65b3d188
commit
2fd4177373
|
@ -0,0 +1,5 @@
|
||||||
|
# logging config
|
||||||
|
RUST_LOG=info
|
||||||
|
|
||||||
|
# socket path
|
||||||
|
SOCKPATH=/tmp/printerfacts.sock
|
|
@ -9,7 +9,6 @@ ExecStart=/usr/bin/printerfacts
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
User=printerfacts
|
User=printerfacts
|
||||||
WorkingDirectory=/var/lib/printerfacts
|
WorkingDirectory=/var/lib/printerfacts
|
||||||
Environment=RUST_LOG=info
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -7,9 +7,10 @@ Summary: Printer facts: The API
|
||||||
Version: @@VERSION@@
|
Version: @@VERSION@@
|
||||||
Release: @@RELEASE@@%{?dist}
|
Release: @@RELEASE@@%{?dist}
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Applications/System
|
Group: Network
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
Source1: printerfacts.service
|
Source1: printerfacts.service
|
||||||
|
Source2: printerfacts.default
|
||||||
Requires(pre): /usr/sbin/useradd, /usr/bin/getent
|
Requires(pre): /usr/sbin/useradd, /usr/bin/getent
|
||||||
Requires(postun): /usr/sbin/userdel
|
Requires(postun): /usr/sbin/userdel
|
||||||
|
|
||||||
|
@ -62,7 +63,8 @@ rm -rf %{buildroot}
|
||||||
mkdir -p %{buildroot}
|
mkdir -p %{buildroot}
|
||||||
cp -a * %{buildroot}
|
cp -a * %{buildroot}
|
||||||
mkdir -p %{buildroot}%{_unitdir}
|
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
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
Loading…
Reference in New Issue