diff options
author | Chris Alfonso <calfonso@redhat.com> | 2008-06-26 17:11:14 -0400 |
---|---|---|
committer | Chris Alfonso <calfonso@redhat.com> | 2008-06-26 17:11:14 -0400 |
commit | 922de7cd274ab5dfaff8105074ac77d88c6a181d (patch) | |
tree | 2f3eccd97e4ef0bf993ba16466f02277eba9da81 | |
parent | bc9ffb66eaddeb2f51c1b018542360afea504969 (diff) | |
download | site-922de7cd274ab5dfaff8105074ac77d88c6a181d.tar.gz site-922de7cd274ab5dfaff8105074ac77d88c6a181d.tar.xz site-922de7cd274ab5dfaff8105074ac77d88c6a181d.zip |
Made site into rpm
-rw-r--r-- | Makefile | 36 | ||||
-rw-r--r-- | everest-site-1.0.0/content/contribute.php (renamed from contribute.php) | 0 | ||||
-rw-r--r-- | everest-site-1.0.0/content/documentation.php (renamed from documentation.php) | 3 | ||||
-rw-r--r-- | everest-site-1.0.0/content/download.php (renamed from download.php) | 3 | ||||
-rw-r--r-- | everest-site-1.0.0/content/footer.php (renamed from footer.php) | 0 | ||||
-rw-r--r-- | everest-site-1.0.0/content/header.php (renamed from header.php) | 0 | ||||
-rw-r--r-- | everest-site-1.0.0/content/index.html (renamed from index.html) | 0 | ||||
-rw-r--r-- | everest-site-1.0.0/content/index.php (renamed from index.php) | 0 | ||||
-rw-r--r-- | everest-site-1.0.0/content/menu.php (renamed from menu.php) | 0 | ||||
-rw-r--r-- | everest-site-1.0.0/content/styles/callout-bg.png (renamed from styles/callout-bg.png) | bin | 2751 -> 2751 bytes | |||
-rw-r--r-- | everest-site-1.0.0/content/styles/default.css (renamed from styles/default.css) | 0 | ||||
-rw-r--r-- | everest-site-1.0.0/content/styles/et_logo.png (renamed from styles/et_logo.png) | bin | 5194 -> 5194 bytes | |||
-rw-r--r-- | everest-site-1.0.0/content/styles/everest.css (renamed from styles/everest.css) | 0 | ||||
-rw-r--r-- | everest-site-1.0.0/content/styles/footer_corner.png (renamed from styles/footer_corner.png) | bin | 2359 -> 2359 bytes | |||
-rw-r--r-- | everest-site-1.0.0/content/styles/footer_pattern.png (renamed from styles/footer_pattern.png) | bin | 817 -> 817 bytes | |||
-rw-r--r-- | everest-site-1.0.0/content/styles/generic.css (renamed from styles/generic.css) | 0 | ||||
-rw-r--r-- | everest-site-1.0.0/content/styles/topbar-bg.png (renamed from styles/topbar-bg.png) | bin | 3196 -> 3196 bytes | |||
-rw-r--r-- | everest-site-1.0.0/content/styles/topbar-graphic.png (renamed from styles/topbar-graphic.png) | bin | 9383 -> 9383 bytes | |||
-rw-r--r-- | everest-site-1.0.0/site.conf | 11 | ||||
-rw-r--r-- | everest-site.spec | 47 |
20 files changed, 97 insertions, 3 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..daa27d8 --- /dev/null +++ b/Makefile @@ -0,0 +1,36 @@ +NAME := everest-site +SPECFILE = $(NAME).spec +VERSION := $(shell rpm -q --qf "%{VERSION}\n" --specfile $(SPECFILE)| head -1) +RELEASE := $(shell rpm -q --qf "%{RELEASE}\n" --specfile $(SPECFILE)| head -1) +UPSTREAM_NAME = $(PROJECT) + +TAG = $(subst .,_,$(NAME)-$(VERSION)-$(RELEASE)) + +CVS = cvs +RPMBUILD = rpmbuild +INSTALL = /usr/bin/install +INSTALL_DIR = $(INSTALL) --verbose -d -m 755 +ARCHIVE = $(NAME)-$(VERSION).tar.gz + +RPM_TOPDIR = /tmp/$(NAME)-$(VERSION)-$(RELEASE)-build +_RPM_OPTS = --define "_topdir $(RPM_TOPDIR)" \ + --define "_builddir %{_topdir}" \ + --define "_sourcedir $(shell pwd)" \ + --define "_specdir $(shell pwd)" \ + --define "_rpmdir $(shell pwd)" \ + --define "_srcrpmdir $(shell pwd)" \ + --define '_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' +RPM_OPTS = $(strip $(_RPM_OPTS)) + +rpm: clean $(RPM_TOPDIR) $(SPECFILE) $(ARCHIVE) + $(RPMBUILD) --clean $(RPM_OPTS) -bb $(SPECFILE) + rm -f $(ARCHIVE) + +clean: + @rm -rfv *~ *.rpm $(RPM_TOPDIR) $(ARCHIVE) + +$(ARCHIVE): + cd $(NAME)-$(VERSION); tar cvzf ../$(ARCHIVE) ./*; cd .. + +$(RPM_TOPDIR): + @$(INSTALL_DIR) $@ diff --git a/contribute.php b/everest-site-1.0.0/content/contribute.php index d452198..d452198 100644 --- a/contribute.php +++ b/everest-site-1.0.0/content/contribute.php diff --git a/documentation.php b/everest-site-1.0.0/content/documentation.php index 4a578f1..4a0662b 100644 --- a/documentation.php +++ b/everest-site-1.0.0/content/documentation.php @@ -3,7 +3,8 @@ <div id="body"> <? include("menu.php") ?> <div id="content"> - </div> + <a href="/docs/everest">Everest Documentation</a> + </div> </div> <? include("footer.php") ?> diff --git a/download.php b/everest-site-1.0.0/content/download.php index 19b0344..79c5f6e 100644 --- a/download.php +++ b/everest-site-1.0.0/content/download.php @@ -3,8 +3,7 @@ <div id="body"> <? include("menu.php") ?> <div id="content"> - - </div> + </div> </div> <? include("footer.php") ?> diff --git a/footer.php b/everest-site-1.0.0/content/footer.php index 67f3f1f..67f3f1f 100644 --- a/footer.php +++ b/everest-site-1.0.0/content/footer.php diff --git a/header.php b/everest-site-1.0.0/content/header.php index 743cbf0..743cbf0 100644 --- a/header.php +++ b/everest-site-1.0.0/content/header.php diff --git a/index.html b/everest-site-1.0.0/content/index.html index 535aa01..535aa01 100644 --- a/index.html +++ b/everest-site-1.0.0/content/index.html diff --git a/index.php b/everest-site-1.0.0/content/index.php index 0cf54bb..0cf54bb 100644 --- a/index.php +++ b/everest-site-1.0.0/content/index.php diff --git a/menu.php b/everest-site-1.0.0/content/menu.php index 2eb2f80..2eb2f80 100644 --- a/menu.php +++ b/everest-site-1.0.0/content/menu.php diff --git a/styles/callout-bg.png b/everest-site-1.0.0/content/styles/callout-bg.png Binary files differindex c24e5b8..c24e5b8 100644 --- a/styles/callout-bg.png +++ b/everest-site-1.0.0/content/styles/callout-bg.png diff --git a/styles/default.css b/everest-site-1.0.0/content/styles/default.css index 069de9c..069de9c 100644 --- a/styles/default.css +++ b/everest-site-1.0.0/content/styles/default.css diff --git a/styles/et_logo.png b/everest-site-1.0.0/content/styles/et_logo.png Binary files differindex e094b59..e094b59 100644 --- a/styles/et_logo.png +++ b/everest-site-1.0.0/content/styles/et_logo.png diff --git a/styles/everest.css b/everest-site-1.0.0/content/styles/everest.css index 8f3195b..8f3195b 100644 --- a/styles/everest.css +++ b/everest-site-1.0.0/content/styles/everest.css diff --git a/styles/footer_corner.png b/everest-site-1.0.0/content/styles/footer_corner.png Binary files differindex 090bfce..090bfce 100644 --- a/styles/footer_corner.png +++ b/everest-site-1.0.0/content/styles/footer_corner.png diff --git a/styles/footer_pattern.png b/everest-site-1.0.0/content/styles/footer_pattern.png Binary files differindex 647c52a..647c52a 100644 --- a/styles/footer_pattern.png +++ b/everest-site-1.0.0/content/styles/footer_pattern.png diff --git a/styles/generic.css b/everest-site-1.0.0/content/styles/generic.css index f04cc1f..f04cc1f 100644 --- a/styles/generic.css +++ b/everest-site-1.0.0/content/styles/generic.css diff --git a/styles/topbar-bg.png b/everest-site-1.0.0/content/styles/topbar-bg.png Binary files differindex f89afb1..f89afb1 100644 --- a/styles/topbar-bg.png +++ b/everest-site-1.0.0/content/styles/topbar-bg.png diff --git a/styles/topbar-graphic.png b/everest-site-1.0.0/content/styles/topbar-graphic.png Binary files differindex 96adcc3..96adcc3 100644 --- a/styles/topbar-graphic.png +++ b/everest-site-1.0.0/content/styles/topbar-graphic.png diff --git a/everest-site-1.0.0/site.conf b/everest-site-1.0.0/site.conf new file mode 100644 index 0000000..9ac830a --- /dev/null +++ b/everest-site-1.0.0/site.conf @@ -0,0 +1,11 @@ +# These aliases are order dependent +Alias /site "/pub/site" +<Directory "/pub/site"> + Options Indexes FollowSymLinks Includes + AllowOverride None + Order allow,deny + Allow from all +</Directory> +RewriteEngine On +RewriteRule ^/$ /site/ [R] + diff --git a/everest-site.spec b/everest-site.spec new file mode 100644 index 0000000..76e3ef5 --- /dev/null +++ b/everest-site.spec @@ -0,0 +1,47 @@ +Name: everest-site +Version: 1.0.0 +Release: 14%{?dist} +Summary: Everest web site + +Group: Applications/System +License: GPL +URL: http://everest-repo.usersys.redhat.com +Source0: %{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +Requires: httpd +Requires: php + +%description +Basic web site for everest + +%prep +%setup -c 0 + +%build + +%install +rm -rf $RPM_BUILD_ROOT + +mkdir -p $RPM_BUILD_ROOT/pub/site +mkdir -p $RPM_BUILD_ROOT/etc/httpd/conf.d + +cp -r content/* $RPM_BUILD_ROOT/pub/site + +cp site.conf $RPM_BUILD_ROOT/etc/httpd/conf.d + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +/etc/httpd/conf.d/site.conf +/pub/site + +%defattr(755,root,root) + +%doc + + +%changelog |