Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / servers / hylafaxplus / post-patch.sh
blob43ee91d2f62cc5a0e2f366b9ce9c6ae09438476d
1 # Replace strange default value for the nobody account.
2 if test -n "@maxuid@"
3 then
4 for f in util/faxadduser.c hfaxd/manifest.h
5 do
6 substituteInPlace "$f" --replace 60002 "@maxuid@"
7 done
8 fi
10 # Replace hardcoded `PATH` variables with proper paths.
11 # Note: `findutils` is needed for `faxcron`.
12 substituteInPlace faxcover/edit-faxcover.sh.in \
13 --replace 'PATH=/bin' 'PATH="@faxcover_binpath@"'
14 substituteInPlace etc/faxsetup.sh.in \
15 --replace 'PATH=/bin' 'PATH="@faxsetup_binpath@"'
17 # Create `config.site`
18 substitute "@configSite@" config.site --subst-var out