diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2017-12-18 22:43:44 +0000 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2017-12-18 22:43:44 +0000 |
commit | 4dbc2863a73dd56a0b0703ff1d1afe5dcfe8fb2a (patch) | |
tree | a90a2de1c61388d57aaa390465e7c250324bf77d /misc/libpostal/files/patch-src_libpostal__data | |
parent | New port: x11/hhpc: Small and easy to use console text editor (diff) |
New port: misc/libpostal: Library for parsing/normalizing street addresses around the world
PR: 224262
Submitted by: Dmitri Goutnik <dg@syrec.org>
Approved by: adamw (mentor)
Differential Revision: https://reviews.freebsd.org/D13468
Diffstat (limited to 'misc/libpostal/files/patch-src_libpostal__data')
-rw-r--r-- | misc/libpostal/files/patch-src_libpostal__data | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/misc/libpostal/files/patch-src_libpostal__data b/misc/libpostal/files/patch-src_libpostal__data new file mode 100644 index 000000000000..d6bf904d6763 --- /dev/null +++ b/misc/libpostal/files/patch-src_libpostal__data @@ -0,0 +1,23 @@ +--- src/libpostal_data.orig 2017-04-07 21:40:27 UTC ++++ src/libpostal_data +@@ -78,9 +78,9 @@ download_multipart() { + else + max=$size; + fi; +- printf "%s\0%s\0%s\0%s\0%s\0" "$i" "$offset" "$max" "$url" "$part_filename" ++ printf "%s\0%s\0%s\0%s\0%s\0%s\0%s\0" "x" "$i" "$offset" "$max" "$url" "$part_filename" + offset=$((offset+CHUNK_SIZE)) +- done | xargs -0 -n 5 -P $NUM_WORKERS sh -c "$DOWNLOAD_PART" -- ++ done | xargs -0 -n 6 -P $NUM_WORKERS sh -c "$DOWNLOAD_PART" -- + + > $local_path + +@@ -176,6 +176,8 @@ if [ $COMMAND = "download" ]; then + download_file $LIBPOSTAL_LANG_CLASS_UPDATED_PATH $LIBPOSTAL_DATA_DIR $lang_class_s3_prefix $LIBPOSTAL_LANG_CLASS_FILE "language classifier data file" $LANGUAGE_CLASSIFIER_MODULE_DIR + fi + ++ chown -R root:wheel $LIBPOSTAL_DATA_DIR ++ + if [ "$LIBPOSTAL_DATA_DIR_VERSION" != "$LIBPOSTAL_VERSION_STRING" ]; then + echo $LIBPOSTAL_VERSION_STRING > $LIBPOSTAL_DATA_VERSION_FILE; + fi |