depot/third_party/nixpkgs/pkgs/servers/hylafaxplus/post-patch.sh
Default email ec92d4d331 Project import generated by Copybara.
GitOrigin-RevId: 540dccb2aeaffa9dc69bfdc41c55abd7ccc6baa3
2021-05-28 11:39:13 +02:00

18 lines
570 B
Bash

# Replace strange default value for the nobody account.
if test -n "@maxuid@"
then
for f in util/faxadduser.c hfaxd/manifest.h
do
substituteInPlace "$f" --replace 60002 "@maxuid@"
done
fi
# Replace hardcoded `PATH` variables with proper paths.
# Note: `findutils` is needed for `faxcron`.
substituteInPlace faxcover/edit-faxcover.sh.in \
--replace 'PATH=/bin' 'PATH="@faxcover_binpath@"'
substituteInPlace etc/faxsetup.sh.in \
--replace 'PATH=/bin' 'PATH="@faxsetup_binpath@"'
# Create `config.site`
substitute "@configSite@" config.site --subst-var out