1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

archivers/upx: Update to 3.96

- Remove DOCS option
- Update pkg-descr
- Take maintainership

Changes:	https://github.com/upx/upx/releases
This commit is contained in:
Po-Chuan Hsieh 2021-12-22 02:46:12 +08:00
parent 5c0d07c0ba
commit 1db1502ff3
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
5 changed files with 30 additions and 43 deletions

View File

@ -1,11 +1,11 @@
# Created by: Max Khon <fjoe@FreeBSD.org>
PORTNAME= upx
PORTVERSION= 3.96
DISTVERSIONPREFIX= v
DISTVERSION= 3.95
CATEGORIES= archivers
MAINTAINER= ports@FreeBSD.org
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Ultimate Packer for eXecutables
LICENSE= GPLv2+
@ -14,30 +14,21 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libucl.so:archivers/ucl
USES= cpe gmake perl5
USE_GITHUB= yes
USE_PERL5= build # provides pod2man/pod2html/pod2text required for docs
CPE_VENDOR= upx_project
GH_TUPLE= upx:upx-lzma-sdk:${DISTVERSIONPREFIX}${DISTVERSION}:lzma/src/lzma-sdk
USE_PERL5= build
MAKE_ENV= UPX_UCLDIR=${LOCALBASE} \
target=freebsd
PORTDOCS= BUGS COPYING LICENSE NEWS PROJECTS README \
README.1ST README.SRC THANKS
PLIST_FILES= bin/upx \
man/man1/upx.1.gz
OPTIONS_DEFINE= DOCS
CPE_VENDOR= upx_project
GH_TUPLE= upx:upx-lzma-sdk:v${PORTVERSION}:lzma/src/lzma-sdk
USE_GITHUB= yes
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/upx.out ${STAGEDIR}${PREFIX}/bin/upx
${INSTALL_MAN} ${WRKSRC}/doc/upx.1 ${STAGEDIR}${MANPREFIX}/man/man1
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/doc/upx.1 ${STAGEDIR}${PREFIX}/man/man1
.include <bsd.port.mk>

View File

@ -1,5 +1,5 @@
TIMESTAMP = 1544570151
SHA256 (upx-upx-v3.95_GH0.tar.gz) = fdb79c8238360115770e9c13bdaeb48da6fb09c813b0a461c5f9faee176d6fb9
SIZE (upx-upx-v3.95_GH0.tar.gz) = 1663470
SHA256 (upx-upx-lzma-sdk-v3.95_GH0.tar.gz) = 4932ed7b79cf47aa91fe737c068f74553e17033161c7e7e532e4b967f02f1557
SIZE (upx-upx-lzma-sdk-v3.95_GH0.tar.gz) = 109697
TIMESTAMP = 1638556458
SHA256 (upx-upx-v3.96_GH0.tar.gz) = 6882b4ea89c7a0ed74b86d3c0f1d07814b492eaf649b43ab8b4dfefa9e2d7387
SIZE (upx-upx-v3.96_GH0.tar.gz) = 1676172
SHA256 (upx-upx-lzma-sdk-v3.96_GH0.tar.gz) = e465670abe0900a0995f7e6166bff86caed06b253f6ff02d6490df6263aecc67
SIZE (upx-upx-lzma-sdk-v3.96_GH0.tar.gz) = 109692

View File

@ -1,15 +1,6 @@
--- src/miniacc.h.orig 2017-05-12 11:01:20 UTC
--- src/miniacc.h.orig 2020-01-22 21:29:58 UTC
+++ src/miniacc.h
@@ -523,7 +523,7 @@
# if defined(_AIX) || defined(__AIX__) || defined(__aix__)
# define ACC_OS_POSIX_AIX 1
# define ACC_INFO_OS_POSIX "aix"
-# elif defined(__FreeBSD__)
+# elif defined(__FreeBSD__) || defined(__DragonFly__)
# define ACC_OS_POSIX_FREEBSD 1
# define ACC_INFO_OS_POSIX "freebsd"
# elif defined(__hpux__) || defined(__hpux)
@@ -2502,11 +2502,11 @@ ACC_COMPILE_TIME_ASSERT_HEADER(ACC_SIZEO
@@ -2547,11 +2547,11 @@ ACC_COMPILE_TIME_ASSERT_HEADER(ACC_SIZEOF_PTRDIFF_T ==
#elif !(ACC_ABI_BIG_ENDIAN) && !(ACC_ABI_LITTLE_ENDIAN)
#if (ACC_ARCH_ALPHA) && (ACC_ARCH_CRAY_MPP)
# define ACC_ABI_BIG_ENDIAN 1

View File

@ -0,0 +1,11 @@
--- src/p_mach.cpp.orig 2020-01-22 21:29:58 UTC
+++ src/p_mach.cpp
@@ -467,7 +467,7 @@ PackMachBase<T>::compare_segment_command(void const *c
if (a->vmsize) return -1; // 'a' is first
if (b->vmsize) return 1; // 'a' is last
// What could remain?
- return 0;
+ return 0;
}
#undef PAGE_MASK

View File

@ -1,12 +1,6 @@
UPX is a free, portable, extendable, high-performance executable
packer for several different executable formats. It achieves an
excellent compression ratio and offers very fast decompression.
Your executables suffer no memory overhead or other drawbacks
because of in-place decompression.
UPX is copyrighted software distributed under the terms of the
GNU General Public License, with special exceptions granting
the free usage for commercial programs as stated in the
UPX License Agreement.
UPX is a free, portable, extendable, high-performance executable packer for
several different executable formats. It achieves an excellent compression ratio
and offers very fast decompression. Your executables suffer no memory overhead
or other drawbacks because of in-place decompression.
WWW: https://upx.github.io/