|
|
@@ -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
|
|
|
-
|