···11+commit c44347b3b813e209fff537b4d46d23430727a5e2
22+Author: Bernardo Meurer <meurerbernardo@gmail.com>
33+Date: Tue Feb 25 21:27:39 2020 -0800
44+55+ makefile: correctly sed paths
66+77+ The default Makefile for tlp makes a mess with catenating `DESTDIR` to
88+ everything, but then not actualy using the catenated (_ prefixed)
99+ variables to sed it's `.in` files.
1010+1111+ This patch makes sure that it correctly sets the paths, taking `DESTDIR`
1212+ in account where it makes sense (e.g. /bin where we want $out/bin) but
1313+ not where it doesn't (/etc/tlp.conf should be just that).
1414+1515+ The reason DESTDIR is used at all, as opposed to the more appropriate
1616+ PREFIX, is covered in the nix formula, and is (also) due to the Makefile
1717+ being a bit "different."
1818+1919+diff --git a/Makefile b/Makefile
2020+index b5af74e..95122df 100644
2121+--- a/Makefile
2222++++ b/Makefile
2323+@@ -47,17 +47,17 @@ _TPACPIBAT = $(DESTDIR)$(TPACPIBAT)
2424+2525+ SED = sed \
2626+ -e "s|@TLPVER@|$(TLPVER)|g" \
2727+- -e "s|@TLP_SBIN@|$(TLP_SBIN)|g" \
2828+- -e "s|@TLP_TLIB@|$(TLP_TLIB)|g" \
2929+- -e "s|@TLP_FLIB@|$(TLP_FLIB)|g" \
3030+- -e "s|@TLP_ULIB@|$(TLP_ULIB)|g" \
3131++ -e "s|@TLP_SBIN@|$(_SBIN)|g" \
3232++ -e "s|@TLP_TLIB@|$(_TLIB)|g" \
3333++ -e "s|@TLP_FLIB@|$(_FLIB)|g" \
3434++ -e "s|@TLP_ULIB@|$(_ULIB)|g" \
3535+ -e "s|@TLP_CONFUSR@|$(TLP_CONFUSR)|g" \
3636+ -e "s|@TLP_CONFDIR@|$(TLP_CONFDIR)|g" \
3737+- -e "s|@TLP_CONFDEF@|$(TLP_CONFDEF)|g" \
3838++ -e "s|@TLP_CONFDEF@|$(_CONFDEF)|g" \
3939+ -e "s|@TLP_CONF@|$(TLP_CONF)|g" \
4040+ -e "s|@TLP_RUN@|$(TLP_RUN)|g" \
4141+ -e "s|@TLP_VAR@|$(TLP_VAR)|g" \
4242+- -e "s|@TPACPIBAT@|$(TPACPIBAT)|g"
4343++ -e "s|@TPACPIBAT@|$(_TPACPIBAT)|g"
4444+4545+ INFILES = \
4646+ tlp \