Import mod_random 1.4.
Submitted by Xavier Santolaria <xavier@santolaria.net>. mod_random provides three services. The first service is as a redirector. The second is that it provides environmental variables that can be used for doing ad banner systems. The third is that it can be used to display entire pages of random html.
This commit is contained in:
parent
71b447990f
commit
bb07b6a262
40
www/mod_random/Makefile
Normal file
40
www/mod_random/Makefile
Normal file
@ -0,0 +1,40 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2003/05/26 14:24:11 naddy Exp $
|
||||
|
||||
COMMENT= "Apache module that provides randomized services"
|
||||
|
||||
# This port currently only works with archs supporting dynamic loading
|
||||
# and has Apache that supports DSO's.
|
||||
NOT_FOR_ARCHS= ${NO_SHARED_ARCHS}
|
||||
|
||||
DISTNAME= mod_random-1.4
|
||||
CATEGORIES= www
|
||||
|
||||
HOMEPAGE= http://software.tangent.org/projects.pl?view=mod_random
|
||||
MASTER_SITES= http://software.tangent.org/download/ \
|
||||
ftp://ftp.tangent.org/pub/apache/
|
||||
|
||||
MAINTAINER= Xavier Santolaria <xavier@santolaria.net>
|
||||
|
||||
# BSD
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
NO_REGRESS= Yes
|
||||
APXS= /usr/sbin/apxs
|
||||
|
||||
do-build:
|
||||
cd ${WRKSRC} && \
|
||||
${APXS} -c -o mod_random.so mod_random.c
|
||||
@sed 's,!!PREFIX!!,${PREFIX},' \
|
||||
< ${FILESDIR}/mod_random-enable \
|
||||
> ${WRKBUILD}/mod_random-enable
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKBUILD}/mod_random.so ${PREFIX}/lib
|
||||
${INSTALL_SCRIPT} ${WRKBUILD}/mod_random-enable ${PREFIX}/sbin
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mod_random
|
||||
${INSTALL_DATA} ${WRKSRC}/faq.html ${PREFIX}/share/doc/mod_random
|
||||
|
||||
.include <bsd.port.mk>
|
3
www/mod_random/distinfo
Normal file
3
www/mod_random/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (mod_random-1.4.tar.gz) = 8e78493f775c9cdebaf39401f1088885
|
||||
RMD160 (mod_random-1.4.tar.gz) = 25ecf1c74e84f18c963edb3e50bd6857c1f5e218
|
||||
SHA1 (mod_random-1.4.tar.gz) = de11b28a261f99b71d6d93534d62e7ab4e120b3d
|
18
www/mod_random/files/mod_random-enable
Normal file
18
www/mod_random/files/mod_random-enable
Normal file
@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: mod_random-enable,v 1.1.1.1 2003/05/26 14:24:11 naddy Exp $
|
||||
|
||||
MODULE=!!PREFIX!!/lib/mod_random.so
|
||||
|
||||
if [ `id -u` -ne 0 ]; then
|
||||
echo "You must be root to run this script."
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ ! -f ${MODULE} ]; then
|
||||
echo "Cannot find mod_random module (${MODULE})"
|
||||
exit 1
|
||||
else
|
||||
echo "Enabling Random module..."
|
||||
/usr/sbin/apxs -i -a -n random ${MODULE}
|
||||
fi
|
26
www/mod_random/pkg/DEINSTALL
Normal file
26
www/mod_random/pkg/DEINSTALL
Normal file
@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: DEINSTALL,v 1.1.1.1 2003/05/26 14:24:11 naddy Exp $
|
||||
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
CONF=`apxs -q SYSCONFDIR`/httpd.conf
|
||||
MODULE=/usr/lib/apache/modules/mod_random.so
|
||||
|
||||
rm -f ${MODULE}
|
||||
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| To completely deinstall the $1 package you"
|
||||
echo "| need to perform these steps as root:"
|
||||
echo "|"
|
||||
echo "| edit ${CONF}"
|
||||
echo "| remove the line: LoadModule random_module"
|
||||
echo "|"
|
||||
echo "| Do not do this if you plan on re-installing $1"
|
||||
echo "| package at some future time."
|
||||
echo "+---------------"
|
||||
echo
|
||||
|
||||
exit 0
|
9
www/mod_random/pkg/DESCR
Normal file
9
www/mod_random/pkg/DESCR
Normal file
@ -0,0 +1,9 @@
|
||||
mod_random provides three services. The first service is as a
|
||||
redirector. You feed it URLs and it will redirect to random URLs
|
||||
that you have loaded. The second is that it provides environmental
|
||||
variables that can be used for doing ad banner systems. The third
|
||||
is that it can be used to display entire pages of random html. It
|
||||
uses its own custom handlers in combination with random ads and
|
||||
quotes that you feed into the system.
|
||||
|
||||
WWW: ${HOMEPAGE}
|
10
www/mod_random/pkg/MESSAGE
Normal file
10
www/mod_random/pkg/MESSAGE
Normal file
@ -0,0 +1,10 @@
|
||||
+---------------
|
||||
| To finish the install of mod_log_sql, you need
|
||||
| to enable the module using the following command
|
||||
|
|
||||
| ${PREFIX}/sbin/mod_random-enable
|
||||
|
|
||||
| If you already have Apache running on your machine,
|
||||
| you should not use "apachectl restart" - instead,
|
||||
| you should fully stop and then restart the server.
|
||||
+---------------
|
5
www/mod_random/pkg/PLIST
Normal file
5
www/mod_random/pkg/PLIST
Normal file
@ -0,0 +1,5 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2003/05/26 14:24:11 naddy Exp $
|
||||
lib/mod_random.so
|
||||
sbin/mod_random-enable
|
||||
share/doc/mod_random/faq.html
|
||||
@dirrm share/doc/mod_random
|
Loading…
Reference in New Issue
Block a user