SHA256
1
0
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:
Al Cho 2013-12-17 14:15:17 +00:00 committed by Git OBS Bridge
parent deea53a125
commit fbca4ec15e
3 changed files with 26 additions and 1 deletions

View File

@ -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

16
neard.service Normal file
View 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

View File

@ -19,7 +19,7 @@
Name: neard
BuildRequires: pkgconfig(dbus-1) >= 1.4
%if 0%{?suse_version} > 1140
%if 0%{?suse_version} >= 1210
BuildRequires: systemd
%{?systemd_requires}
%define has_systemd 1
@ -31,6 +31,7 @@ License: GPL-2.0+
Group: Hardware/Mobile
Url: http://01.org/linux-nfc/
Source: https://www.kernel.org/pub/linux/network/nfc/neard-%{version}.tar.bz2
Source1: neard.service
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: automake
BuildRequires: check-devel
@ -72,6 +73,7 @@ make %{?_smp_mflags} all V=1
%install
%make_install
install --mode=0644 -D %{SOURCE1} %{buildroot}%{_unitdir}/neard.service
%clean
rm -rf %{buildroot}
@ -103,6 +105,7 @@ rm -rf %{buildroot}
%config %{_sysconfdir}/dbus-1/system.d/org.neard.conf
%dir %{_prefix}/lib/nfc
%{_prefix}/lib/nfc/neard
%{_unitdir}/neard.service
%doc %{_mandir}/man1/nfctool.1.gz
%doc %{_mandir}/man5/neard.conf.5.gz
%doc %{_mandir}/man8/neard.8.gz