2 # - SECURITY: http://securitytracker.com/alerts/2004/Jul/1010734.html
3 # - SECURITY: http://securitytracker.com/alerts/2004/Jul/1010722.html
4 # - SECURITY: http://securitytracker.com/alerts/2004/Jun/1010571.html
5 # - SECURITY: http://securitytracker.com/alerts/2004/Jun/1010477.html
6 # - SECURITY: http://securitytracker.com/alerts/2004/Aug/1010924.html
7 # - SECURITY: http://securitytracker.com/alerts/2004/Sep/1011160.html
8 Summary: Slashdot-like webnews site written in php, easy to install and use
9 Summary(pl): Serwis nowinek WWW w stylu Slashdota napisany w PHP, ³atwy w instalacji i u¿ywaniu
14 Group: Applications/Databases/Interfaces
15 Source0: http://phpnuke.org/files/PHP-Nuke-%{version}.zip
16 # Source0-md5: 1996a21729c06dc2b975342ee945d7e1
17 Source1: PHP-Nuke.README.first
20 URL: http://phpnuke.org/
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define _nukeroot %{_datadir}/phpnuke
30 Web-portal writen in php. Very powerful, yet easy to install and use:
31 see documentation in %{_docdir}/%{name}-%{version} for details.
34 mysqladmin create nuke
35 mysql nuke < %{_docdir}/%{name}-%{version}/nuke.sql
37 (read %{_docdir}/%{name}-%{version}/README.first for further
41 Portal WWW napisany w PHP. Ma du¿e mo¿liwo¶ci, jest ³atwy w instalacji
42 u u¿ywaniu. Szczegó³y w dokumentacji w %{_docdir}/%{name}-%{version}.
44 Wystarczy zrobiæ jedno:
45 mysqladmin create nuke
46 mysql nuke < %{_docdir}/%{name}-%{version}/nuke.sql
48 (wiêcej informacji w %{_docdir}/%{name}-%{version}/README.first)
53 install %{SOURCE1} README.first
55 # (TV): workaround for bad tarball
56 find -type d -exec chmod 755 '{}' \;
57 find -type f -exec chmod 644 '{}' \;
58 find -type f -empty |xargs rm -f
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT{%{_nukeroot},/etc/httpd}
65 cp -ar html/* $RPM_BUILD_ROOT%{_nukeroot}
67 install %{SOURCE2} $RPM_BUILD_ROOT/etc/httpd/phpnuke.conf
70 rm -rf $RPM_BUILD_ROOT
72 %triggerpostun -- %{name} <= 7.4-2
73 if [ -s /home/services/httpd/html/nuke/config.php ]; then
74 mv -f /home/services/httpd/html/nuke/config.php %{_nukeroot}
78 if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*phpnuke.conf" /etc/httpd/httpd.conf; then
79 echo "Include /etc/httpd/phpnuke.conf" >> /etc/httpd/httpd.conf
80 if [ -f /var/lock/subsys/httpd ]; then
81 /usr/sbin/apachectl restart 1>&2
83 elif [ -d /etc/httpd/httpd.conf ]; then
84 ln -sf /etc/httpd/phpnuke.conf /etc/httpd/httpd.conf/phpnuke.conf
85 if [ -f /var/lock/subsys/httpd ]; then
86 /usr/sbin/apachectl restart 1>&2
91 if [ "$1" = "0" ]; then
93 if [ -d /etc/httpd/httpd.conf ]; then
94 rm -f /etc/httpd/httpd.conf/99_phpnuke.conf
96 grep -v "^Include.*phpnuke.conf" /etc/httpd/httpd.conf > \
97 /etc/httpd/httpd.conf.tmp
98 mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
100 if [ -f /var/lock/subsys/httpd ]; then
101 /usr/sbin/apachectl restart 1>&2
106 %defattr(644,root,root,755)
107 %doc Addons* Blocks* Changes* Credits* Install* README* Readme*
108 %doc Support* Upgrade* sql/nuke.sql upgrades
109 %config(noreplace) %verify(not size mtime md5) /etc/httpd/phpnuke.conf
111 %config(noreplace) %attr(640,http,http) %{_nukeroot}/config.php