b66d11449c
MFH: 2017Q3
38 lines
914 B
Makefile
38 lines
914 B
Makefile
# Created by: Ryan Steinmetz <zi@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= github-backup-utils
|
|
PORTVERSION= 2.8.3
|
|
DISTVERSIONPREFIX= v
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel
|
|
|
|
MAINTAINER= zi@FreeBSD.org
|
|
COMMENT= GitHub Enterprise Backup Utilities
|
|
|
|
LICENSE= MIT
|
|
|
|
RUN_DEPENDS= git>0:devel/git \
|
|
rsync>0:net/rsync
|
|
|
|
USES= shebangfix
|
|
SHEBANG_FILES= share/github-backup-utils/*
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= github
|
|
GH_PROJECT= backup-utils
|
|
SUB_FILES= pkg-message
|
|
NO_BUILD= yes
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e \
|
|
's|/etc/github-backup-utils/backup.config|${PREFIX}/etc/github.backup.config|g' \
|
|
${WRKSRC}/share/${PORTNAME}/ghe-backup-config
|
|
|
|
do-install:
|
|
(cd ${WRKSRC}/bin && ${COPYTREE_BIN} . ${STAGEDIR}${PREFIX}/bin)
|
|
(cd ${WRKSRC}/share/${PORTNAME} && ${COPYTREE_BIN} . ${STAGEDIR}${DATADIR})
|
|
${INSTALL_DATA} ${WRKSRC}/backup.config-example \
|
|
${STAGEDIR}${PREFIX}/etc/github.backup.config.sample
|
|
|
|
.include <bsd.port.mk>
|