Projects
Kolab:3.4
kolab-syncroton
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 10
View file
kolab-syncroton.spec
Changed
@@ -34,6 +34,7 @@ BuildRequires: roundcubemail-plugins-kolab %endif +Requires: logrotate Requires: roundcubemail Requires: roundcubemail-plugins-kolab Requires: php-kolabformat @@ -105,6 +106,24 @@ cp -a docs/kolab-syncroton.conf %{buildroot}/%{_ap_sysconfdir}/conf.d/ +find %{buildroot}/%{_datadir}/%{name}/ -type f -name "*.orig" -delete + +# Fix anything executable that does not have a shebang +for file in `find %{buildroot}/%{_datadir}/%{name}/ -type f -perm /a+x`; do + [ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file +done + +# Find files with a shebang that do not have executable permissions +for file in `find %{buildroot}/%{_datadir}/%{name}/ -type f ! -perm /a+x`; do + [ ! -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 755 $file +done + +# Find files that have non-standard-executable-perm +find %{buildroot}/%{_datadir}/%{name}/ -type f -perm /g+wx -exec chmod -v g-w {} \; + +# Find files that are not readable +find %{buildroot}/%{_datadir}/%{name}/ -type f ! -perm /go+r -exec chmod -v go+r {} \; + %post if [ -f "%{php_inidir}/apc.ini" ]; then if [ ! -z "`grep ^apc.enabled=1 %{php_inidir}/apc.ini`" ]; then @@ -125,7 +144,11 @@ %files %doc docs/* -%config(noreplace) %{_ap_sysconfdir}/conf.d/ +%if 0%{?suse_version} +%dir %{_ap_sysconfdir}/ +%dir %{_ap_sysconfdir}/conf.d/ +%endif +%config(noreplace) %{_ap_sysconfdir}/conf.d/kolab-syncroton.conf %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %{_datadir}/%{name} %attr(0770,%{httpd_user},%{httpd_group}) %{_var}/log/%{name}
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.