diff options
author | Jeremy Lea <reg@FreeBSD.org> | 2000-12-24 10:55:36 +0000 |
---|---|---|
committer | Jeremy Lea <reg@FreeBSD.org> | 2000-12-24 10:55:36 +0000 |
commit | 18e9ce9143a68b38c60f9430c681b2f929294088 (patch) | |
tree | 53c384b6549b2c62deac15af705b6f823753cc49 /x11 | |
parent | Christmas present: (diff) |
Add a security alert dialog and remove FORBIDDEN.
Notes
Notes:
svn path=/head/; revision=36299
Diffstat (limited to 'x11')
-rw-r--r-- | x11/XFree86-aoutlibs/Makefile | 11 | ||||
-rw-r--r-- | x11/XFree86-aoutlibs/pkg-install | 19 |
2 files changed, 27 insertions, 3 deletions
diff --git a/x11/XFree86-aoutlibs/Makefile b/x11/XFree86-aoutlibs/Makefile index 3db94b1314c6..9f0ba36c153e 100644 --- a/x11/XFree86-aoutlibs/Makefile +++ b/x11/XFree86-aoutlibs/Makefile @@ -12,8 +12,6 @@ MASTER_SITES= ftp://ftp.xfree86.org/pub/XFree86/3.3.3/binaries/FreeBSD-2.2.x/ DISTNAME= Xbin EXTRACT_SUFX= .tgz -FORBIDDEN= "Remote denial of service and buffer overflow vulnerabilities" - MAINTAINER= reg@FreeBSD.org ONLY_FOR_ARCHS= i386 @@ -24,6 +22,13 @@ PORTOBJFORMAT= aout USE_X_PREFIX= yes +.include <bsd.port.pre.mk> + +pre-extract: +.if !defined(BATCH) && !defined(PACKAGE_BUILDING) + @${SH} ${PKGINSTALL} foo PRE-INSTALL || ${FALSE} +.endif + pre-configure: @${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGREQ} ${PKGNAME} INSTALL @@ -36,4 +41,4 @@ do-install: done ${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib/aout -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/x11/XFree86-aoutlibs/pkg-install b/x11/XFree86-aoutlibs/pkg-install new file mode 100644 index 000000000000..dba6ec91ef37 --- /dev/null +++ b/x11/XFree86-aoutlibs/pkg-install @@ -0,0 +1,19 @@ +#!/bin/sh +TTY=/dev/tty + +case $2 in + POST-INSTALL) + ;; + PRE-INSTALL) + if dialog --yesno "This port installs old X libraries, which contain possible security exploits. If security is a concern for you, then you can install fresh a.out libraries from the XFree86 3.3.6 port, although these might not work with older a.out binaries." 16 65 < ${TTY} >${TTY} 2>&1; then + exit 0 + else + exit 1 + fi + ;; + *) + echo "Unexpected argument $2!" + exit 1 + ;; +esac +exit 0 |