Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 67564 - Add cracklib support to APG
Summary: Add cracklib support to APG
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Seemant Kulleen (RETIRED)
URL: http://www.adel.nursat.kz/apg/index.s...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-14 09:57 UTC by Conway S. Smith
Modified: 2004-12-30 13:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
APG ebuild w/ cracklib USE flag (apg-2.3.0b-r1.ebuild,1.02 KB, text/plain)
2004-10-14 09:59 UTC, Conway S. Smith
Details
APG Makefile patch to enable cracklib support. (apg-2.3.0b-cracklib.patch,925 bytes, patch)
2004-10-14 10:00 UTC, Conway S. Smith
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Conway S. Smith 2004-10-14 09:57:32 UTC
APG version 2.3.0b has optional compile time support for cracklib, but the current apg-2.3.0b.ebuild does not use it.  From apg's man page "-k    check  every  generated password using cracklib. To use this ability you must enable cracklib support during programm building."  So I created this ebuild to add a USE flag for cracklib support in APG.  This is my first time doing anything w/ ebuilds, but this seemed like a fairly simple thing, and this ebuild works for me.  If the USE flag is specified at emerge, it applies a patch to APG's Makefile to enable the cracklib support.

Reproducible: Always
Steps to Reproduce:
apg -k
Actual Results:  
apg: unknown option -k

Expected Results:  
Generated passwords checked against cracklib to ensure strong passwords.

The one biggest thing I was unsure of was in my patched Makefile to enable
cracklib support one of the envirement variables required is CRACKLIB_DICTPATH,
which should be whatever DICTPATH was when cracklib was installed.  In
cracklib-2.7-r10 this was "/usr/lib/cracklib_dict".  I wasn't sure if there was
any way to check for any other possible DICTPATH at compile time (or even if it
would be necessary to), so I just hardcoded it to "/usr/lib/cracklib_dict".
Comment 1 Conway S. Smith 2004-10-14 09:59:35 UTC
Created attachment 41811 [details]
APG ebuild w/ cracklib USE flag
Comment 2 Conway S. Smith 2004-10-14 10:00:44 UTC
Created attachment 41812 [details, diff]
APG Makefile patch to enable cracklib support.

Goes in /usr/portage/app-admin/apg/files/
Comment 3 Conway S. Smith 2004-10-14 10:02:57 UTC
Oh, and I guess something like this should go into /usr/portage/profiles/use.local.desc
app-admin/apg:cracklib - Support for cracklib strong password checking
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2004-10-15 11:14:45 UTC
Rob, I need help with this -- TaD's not with gentoo any more due to his real life obligations.
Comment 5 Seemant Kulleen (RETIRED) gentoo-dev 2004-12-30 13:37:32 UTC
thanks Conway, in portage.