diff --git a/debian/control b/debian/control index 5e085ed637cc7da1f3cda52987dad2105299f210..b9c5aa1e3e9e2a035cab1480f63b63d045472787 100644 --- a/debian/control +++ b/debian/control @@ -15,6 +15,13 @@ Build-Depends: debhelper (>= 9), libspeexdsp-dev, autotools-dev, chrpath, check, astyle, uuid-dev, libudev-dev, libgnutls28-dev, + +Package: ring-repository +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Ring repository + Ring is free software for distributed and secured communication. + Package: ring-daemon Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} diff --git a/debian/rules b/debian/rules index f8ebc5ce1ba3419a2c8a51003691a8391f2ad6d3..fd2d375af345225e376a87caa45a94c003c0767d 100755 --- a/debian/rules +++ b/debian/rules @@ -5,7 +5,8 @@ PKD = $(abspath $(dir $(MAKEFILE_LIST))) #PKG = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog --show-field=Source)) PKG = $(shell dpkg-parsechangelog -l$(PKD)/changelog --show-field=Source) VER ?= $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};') -DISTRIB_RELEASE = $(shell grep -hPo "DISTRIB_RELEASE=\K.*" /etc/*ease) +DISTRIB_ID = $(shell grep -hPo "ID=\K.*" /etc/*ease) +DISTRIB_VERSION_ID = $(shell grep -hPo "VERSION_ID=\K.*" /etc/*ease) # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 @@ -40,6 +41,9 @@ override_dh_auto_install: mkdir -p $(CURDIR)/debian/ring-daemon-dev/usr/include/dring mv $(CURDIR)/debian/ring-daemon/usr/include/dring/* $(CURDIR)/debian/ring-daemon-dev/usr/include/dring rm -rf $(CURDIR)/debian/ring-daemon/usr/include/ + # Add repository file + mkdir -p $(CURDIR)/debian/ring-repository/etc/apt/sources.list.d/ + echo "deb http://nightly.apt.ring.cx/$(DISTRIB_ID)_$(DISTRIB_VERSION_ID) ring main" > $(CURDIR)/debian/ring-repository/etc/apt/sources.list.d/ring-nightly.list dh_auto_install get-orig-source: