1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00

A PAM module that allows you to require a special group or

user to access a service.

WWW: http://www.splitbrain.org/projects/pam_require/

PR:		ports/95187
Submitted by:	Chris Cowart <ccowart@rescomp.berkeley.edu>
This commit is contained in:
Sergey Matveychuk 2006-05-24 18:04:24 +00:00
parent 4def7d3133
commit 6bbfcfd62b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=163299
6 changed files with 63 additions and 0 deletions

View File

@ -452,6 +452,7 @@
SUBDIR += pam_pop3
SUBDIR += pam_pseudo
SUBDIR += pam_pwdfile
SUBDIR += pam_require
SUBDIR += pam_smb
SUBDIR += pamsfs
SUBDIR += pamtester

View File

@ -0,0 +1,23 @@
# New ports collection makefile for: pam_require
# Date created: 30 March 2006
# Whom: Chris Cowart <ccowart@rescomp.berkeley.edu>
#
# $FreeBSD$
#
PORTNAME= pam_require
PORTVERSION= 0.6
CATEGORIES= security
MASTER_SITES= http://www.splitbrain.org/_media/projects/pamrequire/
EXTRACT_SUFX= .tgz
MAINTAINER= ccowart@rescomp.berkeley.edu
COMMENT= A PAM module for restricting access based on unix group or username
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX}
PLIST_FILES= lib/pam_require.so lib/pam_require.so.1
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (pam_require-0.6.tgz) = e18e3aeebf9dc32efcd1ea0925a13443
SHA256 (pam_require-0.6.tgz) = 845108a7dc4601bbebec52cd3911db52903e20d9f54c3a809881dd77e5e5f191
SIZE (pam_require-0.6.tgz) = 82695

View File

@ -0,0 +1,20 @@
diff -rub Makefile.in Makefile.in
--- Makefile.in Wed Sep 22 23:33:17 2004
+++ Makefile.in Thu Mar 30 21:19:07 2006
@@ -349,11 +349,11 @@
install-exec-local: pam_require.so
@$(NORMAL_INSTALL)
- $(mkinstalldirs) $(DESTDIR)$(libdir)/security
-@EXTENSION_SO_TRUE@ $(INSTALL_PROGRAM) -o root -g root pam_require.so $(DESTDIR)$(libdir)/security/pam_require.so
-@EXTENSION_SO_FALSE@@EXTENSION_1_TRUE@ $(INSTALL_PROGRAM) -o root -g root pam_require.so $(DESTDIR)$(libdir)/security/libpam_require.1
-@EXTENSION_SO_FALSE@@EXTENSION_1_FALSE@ $(INSTALL_PROGRAM) -o root -g root pam_require.so $(DESTDIR)$(libdir)/security/pam_require.so.1
-@EXTENSION_SO_FALSE@@EXTENSION_1_FALSE@ (cd $(DESTDIR)$(libdir)/security; rm -f pam_require.so; ln -s pam_require.so.1 pam_require.so)
+ $(mkinstalldirs) $(DESTDIR)$(libdir)
+@EXTENSION_SO_TRUE@ $(INSTALL_PROGRAM) pam_require.so $(DESTDIR)$(libdir)/pam_require.so
+@EXTENSION_SO_FALSE@@EXTENSION_1_TRUE@ $(INSTALL_PROGRAM) pam_require.so $(DESTDIR)$(libdir)/libpam_require.1
+@EXTENSION_SO_FALSE@@EXTENSION_1_FALSE@ $(INSTALL_PROGRAM) pam_require.so $(DESTDIR)$(libdir)/pam_require.so.1
+@EXTENSION_SO_FALSE@@EXTENSION_1_FALSE@ (cd $(DESTDIR)$(libdir); rm -f pam_require.so; ln -s pam_require.so.1 pam_require.so)
uninstall-local:
@$(NORMAL_UNINSTALL)

View File

@ -0,0 +1,12 @@
diff -rub pam_require.c pam_require.c
--- pam_require.c Wed Sep 22 23:32:27 2004
+++ pam_require.c Thu Mar 30 21:08:43 2006
@@ -49,7 +49,7 @@
#include <grp.h>
#include <pwd.h>
#include <unistd.h>
-#include <malloc.h>
+#include <stdlib.h>
#include <stdarg.h>
/* taken from pam_ldap */

View File

@ -0,0 +1,4 @@
A PAM module that allows you to require a special group or
user to access a service.
WWW: http://www.splitbrain.org/projects/pam_require/