- bsd.port.mk: remove support for EOL FreeBSD 14.2 - devel/gitea-act_runner: update example to FreeBSD 14.3 - multimedia/kamoso: update comment to make it easier to find when looking for end-of-life FreeBSD versions. - net/libifconfig: prune end-of-life FreeBSD versions. - net/libpfctl: prune end-of-life FreeBSD versions. - x11-wm/hyprland: remove support for end-of-life FreeBSD 14.2 Differential Revision: https://reviews.freebsd.org/D52415 Reviewed by: bofh, kde, kp, saheed, tagattie Approved by: portmgr (implicit)
68 lines
1.7 KiB
Makefile
68 lines
1.7 KiB
Makefile
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.5 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>
|