Lines 18-24
Link Here
|
18 |
ONLY_FOR_ARCHS_REASON= specific to x86 processors |
18 |
ONLY_FOR_ARCHS_REASON= specific to x86 processors |
19 |
|
19 |
|
20 |
SUB_FILES= pkg-message |
20 |
SUB_FILES= pkg-message |
21 |
SUB_LIST= CPM_DIR=${CPM_DIR} INTEL_DIR=${INTEL_DIR} |
|
|
22 |
|
21 |
|
23 |
USE_GITHUB= yes |
22 |
USE_GITHUB= yes |
24 |
GH_ACCOUNT= kernschmelze |
23 |
GH_ACCOUNT= kernschmelze |
Lines 38-44
Link Here
|
38 |
CPM_GH_PROJECT= ${CPM_PROJECT}:cpm |
37 |
CPM_GH_PROJECT= ${CPM_PROJECT}:cpm |
39 |
CPM_GH_TAGNAME= ${CPM_TAGNAME}:cpm |
38 |
CPM_GH_TAGNAME= ${CPM_TAGNAME}:cpm |
40 |
CPM_DIR= ${WRKDIR}/${CPM_PROJECT}-${CPM_TAGNAME} |
39 |
CPM_DIR= ${WRKDIR}/${CPM_PROJECT}-${CPM_TAGNAME} |
41 |
CPM_DATADIR= ${DATADIR}/CPUMicrocodes/secondary/Intel |
40 |
CPM_INSTALLDIR= CPUMicrocodes/secondary/Intel |
42 |
|
41 |
|
43 |
INTEL_PACK= microcode-20180703.tgz |
42 |
INTEL_PACK= microcode-20180703.tgz |
44 |
INTEL_DESC= Download Intel microcode pack ${INTEL_PACK} |
43 |
INTEL_DESC= Download Intel microcode pack ${INTEL_PACK} |
Lines 45-52
Link Here
|
45 |
INTEL_MASTER_SITES= https://downloadmirror.intel.com/27945/eng/:intel |
44 |
INTEL_MASTER_SITES= https://downloadmirror.intel.com/27945/eng/:intel |
46 |
INTEL_DISTFILES= ${INTEL_PACK}:intel |
45 |
INTEL_DISTFILES= ${INTEL_PACK}:intel |
47 |
INTEL_DIR= ${WRKDIR}/intel-ucode |
46 |
INTEL_DIR= ${WRKDIR}/intel-ucode |
48 |
INTEL_DATADIR= ${DATADIR}/CPUMicrocodes/primary/Intel |
47 |
INTEL_INSTALLDIR= CPUMicrocodes/primary/Intel |
49 |
|
48 |
|
|
|
49 |
.include <bsd.port.options.mk> |
50 |
|
51 |
.if ${PORT_OPTIONS:MCPM} |
52 |
PORTDATA+= ${CPM_INSTALLDIR}/* |
53 |
.endif |
54 |
|
55 |
.if ${PORT_OPTIONS:MINTEL} |
56 |
PORTDATA+= ${INTEL_INSTALLDIR}/* |
57 |
.endif |
58 |
|
50 |
post-patch: |
59 |
post-patch: |
51 |
${REINPLACE_CMD} -e "s,/usr/local/share/cpupdate,${DATADIR},g" ${WRKSRC}/cpupdate.h |
60 |
${REINPLACE_CMD} -e "s,/usr/local/share/cpupdate,${DATADIR},g" ${WRKSRC}/cpupdate.h |
52 |
|
61 |
|
Lines 53-82
Link Here
|
53 |
do-install: |
62 |
do-install: |
54 |
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin |
63 |
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin |
55 |
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${STAGEDIR}${MANPREFIX}/man/man8 |
64 |
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${STAGEDIR}${MANPREFIX}/man/man8 |
56 |
|
|
|
57 |
.include <bsd.port.options.mk> |
58 |
|
59 |
install-microcodes: |
60 |
.if ${PORT_OPTIONS:MINTEL} |
65 |
.if ${PORT_OPTIONS:MINTEL} |
61 |
${RM} -rf ${INTEL_DATADIR} |
66 |
${MKDIR} ${STAGEDIR}${DATADIR}/${INTEL_INSTALLDIR} |
62 |
${MKDIR} ${INTEL_DATADIR} |
67 |
(cd ${INTEL_DIR} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/${INTEL_INSTALLDIR}) |
63 |
(cd ${INTEL_DIR} && ${COPYTREE_SHARE} . ${INTEL_DATADIR}) |
68 |
(cd ${INTEL_DIR}-with-caveats && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/${INTEL_INSTALLDIR}) |
64 |
(cd ${INTEL_DIR}-with-caveats && ${COPYTREE_SHARE} . ${INTEL_DATADIR}) |
|
|
65 |
.endif |
69 |
.endif |
66 |
.if ${PORT_OPTIONS:MCPM} |
70 |
.if ${PORT_OPTIONS:MCPM} |
67 |
${RM} -rf ${CPM_DATADIR} |
71 |
${MKDIR} ${STAGEDIR}${DATADIR}/${CPM_INSTALLDIR} |
68 |
${MKDIR} ${CPM_DATADIR} |
72 |
${STAGEDIR}${PREFIX}/sbin/cpupdate -IC -S ${CPM_DIR}/Intel -T ${STAGEDIR}${DATADIR}/${CPM_INSTALLDIR} |
69 |
cpupdate -IC -S ${CPM_DIR}/Intel -T ${CPM_DATADIR} |
|
|
70 |
.endif |
73 |
.endif |
71 |
.for _o in INTEL CPM |
|
|
72 |
.if ${PORT_OPTIONS:M${_o}} |
73 |
@${ECHO} '' |
74 |
@${ECHO} '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!' |
75 |
@${ECHO} NOTE: you have to manually remove the directory |
76 |
@${ECHO} ${${_o}_DATADIR} |
77 |
@${ECHO} after deinstallation of ${PORTNAME}. |
78 |
@${ECHO} '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!' |
79 |
.endif |
80 |
.endfor |
81 |
|
74 |
|
82 |
.include <bsd.port.mk> |
75 |
.include <bsd.port.mk> |