OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   16-Apr-2005 22:58:39
  Branch: HEAD                             Handle: 2005041621583900

  Added files:
    openpkg-src/cgiirc      cgiirc.access cgiirc.config cgiirc.spec

  Log:
    new package: cgiirc 0.5.6 (CGI Interface to IRC)

  Summary:
    Revision    Changes     Path
    1.1         +13 -0      openpkg-src/cgiirc/cgiirc.access
    1.1         +77 -0      openpkg-src/cgiirc/cgiirc.config
    1.1         +132 -0     openpkg-src/cgiirc/cgiirc.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/cgiirc/cgiirc.access
  ============================================================================
  $ cvs diff -u -r0 -r1.1 cgiirc.access
  --- /dev/null 2005-04-16 22:55:00 +0200
  +++ cgiirc.access     2005-04-16 22:58:39 +0200
  @@ -0,0 +1,13 @@
  +##
  +##  cgiirc.access -- CGI:IRC Access Control List
  +##  Format: <ipmask> <connection-limit>
  +##
  +
  +#192.168.0.0/16 0  # deny
  +#172.16.0.0/12  0  # deny
  +#10.0.0.0/8     0  # deny
  +
  +127.0.0.1/8        # allow (w/o  connection limit)
  +*.example.com      # allow (w/o  connection limit)
  +*.*.*.*         4  # allow (with connection limit)
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/cgiirc/cgiirc.config
  ============================================================================
  $ cvs diff -u -r0 -r1.1 cgiirc.config
  --- /dev/null 2005-04-16 22:55:00 +0200
  +++ cgiirc.config     2005-04-16 22:58:39 +0200
  @@ -0,0 +1,77 @@
  +##
  +##  cgiirc.config -- CGI:IRC Configuration
  +##
  +
  +##
  +##  default settings on login form
  +##
  +
  +default_server       = irc.example.com
  +default_port         = 6667
  +default_channel      = #example
  +default_name         = CGI:IRC User
  +default_nick         = CGI???
  +default_user         = cgiirc
  +#quit_message        = CGI:IRC
  +#quit_prefix         = CGI:IRC
  +
  +##
  +##  system setup options
  +##
  +
  +script_nph            = nph-irc.cgi
  +script_form           = client-perl.cgi
  +script_login          = irc.cgi
  +image_path            = images
  +socket_prefix         = /tmp/cgiirc-
  +#irc charset          = iso-8859-1
  +#vhost                = 0.0.0.0
  +#vhost6               = ::
  +#prefer_v6            = 0
  +
  +##
  +##  access related settings
  +##
  +
  +encoded_ip            = 3
  +#ip_access_file       = @l_prefix@/etc/cgiirc/ipaccess
  +max_users             = 20
  +allow_non_default     = 1
  +access_channel        = .*
  +access_server         = .*
  +access_port           = .*
  +access_command        = !quote
  +session_timeout       = 3600
  +#admin password       = 57I/Y3rCPImxA
  +#server_password      = cgiirc
  +#extra_userinfo       = 1
  +#realhost_as_password = 1
  +#dnsbl                = rbl.example.com
  +#form_redirect        = http://www.example.com/form.html
  +
  +##
  +##  appearence settings
  +##
  +
  +login basic           = Nickname, Channel, Server
  +login advanced        = Nickname, Realname, Channel, Server, Password, 
Format, Character set
  +format                = default
  +#output none          = raw 439, reply welcome, reply yourhost, reply 
created, reply myinfo, reply protoctl, raw 251, raw 252, raw 254, raw 255, raw 
265, raw 266, looking up, connecting, reply motd start, reply motd end, reply 
names
  +#output active        = reply whois
  +#output status        = reply names
  +#removecolor          = 0
  +#linkshorten          = 120
  +#disable_format_input = 1
  +
  +##
  +##  interface settings
  +##
  +
  +#interface timestamp  = 1
  +#interface smilies    = 1
  +#interface font       = monospace
  +#interface shownick   = 1
  +#interface scrollback = 1
  +#interface actsound   = 1
  +#interface joinsound  = 1
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/cgiirc/cgiirc.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 cgiirc.spec
  --- /dev/null 2005-04-16 22:55:00 +0200
  +++ cgiirc.spec       2005-04-16 22:58:39 +0200
  @@ -0,0 +1,132 @@
  +##
  +##  cgiirc.spec -- OpenPKG RPM Package Specification
  +##  Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
  +##  Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.com/>
  +##
  +##  Permission to use, copy, modify, and distribute this software for
  +##  any purpose with or without fee is hereby granted, provided that
  +##  the above copyright notice and this permission notice appear in all
  +##  copies.
  +##
  +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  +##  SUCH DAMAGE.
  +##
  +
  +#   package information
  +Name:         cgiirc
  +Summary:      CGI Interface to IRC
  +URL:          http://cgiirc.sourceforge.net/
  +Vendor:       David Leadbeater
  +Packager:     OpenPKG
  +Distribution: OpenPKG
  +Class:        EVAL
  +Group:        Web
  +License:      Open Source
  +Version:      0.5.6
  +Release:      20050416
  +
  +#   list of sources
  +Source0:      http://osdn.dl.sourceforge.net/cgiirc/cgiirc-%{version}.tar.gz
  +Source1:      cgiirc.config
  +Source2:      cgiirc.access
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20040130
  +PreReq:       OpenPKG, openpkg >= 20040130, perl, apache
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    CGI:IRC is a Perl/CGI program that lets you access Internet Relay
  +    Chat (IRC) from a web browser, it is designed to be flexible and has
  +    many uses such as an IRC gateway for an IRC network, a chat-room for
  +    a website or to access IRC when stuck behind a restrictive firewall.
  +
  +%track
  +    prog cgiirc = {
  +        version   = %{version}
  +        url       = http://prdownloads.sourceforge.net/cgiirc/
  +        regex     = cgiirc-(__VER__)\.tar\.gz
  +    }
  +
  +%prep
  +    %setup -q
  +
  +%build
  +
  +%install
  +    #   create installation hierarchy
  +    rm -rf $RPM_BUILD_ROOT
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/cgiirc \
  +        $RPM_BUILD_ROOT%{l_prefix}/share/cgiirc
  +
  +    #   install components
  +    cp -rp * $RPM_BUILD_ROOT%{l_prefix}/share/cgiirc/
  +    ( cd $RPM_BUILD_ROOT%{l_prefix}/share/cgiirc
  +      mv cgiirc.config.full cgiirc.config.sample
  +      rm -rf cgiirc.config
  +      rm -f ipaccess.example
  +      rm -f README client.c
  +      rm -rf docs
  +      %{l_shtool} subst \
  +          -e 's;/usr/bin/perl;%{l_prefix}/bin/perl;g' \
  +          -e 's;/etc/cgiirc/;%{l_prefix}/etc/cgiirc/;g' \
  +          *.cgi
  +      mv formats $RPM_BUILD_ROOT%{l_prefix}/etc/cgiirc/
  +    ) || exit $?
  +
  +    #   install default configuration
  +    %{l_shtool} install -c -m 644 %{l_value -s -a} \
  +        %{SOURCE cgiirc.config} %{SOURCE cgiirc.access} \
  +        $RPM_BUILD_ROOT%{l_prefix}/etc/cgiirc/
  +
  +    #   determine installation files
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  +        %{l_files_std} \
  +        '%config %{l_prefix}/etc/cgiirc/*' \
  +        '%config %{l_prefix}/etc/cgiirc/*/*'
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  +%post
  +    if [ ".$1" = .1 ]; then
  +        #   add hook to Apache configuration
  +        apacheconf="$RPM_INSTALL_PREFIX/etc/apache/apache.conf"
  +        if [ -f $apacheconf ]; then
  +            ( echo "Alias /cgiirc $RPM_INSTALL_PREFIX/share/cgiirc"
  +              echo "<Directory $RPM_INSTALL_PREFIX/share/cgiirc>"
  +              echo "    DirectoryIndex irc.cgi"
  +              echo "    Options +ExecCGI"
  +              echo "    AllowOverride All"
  +              echo "</Directory>"
  +            ) | $RPM_INSTALL_PREFIX/lib/openpkg/rpmtool config \
  +                    -a -i "$RPM_INSTALL_PREFIX:cgiirc" $apacheconf
  +        fi
  +    fi
  +
  +%postun
  +    if [ ".$1" = .0 ]; then
  +        #   remove hook from Apache configuration
  +        apacheconf="$RPM_INSTALL_PREFIX/etc/apache/apache.conf"
  +        if [ -f $apacheconf ]; then
  +            $RPM_INSTALL_PREFIX/lib/openpkg/rpmtool config \
  +                -r -i "$RPM_INSTALL_PREFIX:cgiirc" $apacheconf
  +        fi
  +    fi
  +
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to