aboutsummaryrefslogtreecommitdiff
path: root/security/cracklib/Makefile
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2019-12-09 19:12:15 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2019-12-09 19:12:15 +0000
commitb3de49c53e3680efeb6452bb28733304e11325eb (patch)
tree3549d1093e667733377c6e7790a8ceb6be235ee1 /security/cracklib/Makefile
parent2caa69a9e5c76a9a09d136aeb9dee4517b2da52d (diff)
downloadports-b3de49c53e3680efeb6452bb28733304e11325eb.tar.gz
ports-b3de49c53e3680efeb6452bb28733304e11325eb.zip
Notes
Diffstat (limited to 'security/cracklib/Makefile')
-rw-r--r--security/cracklib/Makefile96
1 files changed, 21 insertions, 75 deletions
diff --git a/security/cracklib/Makefile b/security/cracklib/Makefile
index 6eec4ca83e1c..dc4c3e984c5c 100644
--- a/security/cracklib/Makefile
+++ b/security/cracklib/Makefile
@@ -2,17 +2,15 @@
# $FreeBSD$
PORTNAME= cracklib
-PORTVERSION= 2.9.6
+PORTVERSION= 2.9.7
CATEGORIES= security
-.if defined(PYTHON_SLAVEPORT)
-CATEGORIES+= python
-.endif
-MASTER_SITES= https://github.com/cracklib/cracklib/releases/download/cracklib-2.9.6/ \
+MASTER_SITES= https://github.com/cracklib/cracklib/releases/download/v${PORTVERSION}/ \
LOCAL/cy
+.if !defined(PYTHON_SLAVEPORT)
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
- ${PORTNAME}-words-${PORTVERSION}.gz
+ ${WORDS_DISTFILE}
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
-WORDS_DISTFILE= ${PORTNAME}-words-${PORTVERSION}.gz
+.endif
MAINTAINER= cy@FreeBSD.org
COMMENT?= Password-checking library
@@ -24,80 +22,16 @@ DICTFILE= ${DICTPATH}/cracklib-words
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-default-dict=${DICTFILE}
INSTALL_TARGET= install-strip
-USES= gettext libtool
-USE_LDCONFIG= yes
+USES= libtool tar:bz2
.if defined(PYTHON_SLAVEPORT)
+CATEGORIES+= python
+
USES+= python:2.7 localbase
USE_PYTHON= flavors
-CONFIGURE_ARGS+=--with-python
-PLIST_FILES= %%PYTHON_SITELIBDIR%%/_cracklib.a \
- %%PYTHON_SITELIBDIR%%/_cracklib.so \
- %%PYTHON_SITELIBDIR%%/cracklib.py \
- %%PYTHON_SITELIBDIR%%/cracklib.pyc \
- %%PYTHON_SITELIBDIR%%/cracklib.pyo \
- %%PYTHON_SITELIBDIR%%/test_cracklib.py \
- %%PYTHON_SITELIBDIR%%/test_cracklib.pyc \
- %%PYTHON_SITELIBDIR%%/test_cracklib.pyo
-.else
-CONFIGURE_ARGS+=--without-python
-PLIST_FILES= include/crack.h \
- include/packer.h \
- lib/libcrack.a \
- lib/libcrack.so \
- lib/libcrack.so.2 \
- lib/libcrack.so.2.9.0 \
- libdata/cracklib/cracklib-words.hwm \
- libdata/cracklib/cracklib-words.pwd \
- libdata/cracklib/cracklib-words.pwi \
- man/man3/FascistCheck.3.gz \
- man/man3/cracklib.3.gz \
- sbin/cracklib-check \
- sbin/cracklib-format \
- sbin/cracklib-packer \
- sbin/cracklib-unpacker \
- sbin/create-cracklib-dict \
- %%DATADIR%%/cracklib-small \
- %%DATADIR%%/cracklib.magic \
- share/locale/as/LC_MESSAGES/cracklib.mo \
- share/locale/bn_IN/LC_MESSAGES/cracklib.mo \
- share/locale/cs/LC_MESSAGES/cracklib.mo \
- share/locale/da/LC_MESSAGES/cracklib.mo \
- share/locale/de/LC_MESSAGES/cracklib.mo \
- share/locale/el/LC_MESSAGES/cracklib.mo \
- share/locale/es/LC_MESSAGES/cracklib.mo \
- share/locale/fi/LC_MESSAGES/cracklib.mo \
- share/locale/fr/LC_MESSAGES/cracklib.mo \
- share/locale/gu/LC_MESSAGES/cracklib.mo \
- share/locale/hi/LC_MESSAGES/cracklib.mo \
- share/locale/hu/LC_MESSAGES/cracklib.mo \
- share/locale/it/LC_MESSAGES/cracklib.mo \
- share/locale/ja/LC_MESSAGES/cracklib.mo \
- share/locale/kn/LC_MESSAGES/cracklib.mo \
- share/locale/ko/LC_MESSAGES/cracklib.mo \
- share/locale/lt/LC_MESSAGES/cracklib.mo \
- share/locale/ml/LC_MESSAGES/cracklib.mo \
- share/locale/mr/LC_MESSAGES/cracklib.mo \
- share/locale/nb/LC_MESSAGES/cracklib.mo \
- share/locale/nl/LC_MESSAGES/cracklib.mo \
- share/locale/or/LC_MESSAGES/cracklib.mo \
- share/locale/pa/LC_MESSAGES/cracklib.mo \
- share/locale/pl/LC_MESSAGES/cracklib.mo \
- share/locale/pt/LC_MESSAGES/cracklib.mo \
- share/locale/pt_BR/LC_MESSAGES/cracklib.mo \
- share/locale/ru/LC_MESSAGES/cracklib.mo \
- share/locale/sk/LC_MESSAGES/cracklib.mo \
- share/locale/sl_SI/LC_MESSAGES/cracklib.mo \
- share/locale/ta/LC_MESSAGES/cracklib.mo \
- share/locale/te/LC_MESSAGES/cracklib.mo \
- share/locale/tr/LC_MESSAGES/cracklib.mo \
- share/locale/uk/LC_MESSAGES/cracklib.mo \
- share/locale/zh_CN/LC_MESSAGES/cracklib.mo \
- share/locale/zh_TW/LC_MESSAGES/cracklib.mo
-.endif
+CONFIGURE_ARGS+=--disable-nls --with-python
-.if defined(PYTHON_SLAVEPORT)
pre-build:
cd ${WRKSRC}/lib && ${MAKE_CMD} libcrack.la
@@ -106,6 +40,18 @@ do-test:
${PYTHON_CMD} -c \
"from test_${PORTNAME} import run; run(use_dictpath=\"${DICTFILE:S|^${PREFIX}/|${LOCALBASE}/|}\")")
.else
+WORDS_DISTFILE= ${PORTNAME}-words-${PORTVERSION}.bz2
+
+USE_LDCONFIG= yes
+
+OPTIONS_DEFINE= NLS
+OPTIONS_SUB= NLS
+
+NLS_CONFIGURE_OFF=--disable-nls
+NLS_USES= gettext
+
+CONFIGURE_ARGS+=--without-python
+
post-install:
${INSTALL_MAN} ${FILESDIR}/${PORTNAME}.3 ${STAGEDIR}${MAN3PREFIX}/man/man3/
${LN} -s ${PORTNAME}.3 ${STAGEDIR}${MAN3PREFIX}/man/man3/FascistCheck.3