5 MAILER='/usr/sbin/sendmail'
6 # MAILER='/usr/bin/msmtp'
11 #VIA_ARGS="some additional flags"
16 DMAIL="distfiles@pld-linux.org"
18 # CVS LOGIN or fill it by hand :)
19 tmp=$(awk -F: '{ print $3; }' CVS/Root)
32 Usage: fetchsrc_request file.spec [BRANCH]
42 if [ "$2" != "" ]; then
48 if [[ "$SPEC" != *.spec ]]; then
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
59 X-distfiles-request: yes
68 echo >&2 "Requesting $SPEC:$BRANCH via SMTP ($VIA:25)"
69 cat <<EOF | /usr/bin/nc $VIA 25 > /dev/null
71 MAIL FROM: $LOGIN <$LOGIN@$HOST>
75 Subject: fetchsrc_request notify
77 X-distfiles-request: yes