Subject: pkg/21621: New pkgsrc: www/thy
To: None <gnats-bugs@gnats.netbsd.org>
From: Gergely Nagy <algernon@bonehunter.rulez.org>
List: netbsd-bugs
Date: 05/19/2003 18:07:38
>Number:         21621
>Category:       pkg
>Synopsis:       New pkgsrc: www/thy (thy-0.5.2)
>Confidential:   yes
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon May 19 16:41:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Gergely Nagy
>Release:        NetBSD 1.6.1
>Organization:
	
>Environment:
	
	
System: NetBSD caradhras.bonehunter.rulez.org 1.6.1 NetBSD 1.6.1 (ALGERNON) #0: Sat May 17 18:57:55 CEST 2003 root@iluvatar.bonehunter.rulez.org:/usr/src/sys/arch/i386/compile/ALGERNON i386
Architecture: i386
Machine: i386
>Description:
	I prepared a new pkgsrc for thy-0.5.2 (see http://bonehunter.rulez.org/Thy.phtml
	for more information about Thy), a tiny, yet featureful HTTP daemon, which
	supports IPv6, TLS/SSL, on-the-fly compression and some other stuff.

	The pkgsrc is available from http://bonehunter.rulez.org/~algernon/thy-nbsd.shar,
	in case it didn't get appended to this report.
>How-To-Repeat:
	
>Fix:

#!/bin/sh
# This is a shell archive (produced by GNU sharutils 4.2.1).
# To extract the files from this archive, save it to some FILE, remove
# everything before the `!/bin/sh' line above, then type `sh FILE'.
#
# Made on 2003-05-19 18:26 CEST by <algernon@iluvatar.bonehunter.rulez.org>.
# Source directory was `/tmp/thy'.
#
# Existing files will *not* be overwritten unless `-c' is specified.
#
# This shar contains:
# length mode       name
# ------ ---------- ------------------------------------------
#    491 -rw-r--r-- thy-0.5-netbsd/files/thy.sh
#    301 -rw-r--r-- thy-0.5-netbsd/DESCR
#    353 -rw-r--r-- thy-0.5-netbsd/MESSAGE
#   1766 -rw-r--r-- thy-0.5-netbsd/Makefile
#    637 -rw-r--r-- thy-0.5-netbsd/PLIST
#
save_IFS="${IFS}"
IFS="${IFS}:"
gettext_dir=FAILED
locale_dir=FAILED
first_param="$1"
for dir in $PATH
do
  if test "$gettext_dir" = FAILED && test -f $dir/gettext \
     && ($dir/gettext --version >/dev/null 2>&1)
  then
    set `$dir/gettext --version 2>&1`
    if test "$3" = GNU
    then
      gettext_dir=$dir
    fi
  fi
  if test "$locale_dir" = FAILED && test -f $dir/shar \
     && ($dir/shar --print-text-domain-dir >/dev/null 2>&1)
  then
    locale_dir=`$dir/shar --print-text-domain-dir`
  fi
done
IFS="$save_IFS"
if test "$locale_dir" = FAILED || test "$gettext_dir" = FAILED
then
  echo=echo
else
  TEXTDOMAINDIR=$locale_dir
  export TEXTDOMAINDIR
  TEXTDOMAIN=sharutils
  export TEXTDOMAIN
  echo="$gettext_dir/gettext -s"
fi
if touch -am -t 200112312359.59 $$.touch >/dev/null 2>&1 && test ! -f 200112312359.59 -a -f $$.touch; then
  shar_touch='touch -am -t $1$2$3$4$5$6.$7 "$8"'
elif touch -am 123123592001.59 $$.touch >/dev/null 2>&1 && test ! -f 123123592001.59 -a ! -f 123123592001.5 -a -f $$.touch; then
  shar_touch='touch -am $3$4$5$6$1$2.$7 "$8"'
elif touch -am 1231235901 $$.touch >/dev/null 2>&1 && test ! -f 1231235901 -a -f $$.touch; then
  shar_touch='touch -am $3$4$5$6$2 "$8"'
else
  shar_touch=:
  echo
  $echo 'WARNING: not restoring timestamps.  Consider getting and'
  $echo "installing GNU \`touch', distributed in GNU File Utilities..."
  echo
fi
rm -f 200112312359.59 123123592001.59 123123592001.5 1231235901 $$.touch
#
if mkdir _sh06530; then
  $echo 'x -' 'creating lock directory'
else
  $echo 'failed to create lock directory'
  exit 1
fi
# ============= thy-0.5-netbsd/files/thy.sh ==============
if test ! -d 'thy-0.5-netbsd'; then
  $echo 'x -' 'creating directory' 'thy-0.5-netbsd'
  mkdir 'thy-0.5-netbsd'
fi
if test ! -d 'thy-0.5-netbsd/files'; then
  $echo 'x -' 'creating directory' 'thy-0.5-netbsd/files'
  mkdir 'thy-0.5-netbsd/files'
fi
if test -f 'thy-0.5-netbsd/files/thy.sh' && test "$first_param" != -c; then
  $echo 'x -' SKIPPING 'thy-0.5-netbsd/files/thy.sh' '(file already exists)'
else
  $echo 'x -' extracting 'thy-0.5-netbsd/files/thy.sh' '(text)'
  sed 's/^X//' << 'SHAR_EOF' > 'thy-0.5-netbsd/files/thy.sh' &&
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD$
#
# PROVIDE: thy
# REQUIRE: DAEMON
X
if [ -f /etc/rc.subr ]; then
X	. /etc/rc.subr
fi
X
if [ -f @PKG_SYSCONFDIR@/thy.conf ]; then
X	. @PKG_SYSCONFDIR@/thy.conf
fi
X
name="thy"
rcvar=${name}
command="@PREFIX@/sbin/${name}"
command_args=${THY_OPTIONS}
pidfile=${THY_PIDFILE:-/var/run/thy.pid}
stop_postcmd="rm -f ${pidfile}"
X
if [ -f /etc/rc.subr ]; then
X	load_rc_config ${name}
X	run_rc_command "$1"
else
X	@ECHO@ -n " ${name}"
X	eval ${command} ${command_args}
fi
SHAR_EOF
  (set 20 03 05 19 18 21 47 'thy-0.5-netbsd/files/thy.sh'; eval "$shar_touch") &&
  chmod 0644 'thy-0.5-netbsd/files/thy.sh' ||
  $echo 'restore of' 'thy-0.5-netbsd/files/thy.sh' 'failed'
  if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
  && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
    md5sum -c << SHAR_EOF >/dev/null 2>&1 \
    || $echo 'thy-0.5-netbsd/files/thy.sh:' 'MD5 check failed'
a7585c3728f41abb4c21dd2329057923  thy-0.5-netbsd/files/thy.sh
SHAR_EOF
  else
    shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'thy-0.5-netbsd/files/thy.sh'`"
    test 491 -eq "$shar_count" ||
    $echo 'thy-0.5-netbsd/files/thy.sh:' 'original size' '491,' 'current size' "$shar_count!"
  fi
fi
# ============= thy-0.5-netbsd/DESCR ==============
if test -f 'thy-0.5-netbsd/DESCR' && test "$first_param" != -c; then
  $echo 'x -' SKIPPING 'thy-0.5-netbsd/DESCR' '(file already exists)'
else
  $echo 'x -' extracting 'thy-0.5-netbsd/DESCR' '(text)'
  sed 's/^X//' << 'SHAR_EOF' > 'thy-0.5-netbsd/DESCR' &&
Thy was designed to be as fast and lightweight as possible. For
speed, she uses sendfile(), and does not fork.
X
Among the features are name-based virtual hosts, userdir and
directory index support; Range, If-Modified-Since, keep-alive,
on-the-fly compression and of course, CGI, IPv6 and TLS support.
SHAR_EOF
  (set 20 03 05 19 18 21 47 'thy-0.5-netbsd/DESCR'; eval "$shar_touch") &&
  chmod 0644 'thy-0.5-netbsd/DESCR' ||
  $echo 'restore of' 'thy-0.5-netbsd/DESCR' 'failed'
  if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
  && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
    md5sum -c << SHAR_EOF >/dev/null 2>&1 \
    || $echo 'thy-0.5-netbsd/DESCR:' 'MD5 check failed'
72d9d5866d4dc2cd4f2c9ad3d7f70b7a  thy-0.5-netbsd/DESCR
SHAR_EOF
  else
    shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'thy-0.5-netbsd/DESCR'`"
    test 301 -eq "$shar_count" ||
    $echo 'thy-0.5-netbsd/DESCR:' 'original size' '301,' 'current size' "$shar_count!"
  fi
fi
# ============= thy-0.5-netbsd/MESSAGE ==============
if test -f 'thy-0.5-netbsd/MESSAGE' && test "$first_param" != -c; then
  $echo 'x -' SKIPPING 'thy-0.5-netbsd/MESSAGE' '(file already exists)'
else
  $echo 'x -' extracting 'thy-0.5-netbsd/MESSAGE' '(text)'
  sed 's/^X//' << 'SHAR_EOF' > 'thy-0.5-netbsd/MESSAGE' &&
===========================================================================
$NetBSD$
X
In order to use Thy, you will need to set up a directory to serve documents
from. By default, Thy looks in `/var/www', you might consider using that,
or `/var/httpd', as installed by apache.
===========================================================================
SHAR_EOF
  (set 20 03 05 19 18 21 47 'thy-0.5-netbsd/MESSAGE'; eval "$shar_touch") &&
  chmod 0644 'thy-0.5-netbsd/MESSAGE' ||
  $echo 'restore of' 'thy-0.5-netbsd/MESSAGE' 'failed'
  if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
  && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
    md5sum -c << SHAR_EOF >/dev/null 2>&1 \
    || $echo 'thy-0.5-netbsd/MESSAGE:' 'MD5 check failed'
7118fb0de5f431acafb2d84b69992aba  thy-0.5-netbsd/MESSAGE
SHAR_EOF
  else
    shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'thy-0.5-netbsd/MESSAGE'`"
    test 353 -eq "$shar_count" ||
    $echo 'thy-0.5-netbsd/MESSAGE:' 'original size' '353,' 'current size' "$shar_count!"
  fi
fi
# ============= thy-0.5-netbsd/Makefile ==============
if test -f 'thy-0.5-netbsd/Makefile' && test "$first_param" != -c; then
  $echo 'x -' SKIPPING 'thy-0.5-netbsd/Makefile' '(file already exists)'
else
  $echo 'x -' extracting 'thy-0.5-netbsd/Makefile' '(text)'
  sed 's/^X//' << 'SHAR_EOF' > 'thy-0.5-netbsd/Makefile' &&
# $NetBSD$
#
X
DISTNAME=		thy-0.5.2
CATEGORIES=		www
MASTER_SITES=		ftp://bonehunter.rulez.org/pub/thy/stable/
X
MAINTAINER=		algernon@bonehunter.rulez.org
HOMEPAGE=		http://bonehunter.rulez.org/Thy.phtml
COMMENT=		Tiny and fast HTTP daemon
X
BUILD_DEFS+=		USE_INET6
GNU_CONFIGURE=		yes
USE_GMAKE=		yes
USE_BUILDLINK2=		yes
USE_PKGINSTALL=		yes
X
PKG_SYSCONFSUBDIR=	thy
CONF_FILES=		${EGDIR}/thy.conf ${PKG_SYSCONFDIR}/thy.conf \
X			${EGDIR}/http301.html ${PKG_SYSCONFDIR}/http301.html \
X			${EGDIR}/http302.html ${PKG_SYSCONFDIR}/http302.html \
X			${EGDIR}/http400.html ${PKG_SYSCONFDIR}/http400.html \
X			${EGDIR}/http401.html ${PKG_SYSCONFDIR}/http401.html \
X			${EGDIR}/http403.html ${PKG_SYSCONFDIR}/http403.html \
X			${EGDIR}/http404.html ${PKG_SYSCONFDIR}/http404.html \
X			${EGDIR}/http405.html ${PKG_SYSCONFDIR}/http405.html \
X			${EGDIR}/http412.html ${PKG_SYSCONFDIR}/http412.html \
X			${EGDIR}/http416.html ${PKG_SYSCONFDIR}/http416.html \
X			${EGDIR}/http500.html ${PKG_SYSCONFDIR}/http500.html \
X			${EGDIR}/http501.html ${PKG_SYSCONFDIR}/http501.html \
X			${EGDIR}/http505.html ${PKG_SYSCONFDIR}/http505.html
RCD_SCRIPTS=		thy
INFO_FILES=		thy.info
X
CONFIGURE_ENV+=		CFLAGS=-Wno-shadow
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFBASE}
X
EGDIR=			${PREFIX}/share/thy/samples
X
do-install:
X	${INSTALL_DATA_DIR} ${EGDIR}
X	${_PKG_SILENT}${_PKG_DEBUG}${_ULIMIT_CMD}cd ${WRKSRC} && \
X	    ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} \
X		${MAKE_FLAGS} -f ${MAKEFILE} ${INSTALL_TARGET} \
X		pkgconfdir=${EGDIR}
X
post-install:
X	${INSTALL_DATA} ${WRKSRC}/etc/thy.conf ${EGDIR}/
X
X.include "../../security/gnutls/buildlink2.mk"
X.include "../../security/PAM/buildlink2.mk"
X.include "../../devel/zlib/buildlink2.mk"
X.include "../../mk/texinfo.mk"
X.include "../../mk/bsd.pkg.mk"
SHAR_EOF
  (set 20 03 05 19 18 21 47 'thy-0.5-netbsd/Makefile'; eval "$shar_touch") &&
  chmod 0644 'thy-0.5-netbsd/Makefile' ||
  $echo 'restore of' 'thy-0.5-netbsd/Makefile' 'failed'
  if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
  && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
    md5sum -c << SHAR_EOF >/dev/null 2>&1 \
    || $echo 'thy-0.5-netbsd/Makefile:' 'MD5 check failed'
18a5ae42e88e277cecb22812f2b92b05  thy-0.5-netbsd/Makefile
SHAR_EOF
  else
    shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'thy-0.5-netbsd/Makefile'`"
    test 1766 -eq "$shar_count" ||
    $echo 'thy-0.5-netbsd/Makefile:' 'original size' '1766,' 'current size' "$shar_count!"
  fi
fi
# ============= thy-0.5-netbsd/PLIST ==============
if test -f 'thy-0.5-netbsd/PLIST' && test "$first_param" != -c; then
  $echo 'x -' SKIPPING 'thy-0.5-netbsd/PLIST' '(file already exists)'
else
  $echo 'x -' extracting 'thy-0.5-netbsd/PLIST' '(text)'
  sed 's/^X//' << 'SHAR_EOF' > 'thy-0.5-netbsd/PLIST' &&
@comment $NetBSD$
etc/rc.d/thy
share/thy/samples/http301.html
share/thy/samples/http302.html
share/thy/samples/http400.html
share/thy/samples/http401.html
share/thy/samples/http403.html
share/thy/samples/http404.html
share/thy/samples/http405.html
share/thy/samples/http412.html
share/thy/samples/http416.html
share/thy/samples/http500.html
share/thy/samples/http501.html
share/thy/samples/http505.html
share/thy/samples/thy.conf
@dirrm share/thy/samples
@dirrm share/thy
@unexec ${INSTALL_INFO} --delete --info-dir=%D/info %D/info/thy.info
info/thy.info
@exec ${INSTALL_INFO} --info-dir=%D/info %D/info/thy.info
man/man8/thy.8
sbin/thy
SHAR_EOF
  (set 20 03 05 19 18 21 47 'thy-0.5-netbsd/PLIST'; eval "$shar_touch") &&
  chmod 0644 'thy-0.5-netbsd/PLIST' ||
  $echo 'restore of' 'thy-0.5-netbsd/PLIST' 'failed'
  if ( md5sum --help 2>&1 | grep 'sage: md5sum \[' ) >/dev/null 2>&1 \
  && ( md5sum --version 2>&1 | grep -v 'textutils 1.12' ) >/dev/null; then
    md5sum -c << SHAR_EOF >/dev/null 2>&1 \
    || $echo 'thy-0.5-netbsd/PLIST:' 'MD5 check failed'
fb427b173b2cfcac6d919af5b5d1b068  thy-0.5-netbsd/PLIST
SHAR_EOF
  else
    shar_count="`LC_ALL= LC_CTYPE= LANG= wc -c < 'thy-0.5-netbsd/PLIST'`"
    test 637 -eq "$shar_count" ||
    $echo 'thy-0.5-netbsd/PLIST:' 'original size' '637,' 'current size' "$shar_count!"
  fi
fi
rm -fr _sh06530
exit 0
>Release-Note:
>Audit-Trail:
>Unformatted: