head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	2012.11.17.06.01.00;	author svnexp;	state Exp;
branches;
next	1.1;

1.1
date	2012.09.23.14.59.36;	author matthew;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Switch exporter over
@
text
@
$FreeBSD: head/security/apg/files/patch-Makefile 304744 2012-09-23 14:59:36Z matthew $

--- Makefile.orig
+++ Makefile
@@@@ -44,10 +44,12 @@@@
 # If you want to use cracklib for password quality check then you
 # must uncomment the folowing 4 lines (you must not do this for WIN32)
 #
-#CRACKLIB_DICTPATH = "/usr/local/lib/pw_dict"
-#STANDALONE_OPTIONS += -DAPG_USE_CRACKLIB '-DCRACKLIB_DICTPATH=${CRACKLIB_DICTPATH}' -I/usr/local/include -L/usr/local/lib
-#CLISERV_OPTIONS += -DAPG_USE_CRACKLIB '-DCRACKLIB_DICTPATH=${CRACKLIB_DICTPATH}' -I/usr/local/include -L/usr/local/lib
-#APG_CLIBS += -lcrack
+.if defined(WITH_CRACKLIB)
+CRACKLIB_DICTPATH = "${LOCALBASE}/libdata/cracklib/pw_dict"
+STANDALONE_OPTIONS += -DAPG_USE_CRACKLIB '-DCRACKLIB_DICTPATH=${CRACKLIB_DICTPATH}' -I${LOCALBASE}/include -L${LOCALBASE}/lib
+CLISERV_OPTIONS += -DAPG_USE_CRACKLIB '-DCRACKLIB_DICTPATH=${CRACKLIB_DICTPATH}' -I${LOCALBASE}/include -L${LOCALBASE}/lib
+APG_CLIBS += -lcrack
+.endif
 
 ##################################################################
 # Support for ANSI X9.17/SHA1 PRNG
@@@@ -60,12 +62,12 @@@@
 ##################################################################
 # You can modify CC variable if you have compiler other than GCC
 # But the code was designed and tested with GCC
-CC = gcc
+CC ?= gcc
 
 ##################################################################
 # Compilation flags
 # You should comment the line below for AIX+native cc
-CFLAGS = -Wall
+CFLAGS ?= -Wall
 
 ####################################################################
 # If you plan to install APG daemon you should look at lines below #
@@@@ -135,7 +137,7 @@@@
 	${CC} ${CFLAGS} -DCLISERV ${CLISERV_OPTIONS} -o ${CS_PROGNAME} ${SOURCES} ${APG_CS_CLIBS}
 
 apgbfm:
-	${CC} ${FLAGS} -DAPGBFM -o ${BFM_PROGNAME} ${BFM_SOURCES} ${APGBFM_CLIBS}
+	${CC} ${CFLAGS} -DAPGBFM -o ${BFM_PROGNAME} ${BFM_SOURCES} ${APGBFM_CLIBS}
 
 strip:
 	strip ${PROGNAME}
@


1.1
log
@SVN rev 304744 on 2012-09-23 14:59:36Z by matthew

- Fix spelling in docs: normally I'd submit this change upstream, but
  upstream has been completely unresponsive for years.
- While here, rebuild patches using current naming conventions
- Trim Makefile headers

PR:		165312
Submitted by:	Anatoly Borodin
@
text
@d2 1
a2 1
$FreeBSD$
@

