]> git.pld-linux.org Git - packages/PHP-nuke.git/commitdiff
- updated to 7.5
authorhavner <havner@pld-linux.org>
Fri, 26 Nov 2004 14:35:16 +0000 (14:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- moved to /usr/share/
- security notes needs to be reviewed
- removed patch also (it's unreadable for me)

Changed files:
    PHP-nuke.spec -> 1.30

PHP-nuke.spec

index e425dcf53622b3dc52724382d49be5241f379212..95eb14c9fe1654c1deb62f5d05101727b165aeaa 100644 (file)
@@ -8,15 +8,14 @@
 Summary:       Slashdot-like webnews site written in php, easy to install and use
 Summary(pl):   Serwis nowinek WWW w stylu Slashdota napisany w PHP, ³atwy w instalacji i u¿ywaniu
 Name:          PHP-nuke
-Version:       7.4
-Release:       2
+Version:       7.5
+Release:       1
 License:       GPL
 Group:         Applications/Databases/Interfaces
 Source0:       http://phpnuke.org/files/PHP-Nuke-%{version}.zip
-# Source0-md5: d8651f9f39e1c8e191030bb9df48f0bd
+# Source0-md5: 49ccda4e5b2862b8ba9ab8a1cc8b52d7
 # Source0-size:        3961035
 Source1:       PHP-Nuke.README.first
-Patch0:                %{name}-admin.php.patch
 #Icon:         phpnuke.gif
 URL:           http://phpnuke.org/
 Requires:      php-mysql
@@ -25,7 +24,7 @@ Requires:     webserver
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                nukeroot        /home/services/httpd/html/nuke
+%define                _nukeroot       %{_datadir}/phpnuke
 
 %description
 Web-portal writen in php. Very powerful, yet easy to install and use:
@@ -48,7 +47,6 @@ Wystarczy zrobi
 
 %prep
 %setup -q -c %{name}-%{version}
-%patch0 -p1
 
 install %{SOURCE1} README.first
 
@@ -60,18 +58,25 @@ chmod 755 */*/*/
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{nukeroot}
+install -d $RPM_BUILD_ROOT%{_nukeroot}
 
-cp -ar html/* $RPM_BUILD_ROOT%{nukeroot}
+cp -ar html/* $RPM_BUILD_ROOT%{_nukeroot}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%triggerpostun -- %{name} <= 7.4-2
+if [ -s /etc/httpd/httpd.conf/lstat.conf ]; then
+       mv -f /home/services/httpd/html/nuke/config.php %{_nukeroot}
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc Addons* Blocks* Changes* Credits* Install* README* Readme*
 %doc Support* Upgrade* sql/nuke.sql upgrades
-%dir %{nukeroot}
-%config(noreplace) %attr(640,http,http) %{nukeroot}/config.php
-%{nukeroot}/[^c]*
+%dir %{_nukeroot}
+%config(noreplace) %attr(640,http,http) %{_nukeroot}/config.php
+%{_nukeroot}/[^c]*
 # more needed?
+
+%triggerpostun --
This page took 0.09747 seconds and 4 git commands to generate.