aboutsummaryrefslogtreecommitdiff
path: root/devel/github-backup-utils/Makefile
blob: 7e1db34eafa3521e05d9cd80f3667c7661724e7a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Created by: Ryan Steinmetz <zi@FreeBSD.org>

PORTNAME=	github-backup-utils
PORTVERSION=	2.22.0
DISTVERSIONPREFIX=	v
CATEGORIES=	devel
MASTER_SITES=	https://github.com/github/backup-utils/releases/download/v${PORTVERSION}/

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	GitHub Enterprise Backup Utilities

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

RUN_DEPENDS=	bash:shells/bash \
		git:devel/git \
		rsync:net/rsync

USES=		shebangfix

NO_ARCH=	yes
NO_BUILD=	yes

SUB_FILES=	pkg-message

SHEBANG_FILES=	bin/* share/github-backup-utils/*

post-patch:
	@${REINPLACE_CMD} -e 's|/etc/github-backup-utils/backup.config|${PREFIX}/etc/github.backup.config|g' ${WRKSRC}/share/github-backup-utils/ghe-backup-config

do-install:
	(cd ${WRKSRC}/bin && ${COPYTREE_BIN} . ${STAGEDIR}${PREFIX}/bin)
	${INSTALL_DATA} ${WRKSRC}/backup.config-example ${STAGEDIR}${PREFIX}/etc/github.backup.config.sample
	(cd ${WRKSRC}/share/github-backup-utils && ${COPYTREE_BIN} . ${STAGEDIR}${DATADIR})

.include <bsd.port.mk>