diff options
author | dinoex <dinoex@FreeBSD.org> | 2001-03-17 14:48:26 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2001-03-17 14:48:26 +0800 |
commit | 08037cf39fd4abf9d11429a16e854f1529da8b66 (patch) | |
tree | ac4e2d196586bc38e9310fbdaf2adca05c961c1e /devel | |
parent | e3b67421c37694157f15d8f4993f18493fe47cfb (diff) | |
download | freebsd-ports-gnome-08037cf39fd4abf9d11429a16e854f1529da8b66.tar.gz freebsd-ports-gnome-08037cf39fd4abf9d11429a16e854f1529da8b66.tar.zst freebsd-ports-gnome-08037cf39fd4abf9d11429a16e854f1529da8b66.zip |
- new distfiles at master site.
The State Threads is a small application library which provides a
foundation for writing fast and highly scalable Internet applications
(such as web servers, proxy servers, mail transfer agents, and so on) on
UNIX-like platforms. It combines the simplicity of the multithreaded
programming paradigm, in which one thread supports each simultaneous
connection, with the performance and scalability of an event-driven
state machine architecture. In other words, this library offers a
threading API for structuring an Internet application as a state
machine.
The State Threads library is a derivative of the Netscape Portable
Runtime library (NSPR).
WWW: http://oss.sgi.com/projects/state-threads/
PR: 25189
Submitted by: tobez@tobez.org (Anton Berezin)
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/st/Makefile | 45 | ||||
-rw-r--r-- | devel/st/distinfo | 1 | ||||
-rw-r--r-- | devel/st/files/Makefile.examples | 16 | ||||
-rw-r--r-- | devel/st/files/Makefile.main | 14 | ||||
-rw-r--r-- | devel/st/pkg-comment | 1 | ||||
-rw-r--r-- | devel/st/pkg-descr | 17 | ||||
-rw-r--r-- | devel/st/pkg-plist | 17 |
8 files changed, 112 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 2ba86b34b158..5b6a7f3f86c6 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -405,6 +405,7 @@ SUBDIR += sparc-rtems-gcj SUBDIR += sparc-rtems-gdb SUBDIR += sparc-rtems-objc + SUBDIR += st SUBDIR += stlport SUBDIR += str SUBDIR += swarm diff --git a/devel/st/Makefile b/devel/st/Makefile new file mode 100644 index 000000000000..0312e57ec595 --- /dev/null +++ b/devel/st/Makefile @@ -0,0 +1,45 @@ +# New ports collection makefile for: st +# Date created: Sun Feb 18 2001 +# Whom: tobez@tobez.org +# +# $FreeBSD$ +# + +PORTNAME= st +PORTVERSION= 1.1 +CATEGORIES= devel +MASTER_SITES= http://oss.sgi.com/projects/state-threads/download/ \ + ftp://oss.sgi.com/www/projects/state-threads/download/ \ + http://www.tobez.org/download/port-mirrors/devel/st/ + +MAINTAINER= tobez@tobez.org + +INSTALLS_SHLIB= yes + +.include <bsd.port.pre.mk> + +pre-patch: + @${RM} -f ${WRKSRC}/Makefile ${WRKSRC}/examples/Makefile + @${CP} ${FILESDIR}/Makefile.main ${WRKSRC}/Makefile + @${CP} ${FILESDIR}/Makefile.examples ${WRKSRC}/examples/Makefile + +post-install: + @${MKDIR} ${PREFIX}/include + @${INSTALL_DATA} ${WRKSRC}/public.h ${PREFIX}/include/st.h + @${MKDIR} ${PREFIX}/share/examples/st + @${INSTALL_DATA} ${WRKSRC}/examples/Makefile ${PREFIX}/share/examples/st + @${INSTALL_DATA} ${WRKSRC}/examples/README ${PREFIX}/share/examples/st + @${INSTALL_DATA} ${WRKSRC}/examples/error.c ${PREFIX}/share/examples/st + @${INSTALL_DATA} ${WRKSRC}/examples/lookupdns.c ${PREFIX}/share/examples/st + @${INSTALL_DATA} ${WRKSRC}/examples/proxy.c ${PREFIX}/share/examples/st + @${INSTALL_DATA} ${WRKSRC}/examples/res.c ${PREFIX}/share/examples/st + @${INSTALL_DATA} ${WRKSRC}/examples/server.c ${PREFIX}/share/examples/st +.if !defined(NOPORTDOCS) + @${MKDIR} ${PREFIX}/share/doc/st + @${INSTALL_DATA} ${WRKSRC}/docs/fig.gif ${PREFIX}/share/doc/st + @${INSTALL_DATA} ${WRKSRC}/docs/notes.html ${PREFIX}/share/doc/st + @${INSTALL_DATA} ${WRKSRC}/docs/reference.html ${PREFIX}/share/doc/st + @${INSTALL_DATA} ${WRKSRC}/docs/st.html ${PREFIX}/share/doc/st +.endif + +.include <bsd.port.post.mk> diff --git a/devel/st/distinfo b/devel/st/distinfo new file mode 100644 index 000000000000..a1e3ae759175 --- /dev/null +++ b/devel/st/distinfo @@ -0,0 +1 @@ +MD5 (st-1.1.tar.gz) = 8cdb640b7b59242fa15251fc0389b18c diff --git a/devel/st/files/Makefile.examples b/devel/st/files/Makefile.examples new file mode 100644 index 000000000000..f4fb2d1dbed7 --- /dev/null +++ b/devel/st/files/Makefile.examples @@ -0,0 +1,16 @@ +PREFIX?= /usr/local +CFLAGS+= -I${PREFIX}/include -L${PREFIX}/lib + +all: lookupdns proxy server + +lookupdns: lookupdns.o res.o + ${CC} ${CFLAGS} -o ${.TARGET} lookupdns.o res.o -lst + +proxy: proxy.o + ${CC} ${CFLAGS} -o ${.TARGET} proxy.o -lst + +server: server.o error.o + ${CC} ${CFLAGS} -o ${.TARGET} server.o error.o -lst + +clean: + rm -f lookupdns proxy server *.o diff --git a/devel/st/files/Makefile.main b/devel/st/files/Makefile.main new file mode 100644 index 000000000000..3dd3468d1f73 --- /dev/null +++ b/devel/st/files/Makefile.main @@ -0,0 +1,14 @@ +# FreeBSD port Makefile for devel/st + +PREFIX?= /usr/local +LIBDIR= ${PREFIX}/lib + +SHLIB_MAJOR= 1 +SHLIB_MINOR= 1 +LIB= st +NOPROFILE= yes + +SRCS= io.c key.c sched.c stk.c sync.c +CFLAGS+= -DFREEBSD + +.include <bsd.lib.mk> diff --git a/devel/st/pkg-comment b/devel/st/pkg-comment new file mode 100644 index 000000000000..8904159b822e --- /dev/null +++ b/devel/st/pkg-comment @@ -0,0 +1 @@ +State Threads Library for Internet Applications diff --git a/devel/st/pkg-descr b/devel/st/pkg-descr new file mode 100644 index 000000000000..04bd5a1f66c6 --- /dev/null +++ b/devel/st/pkg-descr @@ -0,0 +1,17 @@ +The State Threads is a small application library which provides a +foundation for writing fast and highly scalable Internet applications +(such as web servers, proxy servers, mail transfer agents, and so on) on +UNIX-like platforms. It combines the simplicity of the multithreaded +programming paradigm, in which one thread supports each simultaneous +connection, with the performance and scalability of an event-driven +state machine architecture. In other words, this library offers a +threading API for structuring an Internet application as a state +machine. + +The State Threads library is a derivative of the Netscape Portable +Runtime library (NSPR). + +WWW: http://oss.sgi.com/projects/state-threads/ + +- Anton +tobez@tobez.org diff --git a/devel/st/pkg-plist b/devel/st/pkg-plist new file mode 100644 index 000000000000..2bba5591dc85 --- /dev/null +++ b/devel/st/pkg-plist @@ -0,0 +1,17 @@ +include/st.h +lib/libst.a +lib/libst.so.1 +lib/libst.so +share/doc/st/fig.gif +share/doc/st/notes.html +share/doc/st/reference.html +share/doc/st/st.html +share/examples/st/Makefile +share/examples/st/README +share/examples/st/error.c +share/examples/st/lookupdns.c +share/examples/st/proxy.c +share/examples/st/res.c +share/examples/st/server.c +@dirrm share/doc/st +@dirrm share/examples/st |