SPECS: phpWebFileManager.spec (NEW) - initial spec

paszczus paszczus at pld-linux.org
Sun Oct 2 13:36:51 CEST 2005


Author: paszczus                     Date: Sun Oct  2 11:36:51 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial spec

---- Files affected:
SPECS:
   phpWebFileManager.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/phpWebFileManager.spec
diff -u /dev/null SPECS/phpWebFileManager.spec:1.1
--- /dev/null	Sun Oct  2 13:36:51 2005
+++ SPECS/phpWebFileManager.spec	Sun Oct  2 13:36:41 2005
@@ -0,0 +1,106 @@
+# $Revision$, $Date$
+Summary:	phpWebFileManager
+Name:		phpWebFileManager
+Version:	0.7
+Release:	0.1
+License:	GPL
+Group:		Applications/WWW
+Source0:	http://platon.sk/upload/_projects/00004/%{name}-%{version}.tar.gz
+# Source0-md5:	1057eed9fbb6dca9de7d6b62c3ff7f47
+Source1:	%{name}.conf
+URL:		http://platon.sk/projects/phpWebFileManager/
+Requires:	php-pcre
+Requires:	php
+Requires:	webserver
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define	_appdir		/usr/share/%{name}
+
+%description
+phpWebFileManager is file management PHP tool. It is designed for
+inclusion into large projects using appropriate PHP mechanisms, in
+example require() or similar function. However, it can be also used as
+a standalone web application.
+
+FEATURES
+
+The most important features offered by phpWebFileManager are:
+
+    - easy and straightforward installation
+    - secure directory browsing
+    - directory creating, renaming and removing
+    - file creating, uploading, renaming, deleting and viewing
+    - file edition and saving
+    - huge configuration ability to allow/deny appropriate actions
+    - PostNuke module (add-on) compatibility
+    - multilanguage support
+
+and others.
+
+%prep
+%setup -q
+#%patch0 -p1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{_appdir} \
+        $RPM_BUILD_ROOT%{_appdir}/{icons,lang,plugins} \
+	$RPM_BUILD_ROOT{%{_sysconfdir},%{_sysconfdir}/httpd}
+
+cp -a *.php $RPM_BUILD_ROOT%{_appdir}
+cp -pR icons/*		$RPM_BUILD_ROOT%{_appdir}/icons
+cp -pR lang/*		$RPM_BUILD_ROOT%{_appdir}/lang
+cp -pR plugins/*	$RPM_BUILD_ROOT%{_appdir}/plugins
+
+install %{SOURCE1}	$RPM_BUILD_ROOT%{_sysconfdir}/httpd/%{name}.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*%{name}.conf" /etc/httpd/httpd.conf; then
+        echo "Include /etc/httpd/%{name}.conf" >> /etc/httpd/httpd.conf
+        if [ -f /var/lock/subsys/httpd ]; then
+                /usr/sbin/apachectl restart 1>&2
+        fi
+elif [ -d /etc/httpd/httpd.conf ]; then
+        ln -sf /etc/httpd/%{name}.conf /etc/httpd/httpd.conf/99_%{name}.conf
+        if [ -f /var/lock/subsys/httpd ]; then
+                /usr/sbin/apachectl restart 1>&2
+        fi
+fi
+
+%preun
+if [ "$1" = "0" ]; then
+        umask 027
+        if [ -d /etc/httpd/httpd.conf ]; then
+                rm -f /etc/httpd/httpd.conf/99_%{name}.conf
+        else
+                grep -v "^Include.*%{name}.conf" /etc/httpd/httpd.conf > \
+                        /etc/httpd/httpd.conf.tmp
+                mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
+        fi
+        if [ -f /var/lock/subsys/httpd ]; then
+                /usr/sbin/apachectl restart 1>&2
+        fi
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc doc/{AUTHOR,ChangeLog,COPYING,PN-MODULE-HOWTO,README,TODO}
+
+%dir %{_appdir}
+%{_appdir}/*.php
+%{_appdir}/icons
+%{_appdir}/lang
+%{_appdir}/plugins
+
+#%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd/%{name}.conf
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
================================================================



More information about the pld-cvs-commit mailing list