2013-07-12 12:44:52 +02:00
|
|
|
# $NetBSD: Makefile,v 1.35 2013/07/12 10:45:05 jperkin Exp $
|
Initial import of screws-0.52, packaged for pkgsrc by the same author
"pancake" pancake at phreaker dot net.
Screws is an experimental web server with extensibility in mind. It's
designed in a little core that processes connections and petitions, setenv
the spected values and calls an external program or script that processes
this and shows what it wants. By this way it's possible to customize
every answer of the web server, and extend it as we want in a simple way.
Some features are:
- UID/GID/CHROOT directives
- Dynamic Module loading (security, optimization, extensions, etc..)
- HSML (Embed scripts into HTML) Like PHP but using your prefered language.
- Support for perl, sh, python, lua, brainfuck, Java...
- Portable code: tested on Solaris, *BSD, GNU/Hurd, Darwin...
- IPv4/IPv6 support
2004-04-23 18:09:20 +02:00
|
|
|
#
|
|
|
|
|
2005-03-20 18:52:20 +01:00
|
|
|
DISTNAME= screws-0.56
|
2013-07-12 12:44:52 +02:00
|
|
|
PKGREVISION= 13
|
Initial import of screws-0.52, packaged for pkgsrc by the same author
"pancake" pancake at phreaker dot net.
Screws is an experimental web server with extensibility in mind. It's
designed in a little core that processes connections and petitions, setenv
the spected values and calls an external program or script that processes
this and shows what it wants. By this way it's possible to customize
every answer of the web server, and extend it as we want in a simple way.
Some features are:
- UID/GID/CHROOT directives
- Dynamic Module loading (security, optimization, extensions, etc..)
- HSML (Embed scripts into HTML) Like PHP but using your prefered language.
- Support for perl, sh, python, lua, brainfuck, Java...
- Portable code: tested on Solaris, *BSD, GNU/Hurd, Darwin...
- IPv4/IPv6 support
2004-04-23 18:09:20 +02:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= ftp://ftp.nopcode.org/prj/screws/
|
|
|
|
|
2010-07-06 12:17:11 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
Initial import of screws-0.52, packaged for pkgsrc by the same author
"pancake" pancake at phreaker dot net.
Screws is an experimental web server with extensibility in mind. It's
designed in a little core that processes connections and petitions, setenv
the spected values and calls an external program or script that processes
this and shows what it wants. By this way it's possible to customize
every answer of the web server, and extend it as we want in a simple way.
Some features are:
- UID/GID/CHROOT directives
- Dynamic Module loading (security, optimization, extensions, etc..)
- HSML (Embed scripts into HTML) Like PHP but using your prefered language.
- Support for perl, sh, python, lua, brainfuck, Java...
- Portable code: tested on Solaris, *BSD, GNU/Hurd, Darwin...
- IPv4/IPv6 support
2004-04-23 18:09:20 +02:00
|
|
|
HOMEPAGE= http://www.nopcode.org/?t=screws
|
2005-03-21 12:35:39 +01:00
|
|
|
COMMENT= SCRipt Enhanced Web Server
|
2011-03-02 14:07:35 +01:00
|
|
|
LICENSE= gnu-gpl-v2
|
Initial import of screws-0.52, packaged for pkgsrc by the same author
"pancake" pancake at phreaker dot net.
Screws is an experimental web server with extensibility in mind. It's
designed in a little core that processes connections and petitions, setenv
the spected values and calls an external program or script that processes
this and shows what it wants. By this way it's possible to customize
every answer of the web server, and extend it as we want in a simple way.
Some features are:
- UID/GID/CHROOT directives
- Dynamic Module loading (security, optimization, extensions, etc..)
- HSML (Embed scripts into HTML) Like PHP but using your prefered language.
- Support for perl, sh, python, lua, brainfuck, Java...
- Portable code: tested on Solaris, *BSD, GNU/Hurd, Darwin...
- IPv4/IPv6 support
2004-04-23 18:09:20 +02:00
|
|
|
|
2008-08-17 22:09:12 +02:00
|
|
|
USE_TOOLS+= perl:run pax gmake
|
Initial import of screws-0.52, packaged for pkgsrc by the same author
"pancake" pancake at phreaker dot net.
Screws is an experimental web server with extensibility in mind. It's
designed in a little core that processes connections and petitions, setenv
the spected values and calls an external program or script that processes
this and shows what it wants. By this way it's possible to customize
every answer of the web server, and extend it as we want in a simple way.
Some features are:
- UID/GID/CHROOT directives
- Dynamic Module loading (security, optimization, extensions, etc..)
- HSML (Embed scripts into HTML) Like PHP but using your prefered language.
- Support for perl, sh, python, lua, brainfuck, Java...
- Portable code: tested on Solaris, *BSD, GNU/Hurd, Darwin...
- IPv4/IPv6 support
2004-04-23 18:09:20 +02:00
|
|
|
|
2007-07-04 22:54:31 +02:00
|
|
|
PKG_GROUPS_VARS+= SCREWS_GROUP
|
|
|
|
PKG_USERS_VARS+= SCREWS_USER
|
2005-03-20 18:27:31 +01:00
|
|
|
|
|
|
|
PKG_USERS= ${SCREWS_USER}:${SCREWS_GROUP}
|
|
|
|
PKG_GROUPS= ${SCREWS_GROUP}
|
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
MAKE_ENV+= ETCPREFIX=${PKG_SYSCONFDIR:Q}
|
|
|
|
MAKE_ENV+= PERL=${PERL5:Q}
|
2011-03-02 13:25:16 +01:00
|
|
|
INSTALL_MAKE_FLAGS+= PREFIX=${DESTDIR}${PREFIX}
|
Initial import of screws-0.52, packaged for pkgsrc by the same author
"pancake" pancake at phreaker dot net.
Screws is an experimental web server with extensibility in mind. It's
designed in a little core that processes connections and petitions, setenv
the spected values and calls an external program or script that processes
this and shows what it wants. By this way it's possible to customize
every answer of the web server, and extend it as we want in a simple way.
Some features are:
- UID/GID/CHROOT directives
- Dynamic Module loading (security, optimization, extensions, etc..)
- HSML (Embed scripts into HTML) Like PHP but using your prefered language.
- Support for perl, sh, python, lua, brainfuck, Java...
- Portable code: tested on Solaris, *BSD, GNU/Hurd, Darwin...
- IPv4/IPv6 support
2004-04-23 18:09:20 +02:00
|
|
|
|
2007-12-31 08:05:00 +01:00
|
|
|
EGDIR= ${PREFIX}/share/examples/screws
|
2004-06-22 14:11:01 +02:00
|
|
|
CONF_FILES= ${EGDIR}/default.conf ${PKG_SYSCONFDIR}/screws.conf
|
Initial import of screws-0.52, packaged for pkgsrc by the same author
"pancake" pancake at phreaker dot net.
Screws is an experimental web server with extensibility in mind. It's
designed in a little core that processes connections and petitions, setenv
the spected values and calls an external program or script that processes
this and shows what it wants. By this way it's possible to customize
every answer of the web server, and extend it as we want in a simple way.
Some features are:
- UID/GID/CHROOT directives
- Dynamic Module loading (security, optimization, extensions, etc..)
- HSML (Embed scripts into HTML) Like PHP but using your prefered language.
- Support for perl, sh, python, lua, brainfuck, Java...
- Portable code: tested on Solaris, *BSD, GNU/Hurd, Darwin...
- IPv4/IPv6 support
2004-04-23 18:09:20 +02:00
|
|
|
|
2011-07-03 14:26:34 +02:00
|
|
|
REPLACE_PERL+= src/Exec/obsd-qos.x
|
|
|
|
REPLACE_PERL+= src/Exec/perl.pl
|
|
|
|
REPLACE_PERL+= src/Exec/perl/*.pl
|
|
|
|
REPLACE_PERL+= src/Exec/perl/htdocs/example.x
|
|
|
|
|
2007-07-02 11:44:39 +02:00
|
|
|
RCD_SCRIPTS= screws
|
|
|
|
RCD_SCRIPT_SRC.screws= ${WRKSRC}/src/Utils/files/screws.sh
|
Initial import of screws-0.52, packaged for pkgsrc by the same author
"pancake" pancake at phreaker dot net.
Screws is an experimental web server with extensibility in mind. It's
designed in a little core that processes connections and petitions, setenv
the spected values and calls an external program or script that processes
this and shows what it wants. By this way it's possible to customize
every answer of the web server, and extend it as we want in a simple way.
Some features are:
- UID/GID/CHROOT directives
- Dynamic Module loading (security, optimization, extensions, etc..)
- HSML (Embed scripts into HTML) Like PHP but using your prefered language.
- Support for perl, sh, python, lua, brainfuck, Java...
- Portable code: tested on Solaris, *BSD, GNU/Hurd, Darwin...
- IPv4/IPv6 support
2004-04-23 18:09:20 +02:00
|
|
|
|
2005-03-20 18:27:31 +01:00
|
|
|
SUBST_CLASSES+= paths
|
2006-04-22 11:22:05 +02:00
|
|
|
SUBST_MESSAGE.paths= Fixing paths.
|
2005-03-20 18:27:31 +01:00
|
|
|
SUBST_STAGE.paths= pre-configure
|
|
|
|
SUBST_FILES.paths= src/Utils/screwsctl
|
|
|
|
SUBST_SED.paths= -e 's|/var/log|${VARBASE}/log|g'
|
|
|
|
|
2006-11-03 22:29:45 +01:00
|
|
|
SUBST_CLASSES+= man
|
|
|
|
SUBST_STAGE.man= pre-configure
|
|
|
|
SUBST_FILES.man= Makefile
|
|
|
|
SUBST_SED.man= -e 's,PREFIX}/man,PREFIX}/${PKGMANDIR},g'
|
|
|
|
|
2007-12-31 08:05:00 +01:00
|
|
|
BUILD_DEFS+= VARBASE
|
|
|
|
|
2006-06-25 11:40:01 +02:00
|
|
|
# The HSML files do not really contain a script interpreter, only
|
|
|
|
# something very similar.
|
|
|
|
CHECK_INTERPRETER_SKIP+= *.hsml
|
|
|
|
|
2012-01-26 16:00:25 +01:00
|
|
|
post-extract:
|
|
|
|
${CP} ${FILESDIR}/*.[158] ${WRKSRC}/doc/manpage/
|
|
|
|
|
2005-03-20 18:52:20 +01:00
|
|
|
.include "options.mk"
|
|
|
|
|
Initial import of screws-0.52, packaged for pkgsrc by the same author
"pancake" pancake at phreaker dot net.
Screws is an experimental web server with extensibility in mind. It's
designed in a little core that processes connections and petitions, setenv
the spected values and calls an external program or script that processes
this and shows what it wants. By this way it's possible to customize
every answer of the web server, and extend it as we want in a simple way.
Some features are:
- UID/GID/CHROOT directives
- Dynamic Module loading (security, optimization, extensions, etc..)
- HSML (Embed scripts into HTML) Like PHP but using your prefered language.
- Support for perl, sh, python, lua, brainfuck, Java...
- Portable code: tested on Solaris, *BSD, GNU/Hurd, Darwin...
- IPv4/IPv6 support
2004-04-23 18:09:20 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|