commit 0b3cba23e56bde22ecdb5cd74c2e2835141af4b487e9e0b64d4bbc75a21d7e9e Author: Michal Suchanek Date: Wed May 5 08:35:20 2021 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..b6635b8 --- /dev/null +++ b/_service @@ -0,0 +1,13 @@ + + + @PARENT_TAG@+git%cd.%h + http://github.com/openv/vcontrold.git + git + + + vcontrold.obsinfo + + + vcontrold + + diff --git a/system-user-vcontrold.conf b/system-user-vcontrold.conf new file mode 100644 index 0000000..b9d6fc0 --- /dev/null +++ b/system-user-vcontrold.conf @@ -0,0 +1,2 @@ +# Type Name ID GECOS [HOME] +u vcontrold - "vcontrold" diff --git a/vcontrold-tmpfiles.conf b/vcontrold-tmpfiles.conf new file mode 100644 index 0000000..269349b --- /dev/null +++ b/vcontrold-tmpfiles.conf @@ -0,0 +1,2 @@ +C /etc/vcontrold/vcontrold.xml +L /etc/vcontrold/vito.xml diff --git a/vcontrold-v0.98.10+git20210418.977e6f5.obscpio b/vcontrold-v0.98.10+git20210418.977e6f5.obscpio new file mode 100644 index 0000000..ac2126d --- /dev/null +++ b/vcontrold-v0.98.10+git20210418.977e6f5.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2fb3510b25e0942d9cbeb62a2beabcbbac6e9dbbcb280e8be7e2deddb67a37e6 +size 455179 diff --git a/vcontrold.changes b/vcontrold.changes new file mode 100644 index 0000000..caf4f93 --- /dev/null +++ b/vcontrold.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Mon Nov 16 17:11:20 UTC 2020 - Ludwig Nussel + +- add systemd service, user, config files + +------------------------------------------------------------------- +Fri Oct 9 07:18:31 UTC 2020 - Ludwig Nussel + +- initial package diff --git a/vcontrold.obsinfo b/vcontrold.obsinfo new file mode 100644 index 0000000..3c63386 --- /dev/null +++ b/vcontrold.obsinfo @@ -0,0 +1,5 @@ +name: vcontrold +version: v0.98.10+git20210418.977e6f5 +mtime: 1618736200 +commit: 977e6f5da497be8334cb75a99b311d11dea972b3 + diff --git a/vcontrold.service b/vcontrold.service new file mode 100644 index 0000000..20fc76e --- /dev/null +++ b/vcontrold.service @@ -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 diff --git a/vcontrold.spec b/vcontrold.spec new file mode 100644 index 0000000..a00c869 --- /dev/null +++ b/vcontrold.spec @@ -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 +