From b12db7e2870f9f3ad441f1d2feab068feb98171d Mon Sep 17 00:00:00 2001 From: robert Date: Wed, 10 Oct 2012 08:26:55 +0000 Subject: [PATCH] import openpam this version comes from the freebsd sources and it has a bsdauth module added. ok ajacoutot@ --- security/openpam/Makefile | 59 +++++++++++++++++++++++++++++++++++ security/openpam/distinfo | 2 ++ security/openpam/files/system | 15 +++++++++ security/openpam/pkg/DESCR | 10 ++++++ security/openpam/pkg/PLIST | 36 +++++++++++++++++++++ 5 files changed, 122 insertions(+) create mode 100644 security/openpam/Makefile create mode 100644 security/openpam/distinfo create mode 100644 security/openpam/files/system create mode 100644 security/openpam/pkg/DESCR create mode 100644 security/openpam/pkg/PLIST diff --git a/security/openpam/Makefile b/security/openpam/Makefile new file mode 100644 index 00000000000..144e61d1184 --- /dev/null +++ b/security/openpam/Makefile @@ -0,0 +1,59 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2012/10/10 08:26:55 robert Exp $ + +SHARED_ONLY= Yes + +COMMENT= Pluggable Authentication Module + +V= 20121009 +DISTNAME= freebsd_pam-${V} +PKGNAME= openpam-${V} + +CATEGORIES= security + +SHARED_LIBS+= pam 5.0 + +HOMEPAGE= http://www.openpam.org/ + +MAINTAINER= Robert Nagy + +# BSD +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +WANTLIB += util + +MASTER_SITES= http://nerd.hu/distfiles/ + +WRKSRC= ${WRKDIST}/libpam + +MAKE_ENV+= PAM_MOD_DIR=${TRUEPREFIX}/lib/security + +PAM_MODULES= deny echo exec nologin permit rootok \ + self bsdauth group + +pre-build: + cd ${WRKSRC} && ${MAKE} obj + +do-install: + ${INSTALL_DATA_DIR} ${PREFIX}/lib/security + ${INSTALL_DATA_DIR} ${PREFIX}/include/security + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pam + + ${INSTALL} ${FILESDIR}/system ${PREFIX}/share/examples/pam + +.for _l in libpam.a libpam.so.5.0 libpam_p.a + ${INSTALL} ${WRKSRC}/libpam/obj/${_l} ${PREFIX}/lib +.endfor +.for _i in openpam openpam_attr openpam_version pam_appl pam_constants pam_modules pam_types + ${INSTALL} ${WRKDIST}/openpam/include/security/${_i}.h ${PREFIX}/include/security +.endfor + ${INSTALL} ${WRKSRC}/libpam/security/pam_mod_misc.h ${PREFIX}/include/security + +.for _m in ${PAM_MODULES} + ${INSTALL} ${WRKSRC}/modules/pam_${_m}/obj/libpam_${_m}.so.5.0 ${PREFIX}/lib/security/pam_${_m}.so + ${INSTALL} ${WRKSRC}/modules/pam_${_m}/pam_${_m}.8 ${PREFIX}/man/man8 +.endfor + +.include diff --git a/security/openpam/distinfo b/security/openpam/distinfo new file mode 100644 index 00000000000..b6babfdcee9 --- /dev/null +++ b/security/openpam/distinfo @@ -0,0 +1,2 @@ +SHA256 (freebsd_pam-20121009.tar.gz) = isNYZtYdRxEtOw8TJxAMRv5tOWAXNKLUt2EjVkb2t7c= +SIZE (freebsd_pam-20121009.tar.gz) = 1005306 diff --git a/security/openpam/files/system b/security/openpam/files/system new file mode 100644 index 00000000000..2823f36bf2b --- /dev/null +++ b/security/openpam/files/system @@ -0,0 +1,15 @@ +# +# System-wide defaults +# + +# auth +auth required pam_bsdauth.so no_warn try_first_pass nullok + +# account +account required pam_bsdauth.so + +# session +session required pam_bsdauth.so no_fail + +# password +password required pam_bsdauth.so no_warn try_first_pass diff --git a/security/openpam/pkg/DESCR b/security/openpam/pkg/DESCR new file mode 100644 index 00000000000..39fc674d7ad --- /dev/null +++ b/security/openpam/pkg/DESCR @@ -0,0 +1,10 @@ +OpenPAM is an open source PAM library that focuses on simplicity, +correctness, and cleanliness. + +OpenPAM aims to gather the best features of Solaris PAM, XSSO and +Linux-PAM, plus some innovations of its own. In areas where these +implementations disagree, OpenPAM tries to remain compatible with +Solaris, at the expense of XSSO conformance and Linux-PAM +compatibility. + +This OpenPAM port uses the FreeBSD sources. diff --git a/security/openpam/pkg/PLIST b/security/openpam/pkg/PLIST new file mode 100644 index 00000000000..9179d486147 --- /dev/null +++ b/security/openpam/pkg/PLIST @@ -0,0 +1,36 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2012/10/10 08:26:55 robert Exp $ +include/security/ +include/security/openpam.h +include/security/openpam_attr.h +include/security/openpam_version.h +include/security/pam_appl.h +include/security/pam_constants.h +include/security/pam_mod_misc.h +include/security/pam_modules.h +include/security/pam_types.h +lib/libpam.a +@lib lib/libpam.so.${LIBpam_VERSION} +lib/libpam_p.a +lib/security/ +lib/security/pam_bsdauth.so +lib/security/pam_deny.so +lib/security/pam_echo.so +lib/security/pam_exec.so +lib/security/pam_group.so +lib/security/pam_nologin.so +lib/security/pam_permit.so +lib/security/pam_rootok.so +lib/security/pam_self.so +@man man/man8/pam_bsdauth.8 +@man man/man8/pam_deny.8 +@man man/man8/pam_echo.8 +@man man/man8/pam_exec.8 +@man man/man8/pam_group.8 +@man man/man8/pam_nologin.8 +@man man/man8/pam_permit.8 +@man man/man8/pam_rootok.8 +@man man/man8/pam_self.8 +share/examples/pam/ +@sample ${SYSCONFDIR}/pam.d/ +share/examples/pam/system +@sample ${SYSCONFDIR}/pam.d/system