FreeBSD Bugzilla – Attachment 207613 Details for
Bug 240669
New port: security/pam_script Allows to hook user space scripts on PAM events
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
pam_script port fixed
pam_script.shar (text/plain), 3.83 KB, created by
Natalino Picone
on 2019-09-19 07:17:57 UTC
(
hide
)
Description:
pam_script port fixed
Filename:
MIME Type:
Creator:
Natalino Picone
Created:
2019-09-19 07:17:57 UTC
Size:
3.83 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># pam_script ># pam_script/Makefile ># pam_script/files ># pam_script/files/patch-pam_script ># pam_script/distinfo ># pam_script/pkg-descr ># pam_script/pkg-plist ># >echo c - pam_script >mkdir -p pam_script > /dev/null 2>&1 >echo x - pam_script/Makefile >sed 's/^X//' >pam_script/Makefile << '860bb854d7fcebf3729a84c6144aba07' >X# $FreeBSD$ >X >XPORTNAME=pam_script >XPORTVERSION=1.1.9 >XPORTREVISION=1 >XCATEGORIES=security >XMASTER_SITES=GH >XUSE_GITHUB=yes >XGH_ACCOUNT=jeroennijhof >XGH_PROJECT=pam_script >XGH_TAGNAME=1.1.9 >X >XMAINTAINER=natalino.picone@nozominetworks.com >XCOMMENT=PAM script module will allow you to execute scripts during authorization, password changes and sessions. >X >XBUILD_DEPS= >XGNU_CONFIGURE=yes >XUSES=autoreconf libtool >XPATCHDIR=${.CURDIR}/files >X >XLICENSE=GPLv2+ >XLICENSE_FILE=${WRKSRC}/COPYING >X >Xdo-install: >X ${MKDIR} ${STAGEDIR}${PREFIX}/etc/pam-script.d >X ${INSTALL_LIB} ${WRKSRC}/.libs/pam_script.so ${STAGEDIR}${PREFIX}/lib/pam_script.so >X ${INSTALL_SCRIPT} ${WRKSRC}/etc/pam_script ${STAGEDIR}${PREFIX}/etc/pam_script >X.for i in etc/logscript etc/tally >X ${INSTALL_SCRIPT} ${WRKSRC}/${i} ${STAGEDIR}${PREFIX}/etc/pam-script.d >X.endfor >X >Xpost-install: >X @${MKDIR} ${STAGEDIR}${DOCSDIR} >X.for i in AUTHORS COPYING ChangeLog README NEWS etc/README.pam_script etc/README.examples >X ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} >X.endfor >X >X.include <bsd.port.mk>860bb854d7fcebf3729a84c6144aba07 >echo c - pam_script/files >mkdir -p pam_script/files > /dev/null 2>&1 >echo x - pam_script/files/patch-pam_script >sed 's/^X//' >pam_script/files/patch-pam_script << 'da148db5c18ad32082bcf830749e8b54' >X--- etc/pam_script.orig 2019-09-18 14:19:02.039347216 +0000 >X+++ etc/pam_script 2019-09-18 14:16:40.847010640 +0000 >X@@ -21,7 +21,7 @@ >X >X goodperms () { >X local path="$1" >X- stat_output=`/usr/bin/stat -c "%A:%u:%g" "$path"` >X+ stat_output=`/usr/bin/stat -f "%SLp%SMp%SHp:%u:%g" "$path"` >X if [ $? -ne 0 ]; then >X echo "$0: Could not stat path $path" 1>&2 >X return 1 >X@@ -106,13 +106,11 @@ >X # $4 xpamscript >X >X if [ x$1 = xlink ]; then >X- (cd $PAMSCRIPTDIR; >X- [ -e $4_$2 ] || [ -e $3 ] && \ >X+ ([ -e $4_$2 ] || [ -e $3 ] && \ >X ( [ $verbose = 1 ] && echo ln -s $3 $4_$2; >X ln -s $3 $4_$2)) >X elif [ x$1 = xremove ]; then >X- (cd $PAMSCRIPTDIR; >X- [ -e $4_$2 ] && \ >X+ ([ -e $4_$2 ] && \ >X ( [ $verbose = 1 ] && echo rm -f $4_$2; >X rm -f $4_$2)) >X fi >X >da148db5c18ad32082bcf830749e8b54 >echo x - pam_script/distinfo >sed 's/^X//' >pam_script/distinfo << '0064020153227b429ef0225a65b5c5d3' >XTIMESTAMP = 1568808393 >XSHA256 (jeroennijhof-pam_script-1.1.9_GH0.tar.gz) = 0aab103d318e3048ccc6f8285950f99284c814f996d2dcbcae8f10d3b8bd8cfe >XSIZE (jeroennijhof-pam_script-1.1.9_GH0.tar.gz) = 34890 >0064020153227b429ef0225a65b5c5d3 >echo x - pam_script/pkg-descr >sed 's/^X//' >pam_script/pkg-descr << 'f2c0bc7f5f4e19bf2cba24e9fcadf690' >XPAM-script allows you to execute scripts during authorization, passwd changes, or session opening or closing. >X >XSo if you need extra work done after login you can use this pam module to execute a session script. >X >XWWW: https://github.com/jeroennijhof/pam_script >f2c0bc7f5f4e19bf2cba24e9fcadf690 >echo x - pam_script/pkg-plist >sed 's/^X//' >pam_script/pkg-plist << 'e437b2156745591ed8be91e4935226ea' >X@dir(root,wheel,0755) etc/pam-script.d >X@(root,wheel,0755) etc/pam_script >X@(root,wheel,0755) etc/pam-script.d/logscript >X@(root,wheel,0755) etc/pam-script.d/tally >Xlib/pam_script.so >X%%DOCSDIR%%/AUTHORS >X%%DOCSDIR%%/COPYING >X%%DOCSDIR%%/ChangeLog >X%%DOCSDIR%%/NEWS >X%%DOCSDIR%%/README.pam_script >X%%DOCSDIR%%/README >X%%DOCSDIR%%/README.examples >e437b2156745591ed8be91e4935226ea >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 240669
:
207606
|
207613
|
207885