blob: 82077d41d4da1663ef6cc84a9de3b4af2212e607 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
PORTNAME= intel-undervolt
DISTVERSION= 1.5-7
DISTVERSIONSUFFIX= -g66cfb65
CATEGORIES= sysutils
MAINTAINER= greg@unrelenting.technology
COMMENT= Intel CPU undervolting tool
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
ONLY_FOR_ARCHS= amd64 i386
ONLY_FOR_ARCHS_REASON= specifically for Haswell and newer Intel CPUs
RUN_DEPENDS= bash:shells/bash
USES= gmake
USE_GITHUB= yes
GH_ACCOUNT= kitsunyan
MAKE_ARGS= CC="${CC}" SYSCONFDIR="${PREFIX}/etc"
PLIST_FILES= bin/${PORTNAME} \
"@sample etc/${PORTNAME}.conf.sample"
post-patch:
${REINPLACE_CMD} "s|/bin/bash|${LOCALBASE}/bin/bash|g" ${WRKSRC}/config.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} \
${STAGEDIR}${PREFIX}/bin/
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf \
${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
.include <bsd.port.mk>
|