aboutsummaryrefslogtreecommitdiff
path: root/x11/gdm
diff options
context:
space:
mode:
authorYukihiro Nakai <nakai@FreeBSD.org>2000-09-13 16:36:15 +0000
committerYukihiro Nakai <nakai@FreeBSD.org>2000-09-13 16:36:15 +0000
commit10cc764522cc65d3a153740f6a7ee181b0a1f23d (patch)
treecba70a3409b23cf8ef6c1b4bf457b6b83e6933a6 /x11/gdm
parente7a6be5700fb204d4b90864ab0d709226f9f1c05 (diff)
downloadports-10cc764522cc65d3a153740f6a7ee181b0a1f23d.tar.gz
ports-10cc764522cc65d3a153740f6a7ee181b0a1f23d.zip
Add dialog to warn security issue to users.
Notes
Notes: svn path=/head/; revision=32585
Diffstat (limited to 'x11/gdm')
-rw-r--r--x11/gdm/Makefile5
-rw-r--r--x11/gdm/pkg-install7
2 files changed, 12 insertions, 0 deletions
diff --git a/x11/gdm/Makefile b/x11/gdm/Makefile
index 3dc92bf6645e..3f1e9a77a3d1 100644
--- a/x11/gdm/Makefile
+++ b/x11/gdm/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/gdm/pkg-install b/x11/gdm/pkg-install
new file mode 100644
index 000000000000..410ed8543606
--- /dev/null
+++ b/x11/gdm/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