forked from Lainports/freebsd-ports
Add mod_ntlm2 0.1, NTLM authentication module for the Apache2 webserver.
PR: ports/116657 Submitted by: Alex "lissyara" Keda <admin at lissyara.su>
This commit is contained in:
parent
732672fa4a
commit
05d11e1a42
11 changed files with 117 additions and 0 deletions
|
|
@ -399,6 +399,7 @@
|
|||
SUBDIR += mod_mylo
|
||||
SUBDIR += mod_mysqluserdir
|
||||
SUBDIR += mod_ntlm
|
||||
SUBDIR += mod_ntlm2
|
||||
SUBDIR += mod_perl
|
||||
SUBDIR += mod_perl2
|
||||
SUBDIR += mod_proctitle
|
||||
|
|
|
|||
23
www/mod_ntlm2/Makefile
Normal file
23
www/mod_ntlm2/Makefile
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# New ports collection makefile for: mod_ntlm2
|
||||
# Date created: 26 September 2007
|
||||
# Whom: Alex "lissyara" Keda <admin@lissyara.su>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= mod_ntlm2
|
||||
PORTVERSION= 0.1
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= modntlm
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= admin@lissyara.su
|
||||
COMMENT= NTLM authentication module for the Apache2 webserver
|
||||
|
||||
USE_APACHE= 20+
|
||||
MAKE_ENV= APXS=${APXS}
|
||||
|
||||
BUILD_DEPENDS= ${LOCALBASE}/bin/smbclient:${PORTSDIR}/net/samba3
|
||||
|
||||
.include <bsd.port.mk>
|
||||
3
www/mod_ntlm2/distinfo
Normal file
3
www/mod_ntlm2/distinfo
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
MD5 (mod_ntlm2-0.1.tgz) = 8abe4f235af6825f723412e187cac96b
|
||||
SHA256 (mod_ntlm2-0.1.tgz) = 156add771495f0321824c978d8da748de7446687c15a9cd5ba6c88d7a8cf97f6
|
||||
SIZE (mod_ntlm2-0.1.tgz) = 41247
|
||||
20
www/mod_ntlm2/files/patch-Makefile
Normal file
20
www/mod_ntlm2/files/patch-Makefile
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
--- Makefile.orig Tue Feb 25 14:25:42 2003
|
||||
+++ Makefile Wed Sep 26 13:29:56 2007
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
# the used tools
|
||||
APXS=apxs
|
||||
-APACHECTL=/etc/rc.d/apache
|
||||
+APACHECTL=${PREFIX}/sbin/apachectl
|
||||
|
||||
# the default target
|
||||
all: mod_ntlm.so
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
# install the shared object file into Apache
|
||||
install: all
|
||||
- $(APXS) -i -a -n 'ntlm' mod_ntlm.so
|
||||
+ $(APXS) -i -a -n 'ntlm' .libs/mod_ntlm.so
|
||||
|
||||
# cleanup
|
||||
clean:
|
||||
11
www/mod_ntlm2/files/patch-smbval-rfcnb-util.inc.c
Normal file
11
www/mod_ntlm2/files/patch-smbval-rfcnb-util.inc.c
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--- smbval/rfcnb-util.inc.c.orig Wed Sep 26 12:46:02 2007
|
||||
+++ smbval/rfcnb-util.inc.c Wed Sep 26 12:47:13 2007
|
||||
@@ -21,7 +21,7 @@
|
||||
* 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
|
||||
#include <string.h>
|
||||
-#include <malloc.h>
|
||||
+#include <stdlib.h>
|
||||
|
||||
#include "std-includes.h"
|
||||
#include "rfcnb-priv.h"
|
||||
11
www/mod_ntlm2/files/patch-smbval-session.inc.c
Normal file
11
www/mod_ntlm2/files/patch-smbval-session.inc.c
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--- smbval/session.inc.c.orig Wed Sep 26 12:40:51 2007
|
||||
+++ smbval/session.inc.c Wed Sep 26 12:41:45 2007
|
||||
@@ -21,7 +21,7 @@
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
|
||||
-#include <malloc.h>
|
||||
+#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
static int RFCNB_errno = 0;
|
||||
12
www/mod_ntlm2/files/patch-smbval-smbencrypt.inc.c
Normal file
12
www/mod_ntlm2/files/patch-smbval-smbencrypt.inc.c
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
--- smbval/smbencrypt.inc.c.orig Wed Sep 26 12:43:32 2007
|
||||
+++ smbval/smbencrypt.inc.c Wed Sep 26 12:45:29 2007
|
||||
@@ -19,7 +19,8 @@
|
||||
#include <arpa/inet.h>
|
||||
#include <dirent.h>
|
||||
#include <string.h>
|
||||
-#include <sys/vfs.h>
|
||||
+#include <sys/param.h>
|
||||
+#include <sys/mount.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
#include "smblib-priv.h"
|
||||
11
www/mod_ntlm2/files/patch-smbval-smblib-util.inc.c
Normal file
11
www/mod_ntlm2/files/patch-smbval-smblib-util.inc.c
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--- smbval/smblib-util.inc.c.orig Wed Sep 26 12:47:37 2007
|
||||
+++ smbval/smblib-util.inc.c Wed Sep 26 12:47:57 2007
|
||||
@@ -21,7 +21,7 @@
|
||||
* 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
|
||||
#include "smblib-priv.h"
|
||||
-#include <malloc.h>
|
||||
+#include <stdlib.h>
|
||||
|
||||
#include "rfcnb.h"
|
||||
|
||||
11
www/mod_ntlm2/files/patch-smbval-smblib.inc.c
Normal file
11
www/mod_ntlm2/files/patch-smbval-smblib.inc.c
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--- smbval/smblib.inc.c.orig Wed Sep 26 12:42:22 2007
|
||||
+++ smbval/smblib.inc.c Wed Sep 26 12:43:08 2007
|
||||
@@ -20,7 +20,7 @@
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
#include <stdio.h>
|
||||
-#include <malloc.h>
|
||||
+#include <stdlib.h>
|
||||
|
||||
static int SMBlib_errno;
|
||||
static int SMBlib_SMB_Error;
|
||||
11
www/mod_ntlm2/pkg-descr
Normal file
11
www/mod_ntlm2/pkg-descr
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
NTLM is an authentication protocol used by Microsoft Internet
|
||||
Informations Server(tm) and Microsoft Internet Explorer(tm). While it
|
||||
is not really secure, it offers background authentication (the
|
||||
workstation logon credentials of users are passed through to the web
|
||||
server). This feature is widely used in intranets based on these
|
||||
Microsoft products.
|
||||
|
||||
This module is implementing NTLM authentication for Apache2 on Unix
|
||||
platforms.
|
||||
|
||||
WWW: http://modntlm.sourceforge.net/
|
||||
3
www/mod_ntlm2/pkg-plist
Normal file
3
www/mod_ntlm2/pkg-plist
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
libexec/apache2/mod_ntlm.so
|
||||
@exec %D/sbin/apxs -e -A -n ntlm %D/%f
|
||||
@unexec %D/sbin/apxs -e -A -n ntlm %D/%F
|
||||
Loading…
Add table
Reference in a new issue