aboutsummaryrefslogtreecommitdiff
path: root/devel/github-backup-utils
diff options
context:
space:
mode:
authorRyan Steinmetz <zi@FreeBSD.org>2015-05-28 20:50:12 +0000
committerRyan Steinmetz <zi@FreeBSD.org>2015-05-28 20:50:12 +0000
commit90d647a0adc88240451e801dd54bae9067ff0ac2 (patch)
treef40cbc0e896501dc6e277de3d6fe83e063a57e02 /devel/github-backup-utils
parent05fd808dad3d4aa5939ac634d0cb3606ab55c5d0 (diff)
downloadports-90d647a0adc88240451e801dd54bae9067ff0ac2.tar.gz
ports-90d647a0adc88240451e801dd54bae9067ff0ac2.zip
Notes
Diffstat (limited to 'devel/github-backup-utils')
-rw-r--r--devel/github-backup-utils/Makefile32
-rw-r--r--devel/github-backup-utils/distinfo2
-rw-r--r--devel/github-backup-utils/files/pkg-message.in3
-rw-r--r--devel/github-backup-utils/pkg-descr5
-rw-r--r--devel/github-backup-utils/pkg-plist32
5 files changed, 74 insertions, 0 deletions
diff --git a/devel/github-backup-utils/Makefile b/devel/github-backup-utils/Makefile
new file mode 100644
index 000000000000..fd5039cae5bf
--- /dev/null
+++ b/devel/github-backup-utils/Makefile
@@ -0,0 +1,32 @@
+# Created by: Ryan Steinmetz <zi@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= github-backup-utils
+PORTVERSION= 2.2.0
+CATEGORIES= devel
+
+MAINTAINER= zi@FreeBSD.org
+COMMENT= GitHub Enterprise Backup Utilities
+
+RUN_DEPENDS= git>0:${PORTSDIR}/devel/git \
+ rsync>0:${PORTSDIR}/net/rsync
+
+USE_GITHUB= yes
+GH_ACCOUNT= github
+GH_PROJECT= backup-utils
+GH_TAGNAME= v${PORTVERSION}
+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>
diff --git a/devel/github-backup-utils/distinfo b/devel/github-backup-utils/distinfo
new file mode 100644
index 000000000000..d62fc506e65b
--- /dev/null
+++ b/devel/github-backup-utils/distinfo
@@ -0,0 +1,2 @@
+SHA256 (github-backup-utils-2.2.0-v2.2.0_GH0.tar.gz) = de547e9a680e467e7aa7ed6957a8f5c9ec236c36de6954c05e6d510b494d1155
+SIZE (github-backup-utils-2.2.0-v2.2.0_GH0.tar.gz) = 34348
diff --git a/devel/github-backup-utils/files/pkg-message.in b/devel/github-backup-utils/files/pkg-message.in
new file mode 100644
index 000000000000..c573599d967c
--- /dev/null
+++ b/devel/github-backup-utils/files/pkg-message.in
@@ -0,0 +1,3 @@
+=====================================================================
+Review and update %%PREFIX%%/etc/github.backup.config for your needs.
+=====================================================================
diff --git a/devel/github-backup-utils/pkg-descr b/devel/github-backup-utils/pkg-descr
new file mode 100644
index 000000000000..2a14bd30f689
--- /dev/null
+++ b/devel/github-backup-utils/pkg-descr
@@ -0,0 +1,5 @@
+GitHub Enterprise Backup Utilities
+
+Includes backup and recovery utilities for GitHub Enterprise.
+
+WWW: https://github.com/github/backup-utils/
diff --git a/devel/github-backup-utils/pkg-plist b/devel/github-backup-utils/pkg-plist
new file mode 100644
index 000000000000..7080453ae4cd
--- /dev/null
+++ b/devel/github-backup-utils/pkg-plist
@@ -0,0 +1,32 @@
+bin/ghe-backup
+bin/ghe-host-check
+bin/ghe-restore
+@sample etc/github.backup.config.sample
+%%DATADIR%%/ghe-backup-config
+%%DATADIR%%/ghe-backup-es-rsync
+%%DATADIR%%/ghe-backup-es-tarball
+%%DATADIR%%/ghe-backup-pages-rsync
+%%DATADIR%%/ghe-backup-pages-tarball
+%%DATADIR%%/ghe-backup-redis
+%%DATADIR%%/ghe-backup-repositories-rsync
+%%DATADIR%%/ghe-backup-repositories-tarball
+%%DATADIR%%/ghe-backup-settings
+%%DATADIR%%/ghe-backup-userdata
+%%DATADIR%%/ghe-maintenance-mode-disable
+%%DATADIR%%/ghe-maintenance-mode-enable
+%%DATADIR%%/ghe-maintenance-mode-status
+%%DATADIR%%/ghe-prune-snapshots
+%%DATADIR%%/ghe-restore-es-rsync
+%%DATADIR%%/ghe-restore-es-tarball
+%%DATADIR%%/ghe-restore-pages-rsync
+%%DATADIR%%/ghe-restore-pages-tarball
+%%DATADIR%%/ghe-restore-repositories-rsync
+%%DATADIR%%/ghe-restore-repositories-tarball
+%%DATADIR%%/ghe-restore-settings
+%%DATADIR%%/ghe-restore-snapshot-path
+%%DATADIR%%/ghe-restore-userdata
+%%DATADIR%%/ghe-rsync
+%%DATADIR%%/ghe-s3-backup
+%%DATADIR%%/ghe-s3-restore
+%%DATADIR%%/ghe-ssh
+%%DATADIR%%/version