diff options
author | jtb <jtb> | 2003-06-29 23:15:07 +0000 |
---|---|---|
committer | jtb <jtb> | 2003-06-29 23:15:07 +0000 |
commit | 913cce1ab1395d26a9697d1675b5808e0d000536 (patch) | |
tree | 306f57787fa3c1ae25953245baaf87eca26e08ee /www/swiftsurf | |
parent | 2ceb50dc75cf936b04b022dacb74ad96c38d3358 (diff) | |
download | pkgsrc-913cce1ab1395d26a9697d1675b5808e0d000536.tar.gz |
Initial import of swiftsurf.
SwiftSurf is a web proxy that can handle http (1.0 and 1.1) and
https. Moreover, it allows page filtering and authentication through a
password.
SwiftSurf is written in Ocaml.
Diffstat (limited to 'www/swiftsurf')
-rw-r--r-- | www/swiftsurf/DESCR | 3 | ||||
-rw-r--r-- | www/swiftsurf/Makefile | 40 | ||||
-rw-r--r-- | www/swiftsurf/PLIST | 13 | ||||
-rw-r--r-- | www/swiftsurf/distinfo | 5 | ||||
-rw-r--r-- | www/swiftsurf/patches/patch-aa | 15 |
5 files changed, 76 insertions, 0 deletions
diff --git a/www/swiftsurf/DESCR b/www/swiftsurf/DESCR new file mode 100644 index 00000000000..5b643dac112 --- /dev/null +++ b/www/swiftsurf/DESCR @@ -0,0 +1,3 @@ +SwiftSurf is a web proxy that can handle http (1.0 and 1.1) and +https. Moreover, it allows page filtering and authentication through a +password. diff --git a/www/swiftsurf/Makefile b/www/swiftsurf/Makefile new file mode 100644 index 00000000000..b819f4f97b2 --- /dev/null +++ b/www/swiftsurf/Makefile @@ -0,0 +1,40 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/06/29 23:15:07 jtb Exp $ + +DISTNAME= swiftsurf-1.2.5 +CATEGORIES= www +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=swiftsurf/} + +MAINTAINER= tech-pkg@netbsd.org +HOMEPAGE= http://swiftsurf.sourceforge.net +COMMENT= web proxy that can handle http and https + +BUILD_DEPENDS= ocaml>=3.00:../../lang/ocaml + +USE_BUILDLINK2= yes +USE_GMAKE= yes + +.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || (${MACHINE_ARCH} == "sparc") +ALL_TARGET= nat +SWIFT= swift.opt +.else +ALL_TARGET= byte +SWIFT= swift +.endif + +do-configure: + for f in ${WRKSRC}/src/conf.ml; do \ + ${SED} -e 's:@PKG_SYSCONFDIR@:${PKG_SYSCONFDIR}:g' \ + $$f > $$f.tmp && ${MV} $$f.tmp $$f; \ + done + +do-build: + cd ${WRKSRC}/src && ${GMAKE} ${ALL_TARGET} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/src/${SWIFT} ${PREFIX}/bin/swiftsurf + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/swiftsurf + ${INSTALL_DATA} ${WRKSRC}/swiftsurf.* ${PREFIX}/share/examples/swiftsurf + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/swiftsurf + ${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/swiftsurf + +.include "../../mk/bsd.pkg.mk" diff --git a/www/swiftsurf/PLIST b/www/swiftsurf/PLIST new file mode 100644 index 00000000000..d5884363a14 --- /dev/null +++ b/www/swiftsurf/PLIST @@ -0,0 +1,13 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/06/29 23:15:07 jtb Exp $ +bin/swiftsurf +share/doc/swiftsurf/changelog +share/doc/swiftsurf/index-eng.html +share/doc/swiftsurf/index.html +share/doc/swiftsurf/l-en.jpg +share/doc/swiftsurf/l-fr.jpg +share/doc/swiftsurf/ocaml.jpg +share/examples/swiftsurf/swiftsurf.conf +share/examples/swiftsurf/swiftsurf.conf.school +share/examples/swiftsurf/swiftsurf.forb +@dirrm share/examples/swiftsurf +@dirrm share/doc/swiftsurf diff --git a/www/swiftsurf/distinfo b/www/swiftsurf/distinfo new file mode 100644 index 00000000000..1bfe3eff7f7 --- /dev/null +++ b/www/swiftsurf/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/06/29 23:15:08 jtb Exp $ + +SHA1 (swiftsurf-1.2.5.tar.gz) = bf58a2afcbb8d9ee4cbeb9b8a6ebe00ab6f3d9c8 +Size (swiftsurf-1.2.5.tar.gz) = 31950 bytes +SHA1 (patch-aa) = 7882d5c8542e8ebab40100462ecfaaf3f282f5a2 diff --git a/www/swiftsurf/patches/patch-aa b/www/swiftsurf/patches/patch-aa new file mode 100644 index 00000000000..1773af1d4db --- /dev/null +++ b/www/swiftsurf/patches/patch-aa @@ -0,0 +1,15 @@ +$NetBSD: patch-aa,v 1.1.1.1 2003/06/29 23:15:08 jtb Exp $ + +--- src/conf.ml.orig ++++ src/conf.ml +@@ -39,8 +39,8 @@ + (let home_file = Filename.concat (Sys.getenv "HOME") ".swiftsurf" in + if Sys.file_exists home_file + then home_file +- else if Sys.file_exists "/etc/swiftsurf.conf" +- then "/etc/swiftsurf.conf" ++ else if Sys.file_exists "@PKG_SYSCONFDIR@/swiftsurf.conf" ++ then "@PKG_SYSCONFDIR@/swiftsurf.conf" + else if Sys.file_exists "swiftsurf.conf" + then "swiftsurf.conf" + else "/dev/null") in |