1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

Reintroduce warnings.

Time to mark it as DEPRECATED ?
This commit is contained in:
Clement Laforet 2004-02-21 20:12:10 +00:00
parent bd88a3e9d4
commit b86ecbf5fa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=101593
2 changed files with 34 additions and 0 deletions

View File

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

View File

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