freebsd-ports/ports-mgmt/pkgcompare/Makefile
Bryan Drewery 5b5a90256d Update USE_GITHUB so it does not require GH_COMMIT.
Using this new scheme allows only setting the _tag_ or _commit hash_ in
GH_TAGNAME and not having to know the hash for a tag.  This scheme will
download a tarball that has a different checksum than before due to a changed
directory name for extraction.

The following MASTER_SITES are provided to retain the old checksum and
directory structure (that require GH_COMMIT):
  GH -> GHL
  GITHUB -> GITHUB_LEGACY

Differential Revision:	https://reviews.freebsd.org/D748
Submitted by:	amdmi3
Reviewed by:	mat, swills, antoine, bdrewery
With hat:	portmgr
2015-03-19 16:44:57 +00:00

46 lines
1.1 KiB
Makefile

# Created by: "Waitman Gobble" <uzimac@da3m0n8t3r.com>
# $FreeBSD$
PORTNAME= pkgcompare
PORTVERSION= 1.1
CATEGORIES= ports-mgmt
MASTER_SITES= GHL
DISTNAME= ${GH_ACCOUNT}-${GH_PROJECT}-${PORTVERSION}-0-g${GH_COMMIT}
MAINTAINER= waitman@waitman.net
COMMENT= Alternate to pkg upgrade
LICENSE= PKG-COMPARE
LICENSE_NAME= PKG-COMPARE BSD LICENSE
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LIB_DEPENDS= libpkg.so:${PORTSDIR}/${PKG_ORIGIN} \
libsqlite3.so:${PORTSDIR}/databases/sqlite3
USE_GITHUB= yes
GH_ACCOUNT= waitman
GH_PROJECT= pkg-compare
GH_TAGNAME= 418295d
GH_COMMIT= ${GH_TAGNAME}
WRKSRC= ${WRKDIR}/waitman-pkg-compare-${GH_TAGNAME}
BINARY= pkg-compare
PORTDOCS= *
PLIST_FILES= man/man8/pkg-compare.8.gz \
sbin/pkg-compare
SUB_FILES= pkg-message
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${BINARY} ${STAGEDIR}${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/pkg-compare.8 \
${STAGEDIR}${MAN8PREFIX}/man/man8
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${LICENSE_FILE} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>