From 5a9129730e5baf12a92d2d0f58d8d4f2e0152886 Mon Sep 17 00:00:00 2001 From: Brian Read Date: Fri, 14 Jul 2023 13:56:37 +0100 Subject: [PATCH] initial commit of file from CVS for perl-Crypt-Cracklib on Fri 14 Jul 13:56:37 BST 2023 --- .gitattributes | 1 + .gitignore | 3 ++ Crypt-Cracklib-1.7.tar.gz | 3 ++ Makefile | 19 ++++++++ README.md | 10 ++++- automake.patch | 8 ++++ contriborbase | 1 + perl-Crypt-Cracklib.spec | 94 +++++++++++++++++++++++++++++++++++++++ 8 files changed, 138 insertions(+), 1 deletion(-) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Crypt-Cracklib-1.7.tar.gz create mode 100644 Makefile create mode 100644 automake.patch create mode 100644 contriborbase create mode 100644 perl-Crypt-Cracklib.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6773378 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.7.tar.gz filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1534ba5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.rpm +*.log +*spec-20* diff --git a/Crypt-Cracklib-1.7.tar.gz b/Crypt-Cracklib-1.7.tar.gz new file mode 100644 index 0000000..033a80b --- /dev/null +++ b/Crypt-Cracklib-1.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cf864ddffaec6b4697bd4e53030f320166c69c3b3aebf79ce25b9af30228567f +size 27529 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..bb5becc --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +NAME := perl-Crypt-Cracklib +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) diff --git a/README.md b/README.md index 1c926be..95981b6 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ # perl-Crypt-Cracklib -3rd Party (Maintained by Koozali) git repo for perl-Crypt-Cracklib smeserver \ No newline at end of file +3rd Party (Maintained by Koozali) git repo for perl-Crypt-Cracklib smeserver + +## Description + +
*This description has been generated by an LLM AI system and cannot be relied on to be fully correct.* +*Once it has been checked, then this comment will be deleted* +
+ +Perl-Crypt-Cracklib is a software package that allows for encryption and decryption of passwords using the cracklib library. The software allows for the use of algorithm-based password strength checking functions, as well as functions to generate random passwords. The package also provides support for hashing and salting of passwords to create more secure passwords. diff --git a/automake.patch b/automake.patch new file mode 100644 index 0000000..00df7ba --- /dev/null +++ b/automake.patch @@ -0,0 +1,8 @@ +--- Makefile.PL 2010-12-29 17:30:32.000000000 -0600 ++++ Makefile.PL 2011-02-06 19:01:46.997930757 -0600 +@@ -17,5 +17,4 @@ + cc_lib_links('crack'); + cc_optimize_flags('-g -Wall -Werror'); + +-auto_install(); + WriteAll(); diff --git a/contriborbase b/contriborbase new file mode 100644 index 0000000..ef36a67 --- /dev/null +++ b/contriborbase @@ -0,0 +1 @@ +sme10 diff --git a/perl-Crypt-Cracklib.spec b/perl-Crypt-Cracklib.spec new file mode 100644 index 0000000..450897a --- /dev/null +++ b/perl-Crypt-Cracklib.spec @@ -0,0 +1,94 @@ +%define auto %{perl_vendorarch}/auto +%define archlib %{perl_vendorarch} +%define _use_internal_dependency_generator 1 + +Name: perl-Crypt-Cracklib +Version: 1.7 +Release: 2%{?dist} +Summary: Crypt-Cracklib - Perl interface to Alec Muffett's Cracklib + +Group: Development/Libraries +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/Crypt-Cracklib/ +Source0: http://search.cpan.org/CPAN/authors/id/D/DA/DANIEL/Crypt-Cracklib-1.7.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(ExtUtils::ParseXS) +BuildRequires: perl(ExtUtils::Manifest) +BuildRequires: cracklib-devel +BuildRequires: cracklib-dicts +BuildRequires: perl-Test-Pod +BuildRequires: perl-Test-Pod-Coverage + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Patch0: automake.patch + +%description +This module providers interaction with the system cracklib libraries. + +%prep +%setup -q -n Crypt-Cracklib-%{version} +%patch0 -p0 -b .automake + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%check +make test + +%install +rm -rf $RPM_BUILD_ROOT +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} ';' 2>/dev/null +%{_fixperms} $RPM_BUILD_ROOT/* +find $RPM_BUILD_ROOT -name Cracklib.bs -exec rm -f {} ';' + +mkdir -p -m0700 $RPM_BUILD_ROOT%{_defaultdocdir}/perl-Crypt-Cracklib-%{version} +install -m 0644 Changes $RPM_BUILD_ROOT%{_defaultdocdir}/perl-Crypt-Cracklib-%{version}/Changes +install -m 0644 README $RPM_BUILD_ROOT%{_defaultdocdir}/perl-Crypt-Cracklib-%{version}/README + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%dir %{auto}/Crypt +%dir %{auto}/Crypt/Cracklib +%{archlib}/Crypt/Cracklib.pm +%{auto}/Crypt/Cracklib/* +%{_mandir}/man3/*.3* +%doc Changes README + +%changelog +* Fri Jul 14 2023 BogusDateBot +- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, + by assuming the date is correct and changing the weekday. + Sun Feb 05 2011 --> Sun Jan 30 2011 or Sat Feb 05 2011 or Sun Feb 06 2011 or .... + +* Mon Mar 14 2016 Daniel Berteaud 1.7-2 +- Remove fedora and el5 specific conditions +- Add cracklib-dicts to the buildreqs so it builds on el7 +* Sat Feb 05 2011 Carl Thompson 1.7-1 + Sun Feb 05 2011 --> Sun Jan 30 2011 or Sat Feb 05 2011 or Sun Feb 06 2011 or .... +- upgraded to version 1.7 +- added patch to remove AutoMake functions of perl so its +- dependant on packages +- updated spec to work with fedora and epel builds +- updated spec to deal with perl module install paths +* Wed Jul 28 2010 Carl Thompson 1.5-3 +- update files section for cleaner docs list +- removed epoch +- added Crypt as a directory owned by package +* Tue Jul 27 2010 Carl Thompson 1:1.5-2 +- added check section to spec +- removed BUILD_ROOT check in install and clean +- included the README and Changes files to the installation +- re enabled the internal dependancy checks +* Tue Jul 20 2010 Carl Thompson 1:1.5-1 +- update to 1.5 +* Sat Jul 17 2010 Carl Thompson 1:1.4-1 +- initial build +