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)
31 echo "Usage: fetchsrc_request file.spec [BRANCH]"
41 if [ "$LOGIN" == "cvs" ]; then
42 echo "Use fetchsrc_request from your R/W CVS tree or set LOGIN by hand" >&2
45 if [ "$2" != "" ]; then
51 if [[ "$SPEC" != *.spec ]]; then
55 if [ "$VIA" = "SENDMAIL" ]; then
56 echo >&2 "Requesting $SPEC:$BRANCH via $MAILER ${VIA_ARGS:+ ($VIA_ARGS)}"
57 cat <<EOF | "$MAILER" -t -i $VIA_ARGS
59 From: $LOGIN <$LOGIN@$HOST>
60 Subject: fetchsrc_request notify
62 X-distfiles-request: yes
71 echo >&2 "Requesting $SPEC:$BRANCH via SMTP ($VIA:25)"
72 cat <<EOF | /usr/bin/nc $VIA 25 > /dev/null
74 MAIL FROM: $LOGIN <$LOGIN@$HOST>
78 Subject: fetchsrc_request notify
80 X-distfiles-request: yes