From d466cee7d57e89418cbf6e10ec6e8983ccec5d4a Mon Sep 17 00:00:00 2001 From: Thibault Cohen <thibault.cohen@savoirfairelinux.com> Date: Mon, 13 Apr 2015 14:18:06 -0400 Subject: [PATCH] Add ring-repository package Change-Id: I7b2f4a8519ac25ffe3b31d2f47bdb0bebaddc34f (cherry picked from commit 8a005715d7e6a4fb8998dc199a31798d34cd1136) --- debian/control | 7 +++++++ debian/rules | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 5e085ed637..b9c5aa1e3e 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 f8ebc5ce1b..fd2d375af3 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: -- GitLab