rpms/rt3/devel README.fedora.in, NONE, 1.1 rt-3.4.1-I18N.diff, NONE, 1.1 rt-3.4.1-config.diff, NONE, 1.1 rt3-filter-provides.sh, NONE, 1.1 rt3-filter-requires.sh, NONE, 1.1 rt3.conf.in, NONE, 1.1 rt3.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Ralf Corsépius (corsepiu) fedora-extras-commits at redhat.com
Sat Oct 29 01:46:45 UTC 2005


Author: corsepiu

Update of /cvs/extras/rpms/rt3/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19725/devel

Modified Files:
	.cvsignore sources 
Added Files:
	README.fedora.in rt-3.4.1-I18N.diff rt-3.4.1-config.diff 
	rt3-filter-provides.sh rt3-filter-requires.sh rt3.conf.in 
	rt3.spec 
Log Message:
auto-import rt3-3.4.4-8 on branch devel from rt3-3.4.4-8.src.rpm


--- NEW FILE README.fedora.in ---
Some random notes on rt3 on Fedora:


Finalizing the installation
===========================

The default configuration is set up for a mysql based rt3 system. 
It requires additional steps to be performed by the sysadmin to be 
fully functional. 

If you have never set up rt3 before, proceed as follows:
1. Log-in to the server as root

2. Install a mysql server:
# yum install mysql-server

3. Startup the mysql server:
# /sbin/service mysqld start

4. Set up the mysql server.
If not already done, at minimum, you will want to set up a mysql root 
password:
# mysqladmin -u root password <mysql-root-password>

5. Edit /etc/rt3/RT_SiteConfig.pm to meet your demands.
You will want to compare RT_SiteConfig.pm against RT_Config.pm and
add customized versions of those settings from RT_Config.pm to 
RT_SiteConfig.pm.

In particular, you probably will want to add customized versions of
those setting containing "example.com" to your RT_SiteConfig.pm.

6. Initialize rt3's mysql database:
# /usr/sbin/rt-setup-database --action init \
  --dba-password <mysql-root-password>

7. Start/restart apache/httpd:
# /sbin/service httpd start
rsp.
# /sbin/service httpd restart

8. Try to log in:
At this point, you should be able to login into rt3 on your rt3-host via
its web interface as rt3-administrator (root), from an arbitrary host with
http:-access to your rt3-host:
e.g.:
<your-favorite-browser> http://<rt3-host>/rt3

You should be greeted with a login window. Login with 
Username: root, Password: password.

The next step should be to change your rt3's "root" account's password,
otherwise anybody with web access to your site will be able to abuse 
your site.

Afterwards, you should be ready to create user accounts, configure 
the mail-interface etc.


SELinux
=======

Hosts running SELinux will encounter an error when attempting to access Request
Tracker.  This is because the apache user does not have permission to write to
the Request Tracker cache directory.  To grant this permission, run the
following command as root:

    # chcon -R -t httpd_cache_t @RT3_CACHEDIR@

This step should only be necessary until the SELinux security policies are
updated to grant this permission automatically.

Caution: SELinux relabeling will reset SELinux permissions and can render your 
rt3 installation non-functional.

rt-3.4.1-I18N.diff:

--- NEW FILE rt-3.4.1-I18N.diff ---
--- rt-3.4.1.orig/lib/RT/I18N.pm	2005-04-08 06:40:50.157094885 +0200
+++ rt-3.4.1/lib/RT/I18N.pm	2005-04-08 06:40:50.158094583 +0200
@@ -118,6 +118,7 @@
 	_decode	=> 1, map {
 	    $_	=> [
 		Gettext => (substr(__FILE__, 0, -3) . "/$_.po"),
+		Gettext => (substr(__FILE__, 0, -3) . "/*/$_.po"),
 		Gettext => "$RT::LocalLexiconPath/*/$_.po",
 		Gettext => "$RT::LocalLexiconPath/$_.po",
 	    ],

rt-3.4.1-config.diff:

--- NEW FILE rt-3.4.1-config.diff ---
--- rt-3.4.1.orig/etc/RT_SiteConfig.pm	2004-05-07 02:33:00.000000000 +0200
+++ rt-3.4.1/etc/RT_SiteConfig.pm	2005-03-31 07:07:01.000000000 +0200
@@ -1 +1,3 @@
+Set($WebPath , "/rt3");
+
 1;


--- NEW FILE rt3-filter-provides.sh ---
#!/bin/sh

# /usr/lib/rpm/perl.prov $* >> /tmp/log

/usr/lib/rpm/perl.prov $* |\
    sed -e '/^perl(RT)$/d' \
    	-e '/^perl(HTML::Mason/d' \
        -e '/^perl(Log::Dispatch/d'


--- NEW FILE rt3-filter-requires.sh ---
#!/bin/sh

/usr/lib/rpm/perl.req $* |\
    sed -e '/perl(Encode::compat)/d' \
        -e '/perl(RT::/d'


--- NEW FILE rt3.conf.in ---
Alias /rt3 "@RT3_WWWDIR@"

PerlRequire @RT3_BINDIR@/webmux.pl

<Directory "@RT3_WWWDIR@">
  AllowOverride All
  Options ExecCGI FollowSymLinks

  RewriteEngine On
  RedirectMatch permanent (.*)/$ $1/index.html
  AddDefaultCharset UTF-8
  SetHandler perl-script
  PerlHandler RT::Mason
</Directory>


--- NEW FILE rt3.spec ---
#
# Copyright (c) 2005 Ralf Corsepius, Ulm, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

%define RT3_BINDIR		%{_sbindir}
%define RT3_LIBDIR		%{perl_vendorlib}
%define RT3_WWWDIR		%{_localstatedir}/www/rt3
%define RT3_LOGDIR		%{_localstatedir}/log/rt3
%define RT3_CACHEDIR		%{_localstatedir}/cache/rt3
%define RT3_LOCALSTATEDIR	%{_localstatedir}/lib/rt3

Name:		rt3
Version:	3.4.4
Release:	8%{?dist}
Summary:	Request tracker 3

Group:		Applications/Internet
License:	GPL
URL:		http://www.bestpractical.com/rt
Source0:	http://www.bestpractical.com/pub/rt/release/rt-%{version}.tar.gz
Source1:	rt3-filter-provides.sh
Source2:	rt3-filter-requires.sh
Source3:	rt3.conf.in
Source4:	README.fedora.in

Patch0:		rt-3.4.1-config.diff
Patch1:		rt-3.4.1-I18N.diff

BuildArch:	noarch
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

# For Debian compatibility
Provides:	request-tracker3 = %{version}-%{release}

%define		__perl_provides %{SOURCE1}
%define		__perl_requires %{SOURCE2}

BuildRequires:	/usr/bin/pod2man
BuildRequires:	/usr/sbin/apachectl

Requires(postun): /bin/rm
Requires(post): /usr/bin/chcon

# rpm doesn't catch these:
Requires: perl(Apache::Session)
Requires: perl(URI::URL)
Requires: perl(Tree::Simple)
Requires: perl(Regexp::Common)
Requires: perl(I18N::LangTags::List)
Requires: perl(MIME::Entity)
Requires: perl(LWP::MediaTypes)
Requires: perl(File::Temp)
Requires: perl(MIME::Entity)
Requires: perl(Module::Versions::Report)
Requires: perl(Locale::Maketext::Fuzzy)
Requires: perl(HTTP::Server::Simple::Mason)
Requires: perl(HTML::Mason)
Requires: perl(mod_perl2)

%description
RT is an enterprise-grade ticketing system which enables a group of people
to intelligently and efficiently manage tasks, issues, and requests submitted
by a community of users.

%prep
%setup -q -n rt-%{version}

sed -e 's, at RT3_CACHEDIR@,%{RT3_CACHEDIR},' %{SOURCE4} \
  > README.fedora

# Fixup the tarball shipping with broken permissions
find . \( -name '*.pm' -o -name '*.pm.in' -o -name '*.po' -o -name '*.pod' \) \
  -exec chmod a-x {} \;
chmod -x UPGRADING README C* aclocal.* config.* *.ac *.in

%patch0 -p1
%patch1 -p1

# Patch backups added by rpm disturb
find -name '*.orig' -exec rm -f {} \;

# Propagate rpm's directories to config.layout
cat << \EOF >> config.layout

#   Fedora directory layout.
<Layout Fedora>
  bindir:		%{RT3_BINDIR}
  sysconfdir:		%{_sysconfdir}/rt3
  libdir:		%{RT3_LIBDIR}
  manualdir:		${datadir}/doc
  localstatedir:	%{RT3_LOCALSTATEDIR}
  htmldir:		%{RT3_WWWDIR}
  logfiledir:		%{RT3_LOGDIR}
  masonstatedir:	%{RT3_CACHEDIR}/mason_data
  sessionstatedir:	%{RT3_CACHEDIR}/session_data
  customdir:		%{_prefix}/local/lib/rt3
  custometcdir:		%{_prefix}/local/etc/rt3
  customhtmldir:	${customdir}/html
  customlexdir:		${customdir}/po
  customlibdir:		${customdir}/lib
</Layout>
EOF

# Comment out the Makefile trying to change groups/owners
# Fix DESTDIR support
sed -i \
	-e 's,	chgrp,	: chrgp,g' \
	-e 's,	chown,	: chown,g' \
	-e 's,$(DESTDIR)/,$(DESTDIR),g' \
Makefile.in

%build
%configure \
--with-apachectl=/usr/sbin/apachectl \
--with-web-user=apache --with-web-group=apache \
--enable-layout=Fedora --with-modperl2 \
--libdir=%{RT3_LIBDIR}
make %{?_smp_mflags}

# Generate man-pages
/usr/bin/pod2man bin/rt-mailgate > bin/rt-mailgate.1
/usr/bin/pod2man bin/mason_handler.fcgi > bin/mason_handler.fcgi.1

%install
rm -rf ${RPM_BUILD_ROOT}
make install DESTDIR=${RPM_BUILD_ROOT}

# Cleanup the mess rt's configuration leaves behind
rm -f ${RPM_BUILD_ROOT}%{_docdir}/README

# Win32 stuff
rm -f ${RPM_BUILD_ROOT}%{RT3_BINDIR}/mason_handler.svc

# We don't want CPAN
rm -f ${RPM_BUILD_ROOT}%{_sbindir}/rt-test-dependencies

# An installed testsuite without infrastructure
rm -rf ${RPM_BUILD_ROOT}%{RT3_LIBDIR}/t

# Bogus
rm -f ${RPM_BUILD_ROOT}%{RT3_LIBDIR}/RT.pm.in

# Unsupported
rm -f ${RPM_BUILD_ROOT}%{RT3_BINDIR}/*.scgi

# Install apache configuration
mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/httpd/conf.d
sed -e 's, at RT3_WWWDIR@,%{RT3_WWWDIR},g' \
  -e 's, at RT3_BINDIR@,%{RT3_BINDIR},g' \
  %{SOURCE3} > ${RPM_BUILD_ROOT}%{_sysconfdir}/httpd/conf.d/rt3.conf

mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
install -m 0644 bin/rt-mailgate.1 bin/mason_handler.fcgi.1 \
  ${RPM_BUILD_ROOT}%{_mandir}/man1

if [ "%{_bindir}" != "%{RT3_BINDIR}" ]; then
  mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
  mv ${RPM_BUILD_ROOT}%{RT3_BINDIR}/rt \
    ${RPM_BUILD_ROOT}%{_bindir}
fi

install -d -m755 ${RPM_BUILD_ROOT}%{_prefix}/local/etc/rt3
install -d -m755 ${RPM_BUILD_ROOT}%{_prefix}/local/lib/rt3
install -d -m755 ${RPM_BUILD_ROOT}%{_prefix}/local/lib/rt3/html
install -d -m755 ${RPM_BUILD_ROOT}%{_prefix}/local/lib/rt3/po
install -d -m755 ${RPM_BUILD_ROOT}%{_prefix}/local/lib/rt3/lib

install -d -m755 ${RPM_BUILD_ROOT}%{RT3_LOGDIR}
install -d -m755 ${RPM_BUILD_ROOT}%{RT3_LOCALSTATEDIR}

# Fix permissions
find ${RPM_BUILD_ROOT}%{RT3_WWWDIR} \
  -type f -exec chmod a-x {} \;

%check
# The tests don't work:
# - Require to be run as root
# - Require an operational rt3 system
%{?_with_tests:make test}

%clean
rm -rf ${RPM_BUILD_ROOT}

%postun
if [ $1 -eq 0 ]; then
  /bin/rm -rf %{RT3_CACHEDIR}
fi


%files
%defattr(-,root,root,-)
%doc COPYING README UPGRADING README.fedora
%{_bindir}/*
%{_sbindir}/*
%{_mandir}/man1/*
%{RT3_LIBDIR}/*
%{RT3_LOGDIR}

%dir %{_sysconfdir}/rt3
%attr(0644,root,root)%{_sysconfdir}/rt3/acl*
%attr(0644,root,root)%{_sysconfdir}/rt3/schema*
%attr(0644,root,root)%{_sysconfdir}/rt3/init*
%config(noreplace) %attr(0640,root,root) %{_sysconfdir}/rt3/RT_*

%{RT3_WWWDIR}
%config(noreplace) %{_sysconfdir}/httpd/conf.d/rt3.conf

%dir %{RT3_CACHEDIR}
%attr(0770,apache,apache) %{RT3_CACHEDIR}/mason_data
%attr(0770,apache,apache) %{RT3_CACHEDIR}/session_data

%if "%{RT3_LOCALSTATEDIR}" != "%{RT3_CACHEDIR}"
%dir %{RT3_LOCALSTATEDIR}
%endif

%ghost %{_prefix}/local/lib/rt3
%ghost %{_prefix}/local/etc/rt3

%changelog
* Fri Oct 28 2005 Ralf Corsépius <rc040203 at freenet.de> - 3.4.4-8
- Fix typo in setting up localstatedir.
- Own %%{RT3_CACHEDIR}.

* Tue Oct 24 2005 Ralf Corsépius <rc040203 at freenet.de> - 3.4.4-7
- Apply patch from Chris Grau to README.fedora.
- Move mason_data, session_data to /var/cache/rt3.
- Install %{RT3_LOGDIR}.
- Replace README.fedora with README.fedora.in

* Thu Oct 13 2005 Ralf Corsépius <rc040203 at freenet.de> - 3.4.4-6
- Remove RT3_USER, RT3_GROUP.

* Thu Oct 13 2005 Ralf Corsépius <rc040203 at freenet.de> - 3.4.4-5
- Add Requires: perl(HTML::Mason), perl(HTTP::Server::Simple::Mason).
- Add README.fedora.
- Pass libdir to configure to silence rpmlint.
- Remove %{_localstatedir}/lib/rt3 upon last package removal.

* Fri Oct 07 2005 Ralf Corsépius <rc040203 at freenet.de> - 3.4.4-4
- Fix urls in spec file.

* Tue Sep 27 2005 Ralf Corsépius <rc040203 at freenet.de> - 3.4.4-3
- Spec file cosmetics.

* Mon Sep 26 2005 Ralf Corsépius <rc040203 at freenet.de> - 3.4.4-2
- FE submission.

* Sun Sep 25 2005 Ralf Corsépius <rc040203 at freenet.de> - 3.4.4-1.4
- Install perl modules into %%perlvendorlib.

* Fri Sep 23 2005 Ralf Corsépius <rc040203 at freenet.de> - 3.4.4-1.3
- Shift customdir to %%{_prefix}/local/lib/rt3 and %%{_prefix}/local/etc/rt3.
- %%ghost %%{_prefix}/local/lib/rt3 and %%{_prefix}/local/etc/rt3.
- install BIN files to %%{_sbindir}.

* Fri Sep 23 2005 Ralf Corsépius <rc040203 at freenet.de> - 3.4.4-1.2
- Use %%RT3_WWWDIR, %%_sbindir, %%_bindir in config.layout.

* Thu Sep 17 2005 Ralf Corsépius <rc040203 at freenet.de> - 3.4.4-1.1
- Reflect feedback from Chris Grau.
- Remove SpeedyCGI support.

* Thu Sep 16 2005 Ralf Corsépius <rc040203 at freenet.de> - 3.4.4-1
- FE submission candidate.


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/rt3/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	29 Oct 2005 01:40:30 -0000	1.1
+++ .cvsignore	29 Oct 2005 01:46:42 -0000	1.2
@@ -0,0 +1 @@
+rt-3.4.4.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/rt3/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	29 Oct 2005 01:40:30 -0000	1.1
+++ sources	29 Oct 2005 01:46:42 -0000	1.2
@@ -0,0 +1 @@
+769d77eea39006be643cbd2db4820ba3  rt-3.4.4.tar.gz




More information about the fedora-extras-commits mailing list