2004-04-05 21:32:18 +00:00
|
|
|
# $FreeBSD$
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2004-04-05 21:32:18 +00:00
|
|
|
|
2015-12-01 22:20:04 +00:00
|
|
|
_LIBARCHIVEDIR= ${.CURDIR}/../../contrib/libarchive
|
2011-12-22 08:42:07 +00:00
|
|
|
|
2004-04-05 21:32:18 +00:00
|
|
|
PROG= bsdtar
|
MFV r302003,r302037,r302038,r302056:
Update libarchive to 3.2.1 (bugfix and security fix release)
List of vendor fixes:
- fix exploitable heap overflow vulnerability in Rar decompression
(vendor issue 719, CVE-2016-4302, TALOS-2016-0154)
- fix exploitable stack based buffer overflow vulnebarility in mtree
parse_device functionality (vendor PR 715, CVE-2016-4301, TALOS-2016-0153)
- fix exploitable heap overflow vulnerability in 7-zip read_SubStreamsInfo
(vendor issue 718, CVE-2016-4300, TALOS-2016-152)
- fix integer overflow when computing location of volume descriptor
(vendor issue 717)
- fix buffer overflow when reading a crafred rar archive (vendor issue 521)
- fix possible buffer overflow when reading ISO9660 archives on machines
where sizeof(int) < sizeof(size_t) (vendor issue 711)
- tar and cpio should fail if an input file named on the command line is
missing (vendor issue 708)
- fix incorrect writing of gnutar filenames that are exactly 512 bytes
long (vendor issue 682)
- allow tests to be run from paths that are equal or longer than 128
characters (vendor issue 657)
- add memory allocation errors in archive_entry_xattr.c (vendor PR 603)
- remove dead code in archive_entry_xattr_add_entry() (vendor PR 716)
- fix broken decryption of ZIP files (vendor issue 553)
- manpage style, typo and description fixes
Post-3.2.1 vendor fixes:
- fix typo in cpio version reporting (Vendor PR 725, 726)
- fix argument range of ctype functions in libarchive_fe/passphrase.c
- fix ctype use and avoid empty loop bodies in WARC reader
MFC after: 1 week
Security: CVE-2016-4300, CVE-2016-4301, CVE-2016-4302
Approved by: re (kib)
2016-06-22 07:49:59 +00:00
|
|
|
BSDTAR_VERSION_STRING= 3.2.1
|
2011-12-22 08:42:07 +00:00
|
|
|
|
2015-12-01 22:20:04 +00:00
|
|
|
.PATH: ${_LIBARCHIVEDIR}/tar
|
2010-02-06 19:53:48 +00:00
|
|
|
SRCS= bsdtar.c \
|
|
|
|
cmdline.c \
|
2013-03-22 13:36:03 +00:00
|
|
|
creation_set.c \
|
2010-02-06 19:53:48 +00:00
|
|
|
read.c \
|
|
|
|
subst.c \
|
|
|
|
util.c \
|
|
|
|
write.c
|
2011-07-17 21:33:15 +00:00
|
|
|
|
2015-12-01 22:20:04 +00:00
|
|
|
.PATH: ${_LIBARCHIVEDIR}/libarchive_fe
|
2011-07-17 21:33:15 +00:00
|
|
|
SRCS+= err.c \
|
2016-05-12 10:16:16 +00:00
|
|
|
line_reader.c \
|
|
|
|
passphrase.c
|
2011-07-17 21:33:15 +00:00
|
|
|
|
2014-11-25 14:29:10 +00:00
|
|
|
LIBADD= archive
|
2011-08-01 08:22:40 +00:00
|
|
|
|
2012-02-25 10:58:02 +00:00
|
|
|
.if ${MK_ICONV} != "no"
|
|
|
|
CFLAGS+= -DHAVE_ICONV=1 -DHAVE_ICONV_H=1 -DICONV_CONST=const
|
|
|
|
.endif
|
|
|
|
|
2008-01-02 00:27:14 +00:00
|
|
|
CFLAGS+= -DBSDTAR_VERSION_STRING=\"${BSDTAR_VERSION_STRING}\"
|
2012-02-25 10:58:02 +00:00
|
|
|
CFLAGS+= -DPLATFORM_CONFIG_H=\"${.CURDIR}/../../lib/libarchive/config_freebsd.h\"
|
2015-12-01 22:20:04 +00:00
|
|
|
CFLAGS+= -I${_LIBARCHIVEDIR}/tar -I${_LIBARCHIVEDIR}/libarchive
|
|
|
|
CFLAGS+= -I${_LIBARCHIVEDIR}/libarchive_fe
|
2004-11-12 13:28:42 +00:00
|
|
|
SYMLINKS= bsdtar ${BINDIR}/tar
|
2004-04-19 22:09:04 +00:00
|
|
|
MLINKS= bsdtar.1 tar.1
|
|
|
|
|
2015-10-12 18:31:21 +00:00
|
|
|
.if ${MK_TESTS} != "no"
|
|
|
|
SUBDIR+= tests
|
|
|
|
.endif
|
2008-01-02 00:27:14 +00:00
|
|
|
|
2004-08-07 03:24:49 +00:00
|
|
|
.include <bsd.prog.mk>
|