Wed Apr 22 15:13:44 2015 UTC ()
Fix paths in two missed installed scripts.

The intention of zmsystemctl.pl is to use bin/pkexec to allow the apache user
to start and stop the ZoneMinder services on operating systems using systemd
and newer versions of Polkit than Pkgsrc currently has.

If the base OS doesn't use systemd (E.g. anything not Linux), this file
shouldn't be used anyway.

In Pkgsrc we ignore the potentially absent pkexec interpreter in this file.
If the base OS uses systemd, it probably also has pkexec in its base
installation.

Bump PKGREVISION.


(dsainty)
diff -r1.17 -r1.18 pkgsrc/security/zoneminder/Makefile

cvs diff -r1.17 -r1.18 pkgsrc/security/zoneminder/Makefile (switch to unified diff)

--- pkgsrc/security/zoneminder/Makefile 2015/04/10 02:58:49 1.17
+++ pkgsrc/security/zoneminder/Makefile 2015/04/22 15:13:43 1.18
@@ -1,217 +1,242 @@ @@ -1,217 +1,242 @@
1# $NetBSD: Makefile,v 1.17 2015/04/10 02:58:49 dsainty Exp $ 1# $NetBSD: Makefile,v 1.18 2015/04/22 15:13:43 dsainty Exp $
2 2
3PKGNAME= ${DISTNAME:S/ZoneMinder-/zoneminder-/} 3PKGNAME= ${DISTNAME:S/ZoneMinder-/zoneminder-/}
4DISTNAME= ZoneMinder-1.28.1 4DISTNAME= ZoneMinder-1.28.1
5PKGREVISION= 1 5PKGREVISION= 2
6CATEGORIES= security 6CATEGORIES= security
7MASTER_SITES= ${MASTER_SITE_GITHUB:=ZoneMinder/} 7MASTER_SITES= ${MASTER_SITE_GITHUB:=ZoneMinder/}
8GITHUB_PROJECT= ZoneMinder 8GITHUB_PROJECT= ZoneMinder
9GITHUB_TYPE= tag 9GITHUB_TYPE= tag
10GITHUB_TAG= v${PKGVERSION_NOREV} 10GITHUB_TAG= v${PKGVERSION_NOREV}
11 11
12MAINTAINER= dsainty@NetBSD.org 12MAINTAINER= dsainty@NetBSD.org
13HOMEPAGE= http://www.zoneminder.com/ 13HOMEPAGE= http://www.zoneminder.com/
14COMMENT= Video camera security and surveillance solution 14COMMENT= Video camera security and surveillance solution
15LICENSE= gnu-gpl-v2 15LICENSE= gnu-gpl-v2
16 16
17# NetBSD tar: Invalid header, starting valid header search. 17# NetBSD tar: Invalid header, starting valid header search.
18EXTRACT_USING= gtar 18EXTRACT_USING= gtar
19 19
20DEPENDS+= netpbm-[0-9]*:../../graphics/netpbm 20DEPENDS+= netpbm-[0-9]*:../../graphics/netpbm
21 21
22PKG_OPTIONS_VAR= PKG_OPTIONS.zoneminder 22PKG_OPTIONS_VAR= PKG_OPTIONS.zoneminder
23PKG_SUPPORTED_OPTIONS= apache 23PKG_SUPPORTED_OPTIONS= apache
24PKG_SUGGESTED_OPTIONS= apache 24PKG_SUGGESTED_OPTIONS= apache
25 25
26.include "../../mk/bsd.options.mk" 26.include "../../mk/bsd.options.mk"
27 27
28GNU_CONFIGURE= yes 28GNU_CONFIGURE= yes
29USE_LANGUAGES= c c++ 29USE_LANGUAGES= c c++
30USE_TOOLS+= aclocal autoconf autoheader automake gmake perl 30USE_TOOLS+= aclocal autoconf autoheader automake gmake perl
31 31
32# MIME::Entity is needed from p5-MIME-tools 32# MIME::Entity is needed from p5-MIME-tools
33# LWP::UserAgent is needed from p5-libwww 33# LWP::UserAgent is needed from p5-libwww
34DEPENDS+= p5-Archive-Zip-[0-9]*:../../archivers/p5-Archive-Zip 34DEPENDS+= p5-Archive-Zip-[0-9]*:../../archivers/p5-Archive-Zip
35DEPENDS+= p5-Date-Manip-[0-9]*:../../devel/p5-Date-Manip 35DEPENDS+= p5-Date-Manip-[0-9]*:../../devel/p5-Date-Manip
36DEPENDS+= p5-Device-SerialPort-[0-9]*:../../comms/p5-Device-SerialPort 36DEPENDS+= p5-Device-SerialPort-[0-9]*:../../comms/p5-Device-SerialPort
37DEPENDS+= p5-DBD-mysql-[0-9]*:../../databases/p5-DBD-mysql 37DEPENDS+= p5-DBD-mysql-[0-9]*:../../databases/p5-DBD-mysql
38DEPENDS+= p5-MIME-Lite-[0-9]*:../../mail/p5-MIME-Lite 38DEPENDS+= p5-MIME-Lite-[0-9]*:../../mail/p5-MIME-Lite
39DEPENDS+= p5-MIME-tools-[0-9]*:../../mail/p5-MIME-tools 39DEPENDS+= p5-MIME-tools-[0-9]*:../../mail/p5-MIME-tools
40DEPENDS+= p5-PHP-Serialization-[0-9]*:../../devel/p5-PHP-Serialization 40DEPENDS+= p5-PHP-Serialization-[0-9]*:../../devel/p5-PHP-Serialization
41DEPENDS+= {perl>=5.7.3,p5-Time-HiRes-[0-9]*}:../../time/p5-Time-HiRes 41DEPENDS+= {perl>=5.7.3,p5-Time-HiRes-[0-9]*}:../../time/p5-Time-HiRes
42DEPENDS+= p5-libwww-[0-9]*:../../www/p5-libwww 42DEPENDS+= p5-libwww-[0-9]*:../../www/p5-libwww
43 43
44CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} 44CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
45 45
46ZM_HTTPD_ROOT= share/zoneminder/htdocs 46ZM_HTTPD_ROOT= share/zoneminder/htdocs
47PLIST_SUBST+= ZM_HTTPD_ROOT=${ZM_HTTPD_ROOT:Q} 47PLIST_SUBST+= ZM_HTTPD_ROOT=${ZM_HTTPD_ROOT:Q}
48OWN_DIRS+= ${ZM_HTTPD_ROOT:Q} 48OWN_DIRS+= ${ZM_HTTPD_ROOT:Q}
49 49
50ZM_HTTPD_CGIBIN= libexec/zoneminder/cgi-bin 50ZM_HTTPD_CGIBIN= libexec/zoneminder/cgi-bin
51PLIST_SUBST+= ZM_HTTPD_CGIBIN=${ZM_HTTPD_CGIBIN:Q} 51PLIST_SUBST+= ZM_HTTPD_CGIBIN=${ZM_HTTPD_CGIBIN:Q}
52BUILD_DEFS+= ZM_HTTPD_CGIBIN 52BUILD_DEFS+= ZM_HTTPD_CGIBIN
53OWN_DIRS+= ${ZM_HTTPD_CGIBIN:Q} 53OWN_DIRS+= ${ZM_HTTPD_CGIBIN:Q}
54 54
55INSTALLATION_DIRS+= share/zoneminder ${ZM_HTTPD_ROOT} 55INSTALLATION_DIRS+= share/zoneminder ${ZM_HTTPD_ROOT}
56INSTALLATION_DIRS+= libexec/zoneminder ${ZM_HTTPD_CGIBIN} 56INSTALLATION_DIRS+= libexec/zoneminder ${ZM_HTTPD_CGIBIN}
57 57
58BUILD_DEFS+= VARBASE 58BUILD_DEFS+= VARBASE
59CONFIGURE_ARGS+= --with-webdir=${PREFIX}/${ZM_HTTPD_ROOT:Q} 59CONFIGURE_ARGS+= --with-webdir=${PREFIX}/${ZM_HTTPD_ROOT:Q}
60CONFIGURE_ARGS+= --with-cgidir=${PREFIX}/${ZM_HTTPD_CGIBIN:Q} 60CONFIGURE_ARGS+= --with-cgidir=${PREFIX}/${ZM_HTTPD_CGIBIN:Q}
61CONFIGURE_ARGS+= --with-mysql=${BUILDLINK_PREFIX.mysql-client} 61CONFIGURE_ARGS+= --with-mysql=${BUILDLINK_PREFIX.mysql-client}
62CONFIGURE_ARGS+= --localstatedir=${VARBASE} 62CONFIGURE_ARGS+= --localstatedir=${VARBASE}
63 63
64# PolicyKit doesn't actually seem to be necessary. This hack disables 64# PolicyKit doesn't actually seem to be necessary. This hack disables
65# configure's hunt for PolicyKit, but has no other apparent ill effects. 65# configure's hunt for PolicyKit, but has no other apparent ill effects.
66CONFIGURE_ENV+= POLKIT_CFLAGS=" " POLKIT_LIBS=" " 66CONFIGURE_ENV+= POLKIT_CFLAGS=" " POLKIT_LIBS=" "
67 67
68PTHREAD_AUTO_VARS= yes 68PTHREAD_AUTO_VARS= yes
69.include "../../mk/pthread.buildlink3.mk" 69.include "../../mk/pthread.buildlink3.mk"
70 70
71CONFIGURE_ENV+= OPT_NETPBM=yes 71CONFIGURE_ENV+= OPT_NETPBM=yes
72CONFIGURE_ENV+= PATH_NETPBM=${PREFIX}/bin/pnmscale 72CONFIGURE_ENV+= PATH_NETPBM=${PREFIX}/bin/pnmscale
73 73
74.include "../../multimedia/ffmpeg2/buildlink3.mk" 74.include "../../multimedia/ffmpeg2/buildlink3.mk"
75CONFIGURE_ARGS+= --with-ffmpeg=${BUILDLINK_PREFIX.ffmpeg2} 75CONFIGURE_ARGS+= --with-ffmpeg=${BUILDLINK_PREFIX.ffmpeg2}
76CONFIGURE_ENV+= PATH_FFMPEG=${BUILDLINK_PREFIX.ffmpeg2}/bin/ffmpeg2 76CONFIGURE_ENV+= PATH_FFMPEG=${BUILDLINK_PREFIX.ffmpeg2}/bin/ffmpeg2
77CONFIGURE_ENV+= OPT_FFMPEG=yes 77CONFIGURE_ENV+= OPT_FFMPEG=yes
78 78
79# The backtrace requires Linux's unportable <execinfo.h> header. 79# The backtrace requires Linux's unportable <execinfo.h> header.
80CONFIGURE_ARGS+= --enable-crashtrace=no 80CONFIGURE_ARGS+= --enable-crashtrace=no
81 81
82# Need Perl Sys::Mmap module for (default) mmap support. 82# Need Perl Sys::Mmap module for (default) mmap support.
83CONFIGURE_ARGS+= --enable-mmap=no 83CONFIGURE_ARGS+= --enable-mmap=no
84 84
85# This is somewhat awkward. ffmpeg's libavformat/avformat.h requires 85# This is somewhat awkward. ffmpeg's libavformat/avformat.h requires
86# constant macros from stdint.h, but these are only defined under C++ if 86# constant macros from stdint.h, but these are only defined under C++ if
87# __STDC_CONSTANT_MACROS is requested, so we have to do that on behalf 87# __STDC_CONSTANT_MACROS is requested, so we have to do that on behalf
88# of ffmpeg. Failure to do so causes configure time failures, and 88# of ffmpeg. Failure to do so causes configure time failures, and
89# build failures complaining about UINT64_C not being defined. 89# build failures complaining about UINT64_C not being defined.
90CFLAGS+= -D__STDC_CONSTANT_MACROS 90CFLAGS+= -D__STDC_CONSTANT_MACROS
91 91
92# Since MySQL uses openssl, use the same library instead of defaulting to 92# Since MySQL uses openssl, use the same library instead of defaulting to
93# gnutls. 93# gnutls.
94CONFIGURE_ENV+= ZM_SSL_LIB=openssl 94CONFIGURE_ENV+= ZM_SSL_LIB=openssl
95 95
96# Control where run-time state (PID file and sockets) get stored. 96# Control where run-time state (PID file and sockets) get stored.
97# Default is "/var/run/zm", but we want to conform to VARBASE. 97# Default is "/var/run/zm", but we want to conform to VARBASE.
98CONFIGURE_ENV+= ZM_RUNDIR=${VARBASE}/run/zm 98CONFIGURE_ENV+= ZM_RUNDIR=${VARBASE}/run/zm
99CONFIGURE_ENV+= ZM_SOCKDIR=${VARBASE}/run/zm 99CONFIGURE_ENV+= ZM_SOCKDIR=${VARBASE}/run/zm
100 100
101.if !empty(PKG_OPTIONS:Mapache) 101.if !empty(PKG_OPTIONS:Mapache)
102.include "../../mk/apache.mk" 102.include "../../mk/apache.mk"
103 103
104PKG_USERS_VARS+= APACHE_USER 104PKG_USERS_VARS+= APACHE_USER
105PKG_GROUPS_VARS+= APACHE_GROUP 105PKG_GROUPS_VARS+= APACHE_GROUP
106BUILD_DEFS+= APACHE_USER APACHE_GROUP 106BUILD_DEFS+= APACHE_USER APACHE_GROUP
107 107
108# This directory contains no useful state, so use MAKE_DIRS instead of 108# This directory contains no useful state, so use MAKE_DIRS instead of
109# OWN_DIRS. 109# OWN_DIRS.
110MAKE_DIRS_PERMS+= ${VARBASE}/run/zm ${ROOT_USER} ${APACHE_GROUP} 775 110MAKE_DIRS_PERMS+= ${VARBASE}/run/zm ${ROOT_USER} ${APACHE_GROUP} 775
111 111
112CONFIGURE_ARGS+= --with-webuser=${APACHE_USER} 112CONFIGURE_ARGS+= --with-webuser=${APACHE_USER}
113CONFIGURE_ARGS+= --with-webgroup=${APACHE_GROUP} 113CONFIGURE_ARGS+= --with-webgroup=${APACHE_GROUP}
114 114
115# If we're using Apache we're going to need PHP, and PHP MySQL support. 115# If we're using Apache we're going to need PHP, and PHP MySQL support.
116.include "../../lang/php/phpversion.mk" 116.include "../../lang/php/phpversion.mk"
117DEPENDS+= ${APACHE_PKG_PREFIX}-${PHP_PKG_PREFIX}-[0-9]*:../../www/ap-php 117DEPENDS+= ${APACHE_PKG_PREFIX}-${PHP_PKG_PREFIX}-[0-9]*:../../www/ap-php
118DEPENDS+= ${PHP_PKG_PREFIX}-mysql-[0-9]*:../../databases/php-mysql 118DEPENDS+= ${PHP_PKG_PREFIX}-mysql-[0-9]*:../../databases/php-mysql
119DEPENDS+= ${PHP_PKG_PREFIX}-pdo_mysql-[0-9]*:../../databases/php-pdo_mysql 119DEPENDS+= ${PHP_PKG_PREFIX}-pdo_mysql-[0-9]*:../../databases/php-pdo_mysql
120.endif 120.endif
121 121
122# This directory contains state, so use OWN_DIRS instead of MAKE_DIRS. 122# This directory contains state, so use OWN_DIRS instead of MAKE_DIRS.
123ZM_CACHE= ${VARBASE}/cache/zoneminder 123ZM_CACHE= ${VARBASE}/cache/zoneminder
124OWN_DIRS_PERMS+= ${ZM_CACHE} ${ROOT_USER} ${ROOT_GROUP} 755 124OWN_DIRS_PERMS+= ${ZM_CACHE} ${ROOT_USER} ${ROOT_GROUP} 755
125OWN_DIRS_PERMS+= ${ZM_CACHE}/temp ${ROOT_USER} ${APACHE_GROUP} 775 125OWN_DIRS_PERMS+= ${ZM_CACHE}/temp ${ROOT_USER} ${APACHE_GROUP} 775
126OWN_DIRS_PERMS+= ${ZM_CACHE}/images ${ROOT_USER} ${APACHE_GROUP} 775 126OWN_DIRS_PERMS+= ${ZM_CACHE}/images ${ROOT_USER} ${APACHE_GROUP} 775
127OWN_DIRS_PERMS+= ${ZM_CACHE}/events ${ROOT_USER} ${APACHE_GROUP} 775 127OWN_DIRS_PERMS+= ${ZM_CACHE}/events ${ROOT_USER} ${APACHE_GROUP} 775
128 128
129REPLACE_PERL+= scripts/zmaudit.pl.in 129REPLACE_PERL+= scripts/zmaudit.pl.in
 130REPLACE_PERL+= scripts/zmcamtool.pl.in
130REPLACE_PERL+= scripts/zmcontrol.pl.in 131REPLACE_PERL+= scripts/zmcontrol.pl.in
131REPLACE_PERL+= scripts/zmdc.pl.in 132REPLACE_PERL+= scripts/zmdc.pl.in
132REPLACE_PERL+= scripts/zmfilter.pl.in 133REPLACE_PERL+= scripts/zmfilter.pl.in
133REPLACE_PERL+= scripts/zmpkg.pl.in 134REPLACE_PERL+= scripts/zmpkg.pl.in
134REPLACE_PERL+= scripts/zmtrack.pl.in 135REPLACE_PERL+= scripts/zmtrack.pl.in
135REPLACE_PERL+= scripts/zmtrigger.pl.in 136REPLACE_PERL+= scripts/zmtrigger.pl.in
136REPLACE_PERL+= scripts/zmupdate.pl.in 137REPLACE_PERL+= scripts/zmupdate.pl.in
137REPLACE_PERL+= scripts/zmvideo.pl.in 138REPLACE_PERL+= scripts/zmvideo.pl.in
138REPLACE_PERL+= scripts/zmwatch.pl.in 139REPLACE_PERL+= scripts/zmwatch.pl.in
139REPLACE_PERL+= scripts/zmx10.pl.in 140REPLACE_PERL+= scripts/zmx10.pl.in
140 141
 142#
 143# The intention of zmsystemctl.pl is to use bin/pkexec to allow the
 144# apache user to start and stop the ZoneMinder services on operating
 145# systems using systemd and newer versions of Polkit than Pkgsrc
 146# currently has.
 147#
 148# If the base OS doesn't use systemd (E.g. anything not Linux), this
 149# file shouldn't be used anyway.
 150#
 151# In Pkgsrc we ignore the potentially absent pkexec interpreter in
 152# this file. If the base OS uses systemd, it probably also has pkexec
 153# in its base installation.
 154#
 155
 156CHECK_INTERPRETER_SKIP+= bin/zmsystemctl.pl
 157EXTRA_PERL+= scripts/zmsystemctl.pl.in
 158
 159SUBST_CLASSES+= systemd-perl
 160SUBST_MESSAGE.systemd-perl= Adjusting systemd pkexec perl.
 161SUBST_STAGE.systemd-perl= pre-configure
 162SUBST_FILES.systemd-perl= scripts/zmsystemctl.pl.in
 163SUBST_SED.systemd-perl= -e 's|/usr/bin/perl|${PERL5}|g'
 164
 165
141SUBST_CLASSES+= dbpaths-path 166SUBST_CLASSES+= dbpaths-path
142SUBST_MESSAGE.dbpaths-path= Adjusting default paths in configuration. 167SUBST_MESSAGE.dbpaths-path= Adjusting default paths in configuration.
143SUBST_STAGE.dbpaths-path= pre-configure 168SUBST_STAGE.dbpaths-path= pre-configure
144SUBST_FILES.dbpaths-path= db/zm_create.sql.in 169SUBST_FILES.dbpaths-path= db/zm_create.sql.in
145SUBST_SED.dbpaths-path= -e 's|/usr/local/bin/|${PREFIX}/bin/|g' 170SUBST_SED.dbpaths-path= -e 's|/usr/local/bin/|${PREFIX}/bin/|g'
146SUBST_SED.dbpaths-path+= -e 's|/usr/bin|${PREFIX}/bin|g' 171SUBST_SED.dbpaths-path+= -e 's|/usr/bin|${PREFIX}/bin|g'
147SUBST_SED.dbpaths-path+= -e 's|/cgi-bin/nph-zms|/zm/cgi-bin/nph-zms|g' 172SUBST_SED.dbpaths-path+= -e 's|/cgi-bin/nph-zms|/zm/cgi-bin/nph-zms|g'
148 173
149# 174#
150# Required to find the 'mysql' client executable, and may also use 'sudo' if 175# Required to find the 'mysql' client executable, and may also use 'sudo' if
151# installed. 176# installed.
152# 177#
153SUBST_CLASSES+= script-path 178SUBST_CLASSES+= script-path
154SUBST_MESSAGE.script-path= Adjusting paths in scripts. 179SUBST_MESSAGE.script-path= Adjusting paths in scripts.
155SUBST_STAGE.script-path= pre-configure 180SUBST_STAGE.script-path= pre-configure
156SUBST_FILES.script-path= ${REPLACE_PERL} 181SUBST_FILES.script-path= ${REPLACE_PERL} ${EXTRA_PERL}
157SUBST_SED.script-path= -e "s|^\\([\$$]ENV{PATH} *= *'\\).*';\$$|\\1${PREFIX}/bin:/bin:/usr/bin';|g" 182SUBST_SED.script-path= -e "s|^\\([\$$]ENV{PATH} *= *'\\).*';\$$|\\1${PREFIX}/bin:/bin:/usr/bin';|g"
158 183
159SUBST_CLASSES+= files 184SUBST_CLASSES+= files
160SUBST_STAGE.files= pre-configure 185SUBST_STAGE.files= pre-configure
161SUBST_FILES.files= zoneminder.conf 186SUBST_FILES.files= zoneminder.conf
162SUBST_SED.files= -e "s|@ZM_HTTPD_ROOT@|${PREFIX}/${ZM_HTTPD_ROOT}|g" 187SUBST_SED.files= -e "s|@ZM_HTTPD_ROOT@|${PREFIX}/${ZM_HTTPD_ROOT}|g"
163SUBST_SED.files+= -e "s|@ZM_HTTPD_CGIBIN@|${PREFIX}/${ZM_HTTPD_CGIBIN}|g" 188SUBST_SED.files+= -e "s|@ZM_HTTPD_CGIBIN@|${PREFIX}/${ZM_HTTPD_CGIBIN}|g"
164SUBST_MESSAGE.files= Fixing ZoneMinder configuration file for Apache. 189SUBST_MESSAGE.files= Fixing ZoneMinder configuration file for Apache.
165 190
166PLIST_VARS+= rcd 191PLIST_VARS+= rcd
167 192
168.if ${INIT_SYSTEM} == "rc.d" 193.if ${INIT_SYSTEM} == "rc.d"
169PLIST.rcd= yes 194PLIST.rcd= yes
170.endif 195.endif
171 196
172post-extract: 197post-extract:
173 ${CP} ${FILESDIR}/zoneminder.conf ${WRKSRC}/zoneminder.conf 198 ${CP} ${FILESDIR}/zoneminder.conf ${WRKSRC}/zoneminder.conf
174 199
175pre-configure: 200pre-configure:
176 set -e; cd ${WRKSRC}; \ 201 set -e; cd ${WRKSRC}; \
177 aclocal; autoheader; automake -a --foreign -i; autoconf 202 aclocal; autoheader; automake -a --foreign -i; autoconf
178 203
179# 204#
180# Arrange for module.mk to perform its magic here on top of the non-Perl 205# Arrange for module.mk to perform its magic here on top of the non-Perl
181# build tasks. 206# build tasks.
182# 207#
183PERL5_REQD+= 5.6.0 208PERL5_REQD+= 5.6.0
184PERL5_CONFIGURE= no 209PERL5_CONFIGURE= no
185PERL5_CONFIGURE_DIRS= ${WRKSRC}/scripts/ZoneMinder 210PERL5_CONFIGURE_DIRS= ${WRKSRC}/scripts/ZoneMinder
186PERL5_PACKLIST= auto/ZoneMinder/.packlist 211PERL5_PACKLIST= auto/ZoneMinder/.packlist
187.include "../../lang/perl5/module.mk" 212.include "../../lang/perl5/module.mk"
188 213
189post-configure: perl5-configure 214post-configure: perl5-configure
190 215
191EGDIR= share/examples/${PKGBASE} 216EGDIR= share/examples/${PKGBASE}
192INSTALLATION_DIRS+= ${EGDIR} ${EGDIR}/config ${EGDIR}/apache 217INSTALLATION_DIRS+= ${EGDIR} ${EGDIR}/config ${EGDIR}/apache
193CONF_FILES+= ${PREFIX}/${EGDIR}/config/zm.conf ${PKG_SYSCONFDIR}/zm.conf 218CONF_FILES+= ${PREFIX}/${EGDIR}/config/zm.conf ${PKG_SYSCONFDIR}/zm.conf
194INSTALLATION_DIRS+= bin share/examples/rc.d share/zoneminder/db 219INSTALLATION_DIRS+= bin share/examples/rc.d share/zoneminder/db
195post-install: 220post-install:
196 ${INSTALL_DATA} ${WRKSRC}/zoneminder.conf ${DESTDIR}${PREFIX}/${EGDIR}/apache/zoneminder.conf 221 ${INSTALL_DATA} ${WRKSRC}/zoneminder.conf ${DESTDIR}${PREFIX}/${EGDIR}/apache/zoneminder.conf
197 ${INSTALL_DATA} ${WRKSRC}/zm.conf ${DESTDIR}${PREFIX}/${EGDIR}/config/zm.conf 222 ${INSTALL_DATA} ${WRKSRC}/zm.conf ${DESTDIR}${PREFIX}/${EGDIR}/config/zm.conf
198.if ${INIT_SYSTEM} == "rc.d" 223.if ${INIT_SYSTEM} == "rc.d"
199 ${INSTALL_SCRIPT} ${WRKSRC}/scripts/zm ${DESTDIR}${PREFIX}/share/examples/rc.d/zoneminder 224 ${INSTALL_SCRIPT} ${WRKSRC}/scripts/zm ${DESTDIR}${PREFIX}/share/examples/rc.d/zoneminder
200.endif 225.endif
201 ${INSTALL_DATA} ${WRKSRC}/db/*.sql ${DESTDIR}${PREFIX}/share/zoneminder/db/ 226 ${INSTALL_DATA} ${WRKSRC}/db/*.sql ${DESTDIR}${PREFIX}/share/zoneminder/db/
202 rmdir ${DESTDIR}${PREFIX}/${ZM_HTTPD_ROOT:Q}/events || true 227 rmdir ${DESTDIR}${PREFIX}/${ZM_HTTPD_ROOT:Q}/events || true
203 rmdir ${DESTDIR}${PREFIX}/${ZM_HTTPD_ROOT:Q}/images || true 228 rmdir ${DESTDIR}${PREFIX}/${ZM_HTTPD_ROOT:Q}/images || true
204 ${LN} -s ${ZM_CACHE}/temp ${DESTDIR}${PREFIX}/${ZM_HTTPD_ROOT:Q}/temp 229 ${LN} -s ${ZM_CACHE}/temp ${DESTDIR}${PREFIX}/${ZM_HTTPD_ROOT:Q}/temp
205 ${LN} -s ${ZM_CACHE}/events ${DESTDIR}${PREFIX}/${ZM_HTTPD_ROOT:Q}/events 230 ${LN} -s ${ZM_CACHE}/events ${DESTDIR}${PREFIX}/${ZM_HTTPD_ROOT:Q}/events
206 ${LN} -s ${ZM_CACHE}/images ${DESTDIR}${PREFIX}/${ZM_HTTPD_ROOT:Q}/images 231 ${LN} -s ${ZM_CACHE}/images ${DESTDIR}${PREFIX}/${ZM_HTTPD_ROOT:Q}/images
207 232
208 233
209.include "../../mk/dlopen.buildlink3.mk" 234.include "../../mk/dlopen.buildlink3.mk"
210.include "../../mk/jpeg.buildlink3.mk" 235.include "../../mk/jpeg.buildlink3.mk"
211.include "../../mk/mysql.buildlink3.mk" 236.include "../../mk/mysql.buildlink3.mk"
212.include "../../mk/pthread.buildlink3.mk" 237.include "../../mk/pthread.buildlink3.mk"
213.include "../../archivers/bzip2/buildlink3.mk" 238.include "../../archivers/bzip2/buildlink3.mk"
214.include "../../devel/pcre/buildlink3.mk" 239.include "../../devel/pcre/buildlink3.mk"
215.include "../../devel/zlib/buildlink3.mk" 240.include "../../devel/zlib/buildlink3.mk"
216.include "../../security/openssl/buildlink3.mk" 241.include "../../security/openssl/buildlink3.mk"
217.include "../../mk/bsd.pkg.mk" 242.include "../../mk/bsd.pkg.mk"