Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 May 2014 13:05:48 -0500 (CDT)
From:      Corey Halpin <chalpin@cs.wisc.edu>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/189891: mail/hashcash: Stage support [PATCH]
Message-ID:  <17349474655723664852.enqueue@spiff.home.crhalpin.org>
Resent-Message-ID: <201405171810.s4HIA0cR073909@freefall.freebsd.org>

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

>Number:         189891
>Category:       ports
>Synopsis:       mail/hashcash: Stage support [PATCH]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 17 18:10:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Corey Halpin
>Release:        FreeBSD 9.2-RELEASE-p4 i386
>Organization:
>Environment:
System: FreeBSD spiff.home.crhalpin.org 9.2-RELEASE-p4 FreeBSD 9.2-RELEASE-p4 #0: Tue Apr 8 18:05:06 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386


>Description:
	Update hashcash with stage support and better portlint complance.
>How-To-Repeat:
	NA
>Fix:


--- hashcash_stage.patch begins here ---
diff -ruN hashcash.orig/Makefile hashcash/Makefile
--- hashcash.orig/Makefile	2014-05-16 18:45:01.998014505 -0500
+++ hashcash/Makefile	2014-05-17 10:24:39.542904431 -0500
@@ -10,16 +10,29 @@
 MAINTAINER=	chalpin@cs.wisc.edu
 COMMENT=	Anti-spam / denial of service counter-measure tool
 
+LICENSE=BSD LGPL21 GPLv2
+LICENSE_COMB=dual
+
+# Also CPL: https://en.wikipedia.org/wiki/Common_Public_License
+# and Public Domain
+
 MAN1=		hashcash.1 sha1-hashcash.1
 PLIST_FILES=	bin/hashcash bin/sha1
+PLIST_FILES+= man/man1/hashcash.1.gz
+PLIST_FILES+= man/man1/sha1-hashcash.1.gz
+
 PORTDOCS=	CHANGELOG LICENSE README
 ALL_TARGET=	generic
-NO_STAGE=	yes
 
-.if defined(NOPORTDOCS)
+MAKE_ENV+= STAGEDIR=${STAGEDIR}
+
+.include <bsd.port.options.mk>
+
+.if !${PORT_OPTIONS:MDOCS}
 
 post-patch:
 	${REINPLACE_CMD} -e '/DOC_INSTALL_PATH/d' ${WRKSRC}/Makefile
+
 .endif
 
 .include <bsd.port.mk>
diff -ruN hashcash.orig/files/patch-Makefile hashcash/files/patch-Makefile
--- hashcash.orig/files/patch-Makefile	2014-05-16 18:45:01.973068608 -0500
+++ hashcash/files/patch-Makefile	2014-05-16 19:42:02.459594945 -0500
@@ -7,9 +7,9 @@
 -INSTALL_PATH = /usr/bin
 -MAN_INSTALL_PATH = /usr/share/man/man1
 -DOC_INSTALL_PATH = /usr/share/doc/hashcash-$(HC_VERS)
-+INSTALL_PATH = ${PREFIX}/bin
-+MAN_INSTALL_PATH = ${PREFIX}/man/man1
-+DOC_INSTALL_PATH = ${PREFIX}/share/doc/hashcash
++INSTALL_PATH = ${STAGEDIR}${PREFIX}/bin
++MAN_INSTALL_PATH = ${STAGEDIR}${PREFIX}/man/man1
++DOC_INSTALL_PATH = ${STAGEDIR}${PREFIX}/share/doc/hashcash
  MAKEDEPEND = makedepend
  MSLIB = mslib 
  # here you can choose the regexp style your system has
diff -ruN hashcash.orig/pkg-descr hashcash/pkg-descr
--- hashcash.orig/pkg-descr	2014-05-16 18:45:01.986831734 -0500
+++ hashcash/pkg-descr	2014-05-17 10:25:02.555897525 -0500
@@ -4,4 +4,4 @@
 parameterizable amount of work to compute for the sender.  
 
 Author: Adam Back <adam@cypherspace.org>
-WWW:    http://www.hashcash.org/
+WWW: http://www.hashcash.org/
--- hashcash_stage.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?17349474655723664852.enqueue>