]> git.pld-linux.org Git - packages/eventum.git/commitdiff
- more restrictive _sysconfdir perms
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 15 Jan 2005 16:39:45 +0000 (16:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- detect when default private key is installed and complain

Changed files:
    eventum.spec -> 1.20

eventum.spec

index 7786ca694ad0b363d85fd8e560b14c59c483bb2e..8dd59af359da4f324c85a41ba3fc9097cdc29116 100644 (file)
@@ -27,7 +27,7 @@
 %define _source http://mysql.wildyou.net/Downloads/%{name}/%{name}-%{version}.tar.gz
 %endif
 
-%define _rel 1.42
+%define _rel 1.49
 
 Summary:       Eventum Issue / Bug Tracking System
 Summary(pl):   Eventum - system ¶ledzenia spraw/b³êdów
@@ -108,6 +108,11 @@ cp -a . $RPM_BUILD_ROOT%{_appdir}
 
 sed -i -e 's,/usr/local/bin/php,/usr/bin/php4,' $RPM_BUILD_ROOT%{_appdir}/misc/cli/eventum
 
+# change private key, so we can easily grep
+sed -i -e '
+s,$private_key\s*=\s*".*";,$private_key = "DEFAULTPRIVATEKEYPLEASERUNSETUP!";,
+' $RPM_BUILD_ROOT%{_appdir}/include/private_key.php
+
 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
 
 # in conf
@@ -158,17 +163,29 @@ so that %{name}-setup is able to secure your Eventum installation.
 
 EOF
 #' vim stupidity.
-else
-       if [ -d %{_appdir}/setup ]; then
+
+elif grep -q 'DEFAULTPRIVATEKEY' %{_sysconfdir}/private_key.php; then
+%banner %{name} -e <<EOF
+
+You have default private key installed!
+
+Install %{name}-setup and open up http://yourserver/eventum/setup/
+-- that will help you setup initial config.
+
+when have configured Eventum, please uninstall the setup package,
+so that %{name}-setup is able to secure your Eventum installation.
+
+EOF
+       elif [ -d %{_appdir}/setup ]; then
 %banner %{name} -e <<EOF
 
 If you have have configured Eventum, please uninstall the setup package,
 so that %{name}-setup is able to secure your Eventum installation.
 
 EOF
-       fi
 fi
 
+
 %preun
 if [ "$1" = "0" ]; then
        # apache1
@@ -200,7 +217,7 @@ fi
 %files
 %defattr(644,root,root,755)
 %doc ChangeLog FAQ INSTALL README UPGRADE misc/upgrade docs/*
-%dir %{_sysconfdir}
+%attr(751,root,root) %dir %{_sysconfdir}
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
 
 %dir %attr(731,root,http) /var/log/%{name}
This page took 0.096411 seconds and 4 git commands to generate.