- Initial packaging of conman v 0.2.7.
OBS-URL: https://build.opensuse.org/package/show/network:cluster/conman?expand=0&rev=1
This commit is contained in:
commit
a91061cb55
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
|
5
_service
Normal file
5
_service
Normal file
@ -0,0 +1,5 @@
|
||||
<services>
|
||||
<service name="download_files" mode="localonly">
|
||||
<param name="enforceupstream">yes</param>
|
||||
</service>
|
||||
</services>
|
3
conman-0.2.7.tar.bz2
Normal file
3
conman-0.2.7.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fcf31f06bbb13245f2cf3595d867f26440b73793cfe837831aec37d7276c0c9e
|
||||
size 209589
|
23
conman.changes
Normal file
23
conman.changes
Normal file
@ -0,0 +1,23 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 4 16:41:33 UTC 2017 - eich@suse.com
|
||||
|
||||
- Removed %clean section.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 21 11:42:38 UTC 2016 - eich@suse.com
|
||||
|
||||
- List directories under /lib explicitely to avoid conflicts
|
||||
with directories for debuginfo.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 14 15:07:19 UTC 2016 - pmladek@suse.com
|
||||
|
||||
- Call %fillup_only without -d parameter. Otherwise, it installed
|
||||
the file into /etc/sysconfig/%{2}/conman because none subdir was
|
||||
not defined.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 7 12:31:49 UTC 2016 - eich@suse.com
|
||||
|
||||
- Initial packaging of conman v 0.2.7.
|
||||
|
10
conman.service
Normal file
10
conman.service
Normal file
@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=ConMan Console Management Daemon
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/sbin/conmand -c /etc/conman.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
133
conman.spec
Normal file
133
conman.spec
Normal file
@ -0,0 +1,133 @@
|
||||
#
|
||||
# spec file for package conman
|
||||
#
|
||||
# Copyright (c) 2016 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/
|
||||
#
|
||||
|
||||
Name: conman
|
||||
Version: 0.2.7
|
||||
Release: 0
|
||||
|
||||
Summary: The Console Manager
|
||||
Group: System/Console
|
||||
License: GPL-3.0+
|
||||
URL: http://dun.github.io/conman/
|
||||
|
||||
Requires: expect
|
||||
Requires: logrotate
|
||||
|
||||
BuildRequires: tcpd-devel
|
||||
%ifarch x86_64
|
||||
BuildRequires: freeipmi-devel
|
||||
%endif
|
||||
Source0: https://github.com/dun/conman/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2
|
||||
Source1: %{name}.service
|
||||
|
||||
# 8/15/14 karl.w.schulz@intel.com - include prereq
|
||||
%if 0%{?sles_version} || 0%{?suse_version}
|
||||
PreReq: %{fillup_prereq}
|
||||
%endif
|
||||
|
||||
%description
|
||||
ConMan is a serial console management program designed to support a large
|
||||
number of console devices and simultaneous users. It supports:
|
||||
- local serial devices
|
||||
- remote terminal servers (via the telnet protocol)
|
||||
- IPMI Serial-Over-LAN (via FreeIPMI)
|
||||
- Unix domain sockets
|
||||
- external processes (eg, using Expect for telnet/ssh/ipmi-sol connections)
|
||||
|
||||
Its features include:
|
||||
- logging (and optionally timestamping) console device output to file
|
||||
- connecting to consoles in monitor (R/O) or interactive (R/W) mode
|
||||
- allowing clients to share or steal console write privileges
|
||||
- broadcasting client output to multiple consoles
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
|
||||
%build
|
||||
%configure --with-tcp-wrappers \
|
||||
%ifarch x86_64
|
||||
--with-freeipmi \
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make install DESTDIR="%{buildroot}"
|
||||
|
||||
install -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
|
||||
rm -rf %{buildroot}%{_sysconfdir}/init.d
|
||||
%{__ln_s} %{_sbindir}/service %{buildroot}%{_sbindir}/rcconman
|
||||
%{__mkdir_p} %{buildroot}/var/adm/fillup-templates
|
||||
%{__mv} %{buildroot}%{_sysconfdir}/sysconfig/conman \
|
||||
%{buildroot}/var/adm/fillup-templates/sysconfig.conman
|
||||
for i in $(find %{buildroot}/usr/lib/conman) ; do
|
||||
if [ -f $i -a -x $i ]; then
|
||||
if ! head -1 $i | grep "^#!"; then
|
||||
echo "#!/usr/bin/expect -f" > /tmp/$(basename $i)
|
||||
cat $i >> /tmp/$(basename $i)
|
||||
mv /tmp/$(basename $i) $i
|
||||
chmod 0755 $i
|
||||
fi
|
||||
fi
|
||||
done
|
||||
if ! grep "^SERVER" %{buildroot}/etc/conman.conf > /dev/null; then
|
||||
cat <<EOF >> %{buildroot}/etc/conman.conf
|
||||
SERVER keepalive=ON
|
||||
SERVER logdir="/var/log/conman"
|
||||
SERVER logfile="/var/log/conman.log"
|
||||
SERVER loopback=ON
|
||||
SERVER pidfile="/var/run/conman.pid"
|
||||
SERVER resetcmd="powerman -0 %N; sleep 3; powerman -1 %N"
|
||||
SERVER tcpwrappers=ON
|
||||
SERVER timestamp=1h
|
||||
GLOBAL seropts="115200,8n1"
|
||||
GLOBAL log="console.%N"
|
||||
GLOBAL logopts="sanitize,timestamp"
|
||||
EOF
|
||||
fi
|
||||
|
||||
%pre
|
||||
%service_add_pre conman.service
|
||||
|
||||
%preun
|
||||
%service_del_preun conman.service
|
||||
|
||||
%post
|
||||
%fillup_only conman
|
||||
%service_add_post conman.service
|
||||
|
||||
%postun
|
||||
%service_del_postun conman.service
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS
|
||||
%doc ChangeLog
|
||||
%doc COPYING
|
||||
%doc DISCLAIMER*
|
||||
%doc FAQ
|
||||
%doc NEWS
|
||||
%doc README
|
||||
%doc THANKS
|
||||
%config(noreplace) %{_sysconfdir}/conman.conf
|
||||
%config(noreplace) %{_sysconfdir}/logrotate.d/conman
|
||||
%{_localstatedir}/adm/fillup-templates/sysconfig.conman
|
||||
%{_bindir}/*
|
||||
%{_sbindir}/*
|
||||
%{_prefix}/lib/conman
|
||||
%{_prefix}/lib/systemd/*
|
||||
%{_mandir}/*/*
|
171
conman.spec.split
Normal file
171
conman.spec.split
Normal file
@ -0,0 +1,171 @@
|
||||
#
|
||||
# spec file for package conman
|
||||
#
|
||||
# Copyright (c) 2016 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/
|
||||
#
|
||||
|
||||
Name: conman
|
||||
Version: 0.2.7
|
||||
Release: 0
|
||||
|
||||
Summary: The Console Manager Client
|
||||
Group: System/Console
|
||||
License: GPL-3.0+
|
||||
URL: http://dun.github.io/conman/
|
||||
|
||||
Requires: expect
|
||||
Requires: logrotate
|
||||
Requires: %{name}-doc
|
||||
|
||||
BuildRequires: tcpd-devel
|
||||
%ifarch x86_64
|
||||
BuildRequires: freeipmi-devel
|
||||
%endif
|
||||
Source0: https://github.com/dun/conman/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2
|
||||
Source1: %{name}.service
|
||||
|
||||
# 8/15/14 karl.w.schulz@intel.com - include prereq
|
||||
%if 0%{?sles_version} || 0%{?suse_version}
|
||||
PreReq: %{fillup_prereq}
|
||||
%endif
|
||||
|
||||
%description
|
||||
ConMan is a serial console management program designed to support a large
|
||||
number of console devices and simultaneous users. It supports:
|
||||
- local serial devices
|
||||
- remote terminal servers (via the telnet protocol)
|
||||
- IPMI Serial-Over-LAN (via FreeIPMI)
|
||||
- Unix domain sockets
|
||||
- external processes (eg, using Expect for telnet/ssh/ipmi-sol connections)
|
||||
|
||||
Its features include:
|
||||
- logging (and optionally timestamping) console device output to file
|
||||
- connecting to consoles in monitor (R/O) or interactive (R/W) mode
|
||||
- allowing clients to share or steal console write privileges
|
||||
- broadcasting client output to multiple consoles
|
||||
|
||||
%package doc
|
||||
Summary: The Console Manager Client/Server Documentation
|
||||
BuildArch: noarch
|
||||
Group: System/Console
|
||||
|
||||
%description doc
|
||||
ConMan is a serial console management program designed to support a large
|
||||
number of console devices and simultaneous users.
|
||||
This package contains the common documentation files for client and server.
|
||||
|
||||
|
||||
%package -n conmand
|
||||
Summary: The Console Manager Server Daemon
|
||||
BuildArch: noarch
|
||||
Group: System/Console
|
||||
Requires: %{name}-doc
|
||||
|
||||
%description -n conmand
|
||||
ConMan is a serial console management program designed to support a large
|
||||
number of console devices and simultaneous users.
|
||||
This package contains the server daemon. The client is provided with
|
||||
package %{name}
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
|
||||
%build
|
||||
%configure --with-tcp-wrappers \
|
||||
%ifarch x86_64
|
||||
--with-freeipmi \
|
||||
%endif
|
||||
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make install DESTDIR="%{buildroot}"
|
||||
|
||||
install -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
|
||||
rm -rf %{buildroot}%{_sysconfdir}/init.d
|
||||
%{__ln_s} %{_sbindir}/service %{buildroot}%{_sbindir}/rcconman
|
||||
%{__mkdir_p} %{buildroot}/var/adm/fillup-templates
|
||||
%{__mv} %{buildroot}%{_sysconfdir}/sysconfig/conman \
|
||||
%{buildroot}/var/adm/fillup-templates/sysconfig.conman
|
||||
for i in $(find %{buildroot}/usr/lib/conman) ; do
|
||||
if [ -f $i -a -x $i ]; then
|
||||
if ! head -1 $i | grep "^#!"; then
|
||||
echo "#!/usr/bin/expect -f" > /tmp/$(basename $i)
|
||||
cat $i >> /tmp/$(basename $i)
|
||||
mv /tmp/$(basename $i) $i
|
||||
chmod 0755 $i
|
||||
fi
|
||||
fi
|
||||
done
|
||||
if ! grep "^SERVER" %{buildroot}/etc/conman.conf > /dev/null; then
|
||||
cat <<EOF >> %{buildroot}/etc/conman.conf
|
||||
SERVER keepalive=ON
|
||||
SERVER logdir="/var/log/conman"
|
||||
SERVER logfile="/var/log/conman.log"
|
||||
SERVER loopback=ON
|
||||
SERVER pidfile="/var/run/conman.pid"
|
||||
SERVER resetcmd="powerman -0 %N; sleep 3; powerman -1 %N"
|
||||
SERVER tcpwrappers=ON
|
||||
SERVER timestamp=1h
|
||||
GLOBAL seropts="115200,8n1"
|
||||
GLOBAL log="console.%N"
|
||||
GLOBAL logopts="sanitize,timestamp"
|
||||
EOF
|
||||
fi
|
||||
|
||||
%clean
|
||||
rm -rf "%{buildroot}"
|
||||
|
||||
%pre
|
||||
%service_add_pre conman.service
|
||||
|
||||
%preun
|
||||
%service_del_preun conman.service
|
||||
|
||||
%post
|
||||
%fillup_only conman
|
||||
%service_add_post conman.service
|
||||
|
||||
%postun
|
||||
%service_del_postun conman.service
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/*
|
||||
%dir %{_prefix}/lib/conman
|
||||
%{_prefix}/lib/conman/*.exp
|
||||
%{_prefix}/lib/conman/examples
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS
|
||||
%doc ChangeLog
|
||||
%doc COPYING
|
||||
%doc DISCLAIMER*
|
||||
%doc FAQ
|
||||
%doc NEWS
|
||||
%doc README
|
||||
%doc THANKS
|
||||
|
||||
%files -n conmand
|
||||
%{_localstatedir}/adm/fillup-templates/sysconfig.conman
|
||||
%config(noreplace) %{_sysconfdir}/conman.conf
|
||||
%config(noreplace) %{_sysconfdir}/logrotate.d/conman
|
||||
%{_sbindir}/*
|
||||
%dir %{_prefix}/lib/conman
|
||||
%{_prefix}/lib/conman/exec
|
||||
%{_prefix}/lib/systemd/*
|
||||
%{_mandir}/man5/*
|
||||
%{_mandir}/man8/*
|
Loading…
Reference in New Issue
Block a user