Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1# Replace strange default value for the nobody account.
2if test -n "@maxuid@"
3then
4 for f in util/faxadduser.c hfaxd/manifest.h
5 do
6 substituteInPlace "$f" --replace 60002 "@maxuid@"
7 done
8fi
9
10# Replace hardcoded `PATH` variables with proper paths.
11# Note: `findutils` is needed for `faxcron`.
12substituteInPlace faxcover/edit-faxcover.sh.in \
13 --replace 'PATH=/bin' 'PATH="@faxcover_binpath@"'
14substituteInPlace etc/faxsetup.sh.in \
15 --replace 'PATH=/bin' 'PATH="@faxsetup_binpath@"'
16
17# Create `config.site`
18substitute "@configSite@" config.site --subst-var out