diff options
author | hubertf <hubertf> | 2001-02-18 04:52:34 +0000 |
---|---|---|
committer | hubertf <hubertf> | 2001-02-18 04:52:34 +0000 |
commit | 7ab2658220fd83638f791636b0ddf1531e186d70 (patch) | |
tree | 1e69d12d8aa3490904a20b40ebd69141fc772460 /net/smb2www | |
parent | 0c2343a9763e1bc2b584e8a2cb511d71788288be (diff) | |
download | pkgsrc-7ab2658220fd83638f791636b0ddf1531e186d70.tar.gz |
Add smb2www V980804:
SMB2WWW, the gateway to Windows networking, is a Windows Network client
that is accessible through a web browser. It is based on the samba
package.
Add this to your apache config:
Alias /smb2www/images @PREFIX@/libexec/smb2www/images
ScriptAlias /smb2www/ @PREFIX@/libexec/smb2www/cgi-bin/
AddHandler cgi-script .pl
You can access the gateway at the following URL:
http://localhost/smb2www/smb2www.pl
To make modifications to the smb2www setup, edit
@PREFIX@/libexec/smb2www/etc/smb2www.conf
Diffstat (limited to 'net/smb2www')
-rw-r--r-- | net/smb2www/Makefile | 56 | ||||
-rw-r--r-- | net/smb2www/files/md5 | 3 | ||||
-rw-r--r-- | net/smb2www/files/patch-sum | 3 | ||||
-rw-r--r-- | net/smb2www/patches/patch-aa | 41 | ||||
-rw-r--r-- | net/smb2www/pkg/DESCR | 16 | ||||
-rw-r--r-- | net/smb2www/pkg/PLIST | 36 |
6 files changed, 155 insertions, 0 deletions
diff --git a/net/smb2www/Makefile b/net/smb2www/Makefile new file mode 100644 index 00000000000..ac74466ee20 --- /dev/null +++ b/net/smb2www/Makefile @@ -0,0 +1,56 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/02/18 04:52:34 hubertf Exp $ +# + +DISTNAME= smb2www-980804 +CATEGORIES= net +MASTER_SITES= http://us1.samba.org/samba/smb2www/ \ + http://www.samba.org/samba/smb2www/ + +MAINTAINER= hubertf@netbsd.org +HOMEPAGE= http://www.samba.org/samba/smb2www/ +COMMENT= Gateway to Windows networking + +DEPENDS+= p5-MIME-Base64-*:../../converters/p5-MIME-Base64 +DEPENDS+= samba-[0-9]*:../../net/samba +DEPENDS+= perl-[0-9]*:../../lang/perl5 +DEPENDS+= apache{,6}-[0-9]*:../../www/apache + +NO_WRKSUBDIR= yes + +SMB2WWW_MASTER_BROWSER_SERVER?= # set for non-empty +APACHE_USER?= nobody +DESCR_SRC= ${WRKSRC}/.DESCRX +NO_BUILD= yes + +pre-install: + if [ -d ${PREFIX}/libexec/smb2www ]; then \ + ${ECHO} "" ; \ + ${ECHO} "----------------------------------------------" ; \ + ${ECHO} "Please remove ${PREFIX}/libexec/smb2www first!" ; \ + ${ECHO} "----------------------------------------------" ; \ + ${ECHO} "" ; \ + exit 1 ; \ + fi + +do-install: + cd ${WRKSRC} ; \ + ( \ + ${ECHO} "" ; \ + ${ECHO} "${APACHE_USER}" ; \ + ${ECHO} "nobody" ; \ + ${ECHO} "${PREFIX}/libexec/smb2www" ; \ + ${ECHO} "${LOCALBASE}/bin" ; \ + ${ECHO} "${LOCALBASE}/bin/perl" ; \ + ${ECHO} "${SMB2WWW_MASTER_BROWSER_SERVER}" ; \ + ${ECHO} "english" ; \ + ${ECHO} "/smb2www/images" ; \ + ${ECHO} "/smb2www" ; \ + ${ECHO} "${LOCALBASE}/etc/httpd" ; \ + ) | perl Install.pl + +post-install: + ${SED} \ + 's,@PREFIX@,${PREFIX},' \ + <${PKGDIR}/DESCR >${DESCR_SRC} + +.include "../../mk/bsd.pkg.mk" diff --git a/net/smb2www/files/md5 b/net/smb2www/files/md5 new file mode 100644 index 00000000000..190fc354307 --- /dev/null +++ b/net/smb2www/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 2001/02/18 04:52:34 hubertf Exp $ + +MD5 (smb2www-980804.tar.gz) = f779e40bed232135a1ee46adecdea60c diff --git a/net/smb2www/files/patch-sum b/net/smb2www/files/patch-sum new file mode 100644 index 00000000000..cdc31da5244 --- /dev/null +++ b/net/smb2www/files/patch-sum @@ -0,0 +1,3 @@ +$NetBSD: patch-sum,v 1.1.1.1 2001/02/18 04:52:34 hubertf Exp $ + +MD5 (patch-aa) = 36ed5a048c7cf142aba816d47e88579e diff --git a/net/smb2www/patches/patch-aa b/net/smb2www/patches/patch-aa new file mode 100644 index 00000000000..4a26b3efff4 --- /dev/null +++ b/net/smb2www/patches/patch-aa @@ -0,0 +1,41 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/02/18 04:52:34 hubertf Exp $ + +--- Install.pl.orig Sun Aug 2 20:31:40 1998 ++++ Install.pl +@@ -125,7 +125,7 @@ + imgroot = $imgpath + cgiroot = $cgiroot + linkto_other = http://samba.anu.edu.au/samba/smb2www/ +-background = cloud.gif ++background = + icon_other = world.gif + icon_all = network.gif + icon_group = group.gif +@@ -180,7 +180,7 @@ + + # copy all images + +-`cp -v images/* $dir/images/`; ++`cp images/* $dir/images/`; + if ($is_root) { + opendir IMGDIR, "$dir/images"; + @allfiles = grep !/^\./, readdir IMGDIR; +@@ -192,7 +192,7 @@ + + # copy all language files + +-`cp -v etc/*.lang $dir/etc/`; ++`cp etc/*.lang $dir/etc/`; + if ($is_root) { + opendir ETCDIR, "$dir/etc"; + @allfiles = grep !/^\./, readdir ETCDIR; +@@ -209,6 +209,8 @@ + print "\nAdd this to your apache config:\n"; + print "-------------------------------\n\n"; + print "Alias $imgpath $dir/images\n"; +-print "ScriptAlias $cgiroot/ $dir/cgi-bin\n"; ++print "\tScriptAlias $cgiroot/ $dir/cgi-bin/\n"; ++print "\tScriptAlias $cgiroot/ $dir/cgi-bin/\n"; ++print "\tAddHandler cgi-script .pl\n"; + + print "\nThank you for using SMB2WWW.\n\n"; diff --git a/net/smb2www/pkg/DESCR b/net/smb2www/pkg/DESCR new file mode 100644 index 00000000000..aa3a9841603 --- /dev/null +++ b/net/smb2www/pkg/DESCR @@ -0,0 +1,16 @@ +SMB2WWW, the gateway to Windows networking, is a Windows Network client +that is accessible through a web browser. It is based on the samba +package. + +Add this to your apache config: + + Alias /smb2www/images @PREFIX@/libexec/smb2www/images + ScriptAlias /smb2www/ @PREFIX@/libexec/smb2www/cgi-bin/ + AddHandler cgi-script .pl + +You can access the gateway at the following URL: + + http://localhost/smb2www/smb2www.pl + +To make modifications to the smb2www setup, edit +@PREFIX@/libexec/smb2www/etc/smb2www.conf diff --git a/net/smb2www/pkg/PLIST b/net/smb2www/pkg/PLIST new file mode 100644 index 00000000000..065b45ebffe --- /dev/null +++ b/net/smb2www/pkg/PLIST @@ -0,0 +1,36 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/02/18 04:52:34 hubertf Exp $ +libexec/smb2www/bin/smbclient +libexec/smb2www/cgi-bin/smb2www.pl +libexec/smb2www/cgi-bin/smb2www.pm +libexec/smb2www/cgi-bin/smbdir.pl +libexec/smb2www/cgi-bin/smbfile.pl +libexec/smb2www/cgi-bin/smbgrp.pl +libexec/smb2www/cgi-bin/smbhelp.pl +libexec/smb2www/cgi-bin/smbmsg.pl +libexec/smb2www/cgi-bin/smbshr.pl +libexec/smb2www/cgi-bin/smbtar.pl +libexec/smb2www/etc/dutch.lang +libexec/smb2www/etc/dutch_help.lang +libexec/smb2www/etc/english.lang +libexec/smb2www/etc/english_help.lang +libexec/smb2www/etc/finnish.lang +libexec/smb2www/etc/finnish_help.lang +libexec/smb2www/etc/smb2www.conf +libexec/smb2www/images/archive.gif +libexec/smb2www/images/cloud.gif +libexec/smb2www/images/computer.gif +libexec/smb2www/images/file.gif +libexec/smb2www/images/folder.gif +libexec/smb2www/images/group.gif +libexec/smb2www/images/help.gif +libexec/smb2www/images/message.gif +libexec/smb2www/images/network.gif +libexec/smb2www/images/printer.gif +libexec/smb2www/images/search.gif +libexec/smb2www/images/share.gif +libexec/smb2www/images/world.gif +@dirrm libexec/smb2www/images +@dirrm libexec/smb2www/etc +@dirrm libexec/smb2www/cgi-bin +@dirrm libexec/smb2www/bin +@dirrm libexec/smb2www |