Automatic license agreement per package

arseniogut

New Member

Reaction score: 3
Messages: 4

When I make install a port requiring several dependencies of varying licenses, what flag or option can I indicate to install all software and automatically accept their license terms?
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 8,050
Messages: 31,632

Most ports don't require accepting, any port in particular you're having issues with?
 

tnpimatt

New Member

Reaction score: 4
Messages: 10

dcc-dccd

And the old way of accepting licenses on TTY less installs no longer works. In this case, it's a gitlab runner doing test builds, so there is no TTY on which to present a prompt to a human.

Code:
[root@dcc /usr/ports/mail/dcc-dccd]# make BATCH=yes

===>  dcc-dccd-2.3.167_1 License DCC needs confirmation, but BATCH is defined.

*** Error code 1



Stop.

make: stopped in /usr/ports/mail/dcc-dccd
 

tnpimatt

New Member

Reaction score: 4
Messages: 10

Thanks rigoletto@, that was exactly the clue I needed. The incantation I need to use is:

Bash:
make LICENSES_ACCEPTED=DCC
I'm including the tty-less error message below for search visitors to find this and your tip.

Bash:
jexec stage make -C /usr/ports/mail/dcc-dccd build deinstall install clean
===>  License DCC needs confirmation, will ask later
===> dcc-dccd-2.3.167_1 depends on file: /usr/local/sbin/pkg - found
=> dcc-2.3.167.tar.Z doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch https://www.dcc-servers.net/dcc/source/old/dcc-2.3.167.tar.Z
dcc-2.3.167.tar.Z                             ===> Fetching all distfiles required by dcc-dccd-2.3.167_1 for building
===>  Extracting for dcc-dccd-2.3.167_1
=> SHA256 Checksum OK for dcc-2.3.167.tar.Z.
1570 kB 1059 kBps 02s


*** Error code 255

Stop.
make[1]: stopped in /usr/ports/mail/dcc-dccd
*** Error code 1

Stop.
make: stopped in /usr/ports/mail/dcc-dccd
 

Lamia

Well-Known Member

Reaction score: 57
Messages: 360

When I make install a port requiring several dependencies of varying licenses, what flag or option can I indicate to install all software and automatically accept their license terms?
Insert in your make.conf:
Code:
#LICENSES
LICENSES_ACCEPTED+=3GPP
LICENSES_ACCEPTED+=ACUBE
LICENSES_ACCEPTED+=ADOBE
LICENSES_ACCEPTED+=APL1
LICENSES_ACCEPTED+=BSDCOMPATIBLE
LICENSES_ACCEPTED+=BSIML
LICENSES_ACCEPTED+=BuildLic
LICENSES_ACCEPTED+=CC0
LICENSES_ACCEPTED+=CCBYNCSAv3
LICENSES_ACCEPTED+=CCBYSAv3
LICENSES_ACCEPTED+=CCBYv3
LICENSES_ACCEPTED+=CCbyNC25
LICENSES_ACCEPTED+=CCbyNCSA2
LICENSES_ACCEPTED+=CCbyNCSA3
LICENSES_ACCEPTED+=CCbySA30
LICENSES_ACCEPTED+=CCbySA3
LICENSES_ACCEPTED+=CCbySA40
LICENSES_ACCEPTED+=CCbySA  
LICENSES_ACCEPTED+=CLEARTHOUGHT
LICENSES_ACCEPTED+=COMMERCIAL
LICENSES_ACCEPTED+=CPL05
LICENSES_ACCEPTED+=CPL
LICENSES_ACCEPTED+=CUBE
LICENSES_ACCEPTED+=CW
LICENSES_ACCEPTED+=CeCILL
LICENSES_ACCEPTED+=CeCILL_C
LICENSES_ACCEPTED+=DCC
LICENSES_ACCEPTED+=DMD
LICENSES_ACCEPTED+=DejaVu  
LICENSES_ACCEPTED+=ECW
LICENSES_ACCEPTED+=EULA
LICENSES_ACCEPTED+=EUPL
LICENSES_ACCEPTED+=FAL
LICENSES_ACCEPTED+=FDK_AAC
LICENSES_ACCEPTED+=FFTPAK
LICENSES_ACCEPTED+=FLOSSE
LICENSES_ACCEPTED+=FPL
LICENSES_ACCEPTED+=GLEW
LICENSES_ACCEPTED+=GPLR
LICENSES_ACCEPTED+=HISIML
LICENSES_ACCEPTED+=HW
LICENSES_ACCEPTED+=IBM
LICENSES_ACCEPTED+=ICOT
LICENSES_ACCEPTED+=ICU
LICENSES_ACCEPTED+=IDPL
LICENSES_ACCEPTED+=FPL
LICENSES_ACCEPTED+=GLEW
LICENSES_ACCEPTED+=GPLR
LICENSES_ACCEPTED+=HISIML
LICENSES_ACCEPTED+=HW
LICENSES_ACCEPTED+=IBM
LICENSES_ACCEPTED+=ICOT
LICENSES_ACCEPTED+=ICU
LICENSES_ACCEPTED+=IDPL
LICENSES_ACCEPTED+=IFL
LICENSES_ACCEPTED+=IPL
LICENSES_ACCEPTED+=ISO
LICENSES_ACCEPTED+=IUP
LICENSES_ACCEPTED+=JAIDL
LICENSES_ACCEPTED+=JDOM
LICENSES_ACCEPTED+=JYTHON
LICENSES_ACCEPTED+=LINUXLIBERTINE
LICENSES_ACCEPTED+=LinuxdocTools
LICENSES_ACCEPTED+=MSPAT
LICENSES_ACCEPTED+=NAIST
LICENSES_ACCEPTED+=NAISTL
LICENSES_ACCEPTED+=NEWRELIC
LICENSES_ACCEPTED+=NKF
LICENSES_ACCEPTED+=NODE
LICENSES_ACCEPTED+=OFL
LICENSES_ACCEPTED+=OPENLDAP
LICENSES_ACCEPTED+=OTHER
LICENSES_ACCEPTED+=PUBLIC_DOMAIN
LICENSES_ACCEPTED+=PerconaFT
LICENSES_ACCEPTED+=QPL10
LICENSES_ACCEPTED+=SENDMAIL
LICENSES_ACCEPTED+=SIL
LICENSES_ACCEPTED+=SpecialAuth
LICENSES_ACCEPTED+=TTYP0
LICENSES_ACCEPTED+=TWAIN
LICENSES_ACCEPTED+=TclTk
LICENSES_ACCEPTED+=UIUC
LICENSES_ACCEPTED+=UNLICENSE
LICENSES_ACCEPTED+=UNRAR
LICENSES_ACCEPTED+=VOLITION
LICENSES_ACCEPTED+=W3C
LICENSES_ACCEPTED+=WARSOW
LICENSES_ACCEPTED+=addl
LICENSES_ACCEPTED+=imlib2
LICENSES_ACCEPTED+=unknown
LICENSES_ACCEPTED+=NONE
 

rigoletto@

Daemon
Developer

Reaction score: 1,041
Messages: 2,101

Insert in your make.conf:
Code:
#LICENSES
LICENSES_ACCEPTED+=3GPP
LICENSES_ACCEPTED+=ACUBE
LICENSES_ACCEPTED+=ADOBE
LICENSES_ACCEPTED+=APL1
LICENSES_ACCEPTED+=BSDCOMPATIBLE
LICENSES_ACCEPTED+=BSIML
LICENSES_ACCEPTED+=BuildLic
LICENSES_ACCEPTED+=CC0
LICENSES_ACCEPTED+=CCBYNCSAv3
LICENSES_ACCEPTED+=CCBYSAv3
LICENSES_ACCEPTED+=CCBYv3
LICENSES_ACCEPTED+=CCbyNC25
LICENSES_ACCEPTED+=CCbyNCSA2
LICENSES_ACCEPTED+=CCbyNCSA3
LICENSES_ACCEPTED+=CCbySA30
LICENSES_ACCEPTED+=CCbySA3
LICENSES_ACCEPTED+=CCbySA40
LICENSES_ACCEPTED+=CCbySA 
LICENSES_ACCEPTED+=CLEARTHOUGHT
LICENSES_ACCEPTED+=COMMERCIAL
LICENSES_ACCEPTED+=CPL05
LICENSES_ACCEPTED+=CPL
LICENSES_ACCEPTED+=CUBE
LICENSES_ACCEPTED+=CW
LICENSES_ACCEPTED+=CeCILL
LICENSES_ACCEPTED+=CeCILL_C
LICENSES_ACCEPTED+=DCC
LICENSES_ACCEPTED+=DMD
LICENSES_ACCEPTED+=DejaVu 
LICENSES_ACCEPTED+=ECW
LICENSES_ACCEPTED+=EULA
LICENSES_ACCEPTED+=EUPL
LICENSES_ACCEPTED+=FAL
LICENSES_ACCEPTED+=FDK_AAC
LICENSES_ACCEPTED+=FFTPAK
LICENSES_ACCEPTED+=FLOSSE
LICENSES_ACCEPTED+=FPL
LICENSES_ACCEPTED+=GLEW
LICENSES_ACCEPTED+=GPLR
LICENSES_ACCEPTED+=HISIML
LICENSES_ACCEPTED+=HW
LICENSES_ACCEPTED+=IBM
LICENSES_ACCEPTED+=ICOT
LICENSES_ACCEPTED+=ICU
LICENSES_ACCEPTED+=IDPL
LICENSES_ACCEPTED+=FPL
LICENSES_ACCEPTED+=GLEW
LICENSES_ACCEPTED+=GPLR
LICENSES_ACCEPTED+=HISIML
LICENSES_ACCEPTED+=HW
LICENSES_ACCEPTED+=IBM
LICENSES_ACCEPTED+=ICOT
LICENSES_ACCEPTED+=ICU
LICENSES_ACCEPTED+=IDPL
LICENSES_ACCEPTED+=IFL
LICENSES_ACCEPTED+=IPL
LICENSES_ACCEPTED+=ISO
LICENSES_ACCEPTED+=IUP
LICENSES_ACCEPTED+=JAIDL
LICENSES_ACCEPTED+=JDOM
LICENSES_ACCEPTED+=JYTHON
LICENSES_ACCEPTED+=LINUXLIBERTINE
LICENSES_ACCEPTED+=LinuxdocTools
LICENSES_ACCEPTED+=MSPAT
LICENSES_ACCEPTED+=NAIST
LICENSES_ACCEPTED+=NAISTL
LICENSES_ACCEPTED+=NEWRELIC
LICENSES_ACCEPTED+=NKF
LICENSES_ACCEPTED+=NODE
LICENSES_ACCEPTED+=OFL
LICENSES_ACCEPTED+=OPENLDAP
LICENSES_ACCEPTED+=OTHER
LICENSES_ACCEPTED+=PUBLIC_DOMAIN
LICENSES_ACCEPTED+=PerconaFT
LICENSES_ACCEPTED+=QPL10
LICENSES_ACCEPTED+=SENDMAIL
LICENSES_ACCEPTED+=SIL
LICENSES_ACCEPTED+=SpecialAuth
LICENSES_ACCEPTED+=TTYP0
LICENSES_ACCEPTED+=TWAIN
LICENSES_ACCEPTED+=TclTk
LICENSES_ACCEPTED+=UIUC
LICENSES_ACCEPTED+=UNLICENSE
LICENSES_ACCEPTED+=UNRAR
LICENSES_ACCEPTED+=VOLITION
LICENSES_ACCEPTED+=W3C
LICENSES_ACCEPTED+=WARSOW
LICENSES_ACCEPTED+=addl
LICENSES_ACCEPTED+=imlib2
LICENSES_ACCEPTED+=unknown
LICENSES_ACCEPTED+=NONE
If you want to accept all licenses this is easier to just use: DISABLE_LICENSES= yes
 
Top