5 MAILER='/usr/sbin/sendmail'
6 # MAILER='/usr/bin/msmtp'
11 #VIA_ARGS="some additional flags"
16 DMAIL="df@tld-linux.org"
18 # CVS LOGIN or fill it by hand :)
19 tmp=$(git config user.email)
31 echo "Usage: fetchsrc_request file.spec [BRANCH]"
41 if [ "$2" != "" ]; then
44 BRANCH="refs/heads/master"
46 if [[ "$BRANCH" != refs/* ]]; then
47 BRANCH="refs/heads/$BRANCH"
52 if [ "$VIA" = "SENDMAIL" ]; then
53 echo >&2 "Requesting $SPEC:$BRANCH via $MAILER ${VIA_ARGS:+ ($VIA_ARGS)}"
54 cat <<EOF | "$MAILER" -t -i $VIA_ARGS
56 From: $LOGIN <$LOGIN@$HOST>
57 Subject: fetchsrc_request notify
58 X-distfiles-request: yes
67 echo >&2 "Requesting $SPEC:$BRANCH via SMTP ($VIA:25)"
68 cat <<EOF | /usr/bin/nc $VIA 25 > /dev/null
70 MAIL FROM: $LOGIN <$LOGIN@$HOST>
74 Subject: fetchsrc_request notify
75 X-distfiles-request: yes