| @@ -1,75 +1,72 @@ | | | @@ -1,75 +1,72 @@ |
1 | # $NetBSD: Makefile,v 1.29 2008/03/24 21:55:36 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.29.2.1 2008/04/30 12:28:17 rtr Exp $ |
2 | | | 2 | |
3 | DISTNAME= rt-3.6.6 | | 3 | DISTNAME= rt-3.6.6 |
4 | PKGREVISION= 2 | | 4 | PKGREVISION= 3 |
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= cube@NetBSD.org | | 8 | MAINTAINER= cube@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 | | | 15 | |
16 | # Core dependencies: | | 16 | # Core dependencies: |
17 | DEPENDS+= p5-Digest-[0-9]*:../../security/p5-Digest | | 17 | DEPENDS+= p5-Digest-[0-9]*:../../security/p5-Digest |
18 | DEPENDS+= p5-Digest-MD5>=2.27:../../security/p5-Digest-MD5 | | 18 | DEPENDS+= p5-Digest-MD5>=2.27:../../security/p5-Digest-MD5 |
19 | DEPENDS+= p5-DBI>=1.37:../../databases/p5-DBI | | 19 | DEPENDS+= p5-DBI>=1.37:../../databases/p5-DBI |
20 | DEPENDS+= p5-Test-Inline>=0.15:../../devel/p5-Test-Inline | | | |
21 | DEPENDS+= p5-Class-ReturnValue>=0.40:../../devel/p5-Class-ReturnValue | | 20 | DEPENDS+= p5-Class-ReturnValue>=0.40:../../devel/p5-Class-ReturnValue |
22 | DEPENDS+= p5-DBIx-SearchBuilder>=1.35:../../databases/p5-DBIx-SearchBuilder | | 21 | DEPENDS+= p5-TimeDate-[0-9]*:../../time/p5-TimeDate |
| | | 22 | DEPENDS+= p5-DBIx-SearchBuilder>=1.50:../../databases/p5-DBIx-SearchBuilder |
23 | DEPENDS+= p5-Text-Template>=1.43:../../textproc/p5-Text-Template | | 23 | DEPENDS+= p5-Text-Template>=1.43:../../textproc/p5-Text-Template |
24 | DEPENDS+= p5-HTML-Parser>=3.35:../../www/p5-HTML-Parser | | 24 | DEPENDS+= p5-HTML-Parser>=3.35:../../www/p5-HTML-Parser |
25 | DEPENDS+= p5-HTML-Scrubber>=0.08:../../www/p5-HTML-Scrubber | | 25 | DEPENDS+= p5-HTML-Scrubber>=0.08:../../www/p5-HTML-Scrubber |
26 | DEPENDS+= p5-Net>=1.15:../../net/p5-Net | | | |
27 | DEPENDS+= p5-Log-Dispatch>=2.0:../../devel/p5-Log-Dispatch | | 26 | DEPENDS+= p5-Log-Dispatch>=2.0:../../devel/p5-Log-Dispatch |
| | | 27 | DEPENDS+= p5-Locale-Maketext>=1.06:../../misc/p5-Locale-Maketext |
28 | DEPENDS+= p5-Locale-Maketext-Lexicon>=0.32:../../misc/p5-Locale-Maketext-Lexicon | | 28 | DEPENDS+= p5-Locale-Maketext-Lexicon>=0.32:../../misc/p5-Locale-Maketext-Lexicon |
29 | DEPENDS+= p5-Locale-Maketext-Fuzzy>=0.02:../../misc/p5-Locale-Maketext-Fuzzy | | 29 | DEPENDS+= p5-Locale-Maketext-Fuzzy>=0.02:../../misc/p5-Locale-Maketext-Fuzzy |
30 | DEPENDS+= p5-MIME-tools>=5.411.1:../../mail/p5-MIME-tools | | 30 | DEPENDS+= p5-MIME-tools>=5.411.1:../../mail/p5-MIME-tools |
31 | DEPENDS+= p5-MailTools>=1.57:../../mail/p5-MailTools | | 31 | DEPENDS+= p5-MailTools>=1.57:../../mail/p5-MailTools |
| | | 32 | DEPENDS+= p5-Net>=1.15:../../net/p5-Net |
32 | DEPENDS+= p5-Text-Wrapper>=1.0:../../textproc/p5-Text-Wrapper | | 33 | DEPENDS+= p5-Text-Wrapper>=1.0:../../textproc/p5-Text-Wrapper |
33 | DEPENDS+= p5-Time>=101.062101:../../time/p5-Time | | 34 | DEPENDS+= p5-Time>=101.062101:../../time/p5-Time |
34 | DEPENDS+= p5-Term-ReadKey>=2.21:../../devel/p5-Term-ReadKey | | | |
35 | DEPENDS+= p5-Text-Autoformat>=1.04:../../textproc/p5-Text-Autoformat | | 35 | DEPENDS+= p5-Text-Autoformat>=1.04:../../textproc/p5-Text-Autoformat |
36 | DEPENDS+= p5-Text-Quoted>=1.5:../../textproc/p5-Text-Quoted | | 36 | DEPENDS+= p5-Text-Quoted>=2.02:../../textproc/p5-Text-Quoted |
37 | DEPENDS+= p5-Tree-Simple>=1.04:../../devel/p5-Tree-Simple | | 37 | DEPENDS+= p5-Tree-Simple>=1.04:../../devel/p5-Tree-Simple |
38 | DEPENDS+= p5-Module-Versions-Report-[0-9]*:../../devel/p5-Module-Versions-Report | | 38 | DEPENDS+= p5-Regexp-Common>=2.113:../../textproc/p5-Regexp-Common |
39 | DEPENDS+= p5-XML-Simple-[0-9]*:../../textproc/p5-XML-Simple | | 39 | DEPENDS+= p5-Module-Versions-Report>=1.03:../../devel/p5-Module-Versions-Report |
| | | 40 | DEPENDS+= p5-Cache-Simple-TimedExpiry-[0-9]*:../../devel/p5-Cache-Simple-TimedExpiry |
40 | DEPENDS+= p5-UNIVERSAL-require>=0.11:../../devel/p5-UNIVERSAL-require | | 41 | DEPENDS+= p5-UNIVERSAL-require>=0.11:../../devel/p5-UNIVERSAL-require |
| | | 42 | DEPENDS+= p5-Calendar-Simple>=1.00:../../time/p5-Calendar-Simple |
| | | 43 | DEPENDS+= p5-CSS-Squish>=0.07:../../www/p5-CSS-Squish |
41 | | | 44 | |
42 | # Mason dependencies: | | 45 | # Mason dependencies: |
43 | DEPENDS+= p5-Params-Validate>=0.02:../../devel/p5-Params-Validate | | | |
44 | DEPENDS+= p5-Cache-Cache>=1.02:../../devel/p5-Cache-Cache | | | |
45 | DEPENDS+= p5-Exception-Class>=1.14:../../devel/p5-Exception-Class | | | |
46 | DEPENDS+= p5-HTML-Mason>=1.31:../../www/p5-HTML-Mason | | 46 | DEPENDS+= p5-HTML-Mason>=1.31:../../www/p5-HTML-Mason |
47 | DEPENDS+= p5-MLDBM>=2.01:../../databases/p5-MLDBM | | | |
48 | DEPENDS+= p5-FreezeThaw>=0.43:../../devel/p5-FreezeThaw | | | |
49 | DEPENDS+= p5-Storable>=2.08:../../devel/p5-Storable | | | |
50 | DEPENDS+= p5-Apache-Session>=1.53:../../www/p5-Apache-Session | | 47 | DEPENDS+= p5-Apache-Session>=1.53:../../www/p5-Apache-Session |
51 | DEPENDS+= p5-XML-RSS>=1.05:../../textproc/p5-XML-RSS | | 48 | DEPENDS+= p5-XML-RSS>=1.05:../../textproc/p5-XML-RSS |
52 | DEPENDS+= p5-HTTP-Server-Simple>=0.07:../../www/p5-HTTP-Server-Simple | | 49 | DEPENDS+= p5-GD-[0-9]*:../../graphics/p5-GD |
53 | DEPENDS+= p5-HTTP-Server-Simple-Mason>=0.09:../../www/p5-HTTP-Server-Simple-Mason | | 50 | DEPENDS+= p5-GDGraph-[0-9]*:../../graphics/p5-GDGraph |
54 | DEPENDS+= p5-Text-WikiFormat>=0.72:../../textproc/p5-Text-WikiFormat | | 51 | DEPENDS+= p5-GDTextUtil-[0-9]*:../../graphics/p5-GDTextUtil |
55 | DEPENDS+= p5-CSS-Squish>=0.07:../../www/p5-CSS-Squish | | 52 | DEPENDS+= p5-Text-WikiFormat>=0.76:../../textproc/p5-Text-WikiFormat |
56 | DEPENDS+= p5-Calendar-Simple>=1.00:../../time/p5-Calendar-Simple | | 53 | DEPENDS+= p5-Module-Refresh>=0.03:../../devel/p5-Module-Refresh |
57 | | | 54 | |
58 | # Mailgate dependencies: | | 55 | # Mailgate dependencies: |
59 | DEPENDS+= p5-HTML-Tree>=3.18:../../www/p5-HTML-Tree | | 56 | DEPENDS+= p5-HTML-Tree>=3.18:../../www/p5-HTML-Tree |
60 | DEPENDS+= p5-HTML-Format>=2.03:../../www/p5-HTML-Format | | 57 | DEPENDS+= p5-HTML-Format>=2.03:../../www/p5-HTML-Format |
61 | DEPENDS+= p5-libwww>=5.76:../../www/p5-libwww | | 58 | DEPENDS+= p5-libwww>=5.76:../../www/p5-libwww |
62 | DEPENDS+= p5-Module-Refresh>=0.03:../../devel/p5-Module-Refresh | | 59 | DEPENDS+= p5-Term-ReadKey>=2.21:../../devel/p5-Term-ReadKey |
63 | | | 60 | |
64 | # Front-end dependencies: | | 61 | # Front-end dependencies: |
65 | .if !empty(PKG_OPTIONS:Mmodperl1) | | 62 | .if !empty(PKG_OPTIONS:Mmodperl1) |
66 | DEPENDS+= p5-libapreq>=1.2:../../www/p5-libapreq | | 63 | DEPENDS+= p5-libapreq>=1.2:../../www/p5-libapreq |
67 | DEPENDS+= p5-Apache-DBI>=0.92:../../databases/p5-Apache-DBI | | 64 | DEPENDS+= p5-Apache-DBI>=0.92:../../databases/p5-Apache-DBI |
68 | .elif !empty(PKG_OPTIONS:Mmodperl2) | | 65 | .elif !empty(PKG_OPTIONS:Mmodperl2) |
69 | DEPENDS+= p5-Apache-DBI>=0.92:../../databases/p5-Apache-DBI | | 66 | DEPENDS+= p5-Apache-DBI>=0.92:../../databases/p5-Apache-DBI |
70 | .elif !empty(PKG_OPTIONS:Mfastcgi) | | 67 | .elif !empty(PKG_OPTIONS:Mfastcgi) |
71 | DEPENDS+= p5-FCGI>=0.67:../../www/p5-FCGI | | 68 | DEPENDS+= p5-FCGI>=0.67:../../www/p5-FCGI |
72 | .endif | | 69 | .endif |
73 | .if !empty(PKG_OPTIONS:Mspeedycgi) | | 70 | .if !empty(PKG_OPTIONS:Mspeedycgi) |
74 | DEPENDS+= SpeedyCGI-[0-9]*:../../www/SpeedyCGI | | 71 | DEPENDS+= SpeedyCGI-[0-9]*:../../www/SpeedyCGI |
75 | PLIST_SUBST+= IF_SPEEDYCGI="" | | 72 | PLIST_SUBST+= IF_SPEEDYCGI="" |
| @@ -78,41 +75,36 @@ MAKE_FLAGS+= RT_SPEEDYCGI_HANDLER="" | | | @@ -78,41 +75,36 @@ MAKE_FLAGS+= RT_SPEEDYCGI_HANDLER="" |
78 | PLIST_SUBST+= IF_SPEEDYCGI="@comment " | | 75 | PLIST_SUBST+= IF_SPEEDYCGI="@comment " |
79 | | | 76 | |
80 | .PHONY: rm-speedycgi | | 77 | .PHONY: rm-speedycgi |
81 | post-install: rm-speedycgi | | 78 | post-install: rm-speedycgi |
82 | rm-speedycgi: | | 79 | rm-speedycgi: |
83 | rm -f ${PREFIX}/bin/mason_handler.scgi | | 80 | rm -f ${PREFIX}/bin/mason_handler.scgi |
84 | .endif | | 81 | .endif |
85 | | | 82 | |
86 | # Back-end dependencies | | 83 | # Back-end dependencies |
87 | .if !empty(PKG_OPTIONS:Mmysql) | | 84 | .if !empty(PKG_OPTIONS:Mmysql) |
88 | DEPENDS+= p5-DBD-mysql>=2.1018:../../databases/p5-DBD-mysql | | 85 | DEPENDS+= p5-DBD-mysql>=2.1018:../../databases/p5-DBD-mysql |
89 | _RT_DB_TYPE= mysql | | 86 | _RT_DB_TYPE= mysql |
90 | .elif !empty(PKG_OPTIONS:Mpgsql) | | 87 | .elif !empty(PKG_OPTIONS:Mpgsql) |
91 | DEPENDS+= p5-DBD-postgresql>=1.41:../../databases/p5-DBD-postgresql | | 88 | DEPENDS+= p5-DBD-postgresql>=1.43:../../databases/p5-DBD-postgresql |
92 | _RT_DB_TYPE= Pg | | 89 | _RT_DB_TYPE= Pg |
93 | .elif !empty(PKG_OPTIONS:Moracle) | | 90 | .elif !empty(PKG_OPTIONS:Moracle) |
94 | DEPENDS+= p5-DBD-Oracle-[0-9]*:../../databases/p5-DBD-Oracle | | 91 | DEPENDS+= p5-DBD-Oracle-[0-9]*:../../databases/p5-DBD-Oracle |
95 | _RT_DB_TYPE= Oracle | | 92 | _RT_DB_TYPE= Oracle |
96 | .elif !empty(PKG_OPTIONS:Msqlite) | | 93 | .elif !empty(PKG_OPTIONS:Msqlite) |
97 | DEPENDS+= p5-DBD-SQLite-[0-9]*:../../databases/p5-DBD-SQLite | | 94 | DEPENDS+= p5-DBD-SQLite>=1.00:../../databases/p5-DBD-SQLite |
98 | _RT_DB_TYPE= SQLite | | 95 | _RT_DB_TYPE= SQLite |
99 | .endif | | 96 | .endif |
100 | | | 97 | |
101 | # Dev dependencies: | | | |
102 | DEPENDS+= p5-Regexp-Common>=2.113:../../textproc/p5-Regexp-Common | | | |
103 | DEPENDS+= p5-WWW-Mechanize>=0.72:../../www/p5-WWW-Mechanize | | | |
104 | DEPENDS+= p5-Test-WWW-Mechanize-[0-9]*:../../www/p5-Test-WWW-Mechanize | | | |
105 | | | | |
106 | USE_PKGLOCALEDIR= yes | | 98 | USE_PKGLOCALEDIR= yes |
107 | GNU_CONFIGURE= yes | | 99 | GNU_CONFIGURE= yes |
108 | NO_BUILD= yes | | 100 | NO_BUILD= yes |
109 | PKG_SYSCONFSUBDIR= rt3 | | 101 | PKG_SYSCONFSUBDIR= rt3 |
110 | | | 102 | |
111 | PKG_GROUPS= ${RT_GROUP} | | 103 | PKG_GROUPS= ${RT_GROUP} |
112 | PKG_GROUPS_VARS+= RT_GROUP APACHE_GROUP | | 104 | PKG_GROUPS_VARS+= RT_GROUP APACHE_GROUP |
113 | PKG_USERS_VARS+= APACHE_USER | | 105 | PKG_USERS_VARS+= APACHE_USER |
114 | | | 106 | |
115 | CONFIGURE_ARGS+= --enable-layout=pkgsrc | | 107 | CONFIGURE_ARGS+= --enable-layout=pkgsrc |
116 | CONFIGURE_ARGS+= --with-rt-group=${RT_GROUP:Q} | | 108 | CONFIGURE_ARGS+= --with-rt-group=${RT_GROUP:Q} |
117 | CONFIGURE_ARGS+= --with-db-type=${_RT_DB_TYPE:Q} | | 109 | CONFIGURE_ARGS+= --with-db-type=${_RT_DB_TYPE:Q} |
118 | CONFIGURE_ARGS+= --with-web-user=${APACHE_USER:Q} | | 110 | CONFIGURE_ARGS+= --with-web-user=${APACHE_USER:Q} |