forked from ZoneMinder/zoneminder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
04fcc25
commit dc9a5b1
Showing
4 changed files
with
93 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
HTTPS is now a requirement | ||
========================== | ||
|
||
This package now depends on Apache's mod_ssl pacakge. This will automatically | ||
be installed along with ZoneMinder. Upon installation, the mod_ssl package | ||
will create a default, self-signed certificate. This is the certificate that | ||
ZoneMinder will use out of the box. | ||
|
||
Since the certificate is self-signed, you will get a warning from your browser | ||
the first time you access the web portal. This is normal. | ||
|
||
This is not intended to be an all encompasing solution for everyone. ZoneMinder | ||
will work just fine over HTTPS the way it is currently configured. However, | ||
here are a couple of considerations you may want to take. | ||
|
||
1. Create your own certificate. The CentOS wiki has a guide that describes how | ||
to do this: https://wiki.centos.org/HowTos/Https . Additionally, Googling | ||
"centos certificate" reveals many articles on the subject. Note that some | ||
third party applications, such as zmNinja, will require you to create a | ||
certificate different than the default certificate on your machine. | ||
|
||
2. You can turn off HTTPS entirely by simply commenting out the SSLRequireSSL | ||
directives found in /etc/httpd/conf.d/zoneminder.conf. You should also | ||
comment out the HTTP -> HTTPS Rewrite rule. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,8 +32,8 @@ BuildRequires: ffmpeg ffmpeg-devel perl(X10::ActiveHome) perl(Astro::SunTime) | |
# cmake needs the following installed at build time due to the way it auto-detects certain parameters | ||
BuildRequires: httpd polkit-devel | ||
|
||
Requires: httpd php php-gd php-mysql mariadb-server polkit net-tools psmisc | ||
Requires: libjpeg-turbo vlc-core libcurl | ||
Requires: httpd php php-gd php-mysql mariadb-server polkit net-tools mod_ssl | ||
Requires: psmisc libjpeg-turbo vlc-core libcurl | ||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) | ||
Requires: perl(DBD::mysql) perl(Archive::Tar) perl(Archive::Zip) | ||
Requires: perl(MIME::Entity) perl(MIME::Lite) perl(Net::SMTP) perl(Net::FTP) | ||
|
@@ -87,20 +87,27 @@ fi | |
/usr/bin/gpasswd -a %{zmuid_final} video | ||
/usr/bin/gpasswd -a %{zmuid_final} dialout | ||
|
||
# Disabled. SELinux policy does not work for RHEL 7. | ||
# Create and load zoneminder selinux policy module | ||
echo -e "\nCreating and installing a ZoneMinder SELinux policy module. Please wait.\n" | ||
/usr/bin/checkmodule -M -m -o %{_docdir}/%{name}-%{version}/local_zoneminder.mod %{_docdir}/%{name}-%{version}/local_zoneminder.te > /dev/null | ||
/usr/bin/semodule_package -o %{_docdir}/%{name}-%{version}/local_zoneminder.pp -m %{_docdir}/%{name}-%{version}/local_zoneminder.mod > /dev/null | ||
/usr/sbin/semodule -i %{_docdir}/%{name}-%{version}/local_zoneminder.pp > /dev/null | ||
#echo -e "\nCreating and installing a ZoneMinder SELinux policy module. Please wait.\n" | ||
#/usr/bin/checkmodule -M -m -o %{_docdir}/%{name}-%{version}/local_zoneminder.mod %{_docdir}/%{name}-%{version}/local_zoneminder.te > /dev/null | ||
#/usr/bin/semodule_package -o %{_docdir}/%{name}-%{version}/local_zoneminder.pp -m %{_docdir}/%{name}-%{version}/local_zoneminder.mod > /dev/null | ||
#/usr/sbin/semodule -i %{_docdir}/%{name}-%{version}/local_zoneminder.pp > /dev/null | ||
|
||
# Upgrade from a previous version of zoneminder | ||
if [ $1 -eq 2 ] ; then | ||
# Freshen the database | ||
/usr/bin/zmupdate.pl -f | ||
|
||
# We can't run this automatically when new sql account permissions need to | ||
# be manually added first | ||
# Run zmupdate non-interactively | ||
/usr/bin/zmupdate.pl --nointeractive | ||
#/usr/bin/zmupdate.pl --nointeractive | ||
fi | ||
|
||
# Display the README for post installation instructions | ||
/usr/bin/less %{_docdir}/%{name}-%{version}/README.Centos7 | ||
# Warn the end user to read the README file | ||
echo -e "/nVERY IMPORTANT: Before starting ZoneMinder, read README.Centos7 to finish the\ninstallation or upgrade!\n" | ||
echo -e "/nThe README file is located here: %{_docdir}/%{name}-%{version}." | ||
|
||
%preun | ||
if [ $1 -eq 0 ] ; then | ||
|
@@ -184,6 +191,9 @@ fi | |
|
||
|
||
%changelog | ||
* Mon Sep 7 2015 Andrew Bauer <[email protected]> - 1.28.1 | ||
- Require https, disable selinux module, freshen dB on updates. | ||
|
||
* Sun Feb 8 2015 Andrew Bauer <[email protected]> - 1.28.1 | ||
- Initial release for CentOS 7. | ||
|
||
|