Projects
Kolab:Winterfell
guam
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 15
View file
guam.spec
Changed
@@ -53,6 +53,7 @@ Requires: erlang-eimap >= 0.1.2 Requires: erlang-goldrush Requires: erlang-lager >= 2.1.0 +Requires: erlang-lager_syslog >= 1.0.3 %if 0%{?with_systemd} %if 0%{?suse_version} @@ -104,12 +105,17 @@ %{buildroot}%{_sysconfdir}/guam/ \ %if 0%{?with_systemd} %{buildroot}%{_unitdir}/ \ +%else + %{buildroot}%{_initddir}/ \ %endif %{buildroot}%{_var}/log/ %if 0%{?with_systemd} install -p -m 644 contrib/guam.service \ %{buildroot}%{_unitdir}/guam.service +%else +install -p -m 755 %{SOURCE1} \ + %{buildroot}%{_initddir}/guam %endif cp -a rel/%{realname} %{buildroot}/opt/. @@ -130,8 +136,12 @@ pushd %{buildroot}/opt/%{realname}/lib for dir in $(ls -d */ | grep -v kolab_guam); do - rm -rvf ${dir} - ln -sv ../../..%{_libdir}/erlang/lib/$(basename ${dir}) $(basename ${dir}) + if [ ! -d ../../..%{_libdir}/erlang/lib/$(basename ${dir}) ]; then + echo "Skipping deletion of $(basename ${dir}), no equivalent in %{_libdir}/erlang/lib/" + else + rm -rvf ${dir} + ln -sv ../../..%{_libdir}/erlang/lib/$(basename ${dir}) $(basename ${dir}) + fi done popd @@ -165,6 +175,13 @@ test -f /etc/sysconfig/guam-disable-posttrans || \ systemctl try-restart guam.service 2>&1 || : +%else +%post +chkconfig --add guam >/dev/null 2>&1 || : + +%posttrans +test -f /etc/sysconfig/guam-disable-posttrans || \ + %{_bindir}/service restart guam 2>&1 || : %endif %files @@ -174,6 +191,8 @@ %if 0%{?with_systemd} %{_unitdir}/%{name}.service +%else +%{_initddir}/%{name} %endif /opt/%{realname}/
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
.