Skip to content

Commit

Permalink
net/libslirp: add new port
Browse files Browse the repository at this point in the history
A user-mode networking library used by virtual machines and containers.

WWW: https://gitlab.freedesktop.org/slirp/libslirp
  • Loading branch information
MaxBrazhnikov committed Dec 28, 2021
1 parent ffbdaf1 commit 7ed1f86
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions net/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@
SUBDIR += librespeed-go
SUBDIR += librsync
SUBDIR += libsignal-protocol-c
SUBDIR += libslirp
SUBDIR += libsrtp2
SUBDIR += libstorj
SUBDIR += libtnl
Expand Down
19 changes: 19 additions & 0 deletions net/libslirp/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
PORTNAME= libslirp
DISTVERSION= 4.6.1
CATEGORIES= net
MASTER_SITES= https://gitlab.freedesktop.org/slirp/libslirp/-/archive/v${DISTVERSION}/

MAINTAINER= makc@FreeBSD.org
COMMENT= General purpose TCP-IP emulator library

LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYRIGHT

USES= gnome meson pkgconfig tar:bz2
USE_GNOME= glib20
USE_LDCONFIG= yes

GL_COMMIT= cceced0cce9d578ed01db68edf31af78eb66f858
WRKSRC= ${WRKDIR}/${PORTNAME}-v${DISTVERSION}-${GL_COMMIT}

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions net/libslirp/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TIMESTAMP = 1640725729
SHA256 (libslirp-4.6.1.tar.bz2) = 6ade191f6a14c8fbe32e4b4644a8585e7a8c107ec07989d79825df7400c4fecd
SIZE (libslirp-4.6.1.tar.bz2) = 103091
10 changes: 10 additions & 0 deletions net/libslirp/files/patch-src_libslirp.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- src/libslirp.h.orig 2021-06-18 07:49:56 UTC
+++ src/libslirp.h
@@ -12,6 +12,7 @@
#include <in6addr.h>
#else
#include <netinet/in.h>
+#include <sys/socket.h>
#include <arpa/inet.h>
#endif

4 changes: 4 additions & 0 deletions net/libslirp/pkg-descr
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
libslirp is a user-mode networking library used by virtual machines,
containers or various tools.

WWW: https://gitlab.freedesktop.org/slirp/libslirp
6 changes: 6 additions & 0 deletions net/libslirp/pkg-plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
include/slirp/libslirp-version.h
include/slirp/libslirp.h
lib/libslirp.so
lib/libslirp.so.0
lib/libslirp.so.0.3.1
libdata/pkgconfig/slirp.pc

0 comments on commit 7ed1f86

Please sign in to comment.