[Midnightbsd-cvs] mports [24224] trunk/security/l0phtcrack: fix build
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Wed Sep 5 19:15:20 EDT 2018
Revision: 24224
http://svnweb.midnightbsd.org/mports/?rev=24224
Author: laffer1
Date: 2018-09-05 19:15:19 -0400 (Wed, 05 Sep 2018)
Log Message:
-----------
fix build
Modified Paths:
--------------
trunk/security/l0phtcrack/Makefile
Added Paths:
-----------
trunk/security/l0phtcrack/files/patch-ztest.c
Removed Paths:
-------------
trunk/security/l0phtcrack/files/patch-ztest_c
Modified: trunk/security/l0phtcrack/Makefile
===================================================================
--- trunk/security/l0phtcrack/Makefile 2018-09-05 23:13:49 UTC (rev 24223)
+++ trunk/security/l0phtcrack/Makefile 2018-09-05 23:15:19 UTC (rev 24224)
@@ -5,6 +5,7 @@
CATEGORIES= security
MASTER_SITES= http://www.mavetju.org/download/adopted/ \
http://mirror.amdmi3.ru/distfiles/${DIST_SUBDIR}/
+# http://www.cotse.com/sw/WinNT/
DISTNAME= lcsrc
DIST_SUBDIR= ${PORTNAME}
@@ -16,35 +17,28 @@
LICENSE_TEXT= A mix of BSD and GPL code, possibly a violation
LICENSE_PERMS= no-pkg-sell no-pkg-mirror
-DOCDIR= share/doc/${PORTNAME}
RESTRICTED= uses GNU getopt with BSDish-licensed code from OpenSSL
NO_WRKSUBDIR= yes
-PLIST= ${WRKDIR}/pkg-plist
-USE_PERL5_BUILD=yes
-USES= zip
+USES= dos2unix perl5 zip
+USE_PERL5= build
+PLIST_FILES= bin/lc_CLI
+PORTDOCS= *
+
+OPTIONS_DEFINE= DOCS
+
post-extract:
- ${RM} ${WRKDIR}/*exe
- ${PERL} -pi -e "s:\r::g" ${WRKDIR}/*
- ${PERL} -pi -e "s:ommited:omitted:g" ${WRKDIR}/util.c
+ @${RM} ${WRKSRC}/*exe
+ @${REINPLACE_CMD} -e 's|ommited|omitted|' ${WRKSRC}/util.c
do-build:
- cd ${WRKDIR} && ${CC} ${CFLAGS} -DMPU8086 *.c -o lc_CLI
+ cd ${WRKSRC} && ${CC} ${CFLAGS} -DMPU8086 *.c -o lc_CLI
-pre-install:
- ${ECHO_CMD} bin/lc_CLI > ${PLIST}
-.if !defined(NOPORTDOCS)
- for i in `${FIND} ${WRKDIR} -name '*txt'`; \
- do ${ECHO_CMD} ${DOCDIR}/`${BASENAME} $${i}` >> ${PLIST}; \
- done
- ${ECHO_CMD} @dirrm ${DOCDIR} >> ${PLIST}
-.endif
-
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/lc_CLI ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/${DOCDIR}
- cd ${WRKSRC} && ${PAX} -r -w *txt ${PREFIX}/${DOCDIR}
-.endif
+ ${INSTALL_PROGRAM} ${WRKSRC}/lc_CLI ${STAGEDIR}${PREFIX}/bin
+do-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.txt ${STAGEDIR}${DOCSDIR}
+
.include <bsd.port.mk>
Added: trunk/security/l0phtcrack/files/patch-ztest.c
===================================================================
--- trunk/security/l0phtcrack/files/patch-ztest.c (rev 0)
+++ trunk/security/l0phtcrack/files/patch-ztest.c 2018-09-05 23:15:19 UTC (rev 24224)
@@ -0,0 +1,11 @@
+--- ztest.c.orig 2016-03-03 16:20:49 UTC
++++ ztest.c
+@@ -144,7 +144,7 @@ int issame(char *, char *, int);
+
+ char str_to_crypt[] = "\x4b\x47\x53\x21\x40\x23\x24\x25";
+
+-void main(int argc, char **argv) {
++int main(int argc, char **argv) {
+ FILE *pwlist, *wordlist, *outlist;
+ char dict_word[MAX_WORD];
+ char *pwfile, *wordfile, *outfile;
Property changes on: trunk/security/l0phtcrack/files/patch-ztest.c
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Deleted: trunk/security/l0phtcrack/files/patch-ztest_c
===================================================================
--- trunk/security/l0phtcrack/files/patch-ztest_c 2018-09-05 23:13:49 UTC (rev 24223)
+++ trunk/security/l0phtcrack/files/patch-ztest_c 2018-09-05 23:15:19 UTC (rev 24224)
@@ -1,11 +0,0 @@
---- ztest.c.orig Sat Nov 4 15:24:32 2000
-+++ ztest.c Sat Nov 4 15:25:05 2000
-@@ -144,7 +144,7 @@
-
- char str_to_crypt[] = "\x4b\x47\x53\x21\x40\x23\x24\x25";
-
--void main(int argc, char **argv) {
-+int main(int argc, char **argv) {
- FILE *pwlist, *wordlist, *outlist;
- char dict_word[MAX_WORD];
- char *pwfile, *wordfile, *outfile;
More information about the Midnightbsd-cvs
mailing list