ports/189891: mail/hashcash: Stage support [PATCH]
Corey Halpin
chalpin at cs.wisc.edu
Sat May 17 18:10:00 UTC 2014
>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 at 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 at 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 at cypherspace.org>
-WWW: http://www.hashcash.org/
+WWW: http://www.hashcash.org/
--- hashcash_stage.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list