1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-24 21:01:20 +00:00

Update to 5.0.6.

The README says:

	A security patch was applied that solves the problem reported
	in http://online.securityfocus.com/archive/1/278984 where
	opening the font cache when the application starts up can
	unintentionally cause the permissions of other files to
	change.

I failed to reproduce the bug in version 5.0.5 and I have not tried
to reproduce it with this version.  The discoverer, Paul Szabo,
said that linked files could have not just their permissions changed,
but could be overwritten.  caveat lector.

PR:		40987
Submitted by:	Oliver Braun

Add a DIST_SUBDIR because neither the name of the distfile nor the
list of its contents ("tar tzvf" output) mention the name of the
program.
This commit is contained in:
Trevor Johnson 2002-07-25 22:33:43 +00:00
parent b6ebb86f9b
commit fbd4ddac4a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=63569
3 changed files with 17 additions and 10 deletions

View File

@ -6,21 +6,22 @@
#
PORTNAME= acroread
PORTVERSION= 5.05
PORTVERSION= 5.0.6
CATEGORIES= print linux
MASTER_SITES= ftp://ftp.adobe.com/pub/adobe/acrobatreader/unix/5.x/
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"
DISTNAME= linux-505
DISTNAME= linux-506
.endif
DIST_SUBDIR= acroread
MAINTAINER= trevor@FreeBSD.org
FORBIDDEN= "unconfirmed suspicion of temporary file bug--see http://online.securityfocus.com/archive/1/278984 "
ONLY_FOR_ARCHS= i386
USE_LINUX= yes
USE_REINPLACE= yes
REINPLACE_ARGS= -i
NO_FILTER_SHLIBS= yes
.if ${ARCH} == "i386"
@ -29,7 +30,7 @@ PLIST_SUB= "ARCHDIR=intellinux"
WRKSRC= ${WRKDIR}
pre-configure:
@${PERL} -pi.fbsd -e 's:Linux\):FreeBSD|Linux):g' ${WRKDIR}/INSTALL
${REINPLACE_CMD} -E 's:Linux):FreeBSD|Linux):g' ${WRKDIR}/INSTALL
do-build:
@${ECHO_MSG} "Do a \`make install' as root."
@ -37,12 +38,16 @@ do-build:
do-install:
@${MKDIR} ${PREFIX}/Acrobat5
@ReadInstallDir=${PREFIX}/Acrobat5 ${WRKDIR}/INSTALL
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
strings -1 ${WRKDIR}/README > ${DOCSDIR}/README
.endif
post-install:
@${PERL} -pi -e 's:Linux\):FreeBSD|Linux):g' ${PREFIX}/Acrobat5/bin/acroread
${REINPLACE_CMD} -E 's:Linux):FreeBSD|Linux):g' ${PREFIX}/Acrobat5/bin/acroread
-@/compat/linux/usr/bin/strip ${PREFIX}/Acrobat5/Reader/intellinux/bin/acroread
@brandelf -t Linux ${PREFIX}/Acrobat5/Reader/intellinux/bin/acroread
@${PERL} -pi -e 's:OSF1\):FreeBSD|OSF1):g' ${PREFIX}/Acrobat5/bin/acroread
${REINPLACE_CMD} -E 's:OSF1):FreeBSD|OSF1):g' ${PREFIX}/Acrobat5/bin/acroread
@cd ${PREFIX}/Acrobat5/bin && \
${INSTALL_SCRIPT} ${PREFIX}/Acrobat5/bin/acroread \
${PREFIX}/bin/acroread5

View File

@ -1 +1 @@
MD5 (linux-505.tar.gz) = 5c1cef0b5b1eb75ed01fefb3d6a88ce0
MD5 (acroread/linux-506.tar.gz) = c5ca1f2fac7f2530d85de18ee6fffc26

View File

@ -48,7 +48,7 @@ Acrobat5/Reader/%%ARCHDIR%%/lib/libAGM.so.4.08
Acrobat5/Reader/%%ARCHDIR%%/lib/libBIB.so
Acrobat5/Reader/%%ARCHDIR%%/lib/libBIB.so.1.1
Acrobat5/Reader/%%ARCHDIR%%/lib/libCoolType.so
Acrobat5/Reader/%%ARCHDIR%%/lib/libCoolType.so.3.06
Acrobat5/Reader/%%ARCHDIR%%/lib/libCoolType.so.4.10
Acrobat5/Reader/%%ARCHDIR%%/lib/libOPP.so
Acrobat5/Reader/%%ARCHDIR%%/lib/libOPP.so.1.02
Acrobat5/Reader/%%ARCHDIR%%/plug_ins/AcroForm.api
@ -64,12 +64,13 @@ Acrobat5/Reader/res/splashScreen18R.xpm
Acrobat5/Reader/license.txt
Acrobat5/bin/acroread
bin/acroread5
%%PORTDOCS%%share/doc/acroread/README
@exec ln -sf ../../Resource/Font/ %D/Acrobat5/Reader/%%ARCHDIR%%/fonts
@unexec rm -f %D/Acrobat5/Reader/%%ARCHDIR%%/fonts
@exec ln -sf ../res %D/Acrobat5/Reader/%%ARCHDIR%%/res
@unexec rm -f %D/Acrobat5/Reader/%%ARCHDIR%%/res
@exec echo "Be sure to read the license agreement in"
@exec echo "%D/Acrobat5/Reader/License.pdf"
@exec echo "%D/Acrobat5/Reader/license.txt"
@dirrm Acrobat5/bin
@dirrm Acrobat5/Reader/res
@comment ALPHA-ONLY:@dirrm Acrobat5/Reader/%%ARCHDIR%%/plug_ins/vdkHome/language
@ -87,3 +88,4 @@ bin/acroread5
@dirrm Acrobat5/Browsers/%%ARCHDIR%%
@dirrm Acrobat5/Browsers
@dirrm Acrobat5
@dirrm share/doc/acroread