forked from pool/neard
Accepting request 211230 from home:acho-novell:branches:hardware
Add neard.service to enable neard(bnc#837978). Fixed systemd BuildRequires version. OBS-URL: https://build.opensuse.org/request/show/211230 OBS-URL: https://build.opensuse.org/package/show/hardware/neard?expand=0&rev=3
This commit is contained in:
parent
deea53a125
commit
fbca4ec15e
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 17 11:54:23 UTC 2013 - acho@suse.com
|
||||||
|
|
||||||
|
- Add neard.service to enable neard.(bnc#837978)
|
||||||
|
Fixed systemd BuildRequires version.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Dec 6 10:43:14 UTC 2013 - acho@suse.com
|
Fri Dec 6 10:43:14 UTC 2013 - acho@suse.com
|
||||||
|
|
||||||
|
16
neard.service
Normal file
16
neard.service
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=neard service
|
||||||
|
Documentation=man:neard(8)
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=dbus
|
||||||
|
BusName=org.neard
|
||||||
|
ExecStart=/usr/lib/nfc/neard -n
|
||||||
|
NotifyAccess=main
|
||||||
|
#WatchdogSec=10
|
||||||
|
#Restart=on-failure
|
||||||
|
#CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW
|
||||||
|
LimitNPROC=1
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
Alias=dbus-org.neard.service
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
Name: neard
|
Name: neard
|
||||||
BuildRequires: pkgconfig(dbus-1) >= 1.4
|
BuildRequires: pkgconfig(dbus-1) >= 1.4
|
||||||
%if 0%{?suse_version} > 1140
|
%if 0%{?suse_version} >= 1210
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
%{?systemd_requires}
|
%{?systemd_requires}
|
||||||
%define has_systemd 1
|
%define has_systemd 1
|
||||||
@ -31,6 +31,7 @@ License: GPL-2.0+
|
|||||||
Group: Hardware/Mobile
|
Group: Hardware/Mobile
|
||||||
Url: http://01.org/linux-nfc/
|
Url: http://01.org/linux-nfc/
|
||||||
Source: https://www.kernel.org/pub/linux/network/nfc/neard-%{version}.tar.bz2
|
Source: https://www.kernel.org/pub/linux/network/nfc/neard-%{version}.tar.bz2
|
||||||
|
Source1: neard.service
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: check-devel
|
BuildRequires: check-devel
|
||||||
@ -72,6 +73,7 @@ make %{?_smp_mflags} all V=1
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
|
install --mode=0644 -D %{SOURCE1} %{buildroot}%{_unitdir}/neard.service
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
@ -103,6 +105,7 @@ rm -rf %{buildroot}
|
|||||||
%config %{_sysconfdir}/dbus-1/system.d/org.neard.conf
|
%config %{_sysconfdir}/dbus-1/system.d/org.neard.conf
|
||||||
%dir %{_prefix}/lib/nfc
|
%dir %{_prefix}/lib/nfc
|
||||||
%{_prefix}/lib/nfc/neard
|
%{_prefix}/lib/nfc/neard
|
||||||
|
%{_unitdir}/neard.service
|
||||||
%doc %{_mandir}/man1/nfctool.1.gz
|
%doc %{_mandir}/man1/nfctool.1.gz
|
||||||
%doc %{_mandir}/man5/neard.conf.5.gz
|
%doc %{_mandir}/man5/neard.conf.5.gz
|
||||||
%doc %{_mandir}/man8/neard.8.gz
|
%doc %{_mandir}/man8/neard.8.gz
|
||||||
|
Loading…
Reference in New Issue
Block a user