| @@ -1,146 +1,146 @@ | | | @@ -1,146 +1,146 @@ |
1 | # $NetBSD: Makefile,v 1.35 2008/08/24 14:05:16 tonnerre Exp $ | | 1 | # $NetBSD: Makefile,v 1.36 2009/06/09 17:34:50 abs Exp $ |
2 | | | 2 | |
3 | DISTNAME= rt-3.8.1 | | 3 | DISTNAME= rt-3.8.1 |
4 | PKGREVISION= 1 | | 4 | PKGREVISION= 1 |
5 | CATEGORIES= devel | | 5 | CATEGORIES= devel |
6 | MASTER_SITES= http://download.bestpractical.com/pub/rt/release/ | | 6 | MASTER_SITES= http://download.bestpractical.com/pub/rt/release/ |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= http://bestpractical.com/rt/ | | 9 | HOMEPAGE= http://bestpractical.com/rt/ |
10 | COMMENT= Industrial-grade ticketing system | | 10 | COMMENT= Industrial-grade ticketing system |
11 | | | 11 | |
12 | .include "options.mk" | | 12 | .include "options.mk" |
13 | | | 13 | |
14 | USE_TOOLS+= perl:run | | 14 | USE_TOOLS+= perl:run |
15 | USE_LANGUAGES+= c | | 15 | USE_LANGUAGES+= c |
16 | | | 16 | |
17 | # Core dependencies: | | 17 | # Core dependencies: |
18 | DEPENDS+= p5-Digest-[0-9]*:../../security/p5-Digest | | 18 | DEPENDS+= p5-Digest-[0-9]*:../../security/p5-Digest |
19 | DEPENDS+= p5-Digest-MD5>=2.27:../../security/p5-Digest-MD5 | | 19 | DEPENDS+= p5-Digest-MD5>=2.27:../../security/p5-Digest-MD5 |
20 | DEPENDS+= p5-DBI>=1.37:../../databases/p5-DBI | | 20 | DEPENDS+= p5-DBI>=1.37:../../databases/p5-DBI |
21 | DEPENDS+= p5-Class-ReturnValue>=0.40:../../devel/p5-Class-ReturnValue | | 21 | DEPENDS+= p5-Class-ReturnValue>=0.40:../../devel/p5-Class-ReturnValue |
22 | DEPENDS+= p5-TimeDate-[0-9]*:../../time/p5-TimeDate | | 22 | DEPENDS+= p5-TimeDate-[0-9]*:../../time/p5-TimeDate |
23 | DEPENDS+= p5-DBIx-SearchBuilder>=1.54:../../databases/p5-DBIx-SearchBuilder | | 23 | DEPENDS+= p5-DBIx-SearchBuilder>=1.54:../../databases/p5-DBIx-SearchBuilder |
24 | DEPENDS+= p5-Text-Template>=1.43:../../textproc/p5-Text-Template | | 24 | DEPENDS+= p5-Text-Template>=1.43:../../textproc/p5-Text-Template |
25 | DEPENDS+= p5-HTML-Parser>=3.35:../../www/p5-HTML-Parser | | 25 | DEPENDS+= p5-HTML-Parser>=3.35:../../www/p5-HTML-Parser |
26 | DEPENDS+= p5-HTML-Scrubber>=0.08:../../www/p5-HTML-Scrubber | | 26 | DEPENDS+= p5-HTML-Scrubber>=0.08:../../www/p5-HTML-Scrubber |
27 | DEPENDS+= p5-HTTP-Server-Simple>=0.34:../../www/p5-HTTP-Server-Simple | | 27 | DEPENDS+= p5-HTTP-Server-Simple>=0.34:../../www/p5-HTTP-Server-Simple |
28 | DEPENDS+= p5-HTTP-Server-Simple-Mason>=0.09:../../www/p5-HTTP-Server-Simple-Mason | | 28 | DEPENDS+= p5-HTTP-Server-Simple-Mason>=0.09:../../www/p5-HTTP-Server-Simple-Mason |
29 | DEPENDS+= p5-Log-Dispatch>=2.0:../../devel/p5-Log-Dispatch | | 29 | DEPENDS+= p5-Log-Dispatch>=2.0:../../devel/p5-Log-Dispatch |
30 | DEPENDS+= p5-Locale-Maketext>=1.06:../../misc/p5-Locale-Maketext | | 30 | DEPENDS+= p5-Locale-Maketext>=1.06:../../misc/p5-Locale-Maketext |
31 | DEPENDS+= p5-Locale-Maketext-Lexicon>=0.32:../../misc/p5-Locale-Maketext-Lexicon | | 31 | DEPENDS+= p5-Locale-Maketext-Lexicon>=0.32:../../misc/p5-Locale-Maketext-Lexicon |
32 | DEPENDS+= p5-Locale-Maketext-Fuzzy>=0.02:../../misc/p5-Locale-Maketext-Fuzzy | | 32 | DEPENDS+= p5-Locale-Maketext-Fuzzy>=0.02:../../misc/p5-Locale-Maketext-Fuzzy |
33 | DEPENDS+= p5-MIME-tools>=5.411.1:../../mail/p5-MIME-tools | | 33 | DEPENDS+= p5-MIME-tools>=5.411.1:../../mail/p5-MIME-tools |
34 | DEPENDS+= p5-MailTools>=1.57:../../mail/p5-MailTools | | 34 | DEPENDS+= p5-MailTools>=1.57:../../mail/p5-MailTools |
35 | DEPENDS+= p5-Email-Address-[0-9]*:../../mail/p5-Email-Address | | 35 | DEPENDS+= p5-Email-Address-[0-9]*:../../mail/p5-Email-Address |
36 | DEPENDS+= p5-Net>=1.15:../../net/p5-Net | | 36 | DEPENDS+= p5-Net>=1.15:../../net/p5-Net |
37 | DEPENDS+= p5-Net-Server-[0-9]*:../../net/p5-Net-Server | | 37 | DEPENDS+= p5-Net-Server-[0-9]*:../../net/p5-Net-Server |
38 | DEPENDS+= p5-Text-Wrapper>=1.0:../../textproc/p5-Text-Wrapper | | 38 | DEPENDS+= p5-Text-Wrapper>=1.0:../../textproc/p5-Text-Wrapper |
39 | DEPENDS+= p5-Time>=101.062101:../../time/p5-Time | | 39 | DEPENDS+= p5-Time-modules>=101.062101:../../time/p5-Time-modules |
40 | DEPENDS+= p5-Text-Autoformat>=1.04:../../textproc/p5-Text-Autoformat | | 40 | DEPENDS+= p5-Text-Autoformat>=1.04:../../textproc/p5-Text-Autoformat |
41 | DEPENDS+= p5-Text-Quoted>=2.02:../../textproc/p5-Text-Quoted | | 41 | DEPENDS+= p5-Text-Quoted>=2.02:../../textproc/p5-Text-Quoted |
42 | DEPENDS+= p5-Tree-Simple>=1.04:../../devel/p5-Tree-Simple | | 42 | DEPENDS+= p5-Tree-Simple>=1.04:../../devel/p5-Tree-Simple |
43 | DEPENDS+= p5-Regexp-Common>=2.113:../../textproc/p5-Regexp-Common | | 43 | DEPENDS+= p5-Regexp-Common>=2.113:../../textproc/p5-Regexp-Common |
44 | DEPENDS+= p5-Module-Versions-Report>=1.05:../../devel/p5-Module-Versions-Report | | 44 | DEPENDS+= p5-Module-Versions-Report>=1.05:../../devel/p5-Module-Versions-Report |
45 | DEPENDS+= p5-Cache-Simple-TimedExpiry-[0-9]*:../../devel/p5-Cache-Simple-TimedExpiry | | 45 | DEPENDS+= p5-Cache-Simple-TimedExpiry-[0-9]*:../../devel/p5-Cache-Simple-TimedExpiry |
46 | DEPENDS+= p5-UNIVERSAL-require>=0.11:../../devel/p5-UNIVERSAL-require | | 46 | DEPENDS+= p5-UNIVERSAL-require>=0.11:../../devel/p5-UNIVERSAL-require |
47 | DEPENDS+= p5-Calendar-Simple>=1.00:../../time/p5-Calendar-Simple | | 47 | DEPENDS+= p5-Calendar-Simple>=1.00:../../time/p5-Calendar-Simple |
48 | DEPENDS+= p5-CSS-Squish>=0.07:../../www/p5-CSS-Squish | | 48 | DEPENDS+= p5-CSS-Squish>=0.07:../../www/p5-CSS-Squish |
49 | DEPENDS+= p5-File-ShareDir>=1.00:../../devel/p5-File-ShareDir | | 49 | DEPENDS+= p5-File-ShareDir>=1.00:../../devel/p5-File-ShareDir |
50 | | | 50 | |
51 | # Mason dependencies: | | 51 | # Mason dependencies: |
52 | DEPENDS+= p5-HTML-Mason>=1.36:../../www/p5-HTML-Mason | | 52 | DEPENDS+= p5-HTML-Mason>=1.36:../../www/p5-HTML-Mason |
53 | DEPENDS+= p5-Apache-Session>=1.53:../../www/p5-Apache-Session | | 53 | DEPENDS+= p5-Apache-Session>=1.53:../../www/p5-Apache-Session |
54 | DEPENDS+= p5-XML-RSS>=1.05:../../textproc/p5-XML-RSS | | 54 | DEPENDS+= p5-XML-RSS>=1.05:../../textproc/p5-XML-RSS |
55 | DEPENDS+= p5-GD-[0-9]*:../../graphics/p5-GD | | 55 | DEPENDS+= p5-GD-[0-9]*:../../graphics/p5-GD |
56 | DEPENDS+= p5-GDGraph-[0-9]*:../../graphics/p5-GDGraph | | 56 | DEPENDS+= p5-GDGraph-[0-9]*:../../graphics/p5-GDGraph |
57 | DEPENDS+= p5-GDTextUtil-[0-9]*:../../graphics/p5-GDTextUtil | | 57 | DEPENDS+= p5-GDTextUtil-[0-9]*:../../graphics/p5-GDTextUtil |
58 | DEPENDS+= p5-Text-WikiFormat>=0.76:../../textproc/p5-Text-WikiFormat | | 58 | DEPENDS+= p5-Text-WikiFormat>=0.76:../../textproc/p5-Text-WikiFormat |
59 | DEPENDS+= p5-Module-Refresh>=0.03:../../devel/p5-Module-Refresh | | 59 | DEPENDS+= p5-Module-Refresh>=0.03:../../devel/p5-Module-Refresh |
60 | DEPENDS+= p5-Encode>=2.13:../../textproc/p5-Encode | | 60 | DEPENDS+= p5-Encode>=2.13:../../textproc/p5-Encode |
61 | | | 61 | |
62 | # Mailgate dependencies: | | 62 | # Mailgate dependencies: |
63 | DEPENDS+= p5-HTML-Tree>=3.18:../../www/p5-HTML-Tree | | 63 | DEPENDS+= p5-HTML-Tree>=3.18:../../www/p5-HTML-Tree |
64 | DEPENDS+= p5-HTML-Format>=2.03:../../www/p5-HTML-Format | | 64 | DEPENDS+= p5-HTML-Format>=2.03:../../www/p5-HTML-Format |
65 | DEPENDS+= p5-libwww>=5.76:../../www/p5-libwww | | 65 | DEPENDS+= p5-libwww>=5.76:../../www/p5-libwww |
66 | DEPENDS+= p5-Term-ReadKey>=2.21:../../devel/p5-Term-ReadKey | | 66 | DEPENDS+= p5-Term-ReadKey>=2.21:../../devel/p5-Term-ReadKey |
67 | | | 67 | |
68 | # Dashboard dependencies: | | 68 | # Dashboard dependencies: |
69 | DEPENDS+= p5-MIME-Types-[0-9]*:../../mail/p5-MIME-Types | | 69 | DEPENDS+= p5-MIME-Types-[0-9]*:../../mail/p5-MIME-Types |
70 | DEPENDS+= p5-HTML-RewriteAttributes>=0.02:../../www/p5-HTML-RewriteAttributes | | 70 | DEPENDS+= p5-HTML-RewriteAttributes>=0.02:../../www/p5-HTML-RewriteAttributes |
71 | | | 71 | |
72 | # ICAL dependencies: | | 72 | # ICAL dependencies: |
73 | DEPENDS+= p5-Data-ICal-[0-9]*:../../time/p5-Data-ICal | | 73 | DEPENDS+= p5-Data-ICal-[0-9]*:../../time/p5-Data-ICal |
74 | | | 74 | |
75 | # GPG dependencies: | | 75 | # GPG dependencies: |
76 | DEPENDS+= p5-PerlIO-eol-[0-9]*:../../devel/p5-PerlIO-eol | | 76 | DEPENDS+= p5-PerlIO-eol-[0-9]*:../../devel/p5-PerlIO-eol |
77 | DEPENDS+= p5-GnuPG-Interface-[0-9]*:../../security/p5-GnuPG-Interface | | 77 | DEPENDS+= p5-GnuPG-Interface-[0-9]*:../../security/p5-GnuPG-Interface |
78 | | | 78 | |
79 | # Front-end dependencies: | | 79 | # Front-end dependencies: |
80 | .if !empty(PKG_OPTIONS:Mmodperl1) | | 80 | .if !empty(PKG_OPTIONS:Mmodperl1) |
81 | DEPENDS+= p5-libapreq>=1.2:../../www/p5-libapreq | | 81 | DEPENDS+= p5-libapreq>=1.2:../../www/p5-libapreq |
82 | DEPENDS+= p5-Apache-DBI>=0.92:../../databases/p5-Apache-DBI | | 82 | DEPENDS+= p5-Apache-DBI>=0.92:../../databases/p5-Apache-DBI |
83 | .elif !empty(PKG_OPTIONS:Mmodperl2) | | 83 | .elif !empty(PKG_OPTIONS:Mmodperl2) |
84 | DEPENDS+= p5-Apache-DBI>=0.92:../../databases/p5-Apache-DBI | | 84 | DEPENDS+= p5-Apache-DBI>=0.92:../../databases/p5-Apache-DBI |
85 | .elif !empty(PKG_OPTIONS:Mfastcgi) | | 85 | .elif !empty(PKG_OPTIONS:Mfastcgi) |
86 | DEPENDS+= p5-FCGI>=0.67:../../www/p5-FCGI | | 86 | DEPENDS+= p5-FCGI>=0.67:../../www/p5-FCGI |
87 | DEPENDS+= p5-CGI>=3.38:../../www/p5-CGI | | 87 | DEPENDS+= p5-CGI>=3.38:../../www/p5-CGI |
88 | .endif | | 88 | .endif |
89 | PLIST_VARS+= speedycgi | | 89 | PLIST_VARS+= speedycgi |
90 | .if !empty(PKG_OPTIONS:Mspeedycgi) | | 90 | .if !empty(PKG_OPTIONS:Mspeedycgi) |
91 | DEPENDS+= SpeedyCGI-[0-9]*:../../www/SpeedyCGI | | 91 | DEPENDS+= SpeedyCGI-[0-9]*:../../www/SpeedyCGI |
92 | PLIST.speedycgi=yes | | 92 | PLIST.speedycgi=yes |
93 | .else | | 93 | .else |
94 | MAKE_FLAGS+= RT_SPEEDYCGI_HANDLER="" | | 94 | MAKE_FLAGS+= RT_SPEEDYCGI_HANDLER="" |
95 | | | 95 | |
96 | .PHONY: rm-speedycgi | | 96 | .PHONY: rm-speedycgi |
97 | post-install: rm-speedycgi | | 97 | post-install: rm-speedycgi |
98 | rm-speedycgi: | | 98 | rm-speedycgi: |
99 | rm -f ${PREFIX}/bin/mason_handler.scgi | | 99 | rm -f ${PREFIX}/bin/mason_handler.scgi |
100 | .endif | | 100 | .endif |
101 | | | 101 | |
102 | # Back-end dependencies | | 102 | # Back-end dependencies |
103 | .if !empty(PKG_OPTIONS:Mmysql) | | 103 | .if !empty(PKG_OPTIONS:Mmysql) |
104 | DEPENDS+= p5-DBD-mysql>=2.1018:../../databases/p5-DBD-mysql | | 104 | DEPENDS+= p5-DBD-mysql>=2.1018:../../databases/p5-DBD-mysql |
105 | _RT_DB_TYPE= mysql | | 105 | _RT_DB_TYPE= mysql |
106 | .elif !empty(PKG_OPTIONS:Mpgsql) | | 106 | .elif !empty(PKG_OPTIONS:Mpgsql) |
107 | DEPENDS+= p5-DBD-postgresql>=1.43:../../databases/p5-DBD-postgresql | | 107 | DEPENDS+= p5-DBD-postgresql>=1.43:../../databases/p5-DBD-postgresql |
108 | _RT_DB_TYPE= Pg | | 108 | _RT_DB_TYPE= Pg |
109 | .elif !empty(PKG_OPTIONS:Moracle) | | 109 | .elif !empty(PKG_OPTIONS:Moracle) |
110 | DEPENDS+= p5-DBD-Oracle-[0-9]*:../../databases/p5-DBD-Oracle | | 110 | DEPENDS+= p5-DBD-Oracle-[0-9]*:../../databases/p5-DBD-Oracle |
111 | _RT_DB_TYPE= Oracle | | 111 | _RT_DB_TYPE= Oracle |
112 | .elif !empty(PKG_OPTIONS:Msqlite) | | 112 | .elif !empty(PKG_OPTIONS:Msqlite) |
113 | DEPENDS+= p5-DBD-SQLite>=1.00:../../databases/p5-DBD-SQLite | | 113 | DEPENDS+= p5-DBD-SQLite>=1.00:../../databases/p5-DBD-SQLite |
114 | _RT_DB_TYPE= SQLite | | 114 | _RT_DB_TYPE= SQLite |
115 | .endif | | 115 | .endif |
116 | | | 116 | |
117 | # "Development" dependencies: | | 117 | # "Development" dependencies: |
118 | # XML::Simple is required by the installed script | | 118 | # XML::Simple is required by the installed script |
119 | # PREFIX/sbin/rt-dump-database | | 119 | # PREFIX/sbin/rt-dump-database |
120 | DEPENDS+= p5-XML-Simple-[0-9]*:../../textproc/p5-XML-Simple | | 120 | DEPENDS+= p5-XML-Simple-[0-9]*:../../textproc/p5-XML-Simple |
121 | | | 121 | |
122 | USE_PKGLOCALEDIR= yes | | 122 | USE_PKGLOCALEDIR= yes |
123 | GNU_CONFIGURE= yes | | 123 | GNU_CONFIGURE= yes |
124 | NO_BUILD= yes | | 124 | NO_BUILD= yes |
125 | PKG_SYSCONFSUBDIR= rt3 | | 125 | PKG_SYSCONFSUBDIR= rt3 |
126 | | | 126 | |
127 | PKG_GROUPS= ${RT_GROUP} | | 127 | PKG_GROUPS= ${RT_GROUP} |
128 | PKG_GROUPS_VARS+= RT_GROUP APACHE_GROUP | | 128 | PKG_GROUPS_VARS+= RT_GROUP APACHE_GROUP |
129 | PKG_USERS_VARS+= APACHE_USER | | 129 | PKG_USERS_VARS+= APACHE_USER |
130 | | | 130 | |
131 | CONFIGURE_ARGS+= --enable-layout=pkgsrc | | 131 | CONFIGURE_ARGS+= --enable-layout=pkgsrc |
132 | CONFIGURE_ARGS+= --with-rt-group=${RT_GROUP:Q} | | 132 | CONFIGURE_ARGS+= --with-rt-group=${RT_GROUP:Q} |
133 | CONFIGURE_ARGS+= --with-db-type=${_RT_DB_TYPE:Q} | | 133 | CONFIGURE_ARGS+= --with-db-type=${_RT_DB_TYPE:Q} |
134 | CONFIGURE_ARGS+= --with-web-user=${APACHE_USER:Q} | | 134 | CONFIGURE_ARGS+= --with-web-user=${APACHE_USER:Q} |
135 | CONFIGURE_ARGS+= --with-web-group=${APACHE_GROUP:Q} | | 135 | CONFIGURE_ARGS+= --with-web-group=${APACHE_GROUP:Q} |
136 | CONFIGURE_ARGS+= --with-speedycgi=${PERL5_INSTALLVENDORBIN}/speedy | | 136 | CONFIGURE_ARGS+= --with-speedycgi=${PERL5_INSTALLVENDORBIN}/speedy |
137 | MESSAGE_SUBST+= HOMEPAGE=${HOMEPAGE:Q} | | 137 | MESSAGE_SUBST+= HOMEPAGE=${HOMEPAGE:Q} |
138 | MESSAGE_SUBST+= RT_GROUP=${RT_GROUP:Q} | | 138 | MESSAGE_SUBST+= RT_GROUP=${RT_GROUP:Q} |
139 | MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q} | | 139 | MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q} |
140 | | | 140 | |
141 | post-extract: | | 141 | post-extract: |
142 | cd ${WRKSRC} && chmod -R g-w . | | 142 | cd ${WRKSRC} && chmod -R g-w . |
143 | | | 143 | |
144 | .include "Makefile.install" | | 144 | .include "Makefile.install" |
145 | | | 145 | |
146 | .include "../../mk/bsd.pkg.mk" | | 146 | .include "../../mk/bsd.pkg.mk" |