FreeBSD Bugzilla – Attachment 176352 Details for
Bug 213956
[New Port] devel/libtuntap: Library for configuring TUN or TAP devices in a portable manner
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch adds devel/libtuntap (with little comment fix)
patch-adds-libtuntap-port.diff (text/plain), 4.22 KB, created by
Mahdi Mokhtari
on 2016-10-31 20:31:07 UTC
(
hide
)
Description:
Patch adds devel/libtuntap (with little comment fix)
Filename:
MIME Type:
Creator:
Mahdi Mokhtari
Created:
2016-10-31 20:31:07 UTC
Size:
4.22 KB
patch
obsolete
>Index: devel/Makefile >=================================================================== >--- devel/Makefile (revision 423641) >+++ devel/Makefile (working copy) >@@ -1395,6 +1395,7 @@ > SUBDIR += libtifiles2 > SUBDIR += libtool > SUBDIR += libtpl >+ SUBDIR += libtuntap > SUBDIR += libublio > SUBDIR += libukcprog > SUBDIR += libunicode >Index: devel/libtuntap/Makefile >=================================================================== >--- devel/libtuntap/Makefile (nonexistent) >+++ devel/libtuntap/Makefile (working copy) >@@ -0,0 +1,40 @@ >+# Created by: Mahdi Mokhtari <mokhi64@gmail.com> >+# $FreeBSD$ >+ >+PORTNAME= libtuntap >+PORTVERSION= 2.1 >+CATEGORIES= devel >+ >+MAINTAINER= mokhi64@gmail.com >+COMMENT= Library for configuring TUN or TAP devices in a portable manner >+ >+LICENSE= MIT >+ >+BUILD_DEPENDS= cmake>=2.8:devel/cmake >+ >+USES= cmake shebangfix >+USE_LDCONFIG= yes >+ >+USE_GITHUB= yes >+GH_ACCOUNT= m0khi >+GH_TAGNAME= 6182ddf >+ >+OPTIONS_DEFINE+= CXX_WRPR RGRSS_TEST >+OPTIONS_SUB= yes >+ >+CXX_WRPR_DESC= Build CXX wrapper for libtuntap >+RGRSS_TEST_DESC= Build Regression tests for libtuntap >+ >+CXX_WRPR_CMAKE_ON= -DENABLE_CXX=ON >+CXX_WRPR_USE+= compiler:c++11-lib >+RGRSS_TEST_CMAKE_ON= -DENABLE_REGRESS=ON >+CMAKE_BUILD_TYPE= Release >+ >+.include <bsd.port.options.mk> >+ >+check: build >+.if ${PORT_OPTIONS:MRGRSS_TEST} >+ @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test) >+.endif >+ >+.include <bsd.port.mk> >Index: devel/libtuntap/distinfo >=================================================================== >--- devel/libtuntap/distinfo (nonexistent) >+++ devel/libtuntap/distinfo (working copy) >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1477933210 >+SHA256 (m0khi-libtuntap-2.1-6182ddf_GH0.tar.gz) = c4a7be5d6e1bcf64f35f2f2d2b119555b0c06dac48a017e387c5bc6ad8b91a71 >+SIZE (m0khi-libtuntap-2.1-6182ddf_GH0.tar.gz) = 22245 >Index: devel/libtuntap/files/patch-CMakeLists.txt >=================================================================== >--- devel/libtuntap/files/patch-CMakeLists.txt (nonexistent) >+++ devel/libtuntap/files/patch-CMakeLists.txt (working copy) >@@ -0,0 +1,14 @@ >+--- CMakeLists.txt.orig 2016-10-29 14:49:34 UTC >++++ CMakeLists.txt >+@@ -124,6 +124,11 @@ if(UNIX) >+ install(TARGETS tuntap DESTINATION lib) >+ install(TARGETS tuntap-static DESTINATION lib) >+ install(FILES tuntap.h DESTINATION include) >++ if(ENABLE_CXX) >++ install(TARGETS tuntap++ DESTINATION lib) >++ install(TARGETS tuntap++-static DESTINATION lib) >++ install(FILES bindings/cpp/tuntap++.hh DESTINATION include) >++ endif(ENABLE_CXX) >+ endif(UNIX) >+ >+ include(CMakeLists.txt.local OPTIONAL) >Index: devel/libtuntap/files/patch-bindings_cpp_tuntap++.cc >=================================================================== >--- devel/libtuntap/files/patch-bindings_cpp_tuntap++.cc (nonexistent) >+++ devel/libtuntap/files/patch-bindings_cpp_tuntap++.cc (working copy) >@@ -0,0 +1,20 @@ >+--- bindings/cpp/tuntap++.cc.orig 2016-10-29 14:49:34 UTC >++++ bindings/cpp/tuntap++.cc >+@@ -7,7 +7,7 @@ >+ namespace tuntap { >+ >+ tun::tun() >+- : _dev{tuntap_init()} >++ : _dev(tuntap_init()) >+ { >+ tuntap_start(_dev, TUNTAP_MODE_TUNNEL, TUNTAP_ID_ANY); >+ } >+@@ -84,7 +84,7 @@ tun::nonblocking(bool b) >+ } >+ >+ tap::tap() >+- : _dev{tuntap_init()} >++ : _dev(tuntap_init()) >+ { >+ tuntap_start(_dev, TUNTAP_MODE_ETHERNET, TUNTAP_ID_ANY); >+ } >Index: devel/libtuntap/pkg-descr >=================================================================== >--- devel/libtuntap/pkg-descr (nonexistent) >+++ devel/libtuntap/pkg-descr (working copy) >@@ -0,0 +1,8 @@ >+libtuntap is a library for configuring TUN or TAP devices in a portable manner. >+ >+TUN and TAP are virtual networking devices which allow >+userland applications to receive packets sent to it. >+ >+The userland applications can also send their own packets to the devices >+and they will be forwarded to the kernel. >+ >Index: devel/libtuntap/pkg-plist >=================================================================== >--- devel/libtuntap/pkg-plist (nonexistent) >+++ devel/libtuntap/pkg-plist (working copy) >@@ -0,0 +1,8 @@ >+include/tuntap.h >+%%CXX_WRPR%%include/tuntap++.hh >+lib/libtuntap.a >+lib/libtuntap.so >+lib/libtuntap.so.2.1 >+%%CXX_WRPR%%lib/libtuntap++.a >+%%CXX_WRPR%%lib/libtuntap++.so >+%%CXX_WRPR%%lib/libtuntap++.so.2.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 213956
:
176351
|
176352
|
176381