[packages/stikked] new, version 0.8.6
glen
glen at pld-linux.org
Sat Mar 15 19:05:38 CET 2014
commit e030539a920af0b5aeeb0e2ee906c467aceb8395
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Mar 15 17:58:08 2014 +0000
new, version 0.8.6
apache.conf | 12 +++++++++
lighttpd.conf | 3 +++
stikked.spec | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 96 insertions(+)
---
diff --git a/stikked.spec b/stikked.spec
new file mode 100644
index 0000000..d3508d9
--- /dev/null
+++ b/stikked.spec
@@ -0,0 +1,81 @@
+Summary: Stikked is an Open-Source PHP Pastebin
+Name: stikked
+Version: 0.8.6
+Release: 0.3
+License: CC0
+Group: Applications/WWW
+Source0: https://github.com/claudehohl/Stikked/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 0340e32c5a07cb8d1faefe7110309905
+Source1: apache.conf
+Source2: lighttpd.conf
+URL: https://github.com/claudehohl/Stikked
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires: webapps
+Requires: webserver(access)
+Requires: webserver(alias)
+Requires: webserver(indexfile)
+Requires: webserver(php)
+Suggests: webserver(expires)
+Suggests: webserver(rewrite)
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _webapps /etc/webapps
+%define _webapp %{name}
+%define _sysconfdir %{_webapps}/%{_webapp}
+%define _appdir %{_datadir}/%{_webapp}
+
+%description
+Stikked is an Open-Source PHP Pastebin, with the aim of keeping a
+simple and easy to use user interface.
+
+%prep
+%setup -q -n Stikked-%{version}
+
+# to simplify install
+mv htdocs/application/config .
+rm config/index.html
+mv config/stikked.php{.dist,}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
+
+cp -a htdocs/* $RPM_BUILD_ROOT%{_appdir}
+cp -a config/* $RPM_BUILD_ROOT%{_sysconfdir}
+ln -s %{_sysconfdir} $RPM_BUILD_ROOT%{_appdir}/application/config
+
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
+cp -p $RPM_BUILD_ROOT%{_sysconfdir}/{apache,httpd}.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%triggerin -- apache1 < 1.3.37-3, apache1-base
+%webapp_register apache %{_webapp}
+
+%triggerun -- apache1 < 1.3.37-3, apache1-base
+%webapp_unregister apache %{_webapp}
+
+%triggerin -- apache < 2.2.0, apache-base
+%webapp_register httpd %{_webapp}
+
+%triggerun -- apache < 2.2.0, apache-base
+%webapp_unregister httpd %{_webapp}
+
+%triggerin -- lighttpd
+%webapp_register lighttpd %{_webapp}
+
+%triggerun -- lighttpd
+%webapp_unregister lighttpd %{_webapp}
+
+%files
+%defattr(644,root,root,755)
+%doc README.md AUTHORS.md CC0 doc
+%dir %attr(750,root,http) %{_sysconfdir}
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf
+%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.php
+%{_appdir}
diff --git a/apache.conf b/apache.conf
new file mode 100644
index 0000000..2545a8a
--- /dev/null
+++ b/apache.conf
@@ -0,0 +1,12 @@
+Alias /stikked /usr/share/stikked
+<Directory /usr/share/stikked>
+ # Apache 2.x
+ <IfModule !mod_authz_core.c>
+ Order allow,deny
+ Allow from all
+ </IfModule>
+ # Apache 2.4
+ <IfModule mod_authz_core.c>
+ Require all granted
+ </IfModule>
+</Directory>
diff --git a/lighttpd.conf b/lighttpd.conf
new file mode 100644
index 0000000..764a0b6
--- /dev/null
+++ b/lighttpd.conf
@@ -0,0 +1,3 @@
+alias.url += (
+ "/stikked" => "/usr/share/stikked",
+)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/stikked.git/commitdiff/e030539a920af0b5aeeb0e2ee906c467aceb8395
More information about the pld-cvs-commit
mailing list