From owner-freebsd-audit@FreeBSD.ORG Thu Jun 26 03:36:55 2003 Return-Path: Delivered-To: freebsd-audit@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0C44E37B401 for ; Thu, 26 Jun 2003 03:36:55 -0700 (PDT) Received: from mail.liwing.de (mail.liwing.de [213.70.188.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id C519E43FF9 for ; Thu, 26 Jun 2003 03:36:53 -0700 (PDT) (envelope-from rehsack@liwing.de) Received: (qmail 47574 invoked from network); 26 Jun 2003 10:36:52 -0000 Received: from stingray.liwing.de (HELO liwing.de) ([213.70.188.164]) (envelope-sender ) by mail.liwing.de (qmail-ldap-1.03) with SMTP for ; 26 Jun 2003 10:36:52 -0000 Message-ID: <3EFACCC4.1000508@liwing.de> Date: Thu, 26 Jun 2003 12:36:52 +0200 From: Jens Rehsack Organization: LiWing IT-Services User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 (Compact - Build 2) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-audit Content-Type: multipart/mixed; boundary="------------040303080803070607000003" Subject: [patch] src/gnu/usr.bin/send-pr X-BeenThere: freebsd-audit@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD Security Audit List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jun 2003 10:36:55 -0000 This is a multi-part message in MIME format. --------------040303080803070607000003 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I tried to write a small script which makes it easier to send PR's from a hidden subdomain. This is required for us, because I didn't found a way to send pr's from internal network. So I had to copy the generated pr-files to one of our "internet" machines and use 'send-pr -f'. Ok, I added some new parameters to send-pr but found no person who is really responsible to it, so I remembered a hint got earlier to send patches to be approved to audit@. What do you think, makes it sense or should I rewite my script to make replacements using sed and some regular expressions? Best, jens --------------040303080803070607000003 Content-Type: text/plain; name="patch-send-pr.sh.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch-send-pr.sh.diff" --- gnu/usr.bin/send-pr/send-pr.sh.orig Sat Mar 22 10:31:24 2003 +++ gnu/usr.bin/send-pr/send-pr.sh Wed Jun 25 09:58:02 2003 @@ -138,6 +138,9 @@ BATCH= CC= SEVERITY_C= +PRIORITY_C= +CATEGORY_C= +CLASS_C= while [ $# -gt 0 ]; do case "$1" in @@ -160,6 +163,15 @@ -s | --severity) if [ $# -eq 1 ]; then echo "$USAGE"; exit 1; fi shift ; SEVERITY_C="$1" ;; + --priority) if [ $# -eq 1 ]; then echo "$USAGE"; exit 1; fi + shift ; PRIORITY_C="$1" + ;; + --category) if [ $# -eq 1 ]; then echo "$USAGE"; exit 1; fi + shift ; CATEGORY_C="$1" + ;; + --class) if [ $# -eq 1 ]; then echo "$USAGE"; exit 1; fi + shift ; CLASS_C="$1" + ;; -p | -P | --print) PRINT=true ;; -L | --list) FORMAT=norm ;; -l | -CL | --lisp) FORMAT=lisp ;; @@ -247,9 +259,15 @@ if [ -z "$SEVERITY_C" ]; then SEVERITY_C='<[ non-critical | serious | critical ] (one line)>' fi -PRIORITY_C='<[ low | medium | high ] (one line)>' -CATEGORY_C='' -CLASS_C='<[ sw-bug | doc-bug | change-request | update | maintainer-update ] (one line)>' +if [ -z "$PRIORITY_C" ]; then + PRIORITY_C='<[ low | medium | high ] (one line)>' +fi +if [ -z "$CATEGORY_C" ]; then + CATEGORY_C='' +fi +if [ -z "$CLASS_C" ]; then + CLASS_C='<[ sw-bug | doc-bug | change-request | update | maintainer-update ] (one line)>' +fi RELEASE_C='' ENVIRONMENT_C='' DESCRIPTION_C='' --------------040303080803070607000003 Content-Type: text/plain; name="submit-pr" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="submit-pr" #!/bin/sh # $Id$ usage() { cat <] [-c ] [-a ] [-l ] [-s ] [-t ] [-o ] [-u ] [-m ] location of port in ports-tree (eg. lang/php4) e-mail addresses to put in Cc: of mail pattern to match the patch files one of [ sw-bug | doc-bug | change-request | update | maintainer-update ] one of [ non-critical | serious | critical ] one of the entries from /etc/gnats/freefall one of [ low | medium | high ] another user name, eg. when name differs from mail user name another domain name for sending mail from/to EOF exit 1 } cc="Jens Rehsack " organization="LiWing IT-Services" severity="non-critical" # [ non-critical | serious | critical ] priority="medium" # [ low | medium | high ] category="ports" # ${pr_file} ${EDITOR} ${pr_file} echo "The PR to send is in ${pr_file}" --------------040303080803070607000003--