svn commit: r321036 - in head/security/slurpie: . files
William Grzybowski
wg at FreeBSD.org
Sun Jun 16 11:27:36 UTC 2013
Author: wg
Date: Sun Jun 16 11:27:34 2013
New Revision: 321036
URL: http://svnweb.freebsd.org/changeset/ports/321036
Log:
security/slurpie: fix build with clang
- Fix build with clang, main int arg
- NOPORTDOCS -> PORT_OPTIONS:MDOCS
- Trim Makefile header
Approved by: culot / jpaetzel (mentors, implicit)
Added:
head/security/slurpie/files/patch-src_mater.c (contents, props changed)
head/security/slurpie/files/patch-src_node.c (contents, props changed)
Modified:
head/security/slurpie/Makefile
Modified: head/security/slurpie/Makefile
==============================================================================
--- head/security/slurpie/Makefile Sun Jun 16 11:24:56 2013 (r321035)
+++ head/security/slurpie/Makefile Sun Jun 16 11:27:34 2013 (r321036)
@@ -1,10 +1,5 @@
-# ex:ts=8
-# Ports collection makefile for: slurpie
-# Date created: Sun Feb 12, 2000
-# Whom: David O'Brien (obrien at NUXI.com)
-#
+# Created by: David O'Brien (obrien at NUXI.com)
# $FreeBSD$
-#
PORTNAME= slurpie
PORTVERSION= 2.0b
@@ -20,6 +15,8 @@ COMMENT= A passwd file cracker (supports
PLIST_FILES= sbin/slurp sbin/slurpie
PORTDOCS= README
+.include <bsd.port.options.mk>
+
post-patch:
# Fix for GCC 4.2
@${REINPLACE_CMD} -e \
@@ -28,7 +25,7 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/slurp* ${PREFIX}/sbin
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
Added: head/security/slurpie/files/patch-src_mater.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/slurpie/files/patch-src_mater.c Sun Jun 16 11:27:34 2013 (r321036)
@@ -0,0 +1,13 @@
+diff --git src/master.c src/master.c
+index 4b24f9b..683d9a6 100644
+--- src/master.c
++++ src/master.c
+@@ -132,7 +132,7 @@ char *get_time_str( u_int seconds )
+ return timestr;
+ }
+
+-int main( int argc, u_char **argv )
++int main( int argc, char **argv )
+ {
+ static unsigned id, init_time;
+
Added: head/security/slurpie/files/patch-src_node.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/slurpie/files/patch-src_node.c Sun Jun 16 11:27:34 2013 (r321036)
@@ -0,0 +1,13 @@
+diff --git src/node.c src/node.c
+index 28d5d8a..3135ea0 100644
+--- src/node.c
++++ src/node.c
+@@ -102,7 +102,7 @@ void clean_up( int exit_status )
+
+
+ /////////////////////////////
+-int main( int argc, u_char **argv )
++int main( int argc, char **argv )
+ {
+ u_int exit_state = 0;
+ global.self.addr.sin_port = 0;
More information about the svn-ports-all
mailing list