aboutsummaryrefslogtreecommitdiff
path: root/security/pam_smb
diff options
context:
space:
mode:
authorNick Sayer <nsayer@FreeBSD.org>2001-06-20 13:38:56 +0000
committerNick Sayer <nsayer@FreeBSD.org>2001-06-20 13:38:56 +0000
commit9dfb8331051963f5bf7e7d6e7e91be227b84cf9b (patch)
tree497238cd3cab7afaba12f654a11cecdfea4d3817 /security/pam_smb
parent53c2ab8fc4c7654c3d26075c3f4f666e50083815 (diff)
downloadports-9dfb8331051963f5bf7e7d6e7e91be227b84cf9b.tar.gz
ports-9dfb8331051963f5bf7e7d6e7e91be227b84cf9b.zip
Notes
Diffstat (limited to 'security/pam_smb')
-rw-r--r--security/pam_smb/Makefile39
-rw-r--r--security/pam_smb/distinfo1
-rw-r--r--security/pam_smb/files/pam_smb.conf.sample3
-rw-r--r--security/pam_smb/files/patch-aa13
-rw-r--r--security/pam_smb/files/patch-ab17
-rw-r--r--security/pam_smb/files/patch-ac11
-rw-r--r--security/pam_smb/files/patch-ad11
-rw-r--r--security/pam_smb/pkg-comment1
-rw-r--r--security/pam_smb/pkg-descr3
-rw-r--r--security/pam_smb/pkg-message8
-rw-r--r--security/pam_smb/pkg-plist2
11 files changed, 109 insertions, 0 deletions
diff --git a/security/pam_smb/Makefile b/security/pam_smb/Makefile
new file mode 100644
index 000000000000..1391a7d979d3
--- /dev/null
+++ b/security/pam_smb/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: pam_smb
+# Date created: 20 Jun 2001
+# Whom: nsayer
+#
+# $FreeBSD$
+
+PORTNAME= pam_smb
+PORTVERSION= 1.1.6
+CATEGORIES= security
+MASTER_SITES= ftp://ftp.samba.org/pub/samba/%SUBDIR%/ \
+ ftp://ring.asahi-net.or.jp/pub/net/samba/%SUBDIR%/ \
+ ftp://samba.anu.edu.au/pub/samba/%SUBDIR%/ \
+ ftp://de.samba.org/pub/mirror/samba/%SUBDIR%/ \
+ ftp://se.samba.org/pub/samba/%SUBDIR%/ \
+ ftp://ftp.sunet.se/pub/unix/utilities/samba/%SUBDIR%/
+MASTER_SITE_SUBDIR=pam_smb
+
+MAINTAINER= nsayer
+
+USE_AUTOCONF= yes
+USE_GMAKE= yes
+MAKE_ENV+= PREFIX=${PREFIX}
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+.include <bsd.port.pre.mk>
+
+post-patch:
+ ${PERL} -pi -e s%CONFDIR%\"${PREFIX}/etc\"% ${WRKSRC}/pam_read_conf.c
+ ${PERL} -pi -e s%CONFDIR%\"${PREFIX}/etc\"% ${WRKSRC}/pam_smb_auth.c
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/pam_smb_auth.so ${PREFIX}/lib
+ ${INSTALL_DATA} ${FILESDIR}/pam_smb.conf.sample ${PREFIX}/etc
+
+post-install:
+ @${SED} -e 's#%%PREFIX%%#${PREFIX}#g' ${PKGMESSAGE}
+
+.include <bsd.port.post.mk>
diff --git a/security/pam_smb/distinfo b/security/pam_smb/distinfo
new file mode 100644
index 000000000000..7091cfef503c
--- /dev/null
+++ b/security/pam_smb/distinfo
@@ -0,0 +1 @@
+MD5 (pam_smb-1.1.6.tar.gz) = 7d18363b7ab932f852f670b4aeed1283
diff --git a/security/pam_smb/files/pam_smb.conf.sample b/security/pam_smb/files/pam_smb.conf.sample
new file mode 100644
index 000000000000..2e1c1d3fec3b
--- /dev/null
+++ b/security/pam_smb/files/pam_smb.conf.sample
@@ -0,0 +1,3 @@
+my_NT_domain
+my_domain_PDC
+my_domain_BDC
diff --git a/security/pam_smb/files/patch-aa b/security/pam_smb/files/patch-aa
new file mode 100644
index 000000000000..001679985543
--- /dev/null
+++ b/security/pam_smb/files/patch-aa
@@ -0,0 +1,13 @@
+--- smbval/smbencrypt.c.orig Wed Jun 20 05:43:48 2001
++++ smbval/smbencrypt.c Wed Jun 20 05:44:20 2001
+@@ -24,7 +24,10 @@
+ #include <arpa/inet.h>
+ #include <dirent.h>
+ #include <string.h>
++#include <sys/param.h>
++#ifndef BSD
+ #include <sys/vfs.h>
++#endif
+ #include <netinet/in.h>
+
+ #include "smblib-priv.h"
diff --git a/security/pam_smb/files/patch-ab b/security/pam_smb/files/patch-ab
new file mode 100644
index 000000000000..2cd2ddc43623
--- /dev/null
+++ b/security/pam_smb/files/patch-ab
@@ -0,0 +1,17 @@
+--- configure.in.orig Wed Jun 20 05:49:59 2001
++++ configure.in Wed Jun 20 05:51:27 2001
+@@ -138,6 +138,14 @@
+ LD_FLAGS=""
+ LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
+ ;;
++ FreeBSD*)
++ SHLIB_CFLAGS=""
++ SHLIB_LD="gcc -shared -DCONFDIR=\"@sysconfdir@\""
++ SHLIB_LD_LIBS="-lpam"
++ SHLIB_SUFFIX=".so"
++ LD_FLAGS=""
++ LD_SEARCH_FLAGS=""
++ ;;
+ esac
+
+ if test "$CC" = "gcc" -o `$CC -v 2>&1 | grep -c gcc` != "0" ; then
diff --git a/security/pam_smb/files/patch-ac b/security/pam_smb/files/patch-ac
new file mode 100644
index 000000000000..5d6c4c2b45cc
--- /dev/null
+++ b/security/pam_smb/files/patch-ac
@@ -0,0 +1,11 @@
+--- pam_read_conf.c.orig Wed Jun 20 06:02:31 2001
++++ pam_read_conf.c Wed Jun 20 06:02:42 2001
+@@ -1,7 +1,7 @@
+ #include <stdio.h>
+ #include <string.h>
+
+-#define CONFFILE "/etc/pam_smb.conf"
++#define CONFFILE CONFDIR"/pam_smb.conf"
+
+ /***********************************************************************
+ This file is (C) Dave Airlie 1997 ( David.Airlie@ul.ie )
diff --git a/security/pam_smb/files/patch-ad b/security/pam_smb/files/patch-ad
new file mode 100644
index 000000000000..9b0a7b49c011
--- /dev/null
+++ b/security/pam_smb/files/patch-ad
@@ -0,0 +1,11 @@
+--- pam_smb_auth.c.orig Wed Jun 20 06:33:23 2001
++++ pam_smb_auth.c Wed Jun 20 06:33:45 2001
+@@ -251,7 +251,7 @@
+ w=smb_readpamconf(server,server2,domain);
+ if (w!=0)
+ {
+- syslog(LOG_AUTHPRIV | LOG_ALERT, "pam_smb: Missing Configuration file : /etc/pam_smb.conf");
++ syslog(LOG_AUTHPRIV | LOG_ALERT, "pam_smb: Missing Configuration file : "CONFDIR"/pam_smb.conf");
+ return PAM_AUTHINFO_UNAVAIL;
+ }
+
diff --git a/security/pam_smb/pkg-comment b/security/pam_smb/pkg-comment
new file mode 100644
index 000000000000..dd7847bd0aa7
--- /dev/null
+++ b/security/pam_smb/pkg-comment
@@ -0,0 +1 @@
+Samba NetBIOS domain logon PAM module
diff --git a/security/pam_smb/pkg-descr b/security/pam_smb/pkg-descr
new file mode 100644
index 000000000000..e8a4aee9fa20
--- /dev/null
+++ b/security/pam_smb/pkg-descr
@@ -0,0 +1,3 @@
+This PAM module performs NT Domain authentication.
+
+WWW: http://www.samba.org/
diff --git a/security/pam_smb/pkg-message b/security/pam_smb/pkg-message
new file mode 100644
index 000000000000..aaf6b368a4e6
--- /dev/null
+++ b/security/pam_smb/pkg-message
@@ -0,0 +1,8 @@
+
+After copying %%PREFIX%%/etc/pam_smb.conf.sample to
+%%PREFIX%%/etc/pam_smb.conf and editing it to taste,
+add something like this to your /etc/pam.conf file to use
+this module:
+
+login auth sufficient %%PREFIX%%/lib/pam_ldap.so
+
diff --git a/security/pam_smb/pkg-plist b/security/pam_smb/pkg-plist
new file mode 100644
index 000000000000..a981a5e5271c
--- /dev/null
+++ b/security/pam_smb/pkg-plist
@@ -0,0 +1,2 @@
+lib/pam_smb_auth.so
+etc/pam_smb.conf.sample