My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/servers/hylafaxplus/post-patch.sh

18 lines
570 B

# 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