summaryrefslogtreecommitdiffstats
path: root/net/delegate
diff options
context:
space:
mode:
authorclive <clive@FreeBSD.org>2001-04-15 11:35:31 +0000
committerclive <clive@FreeBSD.org>2001-04-15 11:35:31 +0000
commitaaa9832d7f6023697ee736804497587f478672d8 (patch)
tree032639831fc2d75d5724b037fa65d77353a3f834 /net/delegate
parent7df458d105fa8afdd11760309d04937240a8fef2 (diff)
downloadFreeBSD-ports-aaa9832d7f6023697ee736804497587f478672d8.zip
FreeBSD-ports-aaa9832d7f6023697ee736804497587f478672d8.tar.gz
Put the WARNING! x 20 back.
Requested by: kris Okay'd by: ijliao
Diffstat (limited to 'net/delegate')
-rw-r--r--net/delegate/Makefile26
-rw-r--r--net/delegate/pkg-message20
2 files changed, 46 insertions, 0 deletions
diff --git a/net/delegate/Makefile b/net/delegate/Makefile
index b125a84..b383772 100644
--- a/net/delegate/Makefile
+++ b/net/delegate/Makefile
@@ -14,8 +14,33 @@ DISTNAME= ${PORTNAME}${PORTVERSION}
MAINTAINER= max@FreeBSD.org
+NO_PACKAGE= "Insecure program."
IS_INTERACTIVE= YES
+pre-fetch:
+.if !defined(FORCE_BUILD) || ${FORCE_BUILD}!="YES"
+ @${ECHO} "*********************************************************************"
+ @${ECHO} "* WARNING! WARNING! WARNING! WARNING! WARNING! *"
+ @${ECHO} "* This program has know security problems which may allow a remote *"
+ @${ECHO} "* attacker to take control of your machine. *"
+ @${ECHO} "* See FreeBSD security advisory 00:04 for more information. *"
+ @${ECHO} "* *"
+ @${ECHO} "* It is strongly recommended that you avoid using this program. *"
+ @${ECHO} "* *"
+ @${ECHO} "* If you would like to use this program despite the danger, run *"
+ @${ECHO} "* make with ``FORCE_BUILD=YES'' *"
+ @${ECHO} "* WARNING! WARNING! WARNING! WARNING! WARNING! *"
+ @${ECHO} "*********************************************************************"
+ @${FALSE}
+.else
+ @${ECHO} "*********************************************************************"
+ @${ECHO} "* WARNING! WARNING! WARNING! WARNING! WARNING! *"
+ @${ECHO} "* You have chosen to build an insecure program. *"
+ @${ECHO} "* This program has know security problems which may allow a remote *"
+ @${ECHO} "* attacker to take control of your machine. *"
+ @${ECHO} "* See FreeBSD security advisory 00:04 for more information. *"
+ @${ECHO} "*********************************************************************"
+.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/delegated ${PREFIX}/sbin
@${MKDIR} ${PREFIX}/share/examples/delegate
@@ -26,5 +51,6 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/doc/Manual.htm \
${PREFIX}/share/doc/delegate
.endif
+ @${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
diff --git a/net/delegate/pkg-message b/net/delegate/pkg-message
new file mode 100644
index 0000000..5edcb50
--- /dev/null
+++ b/net/delegate/pkg-message
@@ -0,0 +1,20 @@
+*********************************************************************
+* WARNING! WARNING! WARNING! WARNING! WARNING! *
+* You have installed an insecure program. *
+* This program has know security problems which may allow a remote *
+* attacker to take control of your machine. *
+* Use with great caution! *
+* See FreeBSD security advisory 00:04 for more information. *
+*********************************************************************
+
+----------------------------------------------------------------------
+Now, edit the sample script in /usr/local/share/examples/delegate directory
+and copy it into /usr/local/etc/rc.d.
+Especially, don't forget to specify correct value for the MANAGER.
+
+You can also run an interactive configuration session by executing
+delegated with no argument.
+
+Consult /usr/local/share/doc/delegate/Manual.htm for configuration
+information.
+----------------------------------------------------------------------
OpenPOWER on IntegriCloud