From 59bec6291a6fe5519418399112f76f9eb404f1401106c8d0bb0b42dba86ea8f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Sat, 4 May 2024 01:32:33 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main tunctl revision 2d40bdc83ca6cf845ee0e7e7f41ccbae --- .gitattributes | 23 +++++++++ tunctl-1.5-install-manpage-noexec.patch | 21 ++++++++ tunctl-1.5.tar.gz | 3 ++ tunctl.changes | 69 +++++++++++++++++++++++++ tunctl.spec | 58 +++++++++++++++++++++ 5 files changed, 174 insertions(+) create mode 100644 .gitattributes create mode 100644 tunctl-1.5-install-manpage-noexec.patch create mode 100644 tunctl-1.5.tar.gz create mode 100644 tunctl.changes create mode 100644 tunctl.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/tunctl-1.5-install-manpage-noexec.patch b/tunctl-1.5-install-manpage-noexec.patch new file mode 100644 index 0000000..336d568 --- /dev/null +++ b/tunctl-1.5-install-manpage-noexec.patch @@ -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) + diff --git a/tunctl-1.5.tar.gz b/tunctl-1.5.tar.gz new file mode 100644 index 0000000..6e51399 --- /dev/null +++ b/tunctl-1.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aa2a6c4cc6bfacb11e0d9f62334a6638a0d435475c61230116f00b6af8b14fff +size 4982 diff --git a/tunctl.changes b/tunctl.changes new file mode 100644 index 0000000..ec36111 --- /dev/null +++ b/tunctl.changes @@ -0,0 +1,69 @@ +------------------------------------------------------------------- +Tue Sep 28 14:44:14 UTC 2021 - Reinhard Max + +- 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 + diff --git a/tunctl.spec b/tunctl.spec new file mode 100644 index 0000000..8c0cbcc --- /dev/null +++ b/tunctl.spec @@ -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