aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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