Lines 1-201
Link Here
|
1 |
# Created by: Muhammad Moinur Rahman<bofh@FreeBSD.org> |
1 |
# Created by: Muhammad Moinur Rahman<bofh@FreeBSD.org> |
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= librenms |
4 |
PORTNAME= librenms |
5 |
PORTVERSION= 1.56 |
5 |
PORTVERSION= 1.56 |
|
|
6 |
PORTREVISION= 1 |
6 |
PORTEPOCH= 1 |
7 |
PORTEPOCH= 1 |
7 |
CATEGORIES= net-mgmt |
8 |
CATEGORIES= net-mgmt |
8 |
MASTER_SITES= LOCAL/dvl:vendor |
9 |
MASTER_SITES= LOCAL/dvl:vendor |
9 |
DISTFILES= ${PORTNAME}-vendor-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}${EXTRACT_SUFX}:vendor |
10 |
DISTFILES= ${PORTNAME}-vendor-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}${EXTRACT_SUFX}:vendor |
10 |
|
11 |
|
11 |
MAINTAINER= dvl@FreeBSD.org |
12 |
MAINTAINER= dvl@FreeBSD.org |
12 |
COMMENT= Autodiscovering PHP/MySQL/SNMP based network monitoring |
13 |
COMMENT= Autodiscovering PHP/MySQL/SNMP based network monitoring |
13 |
|
14 |
|
14 |
LICENSE= GPLv3 |
15 |
LICENSE= GPLv3 |
15 |
|
16 |
|
16 |
USES= python${PY_MYSQL} shebangfix |
17 |
USES= python${PY_MYSQL} shebangfix |
17 |
|
18 |
|
18 |
# RELEASE_TIMESTAMP is used for a patch inside the vendor code |
19 |
# RELEASE_TIMESTAMP is used for a patch inside the vendor code |
19 |
# it represents the release date via: git show --pretty='%H|%ct' -s 1.42.01 |
20 |
# it represents the release date via: git show --pretty='%H|%ct' -s 1.42.01 |
20 |
# It sits here so you remember to update it with each release |
21 |
# It sits here so you remember to update it with each release |
21 |
RELEASE_TIMESTAMP= 1569841625 |
22 |
RELEASE_TIMESTAMP= 1569841625 |
22 |
|
23 |
|
23 |
# perhaps we also need python-memcache python-mysqldb |
24 |
# perhaps we also need python-memcache python-mysqldb |
24 |
RUN_DEPENDS+= rrdtool:databases/rrdtool \ |
25 |
RUN_DEPENDS+= rrdtool:databases/rrdtool \ |
25 |
dot:graphics/graphviz \ |
26 |
dot:graphics/graphviz \ |
26 |
${LOCALBASE}/share/pear/Net/IPv4.php:net/pear-Net_IPv4@${PHP_FLAVOR} \ |
27 |
${LOCALBASE}/share/pear/Net/IPv4.php:net/pear-Net_IPv4@${PHP_FLAVOR} \ |
27 |
${LOCALBASE}/share/pear/Net/IPv6.php:net/pear-Net_IPv6@${PHP_FLAVOR} \ |
28 |
${LOCALBASE}/share/pear/Net/IPv6.php:net/pear-Net_IPv6@${PHP_FLAVOR} \ |
28 |
snmpget:net-mgmt/net-snmp \ |
29 |
snmpget:net-mgmt/net-snmp \ |
29 |
bash:shells/bash \ |
30 |
bash:shells/bash \ |
30 |
sudo:security/sudo |
31 |
sudo:security/sudo |
31 |
|
32 |
|
32 |
USE_PHP= ctype curl filter gd hash json ldap mbstring mysqli openssl pdo pdo_mysql phar posix session simplexml snmp tokenizer xml zip |
33 |
USE_PHP= ctype curl filter gd hash json ldap mbstring mysqli openssl pdo pdo_mysql phar posix session simplexml snmp tokenizer xml zip |
33 |
|
34 |
|
34 |
USE_GITHUB= yes |
35 |
USE_GITHUB= yes |
35 |
GH_ACCOUNT= librenms |
36 |
GH_ACCOUNT= librenms |
36 |
|
37 |
|
37 |
USERS= www |
38 |
USERS= www |
38 |
WWW_USER= www |
39 |
WWW_USER= www |
39 |
|
40 |
|
40 |
NO_BUILD= yes |
41 |
NO_BUILD= yes |
41 |
|
42 |
|
42 |
OPTIONS_DEFINE= APACHEMOD FPING IPMITOOL LIBVIRT MYSQLD NAGPLUGINS NMAP PYPOLLER WMIC DOCS EXAMPLES X11 |
43 |
OPTIONS_DEFINE= APACHEMOD FPING IPMITOOL LIBVIRT MYSQLD NAGPLUGINS NMAP PYPOLLER WMIC DOCS EXAMPLES X11 |
43 |
OPTIONS_DEFAULT= APACHEMOD FPING IPMITOOL LIBVIRT NAGPLUGINS NMAP PYPOLLER WMIC |
44 |
OPTIONS_DEFAULT= APACHEMOD FPING IPMITOOL LIBVIRT NAGPLUGINS NMAP PYPOLLER WMIC |
44 |
APACHEMOD_DESC= Use PHP with Apache 2.2+ module |
45 |
APACHEMOD_DESC= Use PHP with Apache 2.2+ module |
45 |
FPING_DESC= Enable fping support ping monitoring |
46 |
FPING_DESC= Enable fping support ping monitoring |
46 |
IPMITOOL_DESC= Enable support for monitoring hardware IPMI |
47 |
IPMITOOL_DESC= Enable support for monitoring hardware IPMI |
47 |
MYSQLD_DESC= Use local MySQL server |
48 |
MYSQLD_DESC= Use local MySQL server |
48 |
WMIC_DESC= Enable support for WMI polling |
49 |
WMIC_DESC= Enable support for WMI polling |
49 |
PYPOLLER_DESC= Enable Python Poller Wrapper |
50 |
PYPOLLER_DESC= Enable Python Poller Wrapper |
50 |
|
51 |
|
51 |
FPING_RUN_DEPENDS= fping:net/fping |
52 |
FPING_RUN_DEPENDS= fping:net/fping |
52 |
IPMITOOL_RUN_DEPENDS= ipmitool:sysutils/ipmitool |
53 |
IPMITOOL_RUN_DEPENDS= ipmitool:sysutils/ipmitool |
53 |
LIBVIRT_RUN_DEPENDS= virsh:devel/libvirt |
54 |
LIBVIRT_RUN_DEPENDS= virsh:devel/libvirt |
54 |
NAGPLUGINS_RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:net-mgmt/nagios-plugins |
55 |
NAGPLUGINS_RUN_DEPENDS= ${LOCALBASE}/libexec/nagios/check_nagios:net-mgmt/nagios-plugins |
55 |
NMAP_RUN_DEPENDS= nmap:security/nmap |
56 |
NMAP_RUN_DEPENDS= nmap:security/nmap |
56 |
PYPOLLER_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.3:databases/py-MySQLdb@${PY_FLAVOR} |
57 |
PYPOLLER_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.3:databases/py-MySQLdb@${PY_FLAVOR} |
57 |
PYPOLLER_VARS= PY_MYSQL=:2.7 |
58 |
PYPOLLER_VARS= PY_MYSQL=:2.7 |
58 |
X11_RUN_DEPENDS= Magick-config:graphics/ImageMagick6 \ |
59 |
X11_RUN_DEPENDS= Magick-config:graphics/ImageMagick6 \ |
59 |
mtr:net/mtr |
60 |
mtr:net/mtr |
60 |
X11_RUN_DEPENDS_OFF= Magick-config:graphics/ImageMagick6-nox11 \ |
61 |
X11_RUN_DEPENDS_OFF= Magick-config:graphics/ImageMagick6-nox11 \ |
61 |
mtr:net/mtr-nox11 |
62 |
mtr:net/mtr-nox11 |
62 |
|
63 |
|
63 |
WMIC_RUN_DEPENDS= wmic:net-mgmt/wmi-client |
64 |
WMIC_RUN_DEPENDS= wmic:net-mgmt/wmi-client |
64 |
MYSQLD_USES= mysql:server |
65 |
MYSQLD_USES= mysql:server |
65 |
MYSQLD_USES_OFF= mysql:client |
66 |
MYSQLD_USES_OFF= mysql:client |
66 |
|
67 |
|
67 |
SHEBANG_FILES= scripts/auth_test.php scripts/deploy-docs.sh scripts/github-remove \ |
68 |
SHEBANG_FILES= scripts/auth_test.php scripts/deploy-docs.sh scripts/github-remove \ |
68 |
scripts/Migration/Standard_Conversion/convert_no_xml.sh \ |
69 |
scripts/Migration/Standard_Conversion/convert_no_xml.sh \ |
69 |
scripts/Migration/Standard_Conversion/destwork_no_xml.sh \ |
70 |
scripts/Migration/Standard_Conversion/destwork_no_xml.sh \ |
70 |
scripts/Migration/Standard_Conversion/mkdir.sh \ |
71 |
scripts/Migration/Standard_Conversion/mkdir.sh \ |
71 |
scripts/Migration/XML_Conversion/convert.sh \ |
72 |
scripts/Migration/XML_Conversion/convert.sh \ |
72 |
scripts/Migration/XML_Conversion/destwork.sh \ |
73 |
scripts/Migration/XML_Conversion/destwork.sh \ |
73 |
scripts/Migration/XML_Conversion/mkdir.sh \ |
74 |
scripts/Migration/XML_Conversion/mkdir.sh \ |
74 |
scripts/removespikes.pl scripts/removespikes.php scripts/watchmaillog/watchmaillog.pl \ |
75 |
scripts/removespikes.pl scripts/removespikes.php scripts/watchmaillog/watchmaillog.pl \ |
75 |
poller.php poller-wrapper.py \ |
76 |
poller.php poller-wrapper.py \ |
76 |
../${PORTNAME}-vendor-${PORTVERSION}/ezyang/htmlpurifier/maintenance/generate-includes.php \ |
77 |
../${PORTNAME}-vendor-${PORTVERSION}/ezyang/htmlpurifier/maintenance/generate-includes.php \ |
77 |
../${PORTNAME}-vendor-${PORTVERSION}/ezyang/htmlpurifier/maintenance/flush-definition-cache.php \ |
78 |
../${PORTNAME}-vendor-${PORTVERSION}/ezyang/htmlpurifier/maintenance/flush-definition-cache.php \ |
78 |
../${PORTNAME}-vendor-${PORTVERSION}/ezyang/htmlpurifier/maintenance/old-remove-require-once.php \ |
79 |
../${PORTNAME}-vendor-${PORTVERSION}/ezyang/htmlpurifier/maintenance/old-remove-require-once.php \ |
79 |
../${PORTNAME}-vendor-${PORTVERSION}/ezyang/htmlpurifier/maintenance/config-scanner.php \ |
80 |
../${PORTNAME}-vendor-${PORTVERSION}/ezyang/htmlpurifier/maintenance/config-scanner.php \ |
80 |
../${PORTNAME}-vendor-${PORTVERSION}/ezyang/htmlpurifier/maintenance/add-vimline.php \ |
81 |
../${PORTNAME}-vendor-${PORTVERSION}/ezyang/htmlpurifier/maintenance/add-vimline.php \ |
81 |
../${PORTNAME}-vendor-${PORTVERSION}/ezyang/htmlpurifier/maintenance/remove-trailing-whitespace.php \ |
82 |
../${PORTNAME}-vendor-${PORTVERSION}/ezyang/htmlpurifier/maintenance/remove-trailing-whitespace.php \ |
82 |
../${PORTNAME}-vendor-${PORTVERSION}/ezyang/htmlpurifier/maintenance/merge-library.php \ |
83 |
../${PORTNAME}-vendor-${PORTVERSION}/ezyang/htmlpurifier/maintenance/merge-library.php \ |
83 |
../${PORTNAME}-vendor-${PORTVERSION}/ezyang/htmlpurifier/maintenance/old-extract-schema.php \ |
84 |
../${PORTNAME}-vendor-${PORTVERSION}/ezyang/htmlpurifier/maintenance/old-extract-schema.php \ |
84 |
../${PORTNAME}-vendor-${PORTVERSION}/ezyang/htmlpurifier/maintenance/rename-config.php \ |
85 |
../${PORTNAME}-vendor-${PORTVERSION}/ezyang/htmlpurifier/maintenance/rename-config.php \ |
85 |
../${PORTNAME}-vendor-${PORTVERSION}/ezyang/htmlpurifier/maintenance/generate-standalone.php \ |
86 |
../${PORTNAME}-vendor-${PORTVERSION}/ezyang/htmlpurifier/maintenance/generate-standalone.php \ |
86 |
../${PORTNAME}-vendor-${PORTVERSION}/ezyang/htmlpurifier/maintenance/generate-schema-cache.php \ |
87 |
../${PORTNAME}-vendor-${PORTVERSION}/ezyang/htmlpurifier/maintenance/generate-schema-cache.php \ |
87 |
../${PORTNAME}-vendor-${PORTVERSION}/ezyang/htmlpurifier/maintenance/old-remove-schema-def.php \ |
88 |
../${PORTNAME}-vendor-${PORTVERSION}/ezyang/htmlpurifier/maintenance/old-remove-schema-def.php \ |
88 |
../${PORTNAME}-vendor-${PORTVERSION}/ezyang/htmlpurifier/maintenance/generate-entity-file.php \ |
89 |
../${PORTNAME}-vendor-${PORTVERSION}/ezyang/htmlpurifier/maintenance/generate-entity-file.php \ |
89 |
../${PORTNAME}-vendor-${PORTVERSION}/swiftmailer/swiftmailer/lib/swiftmailer_generate_mimes_config.php \ |
90 |
../${PORTNAME}-vendor-${PORTVERSION}/swiftmailer/swiftmailer/lib/swiftmailer_generate_mimes_config.php \ |
90 |
../${PORTNAME}-vendor-${PORTVERSION}/tecnickcom/tcpdf/tools/tcpdf_addfont.php |
91 |
../${PORTNAME}-vendor-${PORTVERSION}/tecnickcom/tcpdf/tools/tcpdf_addfont.php |
91 |
|
92 |
|
92 |
SUB_FILES+= pkg-message |
93 |
SUB_FILES+= pkg-message |
93 |
SUB_LIST+= PHP="${PHPBASE}/bin/php" PYTHON=${PYTHON_CMD} |
94 |
SUB_LIST+= PHP="${PHPBASE}/bin/php" PYTHON=${PYTHON_CMD} |
94 |
|
95 |
|
95 |
ROOT_FILES= .env.example addhost.php adduser.php alerts.php artisan billing-calculate.php \ |
96 |
ROOT_FILES= .env.example addhost.php adduser.php alerts.php artisan billing-calculate.php \ |
96 |
build-base.php build.sql check-services.php composer.json \ |
97 |
build-base.php build.sql check-services.php composer.json \ |
97 |
composer.lock config.php.default config_to_json.php cronic daily.php \ |
98 |
composer.lock config.php.default config_to_json.php cronic daily.php \ |
98 |
delhost.php discovery-wrapper.py discovery.php dist-pollers.php irc.php \ |
99 |
delhost.php discovery-wrapper.py discovery.php dist-pollers.php irc.php \ |
99 |
librenms-service.py mkdocs.yml pbin.sh phpunit.xml ping.php poll-billing.php poller.php poller-service.py \ |
100 |
librenms-service.py mkdocs.yml pbin.sh phpunit.xml ping.php poll-billing.php poller.php poller-service.py \ |
100 |
poller-wrapper.py readmegen.yml renamehost.php services-wrapper.py snmp-scan.py \ |
101 |
poller-wrapper.py readmegen.yml renamehost.php services-wrapper.py snmp-scan.py \ |
101 |
snmptrap.php syslog.php validate.php |
102 |
snmptrap.php syslog.php validate.php |
102 |
|
103 |
|
103 |
SCRIPT_FILES= daily.sh lnms |
104 |
SCRIPT_FILES= daily.sh lnms |
104 |
|
105 |
|
105 |
ROOT_DIRS= LibreNMS app bootstrap config contrib database doc html includes licenses logs mibs misc resources routes scripts sql-schema storage tests |
106 |
ROOT_DIRS= LibreNMS app bootstrap config contrib database doc html includes licenses logs mibs misc resources routes scripts sql-schema storage tests |
106 |
|
107 |
|
107 |
# these are directories which require a generic @DIR entry in pkg-plist |
108 |
# these are directories which require a generic @DIR entry in pkg-plist |
108 |
OTHER_DIRS= storage/app/public \ |
109 |
OTHER_DIRS= storage/app/public \ |
109 |
storage/debugbar \ |
110 |
storage/debugbar \ |
110 |
storage/framework/cache/data \ |
111 |
storage/framework/cache/data \ |
111 |
storage/framework/testing \ |
112 |
storage/framework/testing \ |
112 |
storage/logs \ |
113 |
storage/logs \ |
113 |
tests/Browser/console \ |
114 |
tests/Browser/console \ |
114 |
tests/Browser/screenshots \ |
115 |
tests/Browser/screenshots \ |
115 |
vendor/amenadiel/jpgraph/tests/_output \ |
116 |
vendor/amenadiel/jpgraph/tests/_output \ |
116 |
vendor/amenadiel/jpgraph/tests/_support/_generated \ |
117 |
vendor/amenadiel/jpgraph/tests/_support/_generated \ |
117 |
vendor/laravel/laravel/bootstrap/cache \ |
118 |
vendor/laravel/laravel/bootstrap/cache \ |
118 |
vendor/laravel/laravel/storage/app/public \ |
119 |
vendor/laravel/laravel/storage/app/public \ |
119 |
vendor/laravel/laravel/storage/framework/cache \ |
120 |
vendor/laravel/laravel/storage/framework/cache \ |
120 |
vendor/laravel/laravel/storage/framework/cache/data \ |
121 |
vendor/laravel/laravel/storage/framework/cache/data \ |
121 |
vendor/laravel/laravel/storage/framework/sessions \ |
122 |
vendor/laravel/laravel/storage/framework/sessions \ |
122 |
vendor/laravel/laravel/storage/framework/testing \ |
123 |
vendor/laravel/laravel/storage/framework/testing \ |
123 |
vendor/laravel/laravel/storage/framework/views \ |
124 |
vendor/laravel/laravel/storage/framework/views \ |
124 |
vendor/laravel/laravel/storage/logs |
125 |
vendor/laravel/laravel/storage/logs |
125 |
|
126 |
|
126 |
DOCS= AUTHORS.md CHANGELOG.md CONTRIBUTING.md LICENSE.txt README.md |
127 |
DOCS= AUTHORS.md CHANGELOG.md CONTRIBUTING.md LICENSE.txt README.md |
127 |
PORTDOCS= * |
128 |
PORTDOCS= * |
128 |
PORTEXAMPLES= snmp.conf.example snmpd.conf.example |
129 |
PORTEXAMPLES= snmp.conf.example snmpd.conf.example |
129 |
NO_ARCH= yes |
130 |
NO_ARCH= yes |
130 |
|
131 |
|
131 |
APACHEMOD_USES= php:mod |
132 |
APACHEMOD_USES= php:mod |
132 |
APACHEMOD_USES_OFF= php:web |
133 |
APACHEMOD_USES_OFF= php:web |
133 |
|
134 |
|
134 |
post-patch: |
135 |
post-patch: |
135 |
@${REINPLACE_CMD} 's|%%PORTNAME%%|${PORTNAME}|g' ${WRKSRC}/config.php.default |
136 |
@${REINPLACE_CMD} 's|%%PORTNAME%%|${PORTNAME}|g' ${WRKSRC}/config.php.default |
136 |
@${REINPLACE_CMD} 's|%%WWW_USER%%|${WWW_USER}|g' ${WRKSRC}/config.php.default |
137 |
@${REINPLACE_CMD} 's|%%WWW_USER%%|${WWW_USER}|g' ${WRKSRC}/config.php.default |
137 |
@${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/poller-wrapper.py ${WRKSRC}/poller.php |
138 |
@${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/poller-wrapper.py ${WRKSRC}/poller.php |
138 |
@${REINPLACE_CMD} 's|%%PORTVERSION%%|${PORTVERSION}|g' ${WRKSRC}/includes/common.php |
139 |
@${REINPLACE_CMD} 's|%%PORTVERSION%%|${PORTVERSION}|g' ${WRKSRC}/includes/common.php |
139 |
@${REINPLACE_CMD} 's|%%RELEASE_TIMESTAMP%%|${RELEASE_TIMESTAMP}|g' ${WRKSRC}/includes/common.php |
140 |
@${REINPLACE_CMD} 's|%%RELEASE_TIMESTAMP%%|${RELEASE_TIMESTAMP}|g' ${WRKSRC}/includes/common.php |
140 |
@${REINPLACE_CMD} -e 's|/opt/librenms|${WWWDIR}|' ${WRKSRC}/html/install.php |
141 |
@${REINPLACE_CMD} -e 's|/opt/librenms|${WWWDIR}|' ${WRKSRC}/html/install.php |
141 |
@${RM} ${WRKSRC}/LibreNMS/Validations/Updates.php |
142 |
@${RM} ${WRKSRC}/LibreNMS/Validations/Updates.php |
142 |
|
143 |
|
143 |
do-install: |
144 |
do-install: |
144 |
${MKDIR} ${STAGEDIR}/${WWWDIR} |
145 |
${MKDIR} ${STAGEDIR}/${WWWDIR} |
145 |
.for dir in ${ROOT_DIRS} |
146 |
.for dir in ${ROOT_DIRS} |
146 |
${MKDIR} ${STAGEDIR}/${WWWDIR}/${dir} |
147 |
${MKDIR} ${STAGEDIR}/${WWWDIR}/${dir} |
147 |
(cd ${WRKSRC}/${dir} && ${COPYTREE_SHARE} . ${STAGEDIR}/${WWWDIR}/${dir}) |
148 |
(cd ${WRKSRC}/${dir} && ${COPYTREE_SHARE} . ${STAGEDIR}/${WWWDIR}/${dir}) |
148 |
.endfor |
149 |
.endfor |
149 |
.for f in ${ROOT_FILES} |
150 |
.for f in ${ROOT_FILES} |
150 |
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}/${WWWDIR} |
151 |
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}/${WWWDIR} |
151 |
.endfor |
152 |
.endfor |
152 |
.for f in ${SCRIPT_FILES} |
153 |
.for f in ${SCRIPT_FILES} |
153 |
${INSTALL_SCRIPT} ${WRKSRC}/${f} ${STAGEDIR}/${WWWDIR} |
154 |
${INSTALL_SCRIPT} ${WRKSRC}/${f} ${STAGEDIR}/${WWWDIR} |
154 |
.endfor |
155 |
.endfor |
155 |
${MKDIR} ${STAGEDIR}/${WWWDIR}/vendor |
156 |
${MKDIR} ${STAGEDIR}/${WWWDIR}/vendor |
156 |
(cd ${WRKDIR}/${PORTNAME}-vendor-${PORTVERSION} && ${COPYTREE_SHARE} . ${STAGEDIR}/${WWWDIR}/vendor) |
157 |
(cd ${WRKDIR}/${PORTNAME}-vendor-${PORTVERSION} && ${COPYTREE_SHARE} . ${STAGEDIR}/${WWWDIR}/vendor) |
157 |
# Make daily.sh executable |
158 |
# Make daily.sh executable |
158 |
# ${CHMOD} 0755 ${STAGEDIR}/${WWWDIR}/daily.sh |
159 |
# ${CHMOD} 0755 ${STAGEDIR}/${WWWDIR}/daily.sh |
159 |
# lnms does not fall into any other +x category |
160 |
# lnms does not fall into any other +x category |
160 |
# ${CHMOD} 0755 ${STAGEDIR}/${WWWDIR}/lnms |
161 |
# ${CHMOD} 0755 ${STAGEDIR}/${WWWDIR}/lnms |
161 |
# Files in scripts dir should be executable |
162 |
# Files in scripts dir should be executable |
162 |
${FIND} ${STAGEDIR}/${WWWDIR}/scripts -type f -exec ${CHMOD} +x {} \; |
163 |
${FIND} ${STAGEDIR}/${WWWDIR}/scripts -type f -exec ${CHMOD} +x {} \; |
163 |
# Ensure PHP and Python scripts are executable |
164 |
# Ensure PHP and Python scripts are executable |
164 |
${FIND} ${STAGEDIR}/${WWWDIR} -type f -name '*.py' -or -type f -name \ |
165 |
${FIND} ${STAGEDIR}/${WWWDIR} -type f -name '*.py' -or -type f -name \ |
165 |
'*.php' -exec ${CHMOD} +x {} \; |
166 |
'*.php' -exec ${CHMOD} +x {} \; |
166 |
# these values should be outside the www tree now |
167 |
# these values should be outside the www tree now |
167 |
${MKDIR} ${STAGEDIR}/var/log/${PORTNAME} |
168 |
${MKDIR} ${STAGEDIR}/var/log/${PORTNAME} |
168 |
${MKDIR} ${STAGEDIR}/var/db/${PORTNAME} |
169 |
${MKDIR} ${STAGEDIR}/var/db/${PORTNAME} |
169 |
|
170 |
|
170 |
do-install-DOCS-on: |
171 |
do-install-DOCS-on: |
171 |
${MKDIR} ${STAGEDIR}/${DOCSDIR} |
172 |
${MKDIR} ${STAGEDIR}/${DOCSDIR} |
172 |
.for f in ${DOCS} |
173 |
.for f in ${DOCS} |
173 |
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}/${DOCSDIR} |
174 |
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}/${DOCSDIR} |
174 |
.endfor |
175 |
.endfor |
175 |
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}/${DOCSDIR} |
176 |
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}/${DOCSDIR} |
176 |
|
177 |
|
177 |
do-install-EXAMPLES-on: |
178 |
do-install-EXAMPLES-on: |
178 |
${MKDIR} ${STAGEDIR}/${EXAMPLESDIR} |
179 |
${MKDIR} ${STAGEDIR}/${EXAMPLESDIR} |
179 |
.for f in ${PORTEXAMPLES} |
180 |
.for f in ${PORTEXAMPLES} |
180 |
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}/${EXAMPLESDIR} |
181 |
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}/${EXAMPLESDIR} |
181 |
.endfor |
182 |
.endfor |
182 |
|
183 |
|
183 |
post-install: |
184 |
post-install: |
184 |
@${FIND} -s ${STAGEDIR}${WWWDIR} -type f '(' -name '*.orig' -or -name '*.bak' -or -name '.gitignore' ')' -delete |
185 |
@${FIND} -s ${STAGEDIR}${WWWDIR} -type f '(' -name '*.orig' -or -name '*.bak' -or -name '.gitignore' ')' -delete |
185 |
@${FIND} -s ${STAGEDIR}${WWWDIR} -not -type d | ${SORT} | \ |
186 |
@${FIND} -s ${STAGEDIR}${WWWDIR} -not -type d | ${SORT} | \ |
186 |
${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST} |
187 |
${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST} |
187 |
@${ECHO_CMD} "@dir(www,www,0775) ${WWWDIR}/logs" >> ${TMPPLIST} |
188 |
@${ECHO_CMD} "@dir(www,www,0775) ${WWWDIR}/logs" >> ${TMPPLIST} |
188 |
@${ECHO_CMD} "@dir(www,www,0775) ${WWWDIR}/bootstrap/cache" >> ${TMPPLIST} |
189 |
@${ECHO_CMD} "@dir(www,www,0775) ${WWWDIR}/bootstrap/cache" >> ${TMPPLIST} |
189 |
# @${ECHO_CMD} "@(www,www,0775) ${WWWDIR}/daily.sh" >> ${TMPPLIST} |
190 |
# @${ECHO_CMD} "@(www,www,0775) ${WWWDIR}/daily.sh" >> ${TMPPLIST} |
190 |
# @${ECHO_CMD} "@(www,www,0775) ${WWWDIR}/lnms" >> ${TMPPLIST} |
191 |
# @${ECHO_CMD} "@(www,www,0775) ${WWWDIR}/lnms" >> ${TMPPLIST} |
191 |
@${ECHO_CMD} "@dir(www,www,0775) ${WWWDIR}/storage" >> ${TMPPLIST} |
192 |
@${ECHO_CMD} "@dir(www,www,0775) ${WWWDIR}/storage" >> ${TMPPLIST} |
192 |
@${ECHO_CMD} "@dir(www,www,0775) ${WWWDIR}/storage/framework/cache" >> ${TMPPLIST} |
193 |
@${ECHO_CMD} "@dir(www,www,0775) ${WWWDIR}/storage/framework/cache" >> ${TMPPLIST} |
193 |
@${ECHO_CMD} "@dir(www,www,0775) ${WWWDIR}/storage/framework/sessions" >> ${TMPPLIST} |
194 |
@${ECHO_CMD} "@dir(www,www,0775) ${WWWDIR}/storage/framework/sessions" >> ${TMPPLIST} |
194 |
@${ECHO_CMD} "@dir(www,www,0775) ${WWWDIR}/storage/framework/views" >> ${TMPPLIST} |
195 |
@${ECHO_CMD} "@dir(www,www,0775) ${WWWDIR}/storage/framework/views" >> ${TMPPLIST} |
195 |
@${ECHO_CMD} "@dir(www,www,0775) /var/log/${PORTNAME}" >> ${TMPPLIST} |
196 |
@${ECHO_CMD} "@dir(www,www,0775) /var/log/${PORTNAME}" >> ${TMPPLIST} |
196 |
@${ECHO_CMD} "@dir(www,www,0775) /var/db/${PORTNAME}" >> ${TMPPLIST} |
197 |
@${ECHO_CMD} "@dir(www,www,0775) /var/db/${PORTNAME}" >> ${TMPPLIST} |
197 |
.for f in ${OTHER_DIRS} |
198 |
.for f in ${OTHER_DIRS} |
198 |
@${ECHO_CMD} "@dir(root,www,0775) ${WWWDIR}/${f}" >> ${TMPPLIST} |
199 |
@${ECHO_CMD} "@dir(root,www,0775) ${WWWDIR}/${f}" >> ${TMPPLIST} |
199 |
.endfor |
200 |
.endfor |
200 |
|
201 |
|
201 |
.include <bsd.port.mk> |
202 |
.include <bsd.port.mk> |