From 10cc764522cc65d3a153740f6a7ee181b0a1f23d Mon Sep 17 00:00:00 2001 From: Yukihiro Nakai Date: Wed, 13 Sep 2000 16:36:15 +0000 Subject: Add dialog to warn security issue to users. --- x11/gdm2/Makefile | 5 +++++ x11/gdm2/pkg-install | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 x11/gdm2/pkg-install (limited to 'x11/gdm2') diff --git a/x11/gdm2/Makefile b/x11/gdm2/Makefile index 3dc92bf6645e..3f1e9a77a3d1 100644 --- a/x11/gdm2/Makefile +++ b/x11/gdm2/Makefile @@ -30,6 +30,11 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ GLIB_CONFIG="${GLIB_CONFIG}" \ LIBS="-L${LOCALBASE}/lib" +pre-fetch: +.if !defined(BATCH) && !defined(PACKAGE_BUILDING) + ${SH} ${PKGDIR}/INSTALL +.endif + pre-patch: @${PERL} -pi -e 's|-lpthread|-pthread|g ; \ s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure diff --git a/x11/gdm2/pkg-install b/x11/gdm2/pkg-install new file mode 100644 index 000000000000..410ed8543606 --- /dev/null +++ b/x11/gdm2/pkg-install @@ -0,0 +1,7 @@ +#!/bin/sh + +if [ "$2" = "POST-INSTALL" -o -n "${PACKAGE_BUILDING}" ]; then + exit 0 +fi + +/usr/bin/dialog --yesno "GDM may contain vulnerabilities leading local root compromise, and it is reported widely with various serurity sites and groups. It is not recommended that this port be installed in public enviroment. Do you wish to accept the serurity risk and build GDM anyway?" 10 60 || /usr/bin/false -- cgit v1.2.3