openbsd-ports/security/passwdqc/Makefile
2022-03-11 19:53:16 +00:00

42 lines
961 B
Makefile

COMMENT= complexity checker for passwd(1) and password generator
DISTNAME= passwdqc-2.0.2
CATEGORIES= security sysutils
SHARED_LIBS= passwdqc 0.1 # .0
HOMEPAGE= https://www.openwall.com/passwdqc/
# BSD
PERMIT_PACKAGE= Yes
WANTLIB= c
MASTER_SITES= https://www.openwall.com/passwdqc/
FIX_EXTRACT_PERMISSIONS= Yes
NO_TEST= Yes
ALL_TARGET= utils
INSTALL_TARGET= install_lib install_utils
MAKE_FLAGS= CC="${CC}" \
CFLAGS="${CFLAGS}" \
BINDIR=${PREFIX}/bin \
SHARED_LIBDIR=${PREFIX}/lib \
DEVEL_LIBDIR=${PREFIX}/lib \
INCLUDEDIR=${PREFIX}/include \
MANDIR=${PREFIX}/man \
CONFDIR=${PREFIX}/share/examples/passwdqc \
SHARED_LIB=libpasswdqc.so.${LIBpasswdqc_VERSION}
pre-configure:
${SUBST_CMD} ${WRKSRC}/pwqcheck.1
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/passwdqc
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/passwdqc
${INSTALL_DATA} ${WRKSRC}/pwqcheck.php ${PREFIX}/share/examples/passwdqc
.include <bsd.port.mk>