diff options
author | Yarny0 <41838844+Yarny0@users.noreply.github.com> | 2018-08-04 14:10:28 +0200 |
---|---|---|
committer | Yarny0 <41838844+Yarny0@users.noreply.github.com> | 2018-09-08 14:21:40 +0200 |
commit | a08b633fe7b636556ece29cc75448254b6ac3d28 (patch) | |
tree | f4ca158658072e16db424cba1febbcd23d732c9a /pkgs/servers/hylafaxplus/post-patch.sh | |
parent | f2c5b98649f20619a61dd43171023bd2b191ed7e (diff) | |
download | nixlib-a08b633fe7b636556ece29cc75448254b6ac3d28.tar nixlib-a08b633fe7b636556ece29cc75448254b6ac3d28.tar.gz nixlib-a08b633fe7b636556ece29cc75448254b6ac3d28.tar.bz2 nixlib-a08b633fe7b636556ece29cc75448254b6ac3d28.tar.lz nixlib-a08b633fe7b636556ece29cc75448254b6ac3d28.tar.xz nixlib-a08b633fe7b636556ece29cc75448254b6ac3d28.tar.zst nixlib-a08b633fe7b636556ece29cc75448254b6ac3d28.zip |
HylaFAX+: init at 5.6.0
Create the top-level packages attribute 'hylafaxplus' that builds HylaFAX+ . Note: The nobody uid and the nogroup gid are hardcoded in the package. The package build recipe file contains options to modify these ids.
Diffstat (limited to 'pkgs/servers/hylafaxplus/post-patch.sh')
-rw-r--r-- | pkgs/servers/hylafaxplus/post-patch.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/servers/hylafaxplus/post-patch.sh b/pkgs/servers/hylafaxplus/post-patch.sh new file mode 100644 index 000000000000..6ec5937147e2 --- /dev/null +++ b/pkgs/servers/hylafaxplus/post-patch.sh @@ -0,0 +1,25 @@ +# `configure` (maybe others) set `POSIXLY_CORRECT`, which +# breaks the gcc wrapper script of nixpkgs (maybe others). +# We simply un-export `POSIXLY_CORRECT` after each export so +# its effects don't apply within nixpkgs wrapper scripts. +grep -rlF POSIXLY_CORRECT | xargs \ + sed '/export *POSIXLY_CORRECT/a export -n POSIXLY_CORRECT' -i + +# 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 |