[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
RPM spec
%define packagename minivend
%define packageversion 3.14
%define release 2
%define makeopts ""
%define makemakeropts ""
Name: %{packagename}
Version: %{packageversion}
Release: %{release}
Group: Networking/Daemons
Source: minivend-3.14.tar.gz
Copyright: GNU General Public License
BuildRoot: /var/tmp/minivend-3.14
Provides: %{packagename}
Summary: MiniVend -- online shopping cart
%description
MiniVend is the most powerful free shopping cart system available
today. Its features and power rival the costliest commercial systems.
MiniVend supports just about every need for a leading edge shopping
site. Online credit processing with CyberCash, Authorize.Net, and
PaymentNet.
A RedHat Apache installation is assumend -- any HTML paths will need
to be adjusted if that is not correct. To test the simple demo catalog open:
http://`hostname`/cgi-bin/simple
%prep
%build
%install
%clean
%pre
useradd -M -o -r -d /usr/lib/minivend -s /bin/bash -c "Minivend Daemon" minivend >/dev/null 2>&1 || :
%post
chown -R minivend.minivend /var/lib/minivend
chown minivend.minivend /var/log/minivend
chown minivend.minivend /home/httpd/cgi-bin/simple
chown -R minivend.minivend /usr/lib/minivend/admin
chmod g+s /var/lib/minivend/simple/config
chmod g+s /var/lib/minivend/simple/etc
chmod g+s /var/lib/minivend/simple/pages
chmod g+s /var/lib/minivend/simple/products
chmod g+s /var/lib/minivend/simple/session
chmod g+s /var/lib/minivend/simple/tmp
perl -pi -e '$h = `hostname`; chomp $h; s/localhost/$h/g' /var/lib/minivend/simple/catalog.cfg /usr/lib/minivend/bin/check /home/httpd/html/simple/index.html /usr/lib/minivend/bin/makecat.cfg
chmod 4755 /home/httpd/cgi-bin/simple
/sbin/chkconfig --add minivend
/etc/rc.d/init.d/minivend start
%postun
/etc/rc.d/init.d/minivend stop
if [ $1 = 0 ] ; then
userdel minivend >/dev/null 2>&1 || :
rm -f /etc/rc.d/rc*.d/*minivend
fi
%files
/etc/minivend.cfg
/usr/lib/minivend
/var/log/minivend
/var/lib/minivend
/home/httpd/cgi-bin/simple
/home/httpd/html/simple
%config /etc/rc.d/init.d/minivend
--
Mike Heins http://www.minivend.com/ ___
Internet Robotics |_ _|____
131 Willow Lane, Floor 2 | || _ \
It's a little-known fact Oxford, OH 45056 | || |_) |
that the Y1K problem caused <mikeh@minivend.com> |___| _ <
the Dark Ages. -- unknown 513.523.7621 FAX 7501 |_| \_\