head 1.17; access; symbols; locks; strict; comment @-- @; 1.17 date 2009.10.02.20.44.43; author rse; state Exp; branches; next 1.16; commitid pSNnQj17H9s6c06u; 1.16 date 2009.10.02.20.29.53; author rse; state Exp; branches; next 1.15; commitid eBac6qrudoC0706u; 1.15 date 2009.07.05.07.31.54; author rse; state Exp; branches; next 1.14; commitid A5NBcbsK5RStFuUt; 1.14 date 2009.05.20.21.44.05; author rse; state Exp; branches; next 1.13; commitid ZLT91X3vCjgvREOt; 1.13 date 2009.04.18.13.14.33; author rse; state Exp; branches; next 1.12; commitid 4pHXU27WTIGCZuKt; 1.12 date 2008.12.09.07.32.33; author rse; state Exp; branches; next 1.11; commitid Yx4AO1zoswiemLtt; 1.11 date 2008.11.26.19.29.57; author rse; state Exp; branches; next 1.10; commitid yHAq0CfCLZwfK9st; 1.10 date 2008.11.08.10.56.17; author rse; state Exp; branches; next 1.9; commitid 61RKraBdcwRTtNpt; 1.9 date 2008.01.01.15.03.15; author rse; state Exp; branches; next 1.8; commitid B8esaHJHoduuKILs; 1.8 date 2007.12.03.12.07.10; author rse; state Exp; branches; next 1.7; commitid 3nJxQZdDm63NPYHs; 1.7 date 2007.12.03.09.54.10; author rse; state Exp; branches; next 1.6; commitid 9acTmOCqAoJa6YHs; 1.6 date 2007.09.06.10.02.39; author rse; state Exp; branches; next 1.5; commitid 1KnrVwjtCT6rYEws; 1.5 date 2007.09.06.09.57.45; author rse; state Exp; branches; next 1.4; commitid 7PLpPDKp5SYLWEws; 1.4 date 2007.06.26.06.05.43; author rse; state Exp; branches; next 1.3; commitid NY0mEZ1C64TAYnns; 1.3 date 2007.06.22.16.24.51; author thl; state Exp; branches; next 1.2; commitid hoWTAK4fqlb1xVms; 1.2 date 2007.04.18.10.31.06; author rse; state Exp; branches; next 1.1; commitid HQtwvgfK91ZcFxes; 1.1 date 2007.04.16.20.28.53; author rse; state Exp; branches; next ; commitid mVgscHDGCehh2les; desc @@ 1.17 log @fix dependency @ text @## ## punbb.spec -- OpenPKG RPM Package Specification ## Copyright (c) 2000-2009 OpenPKG Foundation e.V. ## ## 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 version %define V_opkg 1.3.4 %define V_dist 1.3.4 # package information Name: punbb Summary: Web Discussion Board URL: http://www.punbb.org/ Vendor: Rickard Andersson et al. Packager: OpenPKG Foundation e.V. Distribution: OpenPKG Community Class: EVAL Group: CMS License: GPL Version: %{V_opkg} Release: 20091002 # list of sources Source0: http://punbb.informer.com/download/punbb-%{V_dist}.tar.gz Source1: punbb-apache.conf Source2: punbb-setup.sh Source3: rc.punbb Patch0: punbb.patch # build information Prefix: %{l_prefix} BuildRoot: %{l_buildroot} BuildPreReq: OpenPKG, openpkg >= 20060823 PreReq: OpenPKG, openpkg >= 20060823 PreReq: apache PreReq: apache-php PreReq: apache-php::with_pgsql = yes PreReq: apache-php::with_zlib = yes PreReq: apache-php::with_xml = yes PreReq: apache-php::with_tokenizer = yes PreReq: pcre PreReq: pcre::with_utf8 = yes PreReq: postgresql >= 8.2.4-20070906 AutoReq: no AutoReqProv: no %description PunBB is a fast and lightweight PHP-powered discussion board. Its primary goals are to be faster, smaller and less graphically intensive as compared to other discussion boards. PunBB has fewer features than many other discussion boards, but is generally faster and outputs smaller, semantically correct XHTML-compliant pages. %track prog punbb = { version = %{V_dist} url = http://punbb.informer.com/downloads.php regex = punbb-(__VER__)\.tar\.gz } %prep %setup -q -n punbb-%{V_dist} %patch -p0 %build %install # create installation hierarchy rm -rf $RPM_BUILD_ROOT %{l_shtool} mkdir -f -p -m 755 \ $RPM_BUILD_ROOT%{l_prefix}/sbin \ $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \ $RPM_BUILD_ROOT%{l_prefix}/etc/punbb \ $RPM_BUILD_ROOT%{l_prefix}/lib/punbb/runtime \ $RPM_BUILD_ROOT%{l_prefix}/var/punbb/db \ $RPM_BUILD_ROOT%{l_prefix}/var/punbb/log \ $RPM_BUILD_ROOT%{l_prefix}/var/punbb/run # install main program files find . -name ".svn" -type d -print | xargs rm -rf find . -name "*.orig" -type f -print | xargs rm -f cp -rp * $RPM_BUILD_ROOT%{l_prefix}/lib/punbb/ cp -p .htaccess.dist $RPM_BUILD_ROOT%{l_prefix}/lib/punbb/.htaccess # install setup script %{l_shtool} install -c -m 755 %{l_value -s -a} \ %{SOURCE punbb-setup.sh} $RPM_BUILD_ROOT%{l_prefix}/sbin/punbb-setup # install run-command script %{l_shtool} install -c -m 755 %{l_value -s -a} \ -e 's;@@l_path@@;%{l_build_path};' \ %{SOURCE rc.punbb} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/ # install Apache configuration l_hostname=`%{l_shtool} echo -e %h` l_domainname=`%{l_shtool} echo -e %d | cut -c2-` %{l_shtool} install -c -m 644 %{l_value -s -a} \ -e "s;@@l_hostname@@;$l_hostname;g" \ -e "s;@@l_domainname@@;$l_domainname;g" \ %{SOURCE punbb-apache.conf} \ $RPM_BUILD_ROOT%{l_prefix}/etc/punbb/ # determine installation files %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ %{l_files_std} \ '%config %attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/etc/punbb/*' \ '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/lib/punbb' \ '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/lib/punbb/*' \ '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/lib/punbb/*/*' \ '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/lib/punbb/*/*/*' \ '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/punbb' \ '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/punbb/*' \ '%dir %attr(0700,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/punbb/db' %files -f files %clean rm -rf $RPM_BUILD_ROOT %post if [ $1 -eq 1 ]; then # display final hints on initial installation ln -s ../install $RPM_INSTALL_PREFIX/lib/punbb/runtime/install ( echo "To complete the PunBB installation:" echo "1. start the PostgreSQL RDBMS:" echo " \$ $RPM_INSTALL_PREFIX/bin/openpkg rc postgresql start" echo "2. create the PunBB database:" echo " \$ $RPM_INSTALL_PREFIX/sbin/punbb-setup install" echo "3. start the PunBB Apache:" echo " \$ $RPM_INSTALL_PREFIX/bin/openpkg rc punbb start" echo "4. install the PunBB database by accessing the" echo " following URL and proceeding through its menus:" echo " http://localhost:8080/punbb/admin/install.php" echo "5. cleanup after installation to enable run-time:" echo " \$ rm -f $RPM_INSTALL_PREFIX/lib/punbb/admin/install.php" ) | %{l_rpmtool} msg -b -t notice elif [ $1 -eq 2 ]; then # after upgrade, restart service [ $1 -eq 2 ] || exit 0 eval `%{l_rc} punbb status 2>/dev/null` [ ".$punbb_active" = .yes ] && %{l_rc} punbb restart fi exit 0 %preun if [ $1 -eq 0 ]; then # before erase, stop service %{l_rc} punbb stop 2>/dev/null # destroy database $RPM_INSTALL_PREFIX/sbin/punbb-setup uninstall >/dev/null 2>&1 || true # remove run-time files rm -f $RPM_INSTALL_PREFIX/var/punbb/db/* >/dev/null 2>&1 || true rm -f $RPM_INSTALL_PREFIX/var/punbb/db/*/* >/dev/null 2>&1 || true rm -f $RPM_INSTALL_PREFIX/var/punbb/run/* >/dev/null 2>&1 || true rm -f $RPM_INSTALL_PREFIX/var/punbb/log/* >/dev/null 2>&1 || true fi exit 0 @ 1.16 log @cleanup packaging @ text @d58 1 @ 1.15 log @PCRE now always present in PHP @ text @d39 1 a39 1 Release: 20090705 d98 1 d150 1 a150 1 echo " http://localhost:8080/punbb/install.php" d152 1 a152 1 echo " \$ rm -f $RPM_INSTALL_PREFIX/lib/punbb/install.php" @ 1.14 log @upgrading package: punbb 1.3.2 -> 1.3.4 @ text @d39 1 a39 1 Release: 20090520 a56 1 PreReq: apache-php::with_pcre = yes @ 1.13 log @bump years in copyright messages @ text @d25 2 a26 2 %define V_opkg 1.3.2 %define V_dist 1.3.2 d39 1 a39 1 Release: 20081209 @ 1.12 log @upgrading package: punbb 1.3.1 -> 1.3.2 @ text @d3 1 a3 1 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. @ 1.11 log @upgrading package: punbb 1.3rc2 -> 1.3.1 @ text @d25 2 a26 2 %define V_opkg 1.3.1 %define V_dist 1.3.1 d39 1 a39 1 Release: 20081126 @ 1.10 log @upgrading package: punbb 1.3snap20071203 -> 1.3rc2 @ text @d25 2 a26 2 %define V_opkg 1.3rc2 %define V_dist 1.3-RC2 d39 1 a39 1 Release: 20081108 @ 1.9 log @Update package specifications according to OpenPKG year 2008 world order: http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html @ text @d24 4 d38 2 a39 2 Version: 1.3snap20071203 Release: 20080101 d42 1 a42 1 Source0: ftp://ftp.openpkg.org/sources/CPY/punbb/punbb-%{version}.tar.gz d74 3 a76 3 version = %{version} url = ftp://ftp.openpkg.org/sources/CPY/punbb/ regex = punbb-(\d+\.\d+snap\d+)\.tar\.gz d80 1 a80 1 %setup -q -n punbb a97 2 %{l_shtool} subst %{l_value -s -a} \ upload/install.php d99 2 a100 2 cp -rp upload/* $RPM_BUILD_ROOT%{l_prefix}/lib/punbb/ cp -p extras/.htaccess $RPM_BUILD_ROOT%{l_prefix}/lib/punbb/ @ 1.8 log @cleanup packaging @ text @d3 1 a3 2 ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. ## Copyright (c) 2000-2007 Ralf S. Engelschall d35 1 a35 1 Release: 20071203 @ 1.7 log @upgrading package: punbb 1.3snap20070906 -> 1.3snap20071203 @ text @d51 7 a57 6 PreReq: apache::with_mod_php = yes PreReq: apache::with_mod_php_pgsql = yes PreReq: apache::with_mod_php_zlib = yes PreReq: apache::with_mod_php_pcre = yes PreReq: apache::with_mod_php_xml = yes PreReq: pcre, pcre::with_utf8 = yes d144 1 a144 1 echo " \$ $RPM_INSTALL_PREFIX/sbin/punbb-setup" d166 3 @ 1.6 log @upgrading package: punbb 1.3snap20070416 -> 1.3snap20070906 @ text @d35 2 a36 2 Version: 1.3snap20070906 Release: 20070906 @ 1.5 log @switch to new pg_superuser.conf @ text @d35 1 a35 1 Version: 1.3snap20070416 @ 1.4 log @fix name of SSL module under Apache 2 world-order @ text @d36 1 a36 1 Release: 20070626 d57 1 @ 1.3 log @adopt more configs for apache2 @ text @d36 1 a36 1 Release: 20070622 @ 1.2 log @fix tracking @ text @d36 1 a36 1 Release: 20070418 @ 1.1 log @first cut for a PunBB package @ text @d36 1 a36 1 Release: 20070416 d71 1 a71 1 regex = punbb-(__VER__)\.tar\.gz @