Changeset View
Changeset View
Standalone View
Standalone View
sysutils/intel-undervolt/Makefile
- This file was added.
# $FreeBSD$ | |||||
PORTNAME= intel-undervolt | |||||
DISTVERSION= 1.5-7 | |||||
DISTVERSIONSUFFIX= -g66cfb65 | |||||
CATEGORIES= sysutils | |||||
arrowd: Aren't you reimplementing `GH_TAGNAME` with this? | |||||
Done Inline ActionsI think this is fine, see Example 5.14. Using USE_GITHUB to Access a Commit Between Two Versions in the Porter's Handbook. 0mp: I think this is fine, see //Example 5.14. Using USE_GITHUB to Access a Commit Between Two… | |||||
Done Inline ActionsYeah, I always thought of DISTVERSIONSUFFIX=-gWHATEVER as a "higher level" wrapper around GH_TAGNAME val_packett.cool: Yeah, I always thought of `DISTVERSIONSUFFIX=-gWHATEVER` as a "higher level" wrapper around… | |||||
MAINTAINER= greg@unrelenting.technology | |||||
COMMENT= Intel CPU undervolting tool | |||||
LICENSE= GPLv3 | |||||
LICENSE_FILE= ${WRKSRC}/COPYING | |||||
RUN_DEPENDS= bash:shells/bash | |||||
USES= gmake | |||||
USE_GITHUB= yes | |||||
GH_ACCOUNT= kitsunyan | |||||
MAKE_ARGS= CC="${CC}" SYSCONFDIR="${PREFIX}/etc" | |||||
Done Inline ActionsWhy +=? tobik: Why `+=`? | |||||
PLIST_FILES= bin/${PORTNAME} \ | |||||
"@sample etc/${PORTNAME}.conf.sample" | |||||
Done Inline ActionsI think that we should use @sample here (see 8.6.9. @sample file [file] in the Porter's Handbook). 0mp: I think that we should use `@sample` here (see //8.6.9. @sample file [file]// in the Porter's… | |||||
Done Inline ActionsDo the @ things work with PLIST_FILES (w/o dedicated pkg-plist file)? val_packett.cool: Do the `@` things work with `PLIST_FILES` (w/o dedicated `pkg-plist` file)? | |||||
Done Inline ActionsAFAIR, yes. 0mp: AFAIR, yes. | |||||
Done Inline ActionsYes, of course. PLIST_FILES is basically just appended to TMPPLIST. Just make sure to quote the entry like "@sample etc/intel-undervolt.conf.sample", so that make(1) treats it as a single word and it's added as one line to it. tobik: Yes, of course. PLIST_FILES is basically just appended to TMPPLIST. Just make sure to quote… | |||||
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> |
Aren't you reimplementing GH_TAGNAME with this?