mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Make it impossible to install the software without reading the license first.
This commit is contained in:
parent
23b7e0ae1e
commit
e64e5e20a1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=56952
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user