make the import of old reports work

fix HOMEPAGE
add hidden RDEP to ruby-rake
take MAINTAINER

feedback and OK jasper@ (former MAINTAINER)
This commit is contained in:
sebastia 2014-08-14 10:16:08 +00:00
parent d699f06c11
commit 37c24b1de2
3 changed files with 24 additions and 5 deletions

View File

@ -1,14 +1,14 @@
# $OpenBSD: Makefile,v 1.32 2014/07/12 13:41:47 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.33 2014/08/14 10:16:08 sebastia Exp $
COMMENT= overview of your Puppet ecosystem
DISTNAME= puppet-dashboard-1.2.23
REVISION= 9
REVISION= 10
CATEGORIES= www sysutils
HOMEPAGE= https://puppetlabs.com/puppet/related-projects/dashboard/
HOMEPAGE= https://github.com/sodabrew/puppet-dashboard/
MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>
MAINTAINER= Sebastian Reitenbach <sebastia@openbsd.org>
# Apache 2.0
PERMIT_PACKAGE_CDROM= Yes
@ -19,6 +19,7 @@ MODRUBY_REV= 1.8
MASTER_SITES= http://puppetlabs.com/downloads/dashboard/
RUN_DEPENDS= databases/ruby-mysql,${MODRUBY_FLAVOR} \
devel/ruby-rake,${MODRUBY_FLAVOR} \
devel/ruby-rdoc,${MODRUBY_FLAVOR} \
www/ruby-rack,${MODRUBY_FLAVOR} \
${MODRUBY_ICONV_DEPENDS}

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-lib_tasks_import_reports_rake,v 1.1 2014/08/14 10:16:08 sebastia Exp $
look into the right directory when importing old
reports from before the installation.
--- lib/tasks/import_reports.rake.orig Tue Aug 12 23:03:03 2014
+++ lib/tasks/import_reports.rake Tue Aug 12 23:03:17 2014
@@ -1,6 +1,6 @@
require "#{RAILS_ROOT}/lib/progress_bar"
namespace :reports do
- DEFAULT_DIR = '/var/lib/puppet/reports'
+ DEFAULT_DIR = '/var/puppet/reports'
DEFAULT_URL = 'http://localhost:3000/reports/upload'
desc "Import stored YAML reports from your puppet report directory (or $REPORT_DIR)"

View File

@ -1,4 +1,4 @@
$OpenBSD: README,v 1.13 2014/07/12 13:41:47 ajacoutot Exp $
$OpenBSD: README,v 1.14 2014/08/14 10:16:08 sebastia Exp $
+-----------------------------------------------------------------------
| Running ${FULLPKGNAME} on OpenBSD
@ -62,6 +62,9 @@ To import old Puppet reports that were created before the Dashboard got
installed, the following command can be used:
# cd ${INSTDIR} && sudo -u _puppet-dashboard rake${MODRUBY_BINREV} RAILS_ENV=production reports:import
Note: For the above command to work, the _puppet-dashboard user must
be a member of the _puppet group.
Cron Jobs
---------
The MySQL database should be optimized on a montly basis. This can be