aboutsummaryrefslogtreecommitdiff
path: root/security/slurpie
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2007-07-02 08:52:35 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2007-07-02 08:52:35 +0000
commita281b46c7ff322db6b65b5f24f8e7771ca6d8bf8 (patch)
tree37d5eb280ac97466b0626933a40395f27df71815 /security/slurpie
parent7f1b560b27b156a25d45d8724e78383513847543 (diff)
downloadports-a281b46c7ff322db6b65b5f24f8e7771ca6d8bf8.tar.gz
ports-a281b46c7ff322db6b65b5f24f8e7771ca6d8bf8.zip
- Fix the build with GCC 4.2 [1]
- Clean up Makefile - Kill unnecessary pkg-plist Reported by: pointyhat (logs) [1]
Notes
Notes: svn path=/head/; revision=194615
Diffstat (limited to 'security/slurpie')
-rw-r--r--security/slurpie/Makefile16
-rw-r--r--security/slurpie/pkg-plist4
2 files changed, 12 insertions, 8 deletions
diff --git a/security/slurpie/Makefile b/security/slurpie/Makefile
index 1f10f4f6dfb4..89bc88773809 100644
--- a/security/slurpie/Makefile
+++ b/security/slurpie/Makefile
@@ -17,12 +17,20 @@ EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= A passwd file cracker (supports distributed nodes)
+PLIST_FILES= sbin/slurp sbin/slurpie
+PORTDOCS= README
+
+post-patch:
+# Fix for GCC 4.2
+ @${REINPLACE_CMD} -e \
+ 's,(u_char)cfg.ptask_level = ,cfg.ptask_level = (u_int),' \
+ ${WRKSRC}/src/slurpie.c
+
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/slurp ${PREFIX}/sbin
- ${INSTALL_PROGRAM} ${WRKSRC}/slurpie ${PREFIX}/sbin
+ ${INSTALL_PROGRAM} ${WRKSRC}/slurp* ${PREFIX}/sbin
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/slurpie
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/slurpie/README
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
.include <bsd.port.mk>
diff --git a/security/slurpie/pkg-plist b/security/slurpie/pkg-plist
deleted file mode 100644
index ae4cc0a3a5d6..000000000000
--- a/security/slurpie/pkg-plist
+++ /dev/null
@@ -1,4 +0,0 @@
-sbin/slurp
-sbin/slurpie
-%%PORTDOCS%%share/doc/slurpie/README
-%%PORTDOCS%%@dirrm share/doc/slurpie