Summary: tomcat 5.0.28
Name: tomcat
Version: 5.0.28
Release: 1
License: GPL
Group: Applications/Text
Source: tomcat-5.0.28.tar.gz
Source1: tomcat5
BuildRoot: %{_builddir}/%{name}
%description
My tomcat rpm installer
%prep
%setup -q
%build
%install
mkdir -p $RPM_BUILD_ROOT/usr/tomcat5
cp -fr %{_builddir}/tomcat-5.0.28/* $RPM_BUILD_ROOT/usr/tomcat5/
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d/
cp -f %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/
%clean
rm -rf $RPM_BUILD_ROOT
%post
chmod +x /etc/rc.d/init.d/tomcat5
chkconfig --add tomcat5
service tomcat5 start
%preun
service tomcat5 stop
%files
%defattr(-,root,root)
/usr/tomcat5
/etc/rc.d/init.d/tomcat5
2006-04-15
订阅:
博文评论 (Atom)
没有评论:
发表评论