summaryrefslogtreecommitdiff
path: root/lang/cli
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2002-03-30 13:14:12 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2002-03-30 13:14:12 +0000
commite64e5e20a11299b27356887b93d6f3a3828b01e9 (patch)
treea13ebe01ee19643e46807ffb7909034e4bc913f9 /lang/cli
parentUsing patch files for replacements in default-web-site.xml and (diff)
Make it impossible to install the software without reading the license first.
Notes
Notes: svn path=/head/; revision=56952
Diffstat (limited to 'lang/cli')
-rw-r--r--lang/cli/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/lang/cli/Makefile b/lang/cli/Makefile
index 790f0a6f9d1d..a7b1734d3d2c 100644
--- a/lang/cli/Makefile
+++ b/lang/cli/Makefile
@@ -44,6 +44,15 @@ do-build:
@${CHMOD} 700 ${WRKSRC} # <- we need this because build system creates world-writeable dirs
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${SH} env.sh ./buildall)
+.if !defined(I_AGREE_TO_A_LICENSE_TERMS)
+pre-install:
+ @${ECHO_MSG} "Please make sure that you have read and understood license terms contained in"
+ @${ECHO_MSG} "the ${WRKSRC}/license.txt file and if you"
+ @${ECHO_MSG} "agree with them then add -DI_AGREE_TO_A_LICENSE_TERMS to command line to"
+ @${ECHO_MSG} "install the software (i.e. 'make -DI_AGREE_TO_A_LICENSE_TERMS install')."
+ @${FALSE}
+.endif
+
do-install:
@${MKDIR} ${PREFIX}/cli-${PORTVERSION}
@${INSTALL_DATA} ${WRKSRC}/license.txt ${PREFIX}/cli-${PORTVERSION}