net/libifconfig: Add new port
Add libifconfig, a library providing the functionality of ifconfig(8) PR: 287765
This commit is contained in:
parent
b2025b681d
commit
7ef80570eb
@ -389,6 +389,7 @@
|
||||
SUBDIR += libgrss
|
||||
SUBDIR += libgweather
|
||||
SUBDIR += libgweather4
|
||||
SUBDIR += libifconfig
|
||||
SUBDIR += libilbc
|
||||
SUBDIR += libiscsi
|
||||
SUBDIR += libkgapi
|
||||
|
||||
67
net/libifconfig/Makefile
Normal file
67
net/libifconfig/Makefile
Normal file
@ -0,0 +1,67 @@
|
||||
PORTNAME= libifconfig
|
||||
PORTVERSION= 0.1
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= https://github.com/MainKt/freebsd-ports/releases/download/libifconf/
|
||||
|
||||
MAINTAINER= saheed@FreeBSD.org
|
||||
COMMENT= Library providing the functionality of ifconfig(8)
|
||||
WWW= https://cgit.freebsd.org/src/tree/lib/libifconfig
|
||||
|
||||
LICENSE= BSD3CLAUSE
|
||||
|
||||
MAKE_ARGS= PREFIX=${PREFIX}
|
||||
|
||||
CFLAGS+= -Wno-pointer-sign
|
||||
|
||||
WRKSRC= ${WRKDIR}/libifconfig
|
||||
|
||||
_LIBIFCONFIG_HASH= b670c9bafc0e
|
||||
_LIBIFCONFIG_REV= 0
|
||||
|
||||
PLIST_FILES= include/libifconfig.h \
|
||||
include/libifconfig_sfp.h \
|
||||
include/libifconfig_sfp_tables.h \
|
||||
lib/libifconfig.so \
|
||||
lib/libifconfig.so.2
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSREL} == "15.0"
|
||||
DISTFILES= libifconfig-${_LIBIFCONFIG_HASH}.tar.gz
|
||||
.else
|
||||
DISTFILES= libifconfig-${OSREL}_${_LIBIFCONFIG_REV}.tar.gz
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/lib
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/include
|
||||
${INSTALL_LIB} ${WRKSRC}/libifconfig.so.2 ${STAGEDIR}${PREFIX}/lib
|
||||
${LN} -s libifconfig.so.2 ${STAGEDIR}${PREFIX}/lib/libifconfig.so
|
||||
.for h in libifconfig.h libifconfig_sfp.h libifconfig_sfp_tables.h
|
||||
${INSTALL_DATA} ${WRKSRC}/${h} ${STAGEDIR}${PREFIX}/include
|
||||
.endfor
|
||||
|
||||
_ALL_VERSIONS= 13.3 13.4 13.5 14.0 14.1 14.2 14.3
|
||||
.if make(makesum)
|
||||
DISTFILES= libifconfig-${_LIBIFCONFIG_HASH}.tar.gz
|
||||
.for version in ${_ALL_VERSIONS}
|
||||
DISTFILES+= libifconfig-${version}_${_LIBIFCONFIG_REV}.tar.gz
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.if defined(MAINTAINER_MODE)
|
||||
upload:
|
||||
for version in ${_ALL_VERSIONS}; \
|
||||
do \
|
||||
cd /usr/src/lib && \
|
||||
git archive --format=tar.gz \
|
||||
--output=libifconfig-$${version}_${_LIBIFCONFIG_REV}.tar.gz \
|
||||
freebsd/releng/$${version} libifconfig ; \
|
||||
done
|
||||
cd /usr/src/lib && \
|
||||
git archive --format=tar.gz \
|
||||
--output=libifconfig-${_LIBIFCONFIG_HASH}.tar.gz \
|
||||
${_LIBIFCONFIG_HASH} libifconfig ;
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
17
net/libifconfig/distinfo
Normal file
17
net/libifconfig/distinfo
Normal file
@ -0,0 +1,17 @@
|
||||
TIMESTAMP = 1750761670
|
||||
SHA256 (libifconfig-13.3_0.tar.gz) = 7ccd7fab4f6a57d13638c82f3f848d1c08541f85f38d22d99f79125a39ac1982
|
||||
SIZE (libifconfig-13.3_0.tar.gz) = 22471
|
||||
SHA256 (libifconfig-13.4_0.tar.gz) = 33e092463f08b459cebb5b0e2238fca379409c91ad6793e3fbcc1b034cd1ade7
|
||||
SIZE (libifconfig-13.4_0.tar.gz) = 22470
|
||||
SHA256 (libifconfig-13.5_0.tar.gz) = b2bf5bd107ab75663736df3b918eed999a916fd0ed253ef7546c7633642ad934
|
||||
SIZE (libifconfig-13.5_0.tar.gz) = 22474
|
||||
SHA256 (libifconfig-14.0_0.tar.gz) = 8d2a5a9f6254479dc5f8175132bdd169699db2b36e5349ad21f9c791ab96689b
|
||||
SIZE (libifconfig-14.0_0.tar.gz) = 23706
|
||||
SHA256 (libifconfig-14.1_0.tar.gz) = c2d59622c9a9649afef8e30eb9fb825aa8cd3ec71c12160ed9f7a01c95dcabdb
|
||||
SIZE (libifconfig-14.1_0.tar.gz) = 23708
|
||||
SHA256 (libifconfig-14.2_0.tar.gz) = fbab01cf067a7c75d14adb7a5b682ab7718e0d0c2fcf03324f4e9157880c5afd
|
||||
SIZE (libifconfig-14.2_0.tar.gz) = 23709
|
||||
SHA256 (libifconfig-14.3_0.tar.gz) = 04069eacdf7ec216fad6769ab5fdc2d7e781cbb8e09f3d4356691984880f5fc7
|
||||
SIZE (libifconfig-14.3_0.tar.gz) = 23709
|
||||
SHA256 (libifconfig-b670c9bafc0e.tar.gz) = 87740e514a9c993ca4b7e1ed250df62aab766e60fd27e56e7b38dded4e835232
|
||||
SIZE (libifconfig-b670c9bafc0e.tar.gz) = 23854
|
||||
37
net/libifconfig/files/patch-Makefile
Normal file
37
net/libifconfig/files/patch-Makefile
Normal file
@ -0,0 +1,37 @@
|
||||
--- Makefile.orig 2025-06-21 02:57:45 UTC
|
||||
+++ Makefile
|
||||
@@ -1,15 +1,11 @@ LIB= ifconfig
|
||||
PACKAGE= lib${LIB}
|
||||
LIB= ifconfig
|
||||
-INTERNALLIB= true
|
||||
|
||||
-LIBADD= m
|
||||
+LDADD+= -lm
|
||||
|
||||
SHLIBDIR?= /lib
|
||||
SHLIB_MAJOR= 2
|
||||
|
||||
-VERSION_DEF= ${LIBCSRCDIR}/Versions.def
|
||||
-SYMBOL_MAPS= ${.CURDIR}/Symbol.map
|
||||
-
|
||||
SRCS= libifconfig.c \
|
||||
libifconfig_bridge.c \
|
||||
libifconfig_carp.c \
|
||||
@@ -26,7 +22,7 @@ SRCS+= ${GEN}
|
||||
|
||||
SRCS+= ${GEN}
|
||||
|
||||
-.include <src.lua.mk>
|
||||
+LUA= ${LIBEXECDIR}/flua
|
||||
|
||||
.SUFFIXES: .tpl.c .tpl.h
|
||||
.tpl.c.c .tpl.h.h: sfp.lua
|
||||
@@ -36,7 +32,7 @@ CLEANFILES+= ${GEN}
|
||||
|
||||
# If libifconfig become public uncomment those two lines
|
||||
#INCSDIR= ${INCLUDEDIR}
|
||||
-#INCS= libifconfig.h libifconfig_sfp.h libifconfig_sfp_tables.h
|
||||
+INCS= libifconfig.h libifconfig_sfp.h libifconfig_sfp_tables.h
|
||||
|
||||
#MAN= libifconfig.3
|
||||
|
||||
4
net/libifconfig/pkg-descr
Normal file
4
net/libifconfig/pkg-descr
Normal file
@ -0,0 +1,4 @@
|
||||
Ports version of the base system ifconfig(8) library, libifconfig.
|
||||
|
||||
libifconfig is a C library that provides programmatic access to most of the
|
||||
functionality offered by ifconfig(8).
|
||||
Loading…
x
Reference in New Issue
Block a user