Projects
home:sicherha:branches:Kolab:16
guam
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 11
View file
debian.changelog
Changed
@@ -1,3 +1,9 @@ +guam (0.9.4-4) unstable; urgency=medium + + * Make package compatible with Erlang from backports + + -- Christoph Erhardt <kolab@sicherha.de> Sat, 21 Apr 2017 10:39:28 +0200 + guam (0.9.4-3) unstable; urgency=medium * Use script rather than symlink
View file
debian.control
Changed
@@ -9,12 +9,15 @@ Package: guam Architecture: any Section: mail -Depends: ${misc:Depends}, - erlang-base (>= 17.4) | erlang-base-hipe (>= 17.4), - erlang-eimap (>= 0.3.0), - erlang-goldrush, - erlang-lager, - erlang-lager-syslog +Depends: ${misc:Depends}, ${dist:GuamDepends} Description: Smart Reverse IMAP Proxy Guam is a smart, unjustly outcast Reverse IMAP Proxy that lives at the perimeter of your IMAP environment. + +Package: guam-bundled-libs +Architecture: any +Section: mail +Depends: ${misc:Depends} +Conflicts: ${dist:BundleConflicts} +Description: Bundled runtime environment for Guam + This is a support package for backports users.
View file
debian.rules
Changed
@@ -3,12 +3,30 @@ include /usr/share/dpkg/pkg-info.mk DESTDIR = $(CURDIR)/debian/guam +BUNDLEDIR = $(CURDIR)/debian/guam-bundled-libs + +# The versions of all dependencies are hardcoded by relx (which honestly sucks). +# The following magic tries to ensure that the Debian package's dependencies are +# pinned to the versions present on the build machine. If the dependencies +# cannot be satisfied on the end user's machine - for instance because a +# different Erlang version was installed from backports - we make the package +# manager pull in an extra package "guam-bundled-libs" that contains all the +# dependencies in the exact versions expected by relx. +# For maintainers, this means: please revision-bump this package every time one +# of its dependencies gets version-bumped. +currver = $(shell dpkg-query -f '$${Version}' -W $(1) | sed 's/[+-].*$$//') +pinver = $(1) (= $(call currver,$(1))) +pinvererl = $(1) (= $(call currver,erlang)) +altbundle = $(call pinver,$(1)) | guam-bundled-libs (= $(DEB_VERSION_UPSTREAM)) +SUBSTVARS += -Vdist:GuamDepends="$(call pinvererl,erlang-base) | $(call pinvererl,erlang-base-hipe) | guam-bundled-libs (= $(DEB_VERSION_UPSTREAM)), $(call altbundle,erlang-asn1), $(call altbundle,erlang-eimap), $(call altbundle,erlang-goldrush), $(call altbundle,erlang-inets), $(call altbundle,erlang-lager), $(call altbundle,erlang-lager-syslog), $(call altbundle,erlang-public-key)" +SUBSTVARS += -Vdist:BundleConflicts="$(call pinvererl,erlang-base), $(call pinvererl,erlang-base-hipe), $(call pinver,erlang-asn1), $(call pinver,erlang-eimap), $(call pinver,erlang-goldrush), $(call pinver,erlang-inets), $(call pinver,erlang-lager), $(call pinver,erlang-lager-syslog), $(call pinver, erlang-public-key)" %: dh $@ --with=systemd override_dh_auto_build: - sed -i 's/"0\.9\.0"/"$(DEB_VERSION_UPSTREAM)"/' rebar.config + sed -i -e 's/"0\.9\.0"/"$(DEB_VERSION_UPSTREAM)"/' \ + -e 's/include_erts,\s*false/include_erts, true/' rebar.config export DEBUG=1 export HEX_OFFLINE=1 rebar3 release \ @@ -25,6 +43,7 @@ $(DESTDIR)/lib/systemd/system $(DESTDIR)/var/log/ \ $(DESTDIR)/usr/lib/erlang/lib/guam-$(DEB_VERSION_UPSTREAM)/ \ $(DESTDIR)/usr/lib/erlang/bin $(DESTDIR)/var/log/guam + mkdir -p $(BUNDLEDIR)/usr/lib/erlang/lib/guam-$(DEB_VERSION_UPSTREAM) install -p -m 644 contrib/guam.service \ $(DESTDIR)/lib/systemd/system/guam.service @@ -71,3 +90,13 @@ ln -s ../lib/guam-$(DEB_VERSION_UPSTREAM)/bin/guam \ $(DESTDIR)/usr/lib/erlang/bin/kolab_guam + + # Bundled runtime system and libraries + cp -a _build/default/rel/guam/erts-* \ + $(BUNDLEDIR)/usr/lib/erlang/lib/guam-$(DEB_VERSION_UPSTREAM)/ + cp -a _build/default/rel/guam/lib \ + $(BUNDLEDIR)/usr/lib/erlang/lib/guam-$(DEB_VERSION_UPSTREAM)/ + rm -r $(BUNDLEDIR)/usr/lib/erlang/lib/guam-$(DEB_VERSION_UPSTREAM)/lib/kolab_guam-$(DEB_VERSION_UPSTREAM) + +override_dh_gencontrol: + dh_gencontrol -- $(SUBSTVARS)
View file
guam.dsc
Changed
@@ -2,7 +2,7 @@ Source: guam Binary: guam Architecture: any -Version: 0.9.4-3 +Version: 0.9.4-4 Maintainer: Christoph Erhardt <kolab@sicherha.de> Homepage: https://kolab.org/about/guam Standards-Version: 3.9.6
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
.