Search
j0ke.net Open Build Service
>
Projects
>
vhcs
>
vhcs2
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 46
[-]
[+]
Changed
vhcs2.spec
@@ -2,7 +2,7 @@ Name: vhcs2 Version: 2.4.8 %{?stable:Release: 1.%{?dist}} -%{?unstable:Release: 20080810} +%{?unstable:Release: 20080829} Summary: VHCS -- virtual hosting control system Summary(de): VHCS -- Virtuelles Hosting Kontrollsystem Group: System @@ -412,7 +412,8 @@ ################################################################################# %pre export PREVER=`rpm -q vhcs2|awk -F- '{print $2}'` -if [ -n "${PREVER}" ] ; then +#if [ -n "${PREVER}" ] ; then +if [ "$1" == "1" ]; then # backup vhcs2 configured files if [ -f /etc/proftpd.conf ] ; then cp -f /etc/proftpd.conf /etc/proftpd.conf-vhcs2-configured @@ -441,7 +442,8 @@ PREVER=`rpm -q vhcs2|awk -F- '{print $2}'|head -n1` PREREL=`rpm -q vhcs2|awk -F- '{print $3} '| awk -F. '{print $1"."$2}'|head -n1` # if this is a new installation -if [ "${PREVER}" == "%{version}" ] && [ "${PREREL}" == "%{release}" ] ; then +#if [ "${PREVER}" == "%{version}" ] && [ "${PREREL}" == "%{release}" ] ; then +if [ "$1" == "1" ]; then [ -n "%{devdeb}" ] && echo "no old version detected in post run" # backup existing configs and replace with vhcs2 default configurations if [ -f /etc/proftpd.conf ] ; then @@ -492,8 +494,8 @@ [ -n "%{devdeb}" ] && echo "patching file /etc/sysconfig/named ..." cd / patch -t -p0 < %{_docdir}/%{name}/%{name}_sysconfig_named.diff - -else +fi +if [ "$1" == "2" ] ; then [ -n "%{devdeb}" ] && echo "this is an update - postrun line placeholder 1" [ -n "%{devdeb}" ] && echo "this is an update - postrun ${PREVER} # ${PREREL}" [ -n "%{devdeb}" ] && echo "this is an update - postrun line placeholder 2" @@ -608,7 +610,8 @@ [ -n "%{devdeb}" ] && echo "pre-un : ${PREVER} ${PREREL}" # this is uninstall - no update -if [ "${PREVER}" == "%{version}" ] && [ "${PREREL}" == "%{release}" ] ; then +#if [ "${PREVER}" == "%{version}" ] && [ "${PREREL}" == "%{release}" ] ; then +if [ "$1" == "0" ]; then cd / patch -t -p0 -R < %{_docdir}/%{name}/%{name}_sysconfig_named.diff @@ -639,6 +642,11 @@ # CHANGELOG ################################################################################# %changelog +* Fri Aug 29 2008 Carsten Schoene <vhcs@j0ke.net> +- build svn trunk r810 + - phpmyadmin update to 2.11.9.0 +- changed install/update/remove checks in specfile, now uses $1 + * Sun Aug 10 2008 Carsten Schoene <vhcs@j0ke.net> - build svn trunk r808 - phpmyadmin update to 2.11.8.1
Added
vhcs2-2.4.8-20080829.tar.bz2
^