ddccontrol: Ensure that /etc files are included in package
This commit is contained in:
parent
dc211d3c4c
commit
84b9af46cf
|
@ -39,10 +39,17 @@ stdenv.mkDerivation rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
oldPath="\$""{datadir}/ddccontrol-db"
|
substituteInPlace configure.ac \
|
||||||
newPath="${ddccontrol-db}/share/ddccontrol-db"
|
--replace \
|
||||||
sed -i -e "s|$oldPath|$newPath|" configure.ac
|
"\$""{datadir}/ddccontrol-db" \
|
||||||
sed -i -e "s/chmod 4711/chmod 0711/" src/ddcpci/Makefile*
|
"${ddccontrol-db}/share/ddccontrol-db"
|
||||||
|
|
||||||
|
substituteInPlace src/ddcpci/Makefile.am \
|
||||||
|
--replace "chmod 4711" "chmod 0711"
|
||||||
|
'' + lib.optionalString (lib.versionAtLeast "0.6.0" version) ''
|
||||||
|
# Upstream PR: https://github.com/ddccontrol/ddccontrol/pull/115
|
||||||
|
substituteInPlace src/lib/Makefile.am \
|
||||||
|
--replace "/etc/" "\$""{sysconfdir}/"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
|
|
Loading…
Reference in a new issue