| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.49 2020/04/22 23:17:05 dsainty Exp $ | | 1 | # $NetBSD: Makefile,v 1.50 2020/05/16 17:57:45 rillig Exp $ |
2 | | | 2 | |
3 | # See wip/zoneminder for a draft update to 1.29.0. | | 3 | # See wip/zoneminder for a draft update to 1.29.0. |
4 | PKGNAME= ${DISTNAME:S/ZoneMinder-/zoneminder-/} | | 4 | PKGNAME= ${DISTNAME:S/ZoneMinder-/zoneminder-/} |
5 | DISTNAME= ZoneMinder-1.28.1 | | 5 | DISTNAME= ZoneMinder-1.28.1 |
6 | PKGREVISION= 22 | | 6 | PKGREVISION= 22 |
7 | CATEGORIES= security | | 7 | CATEGORIES= security |
8 | MASTER_SITES= ${MASTER_SITE_GITHUB:=ZoneMinder/} | | 8 | MASTER_SITES= ${MASTER_SITE_GITHUB:=ZoneMinder/} |
9 | GITHUB_PROJECT= ZoneMinder | | 9 | GITHUB_PROJECT= ZoneMinder |
10 | GITHUB_TYPE= tag | | 10 | GITHUB_TYPE= tag |
11 | GITHUB_TAG= v${PKGVERSION_NOREV} | | 11 | GITHUB_TAG= v${PKGVERSION_NOREV} |
12 | | | 12 | |
13 | MAINTAINER= dsainty@NetBSD.org | | 13 | MAINTAINER= dsainty@NetBSD.org |
14 | #MAINTAINER+= gdt@NetBSD.org | | 14 | #MAINTAINER+= gdt@NetBSD.org |
| @@ -187,27 +187,27 @@ SUBST_MESSAGE.dbpaths-path= Adjusting de | | | @@ -187,27 +187,27 @@ SUBST_MESSAGE.dbpaths-path= Adjusting de |
187 | SUBST_STAGE.dbpaths-path= pre-configure | | 187 | SUBST_STAGE.dbpaths-path= pre-configure |
188 | SUBST_FILES.dbpaths-path= db/zm_create.sql.in | | 188 | SUBST_FILES.dbpaths-path= db/zm_create.sql.in |
189 | SUBST_SED.dbpaths-path= -e 's|/usr/local/bin/|${PREFIX}/bin/|g' | | 189 | SUBST_SED.dbpaths-path= -e 's|/usr/local/bin/|${PREFIX}/bin/|g' |
190 | SUBST_SED.dbpaths-path+= -e 's|/usr/bin|${PREFIX}/bin|g' | | 190 | SUBST_SED.dbpaths-path+= -e 's|/usr/bin|${PREFIX}/bin|g' |
191 | SUBST_SED.dbpaths-path+= -e 's|/cgi-bin/nph-zms|/zm/cgi-bin/nph-zms|g' | | 191 | SUBST_SED.dbpaths-path+= -e 's|/cgi-bin/nph-zms|/zm/cgi-bin/nph-zms|g' |
192 | | | 192 | |
193 | # | | 193 | # |
194 | # Required to find the 'mysql' client executable, and may also use 'sudo' if | | 194 | # Required to find the 'mysql' client executable, and may also use 'sudo' if |
195 | # installed. | | 195 | # installed. |
196 | # | | 196 | # |
197 | SUBST_CLASSES+= script-path | | 197 | SUBST_CLASSES+= script-path |
198 | SUBST_MESSAGE.script-path= Adjusting paths in scripts. | | 198 | SUBST_MESSAGE.script-path= Adjusting paths in scripts. |
199 | SUBST_STAGE.script-path= pre-configure | | 199 | SUBST_STAGE.script-path= pre-configure |
200 | SUBST_FILES.script-path= ${REPLACE_PERL} ${EXTRA_PERL} | | 200 | SUBST_FILES.script-path= ${REPLACE_PERL} ${EXTRA_PERL:Nscripts/zmsystemctl.pl.in} |
201 | SUBST_SED.script-path= -e "s|^\\([\$$]ENV{PATH} *= *'\\).*';\$$|\\1${PREFIX}/bin:/bin:/usr/bin';|g" | | 201 | SUBST_SED.script-path= -e "s|^\\([\$$]ENV{PATH} *= *'\\).*';\$$|\\1${PREFIX}/bin:/bin:/usr/bin';|g" |
202 | | | 202 | |
203 | SUBST_CLASSES+= files | | 203 | SUBST_CLASSES+= files |
204 | SUBST_STAGE.files= pre-configure | | 204 | SUBST_STAGE.files= pre-configure |
205 | SUBST_FILES.files= zoneminder.conf | | 205 | SUBST_FILES.files= zoneminder.conf |
206 | SUBST_SED.files= -e "s|@ZM_HTTPD_ROOT@|${PREFIX}/${ZM_HTTPD_ROOT}|g" | | 206 | SUBST_SED.files= -e "s|@ZM_HTTPD_ROOT@|${PREFIX}/${ZM_HTTPD_ROOT}|g" |
207 | SUBST_SED.files+= -e "s|@ZM_HTTPD_CGIBIN@|${PREFIX}/${ZM_HTTPD_CGIBIN}|g" | | 207 | SUBST_SED.files+= -e "s|@ZM_HTTPD_CGIBIN@|${PREFIX}/${ZM_HTTPD_CGIBIN}|g" |
208 | SUBST_MESSAGE.files= Fixing ZoneMinder configuration file for Apache. | | 208 | SUBST_MESSAGE.files= Fixing ZoneMinder configuration file for Apache. |
209 | | | 209 | |
210 | PLIST_VARS+= rcd | | 210 | PLIST_VARS+= rcd |
211 | | | 211 | |
212 | .if ${INIT_SYSTEM} == "rc.d" | | 212 | .if ${INIT_SYSTEM} == "rc.d" |
213 | PLIST.rcd= yes | | 213 | PLIST.rcd= yes |