rpms/drupal/F-7 drupal-5.1-scripts-noshebang.patch, NONE, 1.1 drupal-README.fedora, NONE, 1.1 drupal-cron, NONE, 1.1 drupal.conf, NONE, 1.1 drupal.spec, NONE, 1.1 sources, 1.1, 1.2

Jon Ciesla (limb) fedora-extras-commits at redhat.com
Tue Jul 24 00:33:55 UTC 2007


Author: limb

Update of /cvs/pkgs/rpms/drupal/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv31111

Modified Files:
	sources 
Added Files:
	drupal-5.1-scripts-noshebang.patch drupal-README.fedora 
	drupal-cron drupal.conf drupal.spec 
Log Message:
Initial import.


drupal-5.1-scripts-noshebang.patch:

--- NEW FILE drupal-5.1-scripts-noshebang.patch ---
diff -u scripts/code-clean.sh scripts.new/code-clean.sh
--- scripts/code-clean.sh	2007-05-30 06:21:24.000000000 -0500
+++ scripts/code-clean.sh	2007-05-30 07:19:53.000000000 -0500
@@ -1,4 +1,3 @@
-#!/bin/sh
 # $Id: code-clean.sh,v 1.8 2005/08/11 13:02:08 dries Exp $
 
 find . -name "*~" -type f | xargs rm -f
diff -u scripts/code-style.pl scripts.new/code-style.pl
--- scripts/code-style.pl	2007-05-30 06:21:24.000000000 -0500
+++ scripts/code-style.pl	2007-05-30 07:20:33.000000000 -0500
@@ -1,4 +1,3 @@
-#!/usr/bin/perl -w
 # $Id: code-style.pl,v 1.12 2006/10/14 10:03:27 dries Exp $
 
 # Author: Alexander Schwartz (alexander.schwartz at gmx.net)
diff -u scripts/cron-curl.sh scripts.new/cron-curl.sh
--- scripts/cron-curl.sh	2007-05-30 06:21:24.000000000 -0500
+++ scripts/cron-curl.sh	2007-05-30 07:19:57.000000000 -0500
@@ -1,4 +1,3 @@
-#!/bin/sh
 # $Id: cron-curl.sh,v 1.3 2006/08/22 07:38:24 dries Exp $
 
 curl --silent --compressed http://example.com/cron.php
diff -u scripts/cron-lynx.sh scripts.new/cron-lynx.sh
--- scripts/cron-lynx.sh	2007-05-30 06:21:24.000000000 -0500
+++ scripts/cron-lynx.sh	2007-05-30 07:20:01.000000000 -0500
@@ -1,4 +1,3 @@
-#!/bin/sh
 # $Id: cron-lynx.sh,v 1.3 2006/08/22 07:38:24 dries Exp $
 
 /usr/bin/lynx -source http://example.com/cron.php > /dev/null 2>&1


--- NEW FILE drupal-README.fedora ---
Initially upon install, Drupal requires two additional installation steps:

1. DB setup

Follow the installation instructions in INSTALL.*.txt to complete the setup
of and connection of Drupal to the required database, including chmod 644 on
/etc/drupal/default/settings.php, uncommenting the appropriate line in 
/etc/httpd/conf.d/drupal.conf, and restarting httpd.

Once these steps have been completed, you should be ready to connect to http://yourhost/drupal
to complete the initial setup.

2. Enable remote access

Drupal ships in Fedora with all non-localhost access disabled.  Comment and
uncomment lines in /etc/httpd/conf.d/drupal.conf as appropriate, and restart
httpd.



--- NEW FILE drupal-cron ---
#!/bin/sh
wget -O - -q http://localhost/drupal/cron.php


--- NEW FILE drupal.conf ---
#
# Drupal is an open-source content-management platform.
#

Alias /drupal /usr/share/drupal

<Directory /usr/share/drupal/>
        Order Deny,Allow
	#Comment the following line and uncomment the next for public use 
        Deny from all
	#Allow from all
	#Uncomment the following line for setup
        #Allow from 127.0.0.1
</Directory>


--- NEW FILE drupal.spec ---
%define drupaldir %{_datadir}/drupal
Name: drupal
Version:  5.1
Release:  5%{?dist}
Summary: An open-source content-management platform

Group: Applications/Publishing
License: GPL        
URL: http://www.drupal.org
Source0: http://ftp.osuosl.org/pub/drupal/files/projects/%{name}-%{version}.tar.gz
Source1: drupal.conf
Source2: drupal-README.fedora
Source3: drupal-cron
Patch0: drupal-5.1-scripts-noshebang.patch

BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: php, php-gd, php-mbstring, wget

%description
Equipped with a powerful blend of features, Drupal is a Content Management 
System written in PHP that can support a variety of websites ranging from
personal weblogs to large community-driven websites.  Drupal is highly
configurable, skinnable, and secure.

%prep

%setup -q

%patch0

%build

%install
rm -rf %{buildroot}
install -d %{buildroot}%{drupaldir}
cp -pr * %{buildroot}%{drupaldir}
mkdir -p %{buildroot}%{_sysconfdir}/httpd
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d
cp -pr %SOURCE1 %{buildroot}%{_sysconfdir}/httpd/conf.d
mkdir -p %{buildroot}%{_sysconfdir}/drupal
mv %{buildroot}%{drupaldir}/sites/* %{buildroot}%{_sysconfdir}/drupal
rmdir %{buildroot}%{drupaldir}/sites
ln -s ../../..%{_sysconfdir}/drupal %{buildroot}%{drupaldir}/sites
mkdir -p %{buildroot}%{_docdir}
cp -pr %SOURCE2 .
install -D -p -m 0644 %SOURCE3 %{buildroot}%{_sysconfdir}/cron.hourly/drupal 
mkdir -p %{buildroot}%{_localstatedir}/lib/drupal
ln -s ../../..%{_localstatedir}/lib/drupal %{buildroot}%{drupaldir}/files

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc CHANGELOG.txt INSTALL* LICENSE* MAINTAINERS.txt UPGRADE.txt drupal-README.fedora sites/all/README.txt
%{drupaldir}
%exclude %{drupaldir}/CHANGELOG.txt
%exclude %{drupaldir}/INSTALL* 
%exclude %{drupaldir}/LICENSE* 
%exclude %{drupaldir}/MAINTAINERS.txt 
%exclude %{drupaldir}/UPGRADE.txt
%dir %{_sysconfdir}/drupal/
%config(noreplace) %{_sysconfdir}/drupal/all
%exclude %{_sysconfdir}/drupal/all/README.txt
%config(noreplace) %{_sysconfdir}/drupal/default
%config(noreplace) %{_sysconfdir}/httpd/conf.d/drupal.conf
%attr(755,root,apache) %{_sysconfdir}/cron.hourly/drupal
%dir %attr(755,root,apache) %{_localstatedir}/lib/drupal/

%changelog
* Fri Jul 020 2007 Jon Ciesla <limb at jcomserv.net> - 5.1-5
- Corrected buildroot.
- Moved /etc/drupal/all/README.txt to correct place.

* Wed Jul 04 2007 Jon Ciesla <limb at jcomserv.net> - 5.1-4
- Made settings.php not readonly by default, with note in drupal-README.fedora
- Locked down initial security configuration, documented steps required.
- Description cleanup.
- Added wget requires.

* Wed Jun 06 2007 Jon Ciesla <limb at jcomserv.net> - 5.1-3
- Fixed initial setting.php perms.
- Added files dir.

* Wed May 30 2007 Jon Ciesla <limb at jcomserv.net> - 5.1-2
- Fixed category, duped docs, apache restart, cron job.

* Wed May 30 2007 Jon Ciesla <limb at jcomserv.net> - 5.1-1
- Initial packaging.


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/drupal/F-7/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	23 Jul 2007 21:18:10 -0000	1.1
+++ sources	24 Jul 2007 00:33:23 -0000	1.2
@@ -0,0 +1 @@
+1b68368c650da73af5051bae163a8ed1  drupal-5.1.tar.gz




More information about the scm-commits mailing list