Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removing obsolete RPM build files (now incorporated into SPECS/interc…

…hange.spec).
  • Loading branch information...
commit 994cbb74461f56b753e38c255182b0913175d3bf 1 parent 0086b81
Eric Zarko authored
Showing with 0 additions and 237 deletions.
  1. +0 −83 dist/build/makecat.redhat
  2. +0 −154 dist/build/makedirs.redhat
View
83 dist/build/makecat.redhat
@@ -1,83 +0,0 @@
-#!/bin/sh
-
-HOST=`hostname`
-
-if test -n "$RPM_BUILD_ROOT"
-then
- VENDROOT=/usr/lib/interchange
- BASEDIR=/var/lib/interchange
- RELOCATE="relocate=$RPM_BUILD_ROOT"
- HOST=RPM_CHANGE_HOST
-elif test -d /usr/lib/interchange -a -w /usr/lib/interchange
-then
- VENDROOT=/usr/lib/interchange
- BASEDIR=/var/lib/interchange
-elif test -d /usr/lib/interchange -a -w /usr/lib/interchange
-then
- VENDROOT=$HOME/interchange
-else
- echo "Can't find interchange directory."
- exit 1
-fi
-
-if test -d /var/www/html -a -w /var/www/html
-then
- DOCROOT=/var/www/html
- CGIDIR=/var/www/cgi-bin
- SERVERCONF=/etc/httpd/conf/httpd.conf
- CGIBASE=/cgi-bin
-elif test -d /home/httpd/html -a -w /home/httpd/html
-then
- DOCROOT=/home/httpd/html
- CGIDIR=/home/httpd/cgi-bin
- SERVERCONF=/etc/httpd/conf/httpd.conf
- CGIBASE=/cgi-bin
-elif test -d /usr/local/apache/htdocs -a -w /usr/local/apache/htdocs
-then
- DOCROOT=/usr/local/apache/htdocs
- CGIDIR=/usr/local/apache/cgi-bin
- SERVERCONF=/usr/local/apache/conf/httpd.conf
- CGIBASE=/cgi-bin
-else
- echo "Can't find HTTP root."
- exit 1
-fi
-
-if test -z "$1"
-then
- set construct
-fi
-
-for i in $*
-do
- mkdir -p $RPM_BUILD_ROOT$CGIDIR #2>/dev/null
- mkdir -p $RPM_BUILD_ROOT$BASEDIR/$i #2>/dev/null
- MAKECATCMD="bin/makecat \
- -F \
- --cgibase=$CGIBASE \
- --basedir=$BASEDIR \
- --documentroot=$DOCROOT \
- --sharedir=$DOCROOT \
- --shareurl=/ \
- --interchangeuser=interch \
- --interchangegroup=interch \
- --serverconf=$SERVERCONF \
- --vendroot=$VENDROOT \
- --catroot=$BASEDIR/$i \
- --cgidir=$CGIDIR \
- --$RELOCATE \
- --servername=$HOST \
- --cgiurl=$CGIBASE/$i \
- --demotype=$i \
- --mailorderto=interch@$HOST \
- --catuser=interch \
- --permtype=user \
- --samplehtml=$DOCROOT/$i \
- --imagedir=$DOCROOT/$i/images \
- --imageurl=/$i/images \
- --linkmode=UNIX \
- --sampleurl=http://$HOST/$i
- --catalogname=$i"
- echo $MAKECATCMD
- $MAKECATCMD
-done
View
154 dist/build/makedirs.redhat
@@ -1,154 +0,0 @@
-#!/bin/sh
-
-if test -n "$RPM_RUN_BASE"
-then
- RUNBASE=$RPM_RUN_BASE
-else
- RUNBASE=/var/run
-fi
-
-if test -n "$RPM_LOG_BASE"
-then
- LOGBASE=$RPM_LOG_BASE
-else
- LOGBASE=/var/log
-fi
-
-if test -n "$RPM_LIB_BASE"
-then
- LIBBASE=$RPM_LIB_BASE
-else
- LIBBASE=/var/lib
-fi
-
-if test -n "$RPM_ETC_BASE"
-then
- ETCBASE=$RPM_ETC_BASE
-else
- ETCBASE=/etc
-fi
-
-HASICUSER=`grep '^interch:' /etc/passwd`
-if test -n "$RPM_BUILD_ROOT"
-then
- echo
-elif test -z "$HASICUSER"
-then
- adduser -d $LIBBASE/interchange -c "Interchange daemon" -r interch
-fi
-
-ETCDIRS="rc.d/init.d logrotate.d"
-LIBDIRS="interchange"
-ICDIRS="$RPM_BUILD_ROOT$RUNBASE/interchange $RPM_BUILD_ROOT$LOGBASE/interchange"
-
-for i in $ETCDIRS
-do
- mkdir -p $RPM_BUILD_ROOT$ETCBASE/$i
-done
-
-for i in $LIBDIRS
-do
- mkdir -p $RPM_BUILD_ROOT$LIBBASE/$i
-done
-
-for i in $ICDIRS
-do
- mkdir -p $i
- if test -z "$RPM_BUILD_DIR"
- then
- chown interch.interch $i
- chmod 751 $i
- fi
-done
-
-if test -n "$RPM_BUILD_ROOT"
-then
- mkdir -p $RPM_BUILD_ROOT$ETCBASE/rc.d/init.d
- mkdir -p $RPM_BUILD_ROOT/usr/sbin
-fi
-
-cat > $RPM_BUILD_ROOT$ETCBASE/rc.d/init.d/interchange <<EOF
-#!/bin/sh
-#
-# Startup script for Interchange
-#
-# chkconfig: 345 96 4
-# description: Interchange is a database access and HTML templating system \
-# focused on ecommerce
-# processname: interchange
-# pidfile: $RUNBASE/interchange/interchange.pid
-# config: $ETCBASE/interchange.cfg
-# config: $LIBBASE/interchange/*/catalog.cfg
-
-
-# Source function library.
-. /etc/rc.d/init.d/functions
-
-# Handle /usr/local
-PATH=\$PATH:/usr/local/bin
-
-# See how we were called.
-case "\$1" in
- start)
- echo -n "Starting interchange: "
- daemon interchange
- echo
- touch /var/lock/subsys/interchange
- ;;
- stop)
- echo -n "Shutting down interchange: "
- killproc interchange
- echo
- rm -f /var/lock/subsys/interchange
- rm -f $RUNBASE/interchange/interchange.pid
- ;;
- status)
- status interchange
- ;;
- restart)
- \$0 stop
- \$0 start
- ;;
- *)
- echo "Usage: \$0 {start|stop|restart|status}"
- exit 1
-esac
-
-exit 0
-EOF
-
-cat > $RPM_BUILD_ROOT/etc/logrotate.d/interchange <<EOF
-/var/log/interchange/* {
- rotate 4
- weekly
- compress
-}
-EOF
-
-cat > $RPM_BUILD_ROOT/usr/sbin/interchange <<EOF
-#!/bin/sh
-
-RUNSTRING="/usr/lib/interchange/bin/interchange -q \\
- -configfile $ETCBASE/interchange.cfg \\
- -pidfile $RUNBASE/interchange/interchange.pid \\
- -logfile $LOGBASE/interchange/error.log \\
- ErrorFile=$LOGBASE/interchange/error.log \\
- PIDfile=$RUNBASE/interchange/interchange.pid \\
- -confdir $RUNBASE/interchange \\
- SocketFile=$RUNBASE/interchange/socket"
-
-USER=\`whoami\`
-if test \$USER = "root"
-then
- exec su interch -c "\$RUNSTRING \$*"
-else
- exec \$RUNSTRING \$*
-fi
-EOF
-
-chmod +x $RPM_BUILD_ROOT$ETCBASE/rc.d/init.d/interchange $RPM_BUILD_ROOT/usr/sbin/interchange
-
-if test -z "$RPM_BUILD_ROOT"
-then
- /sbin/chkconfig interchange reset
-fi
Please sign in to comment.
Something went wrong with that request. Please try again.