mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
add RedHat Package Managment (RPM) spec files. So that users of
this package managment system can easily deploy prepacked version of bonsai.
This commit is contained in:
parent
60322cfe56
commit
ebaf8ad014
45
webtools/bonsai/bonsai-local-conf.spec
Normal file
45
webtools/bonsai/bonsai-local-conf.spec
Normal file
@ -0,0 +1,45 @@
|
||||
%define _prefix /var/www/cgi-bin/bonsai
|
||||
|
||||
# auto generate the version number based on the output of the date
|
||||
# command.
|
||||
|
||||
%define _version %(eval "date '+%Y%m%e'")
|
||||
|
||||
Summary: Development monitoring tool
|
||||
Name: bonsai-local-conf
|
||||
Version: %{_version}
|
||||
Release: 1
|
||||
Copyright: MPL
|
||||
Group: Development/Tools
|
||||
Source: tar://bonsai_local_conf.tar.gz
|
||||
Prefix: %{_prefix}
|
||||
Buildroot: /var/tmp/%{name}-root
|
||||
|
||||
%description
|
||||
|
||||
The local configuration files for bonsai. This package customizes
|
||||
bonsai for the local use. The bonsai package is genaric, this
|
||||
package contains all the discriptions of the local system by providing
|
||||
the data subdirectory files.
|
||||
|
||||
|
||||
%prep
|
||||
# empty prep
|
||||
|
||||
%build
|
||||
#empty build
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_prefix}
|
||||
|
||||
cd $RPM_BUILD_ROOT/%{_prefix}
|
||||
tar zxf %{_sourcedir}/bonsai_local_conf.tar.gz
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,apache,apache)
|
||||
%{_prefix}/data/*
|
63
webtools/bonsai/bonsai.spec
Normal file
63
webtools/bonsai/bonsai.spec
Normal file
@ -0,0 +1,63 @@
|
||||
%define _prefix /var/www/cgi-bin/bonsai
|
||||
|
||||
# auto generate the version number based on the output of the date
|
||||
# command.
|
||||
|
||||
%define _version %(eval "date '+%Y%m%e'")
|
||||
|
||||
Summary: Web and SQL interface to CVS
|
||||
Name: bonsai
|
||||
Version: %{_version}
|
||||
Release: 1
|
||||
Copyright: MPL
|
||||
Group: Development/Tools
|
||||
Source: cvs://:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot:mozilla/webtools/bonsai/bonsai.tar.gz
|
||||
Prereq: apache
|
||||
Prefix: %{_prefix}
|
||||
Buildroot: /var/tmp/%{name}-root
|
||||
|
||||
%description
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n bonsai
|
||||
|
||||
|
||||
%build
|
||||
|
||||
prefix='%{_prefix}' \
|
||||
./configure
|
||||
|
||||
make
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_prefix}
|
||||
|
||||
make PREFIX=$RPM_BUILD_ROOT/%{_prefix} \
|
||||
install
|
||||
|
||||
# the data directory needs to be group writable so that the cgi's can update
|
||||
# files in it. No other program needs to use this directory.
|
||||
|
||||
chmod 770 $RPM_BUILD_ROOT/%{_prefix}/data
|
||||
|
||||
# config files do not belong as part of this package,
|
||||
# they have their own package
|
||||
|
||||
rm -rf $RPM_BUILD_ROOT/%{_prefix}/data/*
|
||||
|
||||
|
||||
# the makefile makes two empty files by mistake
|
||||
|
||||
rm -rf $RPM_BUILD_ROOT/%{_prefix}/branchspam*
|
||||
|
||||
%clean
|
||||
#rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
# the data dir must be writable by the cgi process.
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_prefix}
|
||||
%defattr(-,apache,apache)
|
||||
%{_prefix}/data
|
Loading…
Reference in New Issue
Block a user