netpbm: 10.82.01 → 10.89.1

https://sourceforge.net/p/netpbm/code/3735/tree//advanced/doc/HISTORY
This commit is contained in:
Jan Tojnar 2020-02-24 22:21:55 +01:00
parent 6b4d057b66
commit aa1aefd06a
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -17,17 +17,22 @@
stdenv.mkDerivation { stdenv.mkDerivation {
# Determine version and revision from: # Determine version and revision from:
# https://sourceforge.net/p/netpbm/code/HEAD/log/?path=/advanced # https://sourceforge.net/p/netpbm/code/HEAD/log/?path=/advanced
name = "netpbm-10.82.01"; name = "netpbm-10.89.1";
src = fetchsvn { src = fetchsvn {
url = "https://svn.code.sf.net/p/netpbm/code/advanced"; url = "https://svn.code.sf.net/p/netpbm/code/advanced";
rev = "3264"; rev = "3735";
sha256 = "17fmyjbxp1l18rma7gb0m8wd9kx2iwhqs8dd6fpalsn2cr8mf8hf"; sha256 = "hRepEUBlf83p77Amjze+Qz7XTHhCuPdV01K/UabR89Q=";
}; };
postPatch = /* CVE-2005-2471, from Arch */ '' postPatch = ''
# CVE-2005-2471, from Arch
substituteInPlace converter/other/pstopnm.c \ substituteInPlace converter/other/pstopnm.c \
--replace '"-dSAFER"' '"-dPARANOIDSAFER"' --replace '"-dSAFER"' '"-dPARANOIDSAFER"'
# Install libnetpbm.so symlink to correct destination
substituteInPlace lib/Makefile \
--replace '/sharedlink' '/lib'
''; '';
nativeBuildInputs = [ nativeBuildInputs = [
@ -79,7 +84,7 @@ stdenv.mkDerivation {
make package pkgdir=$out make package pkgdir=$out
rm -rf $out/link $out/*_template $out/{pkginfo,README,VERSION} $out/man/web rm -rf $out/*_template $out/{pkginfo,README,VERSION} $out/man/web
mkdir -p $out/share/netpbm mkdir -p $out/share/netpbm
mv $out/misc $out/share/netpbm/ mv $out/misc $out/share/netpbm/