Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eyrJX-0000UW-PY for pgsql-pkg-yum@arkaria.postgresql.org; Thu, 22 Mar 2018 03:54:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eyrJW-0000IC-QH for pgsql-pkg-yum@arkaria.postgresql.org; Thu, 22 Mar 2018 03:54:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eyrJW-0000I2-HH for pgsql-pkg-yum@lists.postgresql.org; Thu, 22 Mar 2018 03:54:54 +0000 Received: from mail-ua0-x22c.google.com ([2607:f8b0:400c:c08::22c]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eyrJO-0001YV-Vg for pgsql-pkg-yum@postgresql.org; Thu, 22 Mar 2018 03:54:54 +0000 Received: by mail-ua0-x22c.google.com with SMTP id s92so4719606uas.11 for ; Wed, 21 Mar 2018 20:54:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+eT0rPprrXEwLYPszmPs9KlBTEKUIy64O72pwxA0j4k=; b=2TTrLCZGGRX/f76ATe52rY+vTh1EQcjUr41IHZwqtmYU4zAOf27ePMaUgn/aKB0zlq Qoxi78I35p8IVP5j0YIrt1kpTai0MljxwyR3Oh3B/53hHAdtyXkU5nmVyRBxgYTpvgDC ryr1MGxUCSbsDmQY0DJYHE6n+kHtl39iZTDjDdW3gjczsiCyYwVoI3C7JIgoNJwWUN1b 0h+0buU0SPByoQdE5Hlw2DbBwcl+fYpsqn0LhPY3zMMgbH+ye3/Dd5H3+7o0R+dYJRgz meO4ISDBHwZze0hzOkFAApQTe2nVEjoXxtBu9fVx+YTJP/yIHkjJR3KWahZ26tR3hvvV HdKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=+eT0rPprrXEwLYPszmPs9KlBTEKUIy64O72pwxA0j4k=; b=o4bxjbd3Cmo8LsxEsLb4sykmGXqYDlaUVWstyH6HLvewWWYCihSjeg7z3Fiqvl5xeV nsPCdi4X1/uT6o82oo/jpbR7hnhNYO8N4iAEhj7aMWuXonQEH9dYENlWvJ5WRbzUNBGG qT75B+P9OTjiOh3edHvSoJYWXuwwgoQY2F8/a1ExKBviFGpu1XL4kR7HbIUXjhIlwJm8 0lQpd70LYEYGgVlfYhNzyPAvfBsmFDgEQJpHJRWvR8i+vWVR9rTQDhozIjQXsq+632ro 66sBeejVyhUo7T920G15UM71mP8+J1sVPWAB+xs5q75kvLHpVj1bzrEnz0K4fPxJElno 80pA== X-Gm-Message-State: AElRT7GwIukTAyQ9faf7wJ3cvX+VtKIG8iDeCNpIaniVnyNz5DXptI/+ Ad+E3/hbKhAvo5wkx8zZ9rL+dBaRRhlkAHGA547CVg== X-Google-Smtp-Source: AG47ELswHofFWy2TI0wHfz1JAPo8h39zQIQOqE40yad8E0vW652xjiSppMSHV7zGalBHATDzqersDMQPKg1U1dVW6cQ= X-Received: by 10.159.49.94 with SMTP id n30mr12909128uab.169.1521690884411; Wed, 21 Mar 2018 20:54:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.14.13 with HTTP; Wed, 21 Mar 2018 20:54:43 -0700 (PDT) In-Reply-To: <1521675633.3121.81.camel@gunduz.org> References: <2BB723C7-A28E-4D97-9270-B71F0BEEE338@citusdata.com> <1507572079.26403.34.camel@gunduz.org> <1507637755.26403.49.camel@gunduz.org> <1521675633.3121.81.camel@gunduz.org> From: Craig Ringer Date: Thu, 22 Mar 2018 11:54:43 +0800 Message-ID: Subject: Re: [pgsql-pkg-yum] Amazon Linux PGDG Repo? To: =?UTF-8?B?RGV2cmltIEfDvG5kw7x6?= Cc: Daniel Farina , Jason Petersen , pgsql-pkg-yum Content-Type: multipart/alternative; boundary="f403045dde949fb1640567f84407" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --f403045dde949fb1640567f84407 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On 22 March 2018 at 07:40, Devrim G=C3=BCnd=C3=BCz wrot= e: > > Hi Daniel, > > On Tue, 2017-10-10 at 23:30 +0000, Daniel Farina wrote: > > I forked them. Do you an idea what macros can be used to make > amazon-linux > > specific paths? > > I found this on Google: > > %global is_amz %(grep -qi 'Amazon Linux' /etc/system-release && echo 1 || > echo 0) > > But not sure how you'll detect different Amazon Linux versions, I don't > have > access to them. Maybe you can improve the grep part. > > They haven't added anything to rpmmacros? rpm --showrc? If not, that's surely a bug in their distribution. Not that they're always big on caring about bugs. --=20 Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services --f403045dde949fb1640567f84407 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On 2= 2 March 2018 at 07:40, Devrim G=C3=BCnd=C3=BCz <devrim@gunduz.org><= /span> wrote:

Hi Daniel,

On Tue, 2017-10-10 at 23:30 +0000, Daniel Farina wrote:
> I forked them. Do you an idea what macros can be used to make amazon-l= inux
> specific paths?

I found this on Google:

%global is_amz %(grep -qi 'Amazon Linux' /etc/system-release &&= amp; echo 1 || echo 0)

But not sure how you'll detect different Amazon Linux versions, I don&#= 39;t have
access to them. Maybe you can improve the grep part.

=C2=A0
They haven't added anything to rpmmacros?=C2=A0

rpm= --showrc?

If not, that's surely a bug in their distribution. Not that they&#= 39;re always big on caring about bugs.


--
=
=C2=A0Craig Ringer=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 h= ttp://www.2ndQuadrant.com/
=C2=A0PostgreSQL Development, 24x7 Suppor= t, Training & Services
--f403045dde949fb1640567f84407--