aboutsummaryrefslogtreecommitdiff
path: root/mail/hashcash
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2004-09-16 02:33:27 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2004-09-16 02:33:27 +0000
commit00e5a921584b6833557843a5a0959e12066b6b75 (patch)
tree4153a801744fcd985b3866452775454907c905f5 /mail/hashcash
parentfa7d99ae9ea69c062ea6704f1743814ca02a57e4 (diff)
downloadports-00e5a921584b6833557843a5a0959e12066b6b75.tar.gz
ports-00e5a921584b6833557843a5a0959e12066b6b75.zip
- utilize and PLIST_FILES and PORTDOCS
- unbreak this port PR: 71482 Submitted by: leeym Reviewed by: David Bremner <bremner@unb.ca> Approved by: portmgr (marcus)
Notes
Notes: svn path=/head/; revision=118195
Diffstat (limited to 'mail/hashcash')
-rw-r--r--mail/hashcash/Makefile10
-rw-r--r--mail/hashcash/files/patch-Makefile10
-rw-r--r--mail/hashcash/pkg-plist6
3 files changed, 16 insertions, 10 deletions
diff --git a/mail/hashcash/Makefile b/mail/hashcash/Makefile
index 9773bd4a87c8..46b0d9e3fde3 100644
--- a/mail/hashcash/Makefile
+++ b/mail/hashcash/Makefile
@@ -15,5 +15,15 @@ MAINTAINER= bremner@unb.ca
COMMENT= Anti-spam / denial of service counter-measure tool
MAN1= hashcash.1 sha1-hashcash.1
+PLIST_FILES= bin/hashcash bin/sha1
+PORTDOCS= CHANGELOG LICENSE README
+
+.if defined(NOPORTDOCS)
+
+USE_REINPLACE= yes
+
+post-patch:
+ ${REINPLACE_CMD} -e '/DOC_INSTALL_PATH/d' ${WRKSRC}/Makefile
+.endif
.include <bsd.port.mk>
diff --git a/mail/hashcash/files/patch-Makefile b/mail/hashcash/files/patch-Makefile
index 20954da87765..8ddf79f93d08 100644
--- a/mail/hashcash/files/patch-Makefile
+++ b/mail/hashcash/files/patch-Makefile
@@ -1,14 +1,16 @@
---- Makefile.orig Wed Aug 11 04:01:24 2004
-+++ Makefile Sat Aug 28 11:23:16 2004
-@@ -1,6 +1,6 @@
+--- Makefile.orig Wed Aug 11 19:01:24 2004
++++ Makefile Wed Sep 8 10:01:54 2004
+@@ -1,7 +1,7 @@
HC_VERS = 1.02
-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 = /usr/share/doc/hashcash-$(HC_VERS)
++DOC_INSTALL_PATH = ${PREFIX}/share/doc/hashcash
MAKEDEPEND = makedepend
# add -DCHROMATIX for libfastmint integration
+ EXTRA_COPT = -O3 -funroll-loops
@@ -12,8 +12,8 @@
# if no POSIX or BSD, disable, still have builtin basic wildcard support
# OPT = -O
diff --git a/mail/hashcash/pkg-plist b/mail/hashcash/pkg-plist
deleted file mode 100644
index 271fc87388b1..000000000000
--- a/mail/hashcash/pkg-plist
+++ /dev/null
@@ -1,6 +0,0 @@
-bin/hashcash
-bin/sha1
-share/doc/hashcash/CHANGELOG
-share/doc/hashcash/LICENSE
-share/doc/hashcash/README
-@dirrm share/doc/hashcash