I have been learning about ports and found a number of strange values in the 
make files for PERMIT_PACKAGE and PERMIT_DISTFILES.

Some of the interesting values were:
stupid license
unclear license
incomplete/bad license
yEs

I have included my commands to find these
```
# Finds all the Makefiles with its PERMIT_* value
find /usr/ports/ -name Makefile -exec grep -H '^PERMIT' '{}' ';' > 
/tmp/permits.txt

# Show the various unique values
cat /tmp/permits.txt | tr -d '\t' | sed -e 's/^.*://' -e 's/ *= */ = /' | sort 
-u

# Filename with values that are not Yes nor No
cat /tmp/permits.txt | tr -d '\t' | tr ':' ' ' |  sed 's/ *= */ = /' | sort -k 
2 -t ' ' | grep -v -e 'yes$' -e 'no$' -e 'Yes$' -e 'No$’
```

Reply via email to