about summary refs log tree commit diff
path: root/pkgs/servers/hylafaxplus/post-patch.sh
blob: 43ee91d2f62cc5a0e2f366b9ce9c6ae09438476d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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