svn commit: r404930 - head/security/base
Dmitry Marakasov
amdmi3 at FreeBSD.org
Thu Dec 31 10:58:54 UTC 2015
Author: amdmi3
Date: Thu Dec 31 10:58:52 2015
New Revision: 404930
URL: https://svnweb.freebsd.org/changeset/ports/404930
Log:
- Add LICENSE
- Add NO_ARCH
- Switch to options helpers
- Fix WWW:
Modified:
head/security/base/Makefile
head/security/base/pkg-descr
Modified: head/security/base/Makefile
==============================================================================
--- head/security/base/Makefile Thu Dec 31 10:58:16 2015 (r404929)
+++ head/security/base/Makefile Thu Dec 31 10:58:52 2015 (r404930)
@@ -9,6 +9,9 @@ MASTER_SITES= SF/secureideas/BASE/${PORT
MAINTAINER= ports at FreeBSD.org
COMMENT= Basic Analysis and Security Engine - analyzing Snort alerts
+LICENSE= GPLv2 # or later
+LICENSE_FILE= ${WRKSRC}/docs/GPL
+
RUN_DEPENDS= ${ADODB_DIR}/adodb.inc.php:${PORTSDIR}/databases/adodb5 \
${LOCALBASE}/share/pear/Image/Graph.php:${PORTSDIR}/graphics/pear-Image_Graph \
${LOCALBASE}/share/pear/Mail.php:${PORTSDIR}/mail/pear-Mail \
@@ -18,44 +21,36 @@ USE_PHP= gd gettext pcre session zlib ct
ADODB_DIR= ${LOCALBASE}/share/adodb
+NO_ARCH= yes
SUB_FILES= pkg-message
DOCS= docs/CHANGELOG docs/CREDITS docs/README docs/README.mssql \
docs/TODO docs/UPGRADE docs/GPL docs/base_faq.rtf
OPTIONS_DEFINE= MYSQL PGSQL PDF DOCS
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MMYSQL}
-USE_MYSQL= yes
-USE_PHP+= mysql
-.endif
-.if ${PORT_OPTIONS:MPGSQL}
-USES+= pgsql
-USE_PHP+= pgsql
-.endif
-.if ${PORT_OPTIONS:MPDF}
-RUN_DEPENDS+= ${LOCALBASE}/share/fpdf/fpdf.php:${PORTSDIR}/print/fpdf
-.endif
+MYSQL_USE= MYSQL=yes PHP=mysql
+PGSQL_USES= pgsql
+PGSQL_USE= PHP=pgsql
+PDF_RUN_DEPENDS=${LOCALBASE}/share/fpdf/fpdf.php:${PORTSDIR}/print/fpdf
do-build:
@${REINPLACE_CMD} -e 's,DBlib_path = "",DBlib_path = "${ADODB_DIR}",' \
${WRKSRC}/base_conf.php.dist
do-install:
- ${MKDIR} ${STAGEDIR}${PREFIX}/www/base/includes/templates/default
+ @${MKDIR} ${STAGEDIR}${PREFIX}/www/base/includes/templates/default
${INSTALL_DATA} ${WRKSRC}/*.php ${WRKSRC}/*.dist ${STAGEDIR}${PREFIX}/www/base
.for dir in admin help includes languages setup
- ${MKDIR} ${STAGEDIR}${PREFIX}/www/base/${dir}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/www/base/${dir}
${INSTALL_DATA} ${WRKSRC}/${dir}/*.php ${STAGEDIR}${PREFIX}/www/base/${dir}
.endfor
.for dir in images sql styles
- ${MKDIR} ${STAGEDIR}${PREFIX}/www/base/${dir}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/www/base/${dir}
${INSTALL_DATA} ${WRKSRC}/${dir}/* ${STAGEDIR}${PREFIX}/www/base/${dir}
.endfor
-post-install:
- ${MKDIR} ${STAGEDIR}${DOCSDIR}
+do-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
Modified: head/security/base/pkg-descr
==============================================================================
--- head/security/base/pkg-descr Thu Dec 31 10:58:16 2015 (r404929)
+++ head/security/base/pkg-descr Thu Dec 31 10:58:52 2015 (r404930)
@@ -8,4 +8,4 @@ system, so that you as the security admi
information each user can see. It also has a simple to use, web-based
setup program for people not comfortable with editing files directly.
-WWW: http://secureideas.sourceforge.net/
+WWW: http://secureideas.sourceforge.net/
More information about the svn-ports-all
mailing list