blob: 9558ae6d9650c210a67b309e98989d7196dea219 (
plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
# $NetBSD: Makefile,v 1.6 2021/08/22 06:40:24 taca Exp $
DISTNAME= redmine-${RM_VERSION}
PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:S/redmine/redmine${RM_VER}/}
CATEGORIES= devel
MASTER_SITES= https://www.redmine.org/releases/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.redmine.org/
COMMENT= Flexible project management web application
LICENSE= gnu-gpl-v2 # and so on.
RM_VERSION= 4.1.4
NO_BUILD= yes
RUBY_VERSIONS_ACCEPTED= 26
RUBY_RAILS_ACCEPTED= 52
OVERRIDE_GEMSPEC+= net-ldap>=0.16.0 nokogiri>=1.11.0 roadie-rails>=2.1.0
.include "../../lang/ruby/modules.mk"
DEPENDS+= ${RUBY_PKGPREFIX}-bundler>=1.5.0:../../misc/ruby-bundler
DEPENDS+= ${RUBY_RAILS_DEPENDS}
DEPENDS+= ${RUBY_PKGPREFIX}-rouge>=3.12:../../www/ruby-rouge
DEPENDS+= ${RUBY_PKGPREFIX}-request_store>=1.4.1:../../www/ruby-request_store
DEPENDS+= ${RUBY_PKGPREFIX}-mini_mime>=1.0.1<1.1:../../mail/ruby-mini_mime
DEPENDS+= ${RUBY_PKGPREFIX}-actionpack${RUBY_RAILS}-xml_parser>=2.0:../../textproc/ruby-actionpack-xml_parser
DEPENDS+= ${RUBY_PKGPREFIX}-roadie-rails${RUBY_RAILS}>=2.1.0:../../mail/ruby-roadie-rails
DEPENDS+= ${RUBY_PKGPREFIX}-mail>=2.7.1<2.8:../../mail/ruby-mail
DEPENDS+= ${RUBY_PKGPREFIX}-csv>=3.1.1<3.2:../../textproc/ruby-csv
DEPENDS+= ${RUBY_PKGPREFIX}-nokogiri>=1.11.0:../../textproc/ruby-nokogiri
DEPENDS+= ${RUBY_PKGPREFIX}-i18n>=1.6.0:../../devel/ruby-i18n
DEPENDS+= ${RUBY_PKGPREFIX}-rbpdf>=1.20.0<1.21:../../print/ruby-rbpdf
#DEPENDS+= ${RUBY_PKGPREFIX}-tzinfo-data>=1:../../time/ruby-tzinfo-data
DEPENDS+= ${RUBY_PKGPREFIX}-net-ldap>=0.16.0:../../net/ruby-net-ldap
DEPENDS+= ${RUBY_PKGPREFIX}-ruby-openid>=2.9.2<2.10:../../security/ruby-ruby-openid
DEPENDS+= ${RUBY_PKGPREFIX}-rack-openid>=1.4.2:../../security/ruby-rack-openid
DEPENDS+= ${RUBY_PKGPREFIX}-mini-magick>=4.9.5:../../graphics/ruby-mini-magick
DEPENDS+= ${RUBY_PKGPREFIX}-redcarpet>=3.5.1<3.6:../../textproc/ruby-redcarpet
.include "options.mk"
REPLACE_RUBY+= ${DISTNAME}/bin/*
REPLACE_RUBY+= ${DISTNAME}/extra/mail_handler/rdm-mailhandler.rb
REPLACE_RUBY+= ${DISTNAME}/extra/svn/reposman.rb
REPLACE_RUBY+= ${DISTNAME}/public/dispatch.fcgi.example
SUBST_CLASSES+= shell
SUBST_FILES.shell= ${DESTDIR}${PREFIX}/bin/redmine41_*${RUBY_SUFFIX}.sh
SUBST_MESSAGE.shell= Fixing paths in helper shell scripts.
SUBST_VARS.shell= PREFIX RUBY RM_DIR
SUBST_STAGE.shell= post-install
MESSAGE_SUBST+= RM_DIR=${RM_DIR}
USE_LANGUAGES= # none
EGDIR= ${PREFIX}/share/examples/${RUBY_PKGPREFIX}-redmine41
INSTALLATION_DIRS= bin ${EGDIR} ${RM_DIR} ${RM_DIR}/config
CONF_FILES+= ${EGDIR}/configuration.yml.example \
${RM_DIR}/config/configuration.yml
CONF_FILES+= ${EGDIR}/database.yml.example \
${RM_DIR}/config/database.yml
CONF_FILES+= ${EGDIR}/additional_environment.rb.example \
${RM_DIR}/config/additional_environment.rb
REQD_FILES+= /dev/null ${RM_DIR}/Gemfile.lock
.include "../../mk/bsd.prefs.mk"
PKG_GROUPS= ${APACHE_GROUP}
PKG_USERS= ${APACHE_USER}:${APACHE_GROUP}
BUILD_DEFS+= APACHE_GROUP APACHE_USER
FILES_SUBST+= WWWGRP=${APACHE_GROUP} WWWOWN=${APACHE_USER} \
RM_DIR=${RM_DIR}
do-install:
cd ${WRKSRC} && ${FIND} . -type d -exec ${INSTALL_DATA_DIR} \
${DESTDIR}${PREFIX}/${RM_DIR}/{} \;
cd ${WRKSRC} && ${FIND} . -type f ! -name "*.orig" -exec \
${INSTALL_DATA} {} ${DESTDIR}${PREFIX}/${RM_DIR}/{} \;
${INSTALL_SCRIPT} ${FILESDIR}/redmine41_migrate_plugins.sh \
${DESTDIR}${PREFIX}/bin/redmine41_migrate_plugins${RUBY_SUFFIX}.sh
${INSTALL_SCRIPT} ${FILESDIR}/redmine41_generate_secret_token.sh \
${DESTDIR}${PREFIX}/bin/redmine41_generate_secret_token${RUBY_SUFFIX}.sh
${INSTALL_SCRIPT} ${FILESDIR}/redmine41_migrate_db.sh \
${DESTDIR}${PREFIX}/bin/redmine41_migrate_db${RUBY_SUFFIX}.sh
${INSTALL_SCRIPT} ${FILESDIR}/redmine41_load_default_data.sh \
${DESTDIR}${PREFIX}/bin/redmine41_load_default_data${RUBY_SUFFIX}.sh
post-install: unicorn-post-install
${FIND} ${DESTDIR}/ -name ".*" \( -type f -or -type d \) | xargs rm -rf
${MV} ${DESTDIR}${PREFIX}/${RM_DIR}/config/configuration.yml.example \
${DESTDIR}/${EGDIR}
${MV} ${DESTDIR}${PREFIX}/${RM_DIR}/config/database.yml.example \
${DESTDIR}/${EGDIR}
${MV} ${DESTDIR}${PREFIX}/${RM_DIR}/config/additional_environment.rb.example \
${DESTDIR}/${EGDIR}
.include "../../devel/ruby-redmine/redmine.mk"
.include "../../mk/bsd.pkg.mk"
|