From 4cda3a7c9445f1ac35b6c6f48d7af3b847924aad0863c5159cf27d7cb6cb6858 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Rodr=C3=ADguez?= Date: Thu, 20 Dec 2012 22:14:19 +0000 Subject: [PATCH] osc copypac from project:home:elvigia package:ser2net revision:2 OBS-URL: https://build.opensuse.org/package/show/network:utilities/ser2net?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + ser2net-2.8-rc3.tar.gz | 3 ++ ser2net.changes | 14 ++++++++ ser2net.service | 9 +++++ ser2net.spec | 75 ++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 125 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 ser2net-2.8-rc3.tar.gz create mode 100644 ser2net.changes create mode 100644 ser2net.service create mode 100644 ser2net.spec 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/ser2net-2.8-rc3.tar.gz b/ser2net-2.8-rc3.tar.gz new file mode 100644 index 0000000..8493874 --- /dev/null +++ b/ser2net-2.8-rc3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4548afc181242d885cb25866bf5276f4b0ec0bc23d768c53fa3952a6ea8bcee5 +size 330795 diff --git a/ser2net.changes b/ser2net.changes new file mode 100644 index 0000000..8269610 --- /dev/null +++ b/ser2net.changes @@ -0,0 +1,14 @@ +------------------------------------------------------------------- +Thu Dec 20 22:11:44 UTC 2012 - crrodriguez@opensuse.org + +- Initial version for factory, 2.8.rc3 + +------------------------------------------------------------------- +Mon Feb 26 11:03:05 AEST 2008 - developer@jefferyfernandez.id.au + +- Cleaned up init script +------------------------------------------------------------------- +Mon Feb 25 22:42:05 AEST 2008 - developer@jefferyfernandez.id.au + +- Initial release for openSUSE +------------------------------------------------------------------- diff --git a/ser2net.service b/ser2net.service new file mode 100644 index 0000000..1311a92 --- /dev/null +++ b/ser2net.service @@ -0,0 +1,9 @@ +[Unit] +Description=Proxy that allows tcp connections to serial ports +After=network.target + +[Service] +ExecStart=/usr/sbin/ser2net -n + +[Install] +WantedBy=multi-user.target \ No newline at end of file diff --git a/ser2net.spec b/ser2net.spec new file mode 100644 index 0000000..da9ab1b --- /dev/null +++ b/ser2net.spec @@ -0,0 +1,75 @@ +# +# spec file for package ser2net +# +# Copyright (c) 2012 SUSE LINUX Products 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/ +# + + +%define extra_ver rc3 + +Name: ser2net +Version: 2.8 +Release: 0 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Url: http://ser2net.sourceforge.net/ +Source: http://download.sourceforge.net/ser2net/%{name}-%{version}-%{extra_ver}.tar.gz +Source2: ser2net.service +Summary: Serial port to network proxy +License: GPL +Group: Productivity/Networking +BuildRequires: pkgconfig(systemd) +%{?systemd_requires} + +%description +ser2net provides a way for a user to connect from a network connection to a +serial port. It provides all the serial port setup, a configuration file to +configure the ports, a control login for modifying port parameters, +monitoring ports, and controlling ports. + +%prep +%setup -q -n %{name}-%{version}-%{extra_ver} + +%build +%configure --disable-static +%{__make} %{?_smp_mflags} + +%install +%make_install +%{__install} -D -m 0644 %{name}.conf %{buildroot}%{_sysconfdir}/%{name}.conf +%{__install} -D -m 0644 %{S:2} %{buildroot}%{_unitdir}/ser2net.service + +%clean +rm -rf $RPM_BUILD_ROOT + +%pre +%service_add_pre ser2net.service + +%post +%service_add_post ser2net.service + +%preun +%service_del_preun ser2net.service + +%postun +%service_del_postun ser2net.service + +%files +%defattr(-,root,root) +%doc COPYING ChangeLog AUTHORS README +%{_unitdir}/ser2net.service +%config(noreplace) %{_sysconfdir}/%{name}.conf +%{_sbindir}/%{name} +%{_mandir}/man8/%{name}* + +%changelog