ports/116657: new port www/mod_ntlm2
Alex Keda
admin at lissyara.su
Wed Sep 26 09:50:04 UTC 2007
>Number: 116657
>Category: ports
>Synopsis: new port www/mod_ntlm2
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Wed Sep 26 09:50:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Alex Keda
>Release: 6.2
>Organization:
USSR
>Environment:
FreeBSD ussr.lissyara.int.otradno.ru 6.2-RELEASE-p5 FreeBSD 6.2-RELEASE-p5 #1: Sat Jul 7 12:39:24 MSD 2007 root at ussr.lissyara.int.otradno.ru:/usr/obj/usr/src/sys/color-console i386
>Description:
new port for ntlm autorization for Apache2
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
# 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:
#
# www/mod_ntlm2
# www/mod_ntlm2/Makefile
# www/mod_ntlm2/distinfo
# www/mod_ntlm2/pkg-descr
# www/mod_ntlm2/pkg-plist
# www/mod_ntlm2/files
# www/mod_ntlm2/files/patch-smbval-session.inc.c
# www/mod_ntlm2/files/patch-smbval-smblib.inc.c
# www/mod_ntlm2/files/patch-smbval-smbencrypt.inc.c
# www/mod_ntlm2/files/patch-smbval-rfcnb-util.inc.c
# www/mod_ntlm2/files/patch-smbval-smblib-util.inc.c
# www/mod_ntlm2/files/patch-Makefile
#
echo c - www/mod_ntlm2
mkdir -p www/mod_ntlm2 > /dev/null 2>&1
echo x - www/mod_ntlm2/Makefile
sed 's/^X//' >www/mod_ntlm2/Makefile << 'END-of-www/mod_ntlm2/Makefile'
X# New ports collection makefile for: mod_ntlm2
X# Date created: 26 September 2007
X# Whom: Alex "lissyara" Keda <admin at lissyara.su>
X#
X# $FreeBSD$
X#
X
XPORTNAME= mod_ntlm2
XPORTVERSION= 0.1
XCATEGORIES= www
XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR= modntlm
XEXTRACT_SUFX= .tgz
X
XMAINTAINER= admin at lissyara.su
XCOMMENT= NTLM authentication module for the Apache2 webserver
X
XUSE_APACHE= 20+
XMAKE_ENV= APXS=${APXS}
X
X#BUILD_DEPENDS= ${LOCALBASE}/bin/smbclient:${PORTSDIR}/net/samba3
X
X.include <bsd.port.mk>
END-of-www/mod_ntlm2/Makefile
echo x - www/mod_ntlm2/distinfo
sed 's/^X//' >www/mod_ntlm2/distinfo << 'END-of-www/mod_ntlm2/distinfo'
XMD5 (mod_ntlm2-0.1.tgz) = 8abe4f235af6825f723412e187cac96b
XSHA256 (mod_ntlm2-0.1.tgz) = 156add771495f0321824c978d8da748de7446687c15a9cd5ba6c88d7a8cf97f6
XSIZE (mod_ntlm2-0.1.tgz) = 41247
END-of-www/mod_ntlm2/distinfo
echo x - www/mod_ntlm2/pkg-descr
sed 's/^X//' >www/mod_ntlm2/pkg-descr << 'END-of-www/mod_ntlm2/pkg-descr'
XNTLM is an authentication protocol used by Microsoft Internet
XInformations Server(tm) and Microsoft Internet Explorer(tm). While it
Xis not really secure, it offers background authentication (the
Xworkstation logon credentials of users are passed through to the web
Xserver). This feature is widely used in intranets based on these
XMicrosoft products.
X
XThis module is implementing NTLM authentication for Apache2 on Unix
Xplatforms.
X
XWWW: http://modntlm.sourceforge.net/
END-of-www/mod_ntlm2/pkg-descr
echo x - www/mod_ntlm2/pkg-plist
sed 's/^X//' >www/mod_ntlm2/pkg-plist << 'END-of-www/mod_ntlm2/pkg-plist'
Xlibexec/apache2/mod_ntlm.so
X at exec %D/sbin/apxs -e -A -n ntlm %D/%f
X at unexec %D/sbin/apxs -e -A -n ntlm %D/%F
END-of-www/mod_ntlm2/pkg-plist
echo c - www/mod_ntlm2/files
mkdir -p www/mod_ntlm2/files > /dev/null 2>&1
echo x - www/mod_ntlm2/files/patch-smbval-session.inc.c
sed 's/^X//' >www/mod_ntlm2/files/patch-smbval-session.inc.c << 'END-of-www/mod_ntlm2/files/patch-smbval-session.inc.c'
X--- smbval/session.inc.c.orig Wed Sep 26 12:40:51 2007
X+++ smbval/session.inc.c Wed Sep 26 12:41:45 2007
X@@ -21,7 +21,7 @@
X * with this program; if not, write to the Free Software Foundation, Inc.,
X * 675 Mass Ave, Cambridge, MA 02139, USA. */
X
X-#include <malloc.h>
X+#include <stdlib.h>
X #include <string.h>
X
X static int RFCNB_errno = 0;
END-of-www/mod_ntlm2/files/patch-smbval-session.inc.c
echo x - www/mod_ntlm2/files/patch-smbval-smblib.inc.c
sed 's/^X//' >www/mod_ntlm2/files/patch-smbval-smblib.inc.c << 'END-of-www/mod_ntlm2/files/patch-smbval-smblib.inc.c'
X--- smbval/smblib.inc.c.orig Wed Sep 26 12:42:22 2007
X+++ smbval/smblib.inc.c Wed Sep 26 12:43:08 2007
X@@ -20,7 +20,7 @@
X * with this program; if not, write to the Free Software Foundation, Inc.,
X * 675 Mass Ave, Cambridge, MA 02139, USA. */
X #include <stdio.h>
X-#include <malloc.h>
X+#include <stdlib.h>
X
X static int SMBlib_errno;
X static int SMBlib_SMB_Error;
END-of-www/mod_ntlm2/files/patch-smbval-smblib.inc.c
echo x - www/mod_ntlm2/files/patch-smbval-smbencrypt.inc.c
sed 's/^X//' >www/mod_ntlm2/files/patch-smbval-smbencrypt.inc.c << 'END-of-www/mod_ntlm2/files/patch-smbval-smbencrypt.inc.c'
X--- smbval/smbencrypt.inc.c.orig Wed Sep 26 12:43:32 2007
X+++ smbval/smbencrypt.inc.c Wed Sep 26 12:45:29 2007
X@@ -19,7 +19,8 @@
X #include <arpa/inet.h>
X #include <dirent.h>
X #include <string.h>
X-#include <sys/vfs.h>
X+#include <sys/param.h>
X+#include <sys/mount.h>
X #include <netinet/in.h>
X
X #include "smblib-priv.h"
END-of-www/mod_ntlm2/files/patch-smbval-smbencrypt.inc.c
echo x - www/mod_ntlm2/files/patch-smbval-rfcnb-util.inc.c
sed 's/^X//' >www/mod_ntlm2/files/patch-smbval-rfcnb-util.inc.c << 'END-of-www/mod_ntlm2/files/patch-smbval-rfcnb-util.inc.c'
X--- smbval/rfcnb-util.inc.c.orig Wed Sep 26 12:46:02 2007
X+++ smbval/rfcnb-util.inc.c Wed Sep 26 12:47:13 2007
X@@ -21,7 +21,7 @@
X * 675 Mass Ave, Cambridge, MA 02139, USA. */
X
X #include <string.h>
X-#include <malloc.h>
X+#include <stdlib.h>
X
X #include "std-includes.h"
X #include "rfcnb-priv.h"
END-of-www/mod_ntlm2/files/patch-smbval-rfcnb-util.inc.c
echo x - www/mod_ntlm2/files/patch-smbval-smblib-util.inc.c
sed 's/^X//' >www/mod_ntlm2/files/patch-smbval-smblib-util.inc.c << 'END-of-www/mod_ntlm2/files/patch-smbval-smblib-util.inc.c'
X--- smbval/smblib-util.inc.c.orig Wed Sep 26 12:47:37 2007
X+++ smbval/smblib-util.inc.c Wed Sep 26 12:47:57 2007
X@@ -21,7 +21,7 @@
X * 675 Mass Ave, Cambridge, MA 02139, USA. */
X
X #include "smblib-priv.h"
X-#include <malloc.h>
X+#include <stdlib.h>
X
X #include "rfcnb.h"
X
END-of-www/mod_ntlm2/files/patch-smbval-smblib-util.inc.c
echo x - www/mod_ntlm2/files/patch-Makefile
sed 's/^X//' >www/mod_ntlm2/files/patch-Makefile << 'END-of-www/mod_ntlm2/files/patch-Makefile'
X--- Makefile.orig Tue Feb 25 14:25:42 2003
X+++ Makefile Wed Sep 26 13:29:56 2007
X@@ -6,7 +6,7 @@
X
X # the used tools
X APXS=apxs
X-APACHECTL=/etc/rc.d/apache
X+APACHECTL=${PREFIX}/sbin/apachectl
X
X # the default target
X all: mod_ntlm.so
X@@ -17,7 +17,7 @@
X
X # install the shared object file into Apache
X install: all
X- $(APXS) -i -a -n 'ntlm' mod_ntlm.so
X+ $(APXS) -i -a -n 'ntlm' .libs/mod_ntlm.so
X
X # cleanup
X clean:
END-of-www/mod_ntlm2/files/patch-Makefile
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list