Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Apr 2015 21:30:20 +0200
From:      Jan Beich <jbeich@FreeBSD.org>
To:        Bryan Drewery <bdrewery@FreeBSD.org>
Cc:        Lars Engels <lme@FreeBSD.org>, ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@FreeBSD.ORG, shadowbq@gmail.com
Subject:   Re: svn commit: r384872 - in head/security: . passivedns passivedns/files
Message-ID:  <y4lc-vynn-wny@FreeBSD.org>
In-Reply-To: <553FD751.6060408@FreeBSD.org> (Bryan Drewery's message of "Tue,  28 Apr 2015 13:54:09 -0500")
References:  <201504272033.t3RKXcGl079169@svn.freebsd.org> <553FD751.6060408@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Bryan Drewery <bdrewery@FreeBSD.org> writes:

> On 4/27/2015 3:33 PM, Lars Engels wrote:
>
>> +DISTVERSION=3D	${GH_TAG}
> [...]
>> +GH_TAG=3D		a6c7e26
>
> Actually this is not valid either. As soon as a new commit is done the
> port may "go backwards".

> Commit hashses are not valid versions. Dates are.

git describe --tags output is no worse than appending svn revision to
the nearest tag. DISTFILES was already partially correct.

  $ pkg version -t 1.1.3 1.1.3-60
  <

> A PORTEPOCH bump will be needed as well after fixing this.

Not really. bsd.port.mk assumes any letter as a pre-release suffix.

  # PORTVERSION=3Da6c7e26
  $ pkg version -t a6c7e26 0
  <

  # DISTVERSION=3Da6c7e26
  $ pkg version -t a6.c7.e26 0
  <

>
> For example:
>
> PORTVERSION=3D 20150428

Please, don't advise unprefixed dates. If one later wants to go back to
a tag it'd require PORTEPOCH bump.

  $ pkg version -t 20150428 1.1.4
  >

  # PORTEPOCH=3D1
  $ pkg version -t 20150428 1.1.4,1
  <

Not to mention dates should correspond to the latest commit date, not an
arbitrary packaging date. For a6c7e26 it'd be 20150115 (UTC).

https://github.com/gamelinux/passivedns/commit/a6c7e26

> PORTEPOCH=3D   1
> GH_TAGNAME=3D  a6c7e26
>
> On updates just update the date and GH_TAGNAME.

Index: security/passivedns/Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=2D-- security/passivedns/Makefile	(revision 384934)
+++ security/passivedns/Makefile	(working copy)
@@ -1,9 +1,8 @@
 # $FreeBSD$
=20
 PORTNAME=3D	passivedns
=2DDISTVERSION=3D	${GH_TAG}
+DISTVERSION=3D	1.1.3-60
 CATEGORIES=3D	security
=2DDISTFILES=3D	gamelinux-passivedns-1.1.3-60-ga6c7e26.tar.gz
=20
 MAINTAINER=3D	shadowbq@gmail.com
 COMMENT=3D	Network sniffer that logs DNS replies for use in passive DNS se=
tups
@@ -14,11 +13,8 @@ LIB_DEPENDS=3D	libldns.so:${PORTSDIR}/dns/ldns
=20
 USE_GITHUB=3D	yes
 GH_ACCOUNT=3D	gamelinux
=2DGH_PROJECT=3D	passivedns
=2DGH_TAG=3D		a6c7e26
+GH_TAGNAME=3D	a6c7e26
=20
=2DWRKSRC=3D		${WRKDIR}/gamelinux-${PORTNAME}-${GH_TAG}
=2D
 SUB_FILES=3D	pkg-message
=20
 USES=3D		autoreconf gmake libtool
Index: security/passivedns/distinfo
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=2D-- security/passivedns/distinfo	(revision 384934)
+++ security/passivedns/distinfo	(working copy)
@@ -1,2 +1,2 @@
=2DSHA256 (gamelinux-passivedns-1.1.3-60-ga6c7e26.tar.gz) =3D efaff55f68330=
9a2cdc42a366ec9f7669cf7989939b7928517fc60f2f258ce51
=2DSIZE (gamelinux-passivedns-1.1.3-60-ga6c7e26.tar.gz) =3D 51312
+SHA256 (gamelinux-passivedns-1.1.3-60-a6c7e26_GH0.tar.gz) =3D efaff55f6833=
09a2cdc42a366ec9f7669cf7989939b7928517fc60f2f258ce51
+SIZE (gamelinux-passivedns-1.1.3-60-a6c7e26_GH0.tar.gz) =3D 51312

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQF8BAEBCgBmBQJVP9/MXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXREQjQ0MzY3NEM3RDIzNTc4NkUxNDkyQ0VF
NEM3Nzg4MzQ3OURCRERCAAoJEOTHeINHnb3bRnUIALyvPnT0sUZ5bYC9MgqfH7Kq
BqHzCpv00fInvUrlQ6LMrYaVsDMtYl/U2SDKIDb+/oVaSKZLckjyeXEynfTQIos9
aMWVccJHglgDtXnblYKxtLjawrsB+K+/iugCqC7oZ9jwfIOArLB82r6F/2A/CthR
CkKx8NR/t6s8nlccm7ynBE/fKLO/VX4qe1+dUHC8gaikWv8SnTxAVffbyywALjEs
T3L3XLPSC7JoQuBTob4QHif+OGpN+q7+jFF/p5PY7/S+HJd6f7eciqcOJv+FA7d6
FU9LQhris0kBCadgPLQposFMda/6xFbjQ+GmY/WwTctmRK84aykbjdLWkqvIA58=
=M6+/
-----END PGP SIGNATURE-----
--=-=-=--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?y4lc-vynn-wny>