diff options
author | feyrer <feyrer@pkgsrc.org> | 1999-05-06 03:31:58 +0000 |
---|---|---|
committer | feyrer <feyrer@pkgsrc.org> | 1999-05-06 03:31:58 +0000 |
commit | a3ff68b391f6cb19a3861ad22f3e56c6427649c3 (patch) | |
tree | ca222180b06d916eef209fa98c608f29cc4e7327 /pkgtools/url2pkg | |
parent | 9b07895064a0a5e6e1e5cfe768dddef1954ae32a (diff) | |
download | pkgsrc-a3ff68b391f6cb19a3861ad22f3e56c6427649c3.tar.gz |
Take address for MAINTAINER from $PKGMAINTAINER (if available)
oder $REPLYTO. Set to appropriate string if neither is available.
Check if this is run in the fight dir - ../../mk/bsd.pkg/mk must
be available.
Most importang: move EXTRACT_SUFX to shut up pkglint - pointed
out by Thorsten Frueauf ages ago.
Diffstat (limited to 'pkgtools/url2pkg')
-rwxr-xr-x | pkgtools/url2pkg/files/url2pkg | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/pkgtools/url2pkg/files/url2pkg b/pkgtools/url2pkg/files/url2pkg index ca56e843ea2..2e6437faa0e 100755 --- a/pkgtools/url2pkg/files/url2pkg +++ b/pkgtools/url2pkg/files/url2pkg @@ -1,9 +1,22 @@ #!/bin/sh # -# url2pkg V1.0 +# url2pkg $Id: url2pkg,v 1.2 1999/05/06 03:31:58 feyrer Exp $ # (c) 1999 Hubert Feyrer # +if [ "$PKGMAINTAINER" != "" ]; then + email_maintainer="$PKGMAINTAINER" +elif [ "$REPLYTO" != "" ]; then + email_maintainer="$REPLYTO" +else + email_maintainer="<INSERT_YOUR_MAIL_ADDRESS_HERE>" +fi + +if [ ! -f ../../mk/bsd.pkg.mk ]; then + echo "Run this in .../pkgsrc/foo/bar !" + exit 1 +fi + if [ ! -f w*/.extract_done ]; then if [ "$1" = "" ]; then echo -n 'URL: ' @@ -32,24 +45,24 @@ if [ ! -f w*/.extract_done ]; then fi ( - echo '# $NetBSD: url2pkg,v 1.1 1999/05/06 02:49:27 feyrer Exp $' + echo '# $NetBSD: url2pkg,v 1.2 1999/05/06 03:31:58 feyrer Exp $' echo '#' echo "" echo "DISTNAME= $DISTNAME" + echo "CATEGORIES= FILLTHISINPLEASE" + echo "MASTER_SITES= $MASTER_SITES/" if [ "$EXTRACT_SUFX" != ".tar.gz" ]; then echo "EXTRACT_SUFX= ${EXTRACT_SUFX}" fi - echo "CATEGORIES= FILLTHISINPLEASE" - echo "MASTER_SITES= $MASTER_SITES/" echo "" - echo "MAINTAINER= hubertf@netbsd.org" + echo "MAINTAINER= $email_maintainer" echo "HOMEPAGE= " echo "" echo '.include "../../mk/bsd.pkg.mk"' ) >Makefile mkdir pkg - echo '@comment $NetBSD: url2pkg,v 1.1 1999/05/06 02:49:27 feyrer Exp $' >pkg/PLIST + echo '@comment $NetBSD: url2pkg,v 1.2 1999/05/06 03:31:58 feyrer Exp $' >pkg/PLIST vi +/FILLTHISINPLEASE Makefile |