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: 06-Apr-2007 15:57:58
Branch: HEAD Handle: 2007040614575700
Added files:
openpkg-src/ase rc.ase
Modified files:
openpkg-src/ase ase.spec
Log:
upgrading package: ase 0.1.8 -> 0.2.0
Summary:
Revision Changes Path
1.7 +66 -54 openpkg-src/ase/ase.spec
1.1 +28 -0 openpkg-src/ase/rc.ase
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/ase/ase.spec
============================================================================
$ cvs diff -u -r1.6 -r1.7 ase.spec
--- openpkg-src/ase/ase.spec 12 Jan 2007 13:53:39 -0000 1.6
+++ openpkg-src/ase/ase.spec 6 Apr 2007 13:57:57 -0000 1.7
@@ -25,37 +25,48 @@
# package information
Name: ase
Summary: Affiliation Services Environment
-URL: http://www.ase.org/
+URL: http://www.ossp.org/pkg/tool/ase/
Vendor: The OSSP Project
Packager: OpenPKG Foundation e.V.
Distribution: OpenPKG Community
-Class: JUNK
+Class: EVAL
Group: Web
License: GPL
-Version: 0.1.8
-Release: 20070112
+Version: 0.2.0
+Release: 20070406
+
+# 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 >= 20040130, sqlite, make
-PreReq: OpenPKG, openpkg >= 20040130, apache, perl
-PreReq: perl-gd, perl-locale, perl-mail, perl-sys, perl-util,
perl-www, perl-crypto, perl-db
-PreReq: perl-dbi, perl-dbi::with_dbd_sqlite = yes
+BuildPreReq: OpenPKG, openpkg >= 20040130, make
+PreReq: OpenPKG, openpkg >= 20040130
+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...
+ 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 = {
- disabled
- comment = "rse: JUNK class package"
version = %{version}
url = ftp://ftp.ossp.org/pkg/tool/ase/
regex = ase-(__VER__)\.tar\.gz
@@ -65,59 +76,60 @@
%setup -q
%build
- %{l_make} ase.db
%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
- %{l_shtool} mkdir -p -m 755 \
- $RPM_BUILD_ROOT%{l_prefix}/bin \
- $RPM_BUILD_ROOT%{l_prefix}/cgi \
- $RPM_BUILD_ROOT%{l_prefix}/etc/ase \
- $RPM_BUILD_ROOT%{l_prefix}/libexec/ase \
- $RPM_BUILD_ROOT%{l_prefix}/share/ase \
- $RPM_BUILD_ROOT%{l_prefix}/var/ase
-
- %{l_shtool} install -c -m 664 \
- ase.db ase.sdb \
- $RPM_BUILD_ROOT%{l_prefix}/var/ase/
-
- %{l_shtool} install -c -m 755 \
- -e 's;/usr/bin/env perl;%{l_prefix}/bin/perl;' \
- -e 's;\(-path_libdir => .\).\(.,\);\1%{l_prefix}/libexec/ase\2;' \
- -e 's;\(-path_vardir => .\).\(.,\);\1%{l_prefix}/var/ase\2;' \
- -e 's;\(-path_datdir => .\).\(.,\);\1%{l_prefix}/etc/ase\2;' \
- ase.pl \
- $RPM_BUILD_ROOT%{l_prefix}/bin/ase
-
- %{l_shtool} install -c -m 755 \
- -e 's;/usr/bin/env perl;%{l_prefix}/bin/perl;' \
- -e 's;\(-path_libdir => .\).\(.,\);\1%{l_prefix}/libexec/ase\2;' \
- -e 's;\(-path_vardir => .\).\(.,\);\1%{l_prefix}/var/ase\2;' \
- -e 's;\(-path_datdir => .\).\(.,\);\1%{l_prefix}/etc/ase\2;' \
- ase.cgi \
- $RPM_BUILD_ROOT%{l_prefix}/cgi/
-
- %{l_shtool} install -c -m 755 \
- ase.*.pl \
- $RPM_BUILD_ROOT%{l_prefix}/libexec/ase/
-
- %{l_shtool} install -c -m 755 \
- ase.sql \
- $RPM_BUILD_ROOT%{l_prefix}/share/ase/
-
- %{l_shtool} install -c -m 744 \
- ase.css ase.html ase.img.*.png \
- $RPM_BUILD_ROOT%{l_prefix}/etc/ase/
-
+ # determine installation files
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
+%if "%{with_server}" == "yes"
%{l_files_std} \
'%config %{l_prefix}/etc/ase/*' \
- '%config(noreplace) %attr(-,%{l_nusr},%{l_ngrp})
%{l_prefix}/var/ase/*' \
- '%dir %attr(-,%{l_nusr},%{l_ngrp}) %{l_prefix}/var/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
+
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/ase/rc.ase
============================================================================
$ cvs diff -u -r0 -r1.1 rc.ase
--- /dev/null 2007-04-06 15:57:31 +0200
+++ rc.ase 2007-04-06 15:57:58 +0200
@@ -0,0 +1,28 @@
[EMAIL PROTECTED]@/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 -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 -s \
+ "$ase_url?mode=cron;period=daily" \
+ >/dev/null 2>&1 || true
+
@@ .
______________________________________________________________________
OpenPKG http://openpkg.org
CVS Repository Commit List [email protected]