From b86ecbf5fa704f7ad55d794ce316617d8dbac41c Mon Sep 17 00:00:00 2001 From: Clement Laforet Date: Sat, 21 Feb 2004 20:12:10 +0000 Subject: Reintroduce warnings. Time to mark it as DEPRECATED ? --- net/delegate/Makefile | 25 +++++++++++++++++++++++++ net/delegate/pkg-message | 9 +++++++++ 2 files changed, 34 insertions(+) (limited to 'net/delegate') diff --git a/net/delegate/Makefile b/net/delegate/Makefile index 60709d690eb5..be38989a7bad 100644 --- a/net/delegate/Makefile +++ b/net/delegate/Makefile @@ -20,6 +20,31 @@ IS_INTERACTIVE= YES PORTDOCS= Manual.htm tutor-jp.htm tutor-en.htm PLIST_FILES= sbin/delegated etc/rc.d/delegated.sh-dist +pre-everything:: +.if !defined(FORCE_BUILD) || ${FORCE_BUILD}!="YES" + @${ECHO_MSG} "*********************************************************************" + @${ECHO_MSG} "* WARNING! WARNING! WARNING! WARNING! WARNING! *" + @${ECHO_MSG} "* This program has known security problems which may allow a remote *" + @${ECHO_MSG} "* attacker to take control of your machine. *" + @${ECHO_MSG} "* See FreeBSD security advisory 00:04 for more information. *" + @${ECHO_MSG} "* *" + @${ECHO_MSG} "* It is strongly recommended that you avoid using this program. *" + @${ECHO_MSG} "* *" + @${ECHO_MSG} "* If you would like to use this program despite the danger, run *" + @${ECHO_MSG} "* make with \`\`FORCE_BUILD=YES'' *" + @${ECHO_MSG} "* WARNING! WARNING! WARNING! WARNING! WARNING! *" + @${ECHO_MSG} "*********************************************************************" + @${FALSE} +.else + @${ECHO_MSG} "*********************************************************************" + @${ECHO_MSG} "* WARNING! WARNING! WARNING! WARNING! WARNING! *" + @${ECHO_MSG} "* You have chosen to build an insecure program. *" + @${ECHO_MSG} "* This program has known security problems which may allow a remote *" + @${ECHO_MSG} "* attacker to take control of your machine. *" + @${ECHO_MSG} "* See FreeBSD security advisory 00:04 for more information. *" + @${ECHO_MSG} "*********************************************************************" +.endif + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/delegated ${PREFIX}/sbin ${INSTALL_SCRIPT} ${FILESDIR}/delegated.sh \ diff --git a/net/delegate/pkg-message b/net/delegate/pkg-message index 45e96402731b..fda910d96560 100644 --- a/net/delegate/pkg-message +++ b/net/delegate/pkg-message @@ -1,3 +1,12 @@ +********************************************************************* +* WARNING! WARNING! WARNING! WARNING! WARNING! * +* You have installed an insecure program. * +* This program has known 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. -- cgit v1.2.3