diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-07-17 19:41:27 +0400 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-07-17 19:41:27 +0400 |
commit | 0e31e21ed8948c60fa5895e942fafc72895b2110 (patch) | |
tree | 19026f5e9c2ae3b57e593eb1bb0a7b5d505d43f4 /src/etc | |
parent | 4fda597c95da36e6010ae8f4e42feb64bff3e7be (diff) |
Switch from mail(1) to sendmail(8) to allow defining custom "From"
Diffstat (limited to 'src/etc')
-rwxr-xr-x | src/etc/poudriere.d/hooks/pkgbuild.sh.sample | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/etc/poudriere.d/hooks/pkgbuild.sh.sample b/src/etc/poudriere.d/hooks/pkgbuild.sh.sample index 118a1b1c..c8fb164e 100755 --- a/src/etc/poudriere.d/hooks/pkgbuild.sh.sample +++ b/src/etc/poudriere.d/hooks/pkgbuild.sh.sample @@ -1,6 +1,7 @@ #!/bin/sh # /usr/local/etc/poudriere.d/hooks/pkgbuild.sh +EMAIL_FROM=an@address.com EMAIL_TO=some@address.com # The failure email will snip out the middle of a build log to help # save BW. A URL is provided to view the full log @@ -30,7 +31,10 @@ if [ "$status" = "failed" ]; then awk_script="NR < ${HEADER_LINES} || NR > $((${log_lines} - ${FOOTER_LINES} + ${HEADER_LINES})); NR == ${HEADER_LINES} { print \"<snip>\" }" fi - mail -s "${mail_subject}" ${EMAIL_TO} << EOF + sendmail -f ${EMAIL_FROM} ${EMAIL_TO} << EOF +To: ${EMAIL_TO} +Subject: ${mail_subject} + Maintainer: ${maintainer} Last committer: ${last_committer}@FreeBSD.org Ident: ${ident#Makefile ident: } |