forked from pool/vcontrold
Accepting request 890621 from home:lnussel
new package, please add me as maintainer and forward to Factory OBS-URL: https://build.opensuse.org/request/show/890621 OBS-URL: https://build.opensuse.org/package/show/hardware/vcontrold?expand=0&rev=1
This commit is contained in:
commit
0b3cba23e5
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
13
_service
Normal file
13
_service
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<services>
|
||||||
|
<service name="obs_scm" mode="manual">
|
||||||
|
<param name="versionformat">@PARENT_TAG@+git%cd.%h</param>
|
||||||
|
<param name="url">http://github.com/openv/vcontrold.git</param>
|
||||||
|
<param name="scm">git</param>
|
||||||
|
</service>
|
||||||
|
<service mode="buildtime" name="tar">
|
||||||
|
<param name="obsinfo">vcontrold.obsinfo</param>
|
||||||
|
</service>
|
||||||
|
<service mode="buildtime" name="set_version">
|
||||||
|
<param name="basename">vcontrold</param>
|
||||||
|
</service>
|
||||||
|
</services>
|
2
system-user-vcontrold.conf
Normal file
2
system-user-vcontrold.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Type Name ID GECOS [HOME]
|
||||||
|
u vcontrold - "vcontrold"
|
2
vcontrold-tmpfiles.conf
Normal file
2
vcontrold-tmpfiles.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
C /etc/vcontrold/vcontrold.xml
|
||||||
|
L /etc/vcontrold/vito.xml
|
3
vcontrold-v0.98.10+git20210418.977e6f5.obscpio
Normal file
3
vcontrold-v0.98.10+git20210418.977e6f5.obscpio
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:2fb3510b25e0942d9cbeb62a2beabcbbac6e9dbbcb280e8be7e2deddb67a37e6
|
||||||
|
size 455179
|
9
vcontrold.changes
Normal file
9
vcontrold.changes
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 16 17:11:20 UTC 2020 - Ludwig Nussel <lnussel@suse.de>
|
||||||
|
|
||||||
|
- add systemd service, user, config files
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Oct 9 07:18:31 UTC 2020 - Ludwig Nussel <lnussel@suse.de>
|
||||||
|
|
||||||
|
- initial package
|
5
vcontrold.obsinfo
Normal file
5
vcontrold.obsinfo
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
name: vcontrold
|
||||||
|
version: v0.98.10+git20210418.977e6f5
|
||||||
|
mtime: 1618736200
|
||||||
|
commit: 977e6f5da497be8334cb75a99b311d11dea972b3
|
||||||
|
|
10
vcontrold.service
Normal file
10
vcontrold.service
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=vcontrold daemon
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/sbin/vcontrold -n
|
||||||
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
|
User=vcontrold
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
101
vcontrold.spec
Normal file
101
vcontrold.spec
Normal file
@ -0,0 +1,101 @@
|
|||||||
|
#
|
||||||
|
# spec file for package vcontrold
|
||||||
|
#
|
||||||
|
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: vcontrold
|
||||||
|
Version: 0
|
||||||
|
Release: 0
|
||||||
|
Summary: Daemon for communication with Viessmann heating controllers
|
||||||
|
License: GPL-3.0-or-later
|
||||||
|
Url: https://github.com/openv/vcontrold
|
||||||
|
Source0: %{name}-%{version}.tar
|
||||||
|
Source1: system-user-vcontrold.conf
|
||||||
|
Source2: vcontrold.service
|
||||||
|
Source3: vcontrold-tmpfiles.conf
|
||||||
|
BuildRequires: c_compiler
|
||||||
|
BuildRequires: python3-docutils
|
||||||
|
BuildRequires: cmake
|
||||||
|
BuildRequires: pkgconfig(libxml-2.0)
|
||||||
|
BuildRequires: systemd-rpm-macros
|
||||||
|
BuildRequires: sysuser-tools
|
||||||
|
Requires: group(dialout)
|
||||||
|
%sysusers_requires
|
||||||
|
|
||||||
|
%description
|
||||||
|
vcontrold is a software daemon written in C for communication with
|
||||||
|
the "Optolink" interface of Viessmann heating controllers.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
sed -i -e 's/nobody/vcontrold/' xml/300/vcontrold.xml
|
||||||
|
|
||||||
|
%build
|
||||||
|
%sysusers_generate_pre "%{SOURCE1}" "%{name}"
|
||||||
|
#
|
||||||
|
%cmake
|
||||||
|
%cmake_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%cmake_install
|
||||||
|
#
|
||||||
|
mkdir -p %{buildroot}%{_sysusersdir}
|
||||||
|
install -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/
|
||||||
|
#
|
||||||
|
install -D -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service
|
||||||
|
#
|
||||||
|
mkdir -p %{buildroot}%{_datadir}/factory/etc/vcontrold
|
||||||
|
cp xml/300/* %{buildroot}%{_datadir}/factory/etc/vcontrold
|
||||||
|
#
|
||||||
|
install -d -m 0755 %{buildroot}%{_tmpfilesdir}
|
||||||
|
install -m 0644 %{SOURCE3} %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
||||||
|
#
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/vcontrold
|
||||||
|
touch %{buildroot}%{_sysconfdir}/vcontrold/{vcontrold,vito}.xml
|
||||||
|
#
|
||||||
|
ln -s service %{buildroot}%{_sbindir}/rcvcontrold
|
||||||
|
|
||||||
|
%pre -f %{name}.pre
|
||||||
|
%service_add_pre %{name}.service
|
||||||
|
|
||||||
|
%post
|
||||||
|
%tmpfiles_create %_tmpfilesdir/%{name}.conf
|
||||||
|
%service_add_post %{name}.service
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%service_del_preun %{name}.service
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%service_del_postun %{name}.service
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc README.md COPYING
|
||||||
|
%doc doc/examples xml
|
||||||
|
%{_bindir}/vclient
|
||||||
|
%{_sbindir}/vcontrold
|
||||||
|
%{_sbindir}/rcvcontrold
|
||||||
|
%{_mandir}/man1/*
|
||||||
|
%{_datadir}/factory
|
||||||
|
%{_sysconfdir}/vcontrold
|
||||||
|
%config %ghost %{_sysconfdir}/vcontrold/vito.xml
|
||||||
|
%config %ghost %{_sysconfdir}/vcontrold/vcontrold.xml
|
||||||
|
%{_unitdir}/%{name}.service
|
||||||
|
%{_tmpfilesdir}/%{name}.conf
|
||||||
|
%{_sysusersdir}/system-user-%{name}.conf
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
|
Loading…
Reference in New Issue
Block a user