20260622
*Fix issue get_pkgname_from_portdir().

20260505
*MAKE_JOBS_NUMBER_LIMIST -> MAKE_JOBS_NUMBER.

20260503
*Fix error "md5: File name too long"

20260502
*Quick fix error "md5: File name too long"

20260330
*Cleanup code

20260317
*Cleanup code

20260210
*Fix behavior attempting to install packages that are not installed
 with option "-dd".

20260209
*Changed the behavior option "-dd" using with option "-x"
 For example, when package foo and bar have loop dependencies, specifying
 the option "-x foo" excludes foo from the dependency check as follows.
 `pkg_replace -x foo -dd bar`
*Changed the behavior of get_pkgname_from_portdir() to detect updated ports
 checking with distinfo.

20260201
*Changed the behavior of get_pkgname_from_portdir() to detect updated ports

20260129
*Fix behavior of relative path processin in expand_path()

20260128
*Fix issue with -N mode
*Cleanup code

20260127
*Changed the behavior of get_pkgname_from_portdir() to detect updated ports

20260126
*Fix behavior of `pkg_replace -V`

20260123
*Improved execution speed using cache files `make -V FLAVORS`

20260121
*Fix typo
*Cleanup code
*Use md5 hashes as cache file names
*Renamed options:
 "--cleandeps" and "--no-cleandeps" have been renamed by "--updatedb" and
 "--no-updatedb", respectively.
*Add option:
 "--cleandb" option clean files in the PKG_REPLACE_DB_DIR.

20260120
*Cleanup code
*Save pkgname cache files in PKG_REPLACE_DB_DIR

20260119
*Improved execution speed using cache files
*Changed the default temporary directory to /tmp

20260115
*Fix typo
*Fix issue with --batch mode
Thanks Dmitry!

20240819
*Improved handling of moved ports.

20240728
*Improved man page.

20240611
*Fix error message in get_strict_depend_pkgs().
*Cleanup codes.

20240603
*Changed File format created by option "-dd" or "-RR" in the PKG_REPLACE_DB_DIR,
 i.e. from PKGNAME to PKGORIGIN, because it is expected to behave better when
 the ports are updates.
*Cleanup codes.
*Improved man page.

20240601
*Changed the default behavior of the PKG_REPLACE_DB_DIR with option
 "-dd" or "-RR". Created files are not deleted but retained.
 If you want to clean the PKG_REPLACE_DB_DIR, set option "--cleandeps".
*The default location of the PKG_REPLACE_DB_DIR has changed from
 /var/tmp/pkg_replace to /var/db/pkg_replace.
*Add option "--makedb". Create files only in the PKG_REPLACE_DB_DIR.
*Cleanup codes.

20240530
*Rename option "--no-conf" -> "--no-configfile".

20240526
*Cleanup options.
 Add "--no-verbose", "--no-config", and "--no-force-config", etc.

20240525
*Improved the summary message.

20240518
*Add "-X" option.
 Remove the libraries in PKGCOMPATDIR, when the specified packages have the
 libraries with the same name as the one in PKGCOMPATDIR. This may be useful
 when there are errors due to a mixture of old and new libraries.
 See pkg_replace(1).
*Improved the summary message.
*Cleanup codes.

20140516
*Cleanup codes.

20240514
*Remove the old library with the same name as the new library from PKGCOMPATDIR.
 See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268652

20240507
*Fix handling of removed ports.

20240303
*Improved handling of ports where origin has moved.

20240217
*Cleanup codes.

20240209
*Improved messages of SUBPACKAGES feature and IGNORE packages.

20240205
*Improved handling of SUBPACKAGES feature.

20240131
*Support SUBPACKAGES feature.

20231008
*Check the pkg command if it is installed or not.

20230922
*Improved FLAVOR handling when installing new packages.
 See example section in pkg_replace(1).

20230916
*Fix bug when FLAVOR is lost.

20230418
*Changed the behavior of "-U" option.
 If you use "-U" option, pkg_replace unlock packages before deinstall packages
 and lock packages again after install.

20230408
*Fix "-t" option bug in do_install().

20230329
*Add "-t" option.
 If you use `pkg_replace -t make_target ...`, do only `make make_target`.

20230327
*Fix handling relative path.

20230320
*Fix handling path bugs in set_pkginfo_install() and set_pkginfo_replace().

20230317
*Fix bug for fetch files (`make -DBATCH checksum` error).

20230228
*Cleanup code.

20230206
*Add to check for binary package file.
*Cleanup code.

20230202
*Cleanup code.

20230201
*Replace '\ ' -> '[[:space:]]'.

20230127
*Update man page.

20230125
*Cleanup code.
*Fix variable that should not be enclosed in double quotes.

20230124
*Fix trap action.
*Fix message about locked packages.
*Cleanup code.

20230119
*Enabled to handle locked packages with new "-U" option.
 If "-U" option is not present, locked packages are skipped.
 See pkg_replace(1).

20230118
*Variables containing file and directory are enclosed in double quotes.

20230117
*Fix trap action.

20230108
*Cleanup code.

20230107
*Fix typo.

20230106
*Cleanup code.
*Improved error handling.

20230105
*Fix error message due to broken packages dependency.
 However, this is not an essential solution.
 If "-dd", "-RR" option sets, you may see messages like
 "pkg_replace: 1: parameter not set".
 This type of message is no longer displayed.
*Cleanup code.

20230104
*Man page describes the precautions to be taken when using
 "-dd", "-RR" option.
*Cleanup code.

20230103
*Fix bug about checking installed packages.

20230102
*Fix bug about getting ports directory.

20230101
*Fix bug "-x" option with "-dd" ("-RR") option.

20221228
*More fix bug about "-N" option.

20221227
*If "-N" only set, don't install binary packages.
*More strictly dependencies checking for "-dd" or "-RR" option.

20221225
*More speedup checking dependencies about "-dd", "-RR" option by
 parallel execution.

20221223
*Add "--nocleandeps" option. Don't clean PKG_REPLACE_DB_DIR directory.

20221222
*Option "-dd" or "-RR", as fast as possible and strictly checking
 dependencies.

20221217
*Fix bugs related "-P" or "-PP" option
 If binary package file exists, pkg_replace gets dependencies from it.

20221216
*Fix bugs related "-PP" option.

20221215
*Fix bugs in find_package() and get_binary_pkgname().

20221214
*Fix bug in main().

20221212
*Fix bug in find_package().

20221206
*Cleanup code.
*Add -dd, -RR options for strictly checking dependencies.
*Fix bugs.

20221128
*Fix dependencies checking in get_depend_pkgnames() and get_require_pkgnames().

20221012
*Fix PKG_SUFX warning message.

20221011
*Fix bug about PKG_SUFX.

20220304
*Fix bugs for new package suffix.

20220303
*Fix bug clean_libs().

20210726
*Support new package suffix ".pkg".

20200821
*Fix bug in function install_package: install_args -> _install_args.

20200803
*Add "--exclude"" option.
*Speed up packages version checking.

20200717
*Fix bug checking FLAVORS.
*Fix underscore missing.

20200623
*If pkg_binary is set, do not run make_config and `make_config_conditional`.
*Cleanup code.

20200622
*Fix flavor check in set_pkginfo_install and set_pkginfo_replace.
*Cleanup code.

20200618
*Fix bug in set_pkginfo_replace.
*Fix typo PORTSIR->PORTSDIR in parse_moved.

20200602
*Fix bug check package's dependencies.

20200522
*Fix bugs for origin and path.
*Cleanup code.
*Support FLAVORS 'origin@flavor'. See pkg_replace(1).

20200504
* Support OVERLAYS.

20200309
* Support FLAVOR.
  If you want to change flavor to foo, you set option "-m FLAVOR=foo".

20191220
* Fix PKGREPOSITORY path.

20191018
* Fix parse_moved bug.

20190827
* Cleanup code.
* Preserve library symlinks.

20190425
* Cleanup code.
* Speed up version checking by parallelization.

20181024:
* Cleanup code.

20180927:
* Add ChangeLog.

20180611:
* Fix -C (make forceconfig) option bug.

20180418:
* Cleanup code.
* Speed up and strictly check package's dependencies.

20180314:
* Support pkgng only.
* Clean up code.

20170517:
* Add "--automatic" option. This option sets automatic flag for the package.
* Delete "--noindex" option, add "--index" option. When pkg_replace checks
 the dependencies before building the target packages, do
 `make package-depends-list` as default.
 This is more strictly checking the dependencies.
