Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Oct 2011 15:29:08 +0900
From:      Takefu <takefu@airport.fm>
To:        freebsd-gnats-submit@FreeBSD.org
Cc:        garga@FreeBSD.org
Subject:   ports/161761: [PATCH] archivers/sharutils: fix gshar.1 gunshar.1
Message-ID:  <4E9D1CB4.1080401@airport.fm>
Resent-Message-ID: <201110180630.p9I6U93v094456@freefall.freebsd.org>
In-Reply-To: <201110180617.p9I6HQn1095822@unbound.local.ae-osaka.co.jp>
References:  <201110180617.p9I6HQn1095822@unbound.local.ae-osaka.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
	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@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@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:



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