Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Mar 2004 08:07:50 +0100 (CET)
From:      Sebastian Klemke <packet@adrenochrome.nl>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/64493: [patch] tla should install gpg-check script
Message-ID:  <20040320070750.803EE20A5@charline.wired.nerdheim.de>
Resent-Message-ID: <200403200710.i2K7AF55008153@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         64493
>Category:       ports
>Synopsis:       [patch] tla should install gpg-check script
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 19 23:10:15 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Sebastian Klemke
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD charline 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Thu Mar 18 11:54:05 CET 2004 root@charline:/usr/obj/usr/src/sys/CHARLINE i386


	
>Description:
	tla depends on a script to verify signatures on a signed archive. Such
	a script is included in the distribution tarball
	(src/tla/=gpg-check.awk)but it is not installed. Although it is not a
	bug in the port I think it makes sense to install the script
	nevertheless.
>How-To-Repeat:
	Install devel/tla from the ports collection.
>Fix:

	The included patch changes the awk path in the upstream script and
	installs it as ${PREFIX}/bin/tla-gpg-check. The name is changed to
	avoid possible conflicts. I have successfully tested both the script
	and my patch.

--- tla.patch begins here ---
diff -urN tla.orig/Makefile tla/Makefile
--- tla.orig/Makefile	Sat Mar 20 05:04:52 2004
+++ tla/Makefile	Sat Mar 20 05:40:08 2004
@@ -38,8 +39,11 @@
 test:
 	cd ${WRKSRC} ; ${GMAKE} test
 
-.if !defined(NOPORTDOCS)
 post-install:
+	${SED} 's,^#!.*$$,#!${AWK} -f,' ${ORIGWRKSRC}/tla/=gpg-check.awk \
+		> ${WRKDIR}/tla-gpg-check
+	${INSTALL_SCRIPT} ${WRKDIR}/tla-gpg-check ${PREFIX}/bin
+.if !defined(NOPORTDOCS)
 	${MKDIR} ${DOCSDIR}; \
 	for f in `${FIND} ${ORIGWRKSRC}/docs-tla/html -type f -name '*.html' \
 		-exec ${BASENAME} {} \;`; do \
diff -urN tla.orig/pkg-plist tla/pkg-plist
--- tla.orig/pkg-plist	Sat Mar 20 05:04:52 2004
+++ tla/pkg-plist	Sat Mar 20 05:27:04 2004
@@ -1,2 +1,3 @@
 bin/tla
+bin/tla-gpg-check
 @comment automatically generated plist for docs
--- tla.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040320070750.803EE20A5>