1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00

Add dialog to warn security issue to users.

This commit is contained in:
Yukihiro Nakai 2000-09-13 16:36:15 +00:00
parent e7a6be5700
commit 10cc764522
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=32585
4 changed files with 24 additions and 0 deletions

View File

@ -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

7
x11/gdm/pkg-install Normal file
View File

@ -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

View File

@ -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

7
x11/gdm2/pkg-install Normal file
View File

@ -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