Sync from SUSE:SLFO:Main tunctl revision 2d40bdc83ca6cf845ee0e7e7f41ccbae

This commit is contained in:
Adrian Schröter 2024-05-04 01:32:33 +02:00
commit 59bec6291a
5 changed files with 174 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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

View File

@ -0,0 +1,21 @@
--- Makefile 2011-02-16 17:15:06.545843611 +0000
+++ Makefile.new 2011-02-16 17:15:23.826847102 +0000
@@ -21,17 +21,17 @@
clean :
rm -f $(BIN) $(OBJS) $(MAN) *~ manpage.*
install : $(BIN) $(MAN)
install -d $(DESTDIR)$(BIN_DIR)
install $(BIN) $(DESTDIR)$(BIN_DIR)
install -d $(DESTDIR)$(MAN_DIR)
- install $(MAN) $(DESTDIR)$(MAN_DIR)
+ install -m 0644 $(MAN) $(DESTDIR)$(MAN_DIR)
.PHONY: dist
dist: distcheck
rm -rf dist/$(PACKAGE)-$(VERSION)
mkdir -p dist/$(PACKAGE)-$(VERSION)
cp -p $(DIST) dist/$(PACKAGE)-$(VERSION)
tar -C dist -zcf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)

BIN
tunctl-1.5.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

69
tunctl.changes Normal file
View File

@ -0,0 +1,69 @@
-------------------------------------------------------------------
Tue Sep 28 14:44:14 UTC 2021 - Reinhard Max <max@suse.com>
- bsc#1191103: Move executable to /usr/sbin.
-------------------------------------------------------------------
Mon May 12 14:08:15 UTC 2014 - tchvatal@suse.com
- Remove pointless commented lines.
-------------------------------------------------------------------
Fri Apr 5 10:14:48 UTC 2013 - idonmez@suse.com
- Cleanup spec file
- Add Source URL, see https://en.opensuse.org/SourceUrls
-------------------------------------------------------------------
Wed Apr 18 07:51:46 UTC 2012 - coolo@suse.com
- only buildrequire the minimal set of docbook-utils, we only need
docbook2man
-------------------------------------------------------------------
Mon Mar 21 16:49:31 UTC 2011 - coolo@novell.com
- licenses package is about to die
-------------------------------------------------------------------
Wed Feb 16 17:21:38 UTC 2011 - pcerny@novell.com
- patch Makefile to install the manpage as not-executable
-------------------------------------------------------------------
Tue Nov 16 14:55:29 UTC 2010 - mvyskocil@suse.cz
- use DESTDIR=%%buildroot on darix's advice
-------------------------------------------------------------------
Thu Nov 11 14:08:59 UTC 2010 - mvyskocil@suse.cz
- fixes bnc#650468 - network tunnel scripts reference tunctl by wrong path
* move tunctl binary to /sbin as is needed for boot
-------------------------------------------------------------------
Mon Aug 2 11:00:23 UTC 2010 - mvyskocil@suse.cz
- fixes bnc#626582: tunctl has no manpage
- used the tunctl 1.5 sources from tunctl.sf.net:
* man page from Debian
* contains SUSE patches (so obsolete them here)
-------------------------------------------------------------------
Thu May 29 16:22:25 CEST 2008 - mt@suse.de
- Fixed swapped -n and -p options in tunctl-tun-support.diff
-------------------------------------------------------------------
Mon Apr 14 13:29:16 CEST 2008 - skh@suse.de
- update to uml_utilities_20070815
- adjusted uml-utilities-tunctl-tun-support.diff accordingly
-------------------------------------------------------------------
Wed Mar 12 14:38:58 CET 2008 - mt@suse.de
- Moved tunctl from uml-utilities into a separate package,
adopted spec file and existing patches.
- Implemented support of point-to-point tun interface type

58
tunctl.spec Normal file
View File

@ -0,0 +1,58 @@
#
# spec file for package tunctl
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: tunctl
Version: 1.5
Release: 0
Summary: Create and remove virtual network interfaces
License: GPL-2.0-or-later
Group: System/Management
URL: http://tunctl.sourceforge.net/
Source0: http://sourceforge.net/projects/tunctl/files/tunctl/%{version}/%{name}-%{version}.tar.gz
Patch0: %{name}-%{version}-install-manpage-noexec.patch
BuildRequires: docbook-utils-minimal
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
tunctl is a tool to set up and maintain persistent TUN/TAP network
interfaces, enabling user applications access to the wire side of a
virtual nework interface. Such interfaces is useful for connecting VPN
software, virtualization, emulation and a number of other similar
applications to the network stack.
tunctl originates from the User Mode Linux project.
%prep
%setup -q
%patch0
%build
make CFLAGS="%{optflags}" %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
install -d -m 0755 %{buildroot}/%{_docdir}/%{name}/
install -m 0644 ChangeLog %{buildroot}/%{_docdir}/%{name}/
%files
%defattr(-,root,root)
%doc %{_docdir}/%{name}
%doc %{_mandir}/man8/%{name}.8*
%attr(0755,root,root) /usr/sbin/tunctl
%changelog