Ralf S. Engelschall 18 rokov pred
rodič
commit
a945e795ae
2 zmenil súbory, kde vykonal 0 pridanie a 166 odobranie
  1. 0 138
      ase/ase.spec
  2. 0 28
      ase/rc.ase

+ 0 - 138
ase/ase.spec

@@ -1,138 +0,0 @@
-##
-##  ase.spec -- OpenPKG RPM Package Specification
-##  Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
-##  Copyright (c) 2000-2007 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:         ase
-Summary:      Affiliation Services Environment
-URL:          http://www.ossp.org/pkg/tool/ase/
-Vendor:       The OSSP Project
-Packager:     OpenPKG Foundation e.V.
-Distribution: OpenPKG Community
-Class:        EVAL
-Group:        Web
-License:      GPL
-Version:      0.4.0
-Release:      20070416
-
-#   package options
-%option       with_client  yes
-%option       with_server  no
-
-#   list of sources
-Source0:      ftp://ftp.ossp.org/pkg/tool/ase/ase-%{version}.tar.gz
-Source1:      rc.ase
-
-#   build information
-Prefix:       %{l_prefix}
-BuildRoot:    %{l_buildroot}
-BuildPreReq:  OpenPKG, openpkg >= 20060513, make
-PreReq:       OpenPKG, openpkg >= 20060513
-PreReq:       perl
-%if "%{with_server}" == "yes"
-PreReq:       perl-dbi, perl-dbi::with_dbd_sqlite = yes, perl-dbix
-PreReq:       perl-util, perl-www, perl-gd, perl-mail, perl-sys, perl-crypto, perl-time
-PreReq:       uuid, uuid::with_perl = yes
-PreReq:       cfg, cfg::with_perl = yes
-%endif
-AutoReq:      no
-AutoReqProv:  no
-
-%description
-    OSSP ase is a Web service application for managing orginization
-    affiliation memberships. It provides the interactive account
-    enrollment, account recovery and login procedures. The
-    authentication can be performed by an arbitrary remote web service
-    with the help of a HTTP based RPC mechanism.
-
-%track
-    prog ase = {
-        version   = %{version}
-        url       = ftp://ftp.ossp.org/pkg/tool/ase/
-        regex     = ase-(__VER__)\.tar\.gz
-    }
-
-%prep
-    %setup -q
-
-%build
-    #   build program
-    %{l_make} %{l_mflags} \
-        PREFIX=%{l_prefix}
-
-%install
-    #   install program
-    rm -rf $RPM_BUILD_ROOT
-    %{l_make} %{l_mflags} \
-%if "%{with_client}" == "yes"
-        install-client \
-%endif
-%if "%{with_server}" == "yes"
-        install-server \
-%endif
-        DESTDIR=$RPM_BUILD_ROOT \
-        PREFIX=%{l_prefix}
-
-    #   install run-command script
-%if "%{with_server}" == "yes"
-    %{l_shtool} mkdir -f -p -m 755 \
-        $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
-    %{l_shtool} install -c -m 755 %{l_value -s -a} \
-        %{SOURCE rc.ase} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
-%endif
-
-    #   determine installation files
-    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
-%if "%{with_server}" == "yes"
-        %{l_files_std} \
-        '%config %{l_prefix}/etc/ase/*' \
-        '%attr(-,%{l_nusr},%{l_ngrp}) %{l_prefix}/var/ase'
-%else
-        %{l_files_std}
-%endif
-
-%files -f files
-
-%clean
-    rm -rf $RPM_BUILD_ROOT
-
-%post
-%if "%{with_server}" == "yes"
-    if [ $1 -eq 1 -o $1 -eq 2 ]; then
-        #   create or update database
-        $RPM_INSTALL_PREFIX/bin/ase db $RPM_INSTALL_PREFIX/var/ase/ase.db
-        chown %{l_nusr}:%{l_ngrp} $RPM_INSTALL_PREFIX/var/ase/ase.db     >/dev/null 2>&1 || true
-        chmod 644 %{l_nusr}:%{l_ngrp} $RPM_INSTALL_PREFIX/var/ase/ase.db >/dev/null 2>&1 || true
-    fi
-%endif
-    exit 0
-
-%preun
-%if "%{with_server}" == "yes"
-    if [ $1 -eq 0 ]; then
-        #   remove database
-        rm -f $RPM_INSTALL_PREFIX/var/ase/ase.db >/dev/null 2>&1 || true
-    fi
-%endif
-    exit 0
-

+ 0 - 28
ase/rc.ase

@@ -1,28 +0,0 @@
-#!@l_prefix@/bin/openpkg rc
-##
-##  rc.ase -- Run-Commands
-##
-
-%config
-    ase_enable="$openpkg_rc_def"
-    ase_url="http://localhost/openpkg-cgi/ase.cgi"
-
-%status -o
-    ase_usable="unknown"
-    ase_active="no"
-    echo "ase_enable=\"$ase_enable\""
-    echo "ase_usable=\"$ase_usable\""
-    echo "ase_active=\"$ase_active\""
-
-%hourly -u @l_nusr@
-    rcService ase enable yes || exit 0
-    @l_prefix@/lib/openpkg/curl -k -s \
-        "$ase_url?mode=cron;period=hourly" \
-        >/dev/null 2>&1|| true
-
-%daily -u @l_nusr@
-    rcService ase enable yes || exit 0
-    @l_prefix@/lib/openpkg/curl -k -s \
-        "$ase_url?mode=cron;period=daily" \
-        >/dev/null 2>&1 || true
-