Date: Fri, 27 May 2005 21:42:46 GMT From: Thierry Thomas <thierry@FreeBSD.org> To: snortsms@servangle.net, thierry@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, thierry@FreeBSD.org Subject: Re: ports/81425: New port: security/snortsms A Snort Sensor Management System web interface and monitoring console. Message-ID: <200505272142.j4RLgk2l082091@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
Synopsis: New port: security/snortsms A Snort Sensor Management System web interface and monitoring console. State-Changed-From-To: open->feedback State-Changed-By: thierry State-Changed-When: Fri May 27 21:38:33 GMT 2005 State-Changed-Why: - I suggest the following patch to polish the port and make `portlint -A' happy; could you please review it? --- snortsms.diff begins here --- diff -urN security/snortsms.orig/Makefile security/snortsms/Makefile --- security/snortsms.orig/Makefile Fri May 27 22:41:31 2005 +++ security/snortsms/Makefile Fri May 27 23:09:58 2005 @@ -5,34 +5,34 @@ # $FreeBSD$ # -PORTNAME= snortsms -PORTVERSION= 0.11.2 -CATEGORIES= security -MASTER_SITES= http://snortsms.servangle.net/dnloads/ -EXTRACT_SUFX= .tgz - -MAINTAINER= snortsms@servangle.net -COMMENT= A Snort Sensor Management System web interface and monitoring console - -RUN_DEPENDS= ${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB \ - ${LOCALBASE}/bin/curl:${PORTSDIR}/ftp/curl \ - ${LOCALBASE}/bin/php:${PORTSDIR}/lang/php4 \ - ${LOCALBASE}/include/php/ext/pcre/php_pcre.h:${PORTSDIR}/devel/php4-pcre - -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -USE_PHP= yes -NO_BUILD= yes +PORTNAME= snortsms +PORTVERSION= 0.11.2 +CATEGORIES= security www +MASTER_SITES= http://snortsms.servangle.net/dnloads/ +EXTRACT_SUFX= .tgz + +MAINTAINER= snortsms@servangle.net +COMMENT= A Snort Sensor Management System web interface and monitoring console + +RUN_DEPENDS= ${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB \ + ${LOCALBASE}/bin/curl:${PORTSDIR}/ftp/curl + +USE_PHP= mysql pcre pcntl +NO_BUILD= yes + +PKGMESSAGE= ${WRKDIR}/pkg-message +SUB_FILES= pkg-message do-install: # Create directory structure - @${MKDIR} ${PREFIX}/www/snortsms + @${MKDIR} ${PREFIX}/www/snortsms # copy files - ${CP} -pr ${WRKSRC}/* ${PREFIX}/www/snortsms + ${CP} -R ${WRKSRC}/* ${PREFIX}/www/snortsms # correct permissions - ${CHMOD} 775 ${PREFIX}/www/snortsms/conf - ${CHOWN} :${WWWGRP} ${PREFIX}/www/snortsms/conf + ${CHMOD} 775 ${PREFIX}/www/snortsms/conf + ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/www/snortsms post-install: - @${SED} 's|%%PREFIX%%|${PREFIX}|' ${PKGMESSAGE} + @${CAT} ${PKGMESSAGE} .include <bsd.port.mk> diff -urN security/snortsms.orig/files/pkg-message.in security/snortsms/files/pkg-message.in --- security/snortsms.orig/files/pkg-message.in Thu Jan 1 01:00:00 1970 +++ security/snortsms/files/pkg-message.in Fri May 27 22:49:08 2005 @@ -0,0 +1,24 @@ +************************************************************ + +First time installations: +-You must configure SnortSMS. + +Please browse to the SnortSMS web console and edit the +"Global Settings" in the SnortSMS Settings menu. +SnortSMS uses the following configuration file: +%%PREFIX%%/www/snortsms/conf/conf.php +which (if missing) will automatically be created - do not +edit this file directly. + +* NOTE: SnortSMS requires a local or remote database (MySQL +recommended) connection. + +For how to configure SnortSMS, please read the setup guide +located at: +http://<SnortSMS_webroot>/contrib/install_snortsms.html +-or- +%%PREFIX%%/www/snortsms/contrib/install_snortsms.html + +Thank you for using SnortSMS! + +************************************************************ diff -urN security/snortsms.orig/pkg-message security/snortsms/pkg-message --- security/snortsms.orig/pkg-message Fri May 27 22:41:31 2005 +++ security/snortsms/pkg-message Thu Jan 1 01:00:00 1970 @@ -1,28 +0,0 @@ -************************************************************ - -First time installations: --You must configure SnortSMS. - -Please browse to the SnortSMS web console and edit the -"Global Settings" in the SnortSMS Settings menu. -SnortSMS uses the following configuration file: -%%PREFIX%%/www/snortsms/conf/conf.php -which (if missing) will automatically be created - do not -edit this file directly. - - -* NOTE: SnortSMS requires a local or remote database (MySQL -recommended) connection. - - -For how to configure SnortSMS, please read the setup guide -located at: -http://<SnortSMS_webroot>/contrib/install_snortsms.html --or- -%%PREFIX%%/www/snortsms/contrib/install_snortsms.html - - -Thank you for using SnortSMS! - - -************************************************************ diff -urN security/snortsms.orig/pkg-plist security/snortsms/pkg-plist --- security/snortsms.orig/pkg-plist Fri May 27 22:41:31 2005 +++ security/snortsms/pkg-plist Fri May 27 23:11:39 2005 @@ -20,6 +20,7 @@ www/snortsms/barnyard/qry_barnyard.php www/snortsms/barnyard/qry_barnyards.php www/snortsms/barnyard/qry_selected.php +www/snortsms/changelog www/snortsms/classifications/act_AddRemove.php www/snortsms/classifications/act_Save-Update.php www/snortsms/classifications/act_action.php @@ -197,8 +198,6 @@ www/snortsms/sensorconf/act_clone.php www/snortsms/sensorconf/act_delete_sensor.php www/snortsms/sensorconf/act_getstats.php -www/snortsms/sensorconf/act_pushbarnconf.php -www/snortsms/sensorconf/act_pushsnortconf.php www/snortsms/sensorconf/act_save_update.php www/snortsms/sensorconf/act_sensor_control.php www/snortsms/sensorconf/control_sensor.php --- snortsms.diff ends here --- - there is no /usr/local/www/snortsms/contrib/install_snortsms.html (referenced by PKGMESSAGE). - it would be safer either to install .htaccess or to add entries to httpd.conf; could you please provide one of these methods? Responsible-Changed-From-To: freebsd-ports-bugs->thierry Responsible-Changed-By: thierry Responsible-Changed-When: Fri May 27 21:38:33 GMT 2005 Responsible-Changed-Why: Take it. http://www.freebsd.org/cgi/query-pr.cgi?pr=81425
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505272142.j4RLgk2l082091>