ports/161761: [PATCH] archivers/sharutils: fix gshar.1 gunshar.1

Takefu takefu at airport.fm
Tue Oct 18 06:30:09 UTC 2011


	Note: There was a bad value `patch' for the field `>Class:'.
	It was set to the default value of `sw-bug'.


>Number:         161761
>Category:       ports
>Synopsis:       [PATCH] archivers/sharutils: fix gshar.1 gunshar.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 18 06:30:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Takefu
>Release:        FreeBSD 8.2-RELEASE-p4 amd64
>Organization:
FOX Amateur Radio Club
>Environment:
>Description:
  fix gshar.1 gunshar.1
  portlint(1) complains

Port maintainer (garga at FreeBSD.org) is cc'd.

>How-To-Repeat:
>Fix:
--- sharutils.patch begins here ---
diff -ruN /usr/ports/archivers/sharutils/Makefile archivers/sharutils/Makefile
--- /usr/ports/archivers/sharutils/Makefile	2011-07-28 11:44:54.000000000 +0900
+++ archivers/sharutils/Makefile	2011-10-18 16:18:05.000000000 +0900
@@ -14,6 +14,8 @@
 MAINTAINER=	garga at FreeBSD.org
 COMMENT=	Pack, send and unpack shell archives; synchronize via e-mail

+LICENSE=	GPLv3
+
 USE_BZIP2=	yes
 USE_PERL5=	yes
 GNU_CONFIGURE=	yes
@@ -23,8 +25,6 @@
 MAN1=		gshar.1 gunshar.1
 INFO=		sharutils

-LICENSE=	GPLv3
-
 .if defined(WITHOUT_NLS)
 PLIST_SUB+=	NLS="@comment "
 CONFIGURE_ARGS+=--disable-nls
@@ -34,4 +34,23 @@
 CONFIGURE_ARGS+=--with-libintl-prefix="${LOCALBASE}"
 .endif

+pre-patch:
+.for man in shar.1 unshar.1
+	${REINPLACE_CMD} \
+		-e 's, SHAR , GSHAR ,' \
+		-e 's,Shar,Gshar,' \
+		-e 's, shar , gshar ,g' \
+		-e 's,^shar ,gshar ,' \
+		-e 's, UNSHAR , GUNSHAR ,' \
+		-e 's,Unshar,Gunshar,' \
+		-e 's,^unshar ,gunshar ,' \
+		-e 's,f2shar\\f1,f2gshar\\f1,' \
+		-e 's, unshar , gunshar ,g' \
+		-e 's,gshar file,shar file,g' \
+		-e 's,shar\,,gshar\,,' \
+		-e 's,shar(,gshar(,' \
+		-e 's,unshar(,gunshar(,' \
+		-e 's, shar\$$, gshar,' \
+		${WRKSRC}/doc/${man}
+.endfor
 .include <bsd.port.mk>
--- sharutils.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list