1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

Change approach to missing manpage in net/intel-ix-kmod

Instead of not installing the missing man page - use the one from the previous
version.

Changes include:
- Revert all the MANPAGEEXISTS-related changes from net/intel-{ixl,ix}-kmod
- Allow slave ports of net/intel-ixl-kmod to set their own MASTER_SITES
- Add previous version of intel-ix-kmod to it's DISTFILES
- Add pre-install target to intel-ixl-kmod to place the man page where
  do-install expects to find it
This commit is contained in:
Serhii (Sergey) Kozlov 2020-06-12 07:44:24 +00:00
parent 04cf5f761a
commit 6d184086ef
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=538566
3 changed files with 26 additions and 17 deletions

View File

@ -3,14 +3,22 @@
PORTNAME= ix
PORTVERSION= 3.3.14
PORTREVISION= 0
PORTREVISION= 1
PORTEPOCH= 0
MASTER_SITE_SUBDIR= 14688/eng
MASTER_SITES?= https://downloadmirror.intel.com/14688/eng/ \
http://downloadmirror.intel.com/14688/eng/ \
https://downloadmirror.intel.com/29625/eng/:man \
http://downloadmirror.intel.com/29625/eng/:man
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
${_MAN_SOURCE}${EXTRACT_SUFX}:man
_MAN_SOURCE= ${PORTNAME}-3.3.10
MAINTAINER= freebsd@intel.com
COMMENT= 10 gigabit FreeBSD Base Driver for Intel(R) Network Connections
MANPAGEEXISTS= 0
MANPAGENAME= ixgbe
MANPAGELINKS= ix if_ix if_ixgbe
MAX_NETMAP_OSVERSION= 9999999
@ -24,4 +32,7 @@ SRIOV_DESC= Enable SR-IOV support (experimental)
post-patch-SRIOV-on:
@${SED} -i '' 's|SRIOV_ENABLE = 0|SRIOV_ENABLE = 1|g' ${WRKSRC}/Makefile
pre-install:
${CP} ${WRKDIR}/${_MAN_SOURCE}/src/${MANPAGENAME}.4 ${WRKSRC}
.include "${MASTERDIR}/Makefile"

View File

@ -1,3 +1,5 @@
TIMESTAMP = 1591712557
TIMESTAMP = 1591947342
SHA256 (ix-3.3.14.tar.gz) = 2340b065c5a3d1c3fdef4564045b42a6916d3730a9524a86f4271a1092b0f591
SIZE (ix-3.3.14.tar.gz) = 275148
SHA256 (ix-3.3.10.tar.gz) = ed65546493c2af55827c27a86dca94c4efafedb653e94715923413f8ba7a7ca1
SIZE (ix-3.3.10.tar.gz) = 272974

View File

@ -5,7 +5,7 @@ PORTNAME?= ixl
PORTVERSION?= 1.11.9
PORTREVISION?= 1
CATEGORIES= net
MASTER_SITES= https://downloadmirror.intel.com/${MASTER_SITE_SUBDIR}/ \
MASTER_SITES?= https://downloadmirror.intel.com/${MASTER_SITE_SUBDIR}/ \
http://downloadmirror.intel.com/${MASTER_SITE_SUBDIR}/
MASTER_SITE_SUBDIR?= 25160/eng
PKGNAMEPREFIX= intel-
@ -33,18 +33,15 @@ WRKSRC_SUBDIR= src
SUB_FILES= pkg-message
SUB_LIST= PORTNAME=${PORTNAME}
MAKE_ENV+= WERROR=""
PLIST_FILES= ${KMODDIR}/if_${PORTNAME}_updated.ko
MANPAGEEXISTS?= 1
MANPAGENAME?= ${PORTNAME}
MANPAGELINKS?= if_${PORTNAME}
PLIST_FILES= ${KMODDIR}/if_${PORTNAME}_updated.ko \
man/man4/${MANPAGENAME}.4.gz
MAKE_ENV+= WERROR=""
.if ${MANPAGEEXISTS}
PLIST_FILES+= man/man4/${MANPAGENAME}.4.gz
.for link in ${MANPAGELINKS}
PLIST_FILES+= man/man4/${link}.4.gz
.endfor
.endif
MAX_NETMAP_OSVERSION?= 1200500 # Maximum OSVERSION for which NETMAP support works
@ -62,11 +59,10 @@ CFLAGS+= -DDEV_NETMAP
do-install:
${INSTALL_KLD} ${WRKSRC}/if_${PORTNAME}.ko ${STAGEDIR}${KMODDIR}/if_${PORTNAME}_updated.ko
.if ${MANPAGEEXISTS}
${INSTALL_MAN} ${WRKSRC}/${MANPAGENAME}.4 ${STAGEDIR}${MAN4PREFIX}/man/man4/
.for link in ${MANPAGELINKS}
${LN} ${STAGEDIR}${MAN4PREFIX}/man/man4/${MANPAGENAME}.4 ${STAGEDIR}${MAN4PREFIX}/man/man4/${link}.4
.endfor
.endif
.include <bsd.port.post.mk>