[aur-dev] AUR 4 and licensing
david at davidmanouchehri.com
Mon Apr 13 12:26:08 UTC 2015
> Showing it during a push would be flawed because then it's too late for
them not to agree to it.
A Git pre-commit hook on the server side should be fine. On the web side of
the AUR, a list of accepted ToS users should be kept, and then on every
push check to see if they've been added. Reminding users about the GPL on a
push probably isn't a bad idea either.
I can't remember how to get the current commiter's email address, but the
hook would probably look something like this.
if [ ! -f /tmp/userlist_accepted/$git_email ]; then
printf "Please visit https://aur.archlinux.org/ and accept the terms of
printf "All content posted to the AUR must be licensed under GPLv3.\n"
If maintaining another list of private email addresses is too much of a
pain, just hash them and the list could be public without any privacy
concerns (assuming it isn't md5sum or something equally weak).
More information about the aur-dev