1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00

Update 2.9.4 --> 2.9.6

Distfile has been moved from sourceforge to github.

Generate dictionary from github hosted word dictionary file instead of
in port.
This commit is contained in:
Cy Schubert 2016-02-05 07:05:11 +00:00
parent 59b5b989bc
commit 098a06a073
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=408137
6 changed files with 25 additions and 9 deletions

View File

@ -2,13 +2,17 @@
# $FreeBSD$
PORTNAME= cracklib
PORTVERSION= 2.9.4
PORTVERSION= 2.9.6
CATEGORIES= security
.if defined(PYTHON_SLAVEPORT)
CATEGORIES+= python
.endif
MASTER_SITES= SF \
MASTER_SITES= https://github.com/cracklib/cracklib/releases/download/cracklib-2.9.6/ \
LOCAL/cy
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
${PORTNAME}-words-${PORTVERSION}.gz
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
WORDS_DISTFILE= ${PORTNAME}-words-${PORTVERSION}.gz
MAINTAINER= cy@FreeBSD.org
COMMENT?= Password-checking library
@ -16,7 +20,7 @@ COMMENT?= Password-checking library
LICENSE= LGPL21
DICTPATH= ${PREFIX}/libdata/${PORTNAME}
DICTFILE= ${DICTPATH}/pw_dict
DICTFILE= ${DICTPATH}/cracklib-words
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-default-dict=${DICTFILE}
INSTALL_TARGET= install-strip
@ -43,9 +47,9 @@ PLIST_FILES= include/crack.h \
lib/libcrack.so \
lib/libcrack.so.2 \
lib/libcrack.so.2.9.0 \
libdata/cracklib/pw_dict.hwm \
libdata/cracklib/pw_dict.pwd \
libdata/cracklib/pw_dict.pwi \
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 \
@ -105,7 +109,7 @@ post-install:
${INSTALL_MAN} ${FILESDIR}/${PORTNAME}.3 ${STAGEDIR}${MAN3PREFIX}/man/man3/
${LN} -s ${PORTNAME}.3 ${STAGEDIR}${MAN3PREFIX}/man/man3/FascistCheck.3
@${MKDIR} ${STAGEDIR}${DICTPATH}
${INSTALL_DATA} ${FILESDIR}/pw_dict* ${STAGEDIR}${DICTPATH}/
@PATH=$${PATH}:${STAGEDIR}${PREFIX}/sbin ${STAGEDIR}${PREFIX}/sbin/create-cracklib-dict -o ${STAGEDIR}${DICTPATH}/cracklib-words ${_DISTDIR}/${WORDS_DISTFILE}
.endif
.include <bsd.port.mk>

View File

@ -1,2 +1,4 @@
SHA256 (cracklib-2.9.4.tar.gz) = f2a866b4b9808344228ea6d68b69e3ba9a8a99210e23dfd718d4b95c60be8958
SIZE (cracklib-2.9.4.tar.gz) = 622478
SHA256 (cracklib-2.9.6.tar.gz) = 17cf76943de272fd579ed831a1fd85339b393f8d00bf9e0d17c91e972f583343
SIZE (cracklib-2.9.6.tar.gz) = 642402
SHA256 (cracklib-words-2.9.6.gz) = 27973245225eeb9d0090e97f3dea4197dec99b64d9d3a791a60298f3b021824c
SIZE (cracklib-words-2.9.6.gz) = 5536645

View File

@ -0,0 +1,10 @@
--- util/cracklib-format.orig 2015-08-18 11:41:16.000000000 -0700
+++ util/cracklib-format 2016-02-04 21:05:17.397847600 -0800
@@ -3,6 +3,7 @@
# This preprocesses a set of word lists into a suitable form for input
# into cracklib-packer
#
+unset LANG
gzip -cdf "$@" |
grep -v '^\(#\|$\)' |
tr '[A-Z]' '[a-z]' |

Binary file not shown.

Binary file not shown.

Binary file not shown.