···11+commit c44347b3b813e209fff537b4d46d23430727a5e2
22+Author: Bernardo Meurer <meurerbernardo@gmail.com>
33+Date: Tue Feb 25 21:27:39 2020 -0800
1425 makefile: correctly sed paths
33-66+47 The default Makefile for tlp makes a mess with catenating `DESTDIR` to
58 everything, but then not actualy using the catenated (_ prefixed)
69 variables to sed it's `.in` files.
77-1010+811 This patch makes sure that it correctly sets the paths, taking `DESTDIR`
912 in account where it makes sense (e.g. /bin where we want $out/bin) but
1013 not where it doesn't (/etc/tlp.conf should be just that).
1111-1414+1215 The reason DESTDIR is used at all, as opposed to the more appropriate
1316 PREFIX, is covered in the nix formula, and is (also) due to the Makefile
1417 being a bit "different."
15181619diff --git a/Makefile b/Makefile
1717-index e9bbab4..6b66651 100644
2020+index b5af74e..95122df 100644
1821--- a/Makefile
1922+++ b/Makefile
2020-@@ -51,19 +51,19 @@ _TPACPIBAT = $(DESTDIR)$(TPACPIBAT)
2323+@@ -47,17 +47,17 @@ _TPACPIBAT = $(DESTDIR)$(TPACPIBAT)
21242225 SED = sed \
2326 -e "s|@TLPVER@|$(TLPVER)|g" \
···2528- -e "s|@TLP_TLIB@|$(TLP_TLIB)|g" \
2629- -e "s|@TLP_FLIB@|$(TLP_FLIB)|g" \
2730- -e "s|@TLP_ULIB@|$(TLP_ULIB)|g" \
2828-- -e "s|@TLP_BATD@|$(TLP_BATD)|g" \
2931+ -e "s|@TLP_SBIN@|$(_SBIN)|g" \
3032+ -e "s|@TLP_TLIB@|$(_TLIB)|g" \
3133+ -e "s|@TLP_FLIB@|$(_FLIB)|g" \
3234+ -e "s|@TLP_ULIB@|$(_ULIB)|g" \
3333-+ -e "s|@TLP_BATD@|$(_BATD)|g" \
3435 -e "s|@TLP_CONFUSR@|$(TLP_CONFUSR)|g" \
3536 -e "s|@TLP_CONFDIR@|$(TLP_CONFDIR)|g" \
3637- -e "s|@TLP_CONFDEF@|$(TLP_CONFDEF)|g" \
3737-- -e "s|@TLP_CONFREN@|$(TLP_CONFREN)|g" \
3838+ -e "s|@TLP_CONFDEF@|$(_CONFDEF)|g" \
3939-+ -e "s|@TLP_CONFREN@|$(_CONFREN)|g" \
4039 -e "s|@TLP_CONF@|$(TLP_CONF)|g" \
4140 -e "s|@TLP_RUN@|$(TLP_RUN)|g" \
4241 -e "s|@TLP_VAR@|$(TLP_VAR)|g" \