Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F141925008
D16103.id45454.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D16103.id45454.diff
View Options
Index: head/Mk/Scripts/qa.sh
===================================================================
--- head/Mk/Scripts/qa.sh
+++ head/Mk/Scripts/qa.sh
@@ -914,9 +914,34 @@
return ${rc}
}
+license()
+{
+ local autoaccept pkgmirror #distsell distmirror pkgsell
+
+ if [ -n "$LICENSE" ]; then
+ case "$LICENSE_PERMS" in
+ auto-accept) autoaccept=1 ;;
+ #dist-mirror) distmirror=1 ;;
+ #dist-sell) distsell=1 ;;
+ pkg-mirror) pkgmirror=1 ;;
+ #pkg-sell) pkgsell=1 ;;
+ esac
+
+ if [ -z "$autoaccept" ]; then
+ warn "License is not auto-accepted, packages will not be built, ports depending on this one will be ignored."
+ fi
+ if [ -z "$pkgmirror" ]; then
+ warn "License does not allow package to be distributed, ports depending on this one will be ignored"
+ fi
+ fi
+
+ return 0
+}
+
checks="shebang symlinks paths stripped desktopfileutils sharedmimeinfo"
checks="$checks suidfiles libtool libperl prefixvar baselibs terminfo"
checks="$checks proxydeps sonames perlcore no_arch gemdeps gemfiledeps flavors"
+checks="$checks license"
ret=0
cd ${STAGEDIR} || exit 1
Index: head/Mk/bsd.port.mk
===================================================================
--- head/Mk/bsd.port.mk
+++ head/Mk/bsd.port.mk
@@ -1631,6 +1631,8 @@
LIB_RUN_DEPENDS='${_LIB_RUN_DEPENDS:C,[^:]*:([^:]*):?.*,\1,}' \
UNIFIED_DEPENDS=${_UNIFIED_DEPENDS:C,([^:]*:[^:]*):?.*,\1,:O:u:Q} \
PKGBASE=${PKGBASE} \
+ LICENSE="${LICENSE}" \
+ LICENSE_PERMS="${_LICENSE_PERMS}" \
PORTNAME=${PORTNAME} \
NO_ARCH=${NO_ARCH} \
"NO_ARCH_IGNORE=${NO_ARCH_IGNORE}" \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 13, 3:07 PM (6 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27629395
Default Alt Text
D16103.id45454.diff (1 KB)
Attached To
Mode
D16103: Add a license qa check to tell porters when their ports will be mostly useless.
Attached
Detach File
Event Timeline
Log In to Comment