svn commit: r362355 - in head/net-mgmt/nagiosql: . files
Danilo Egea Gondolfo
danilo at FreeBSD.org
Sun Jul 20 19:21:26 UTC 2014
Author: danilo
Date: Sun Jul 20 19:21:25 2014
New Revision: 362355
URL: http://svnweb.freebsd.org/changeset/ports/362355
QAT: https://qat.redports.org/buildarchive/r362355/
Log:
- Add stage support
- Convert USE_BZIP2 to USES
- Use options helpers
- Remove SSH2 option
Approved by: portmgr (blanket)
Deleted:
head/net-mgmt/nagiosql/files/pkg-install.in
Modified:
head/net-mgmt/nagiosql/Makefile
head/net-mgmt/nagiosql/pkg-plist
Modified: head/net-mgmt/nagiosql/Makefile
==============================================================================
--- head/net-mgmt/nagiosql/Makefile Sun Jul 20 19:20:50 2014 (r362354)
+++ head/net-mgmt/nagiosql/Makefile Sun Jul 20 19:21:25 2014 (r362355)
@@ -17,9 +17,8 @@ LICENSE= GPLv2
RUN_DEPENDS= nagios:${PORTSDIR}/net-mgmt/nagios \
${PEARDIR}/HTML/Template/IT.php:${PORTSDIR}/devel/pear-HTML_Template_IT
-USE_BZIP2= yes
USE_MYSQL= yes
-USES= gettext
+USES= gettext tar:bzip2
USE_PHP= mysql filter gettext session simplexml
WANT_PHP_WEB= yes
@@ -30,30 +29,17 @@ NAGIOSUSER?= nagios
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}32
-SUB_FILES= pkg-message pkg-install
-SUB_LIST= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} NAGIOSUSER=${NAGIOSUSER}
+SUB_FILES= pkg-message
+PLIST_SUB= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} NAGIOSUSER=${NAGIOSUSER}
PEARDIR?= ${LOCALBASE}/share/pear
-OPTIONS_DEFINE= CURL FTP SSH2
+OPTIONS_DEFINE= CURL FTP
CURL_DESC= Configure with cURL support
FTP_DESC= Configure with FTP support
-SSH2_DESC= Configure with SSH2 support
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MCURL}
-USE_PHP+= curl
-.endif
-
-.if ${PORT_OPTIONS:MFTP}
-USE_PHP+= ftp
-.endif
-
-.if ${PORT_OPTIONS:MSSH2}
-USE_PHP+= ssh2
-.endif
+CURL_USE= PHP=curl
+FTP_USE= PHP=ftp
post-patch:
${REINPLACE_CMD} -e "s|\'/etc/nagiosql/|\'${ETCDIR}/|g" \
@@ -71,12 +57,15 @@ post-patch:
${WRKSRC}/install/install.php
do-install:
- @${MKDIR} ${WWWDIR}
- @(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR} "! ( -name *\.orig -o -name *\.bak )")
- @${CHOWN} ${WWWOWN}:${WWWGRP} ${WWWDIR}/config
-
-post-install:
- @${SH} ${PKGINSTALL} ${PORTNAME} POST-INSTALL
- @${CAT} ${PKGMESSAGE}
+ @${MKDIR} ${STAGEDIR}${WWWDIR}
+ @${MKDIR} ${STAGEDIR}${ETCDIR}
+ @${MKDIR} ${STAGEDIR}${ETCDIR}/ssh
+ @${MKDIR} ${STAGEDIR}${ETCDIR}/hosts
+ @${MKDIR} ${STAGEDIR}${ETCDIR}/services
+ @${MKDIR} ${STAGEDIR}${ETCDIR}/backup
+ @${MKDIR} ${STAGEDIR}${ETCDIR}/backup/hosts
+ @${MKDIR} ${STAGEDIR}${ETCDIR}/backup/services
+ @${MKDIR} ${STAGEDIR}${ETCDIR}/backup/ssh
+ (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR} "! ( -name *\.orig -o -name *\.bak )")
.include <bsd.port.mk>
Modified: head/net-mgmt/nagiosql/pkg-plist
==============================================================================
--- head/net-mgmt/nagiosql/pkg-plist Sun Jul 20 19:20:50 2014 (r362354)
+++ head/net-mgmt/nagiosql/pkg-plist Sun Jul 20 19:21:25 2014 (r362355)
@@ -487,9 +487,16 @@
@dirrm %%WWWDIR%%/config/locale/da_DK/LC_MESSAGES
@dirrm %%WWWDIR%%/config/locale/da_DK
@dirrm %%WWWDIR%%/config/locale
+ at owner %%WWWOWN%%
+ at group %%WWWGRP%%
@dirrmtry %%WWWDIR%%/config
+ at group
+ at owner
@dirrm %%WWWDIR%%/admin
@dirrmtry %%WWWDIR%%
+ at mode 750
+ at owner %%WWWOWN%%
+ at group %%NAGIOSUSER%%
@dirrmtry %%ETCDIR%%/ssh
@dirrmtry %%ETCDIR%%/services
@dirrmtry %%ETCDIR%%/hosts
@@ -498,3 +505,6 @@
@dirrmtry %%ETCDIR%%/backup/hosts
@dirrmtry %%ETCDIR%%/backup
@dirrmtry %%ETCDIR%%
+ at mode
+ at owner
+ at group
More information about the svn-ports-all
mailing list