1 |
# $Id: e-smith-nutUPS.spec,v 1.8 2020/11/29 21:49:39 jcrisp Exp $ |
# $Id: e-smith-nutUPS.spec,v 1.9 2020/12/07 16:29:08 jpp Exp $ |
2 |
|
|
3 |
Summary: SME server - nut UPS interaction module |
Summary: SME server - nut UPS interaction module |
4 |
%define name e-smith-nutUPS |
%define name e-smith-nutUPS |
11 |
Group: Networking/Daemons |
Group: Networking/Daemons |
12 |
Source: %{name}-%{version}.tar.xz |
Source: %{name}-%{version}.tar.xz |
13 |
Patch0: e-smith-nutUPS-2.6.0-bz9423-bz11146.patch |
Patch0: e-smith-nutUPS-2.6.0-bz9423-bz11146.patch |
|
Patch1: e-smith-nutUPS-2.6.0-bz11215-fix-line-endings.patch |
|
14 |
|
|
15 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
16 |
Requires: nut nut-client daemontools |
Requires: nut nut-client daemontools |
256 |
%prep |
%prep |
257 |
%setup |
%setup |
258 |
%patch0 -p1 |
%patch0 -p1 |
|
%patch1 -p1 |
|
259 |
|
|
260 |
rm -rf root/etc/rc.d/init.d/nut root/etc/rc.d/rc7.d/S38nut |
rm -rf root/etc/rc.d/init.d/nut root/etc/rc.d/rc7.d/S38nut |
261 |
mkdir -p root/usr/lib/systemd/system/nut-monitor.service.d root/usr/lib/systemd/system/nut-server.service.d |
mkdir -p root/usr/lib/systemd/system/nut-monitor.service.d root/usr/lib/systemd/system/nut-server.service.d |