diff options
author | Marcus Alves Grando <mnag@FreeBSD.org> | 2006-04-18 14:38:28 +0000 |
---|---|---|
committer | Marcus Alves Grando <mnag@FreeBSD.org> | 2006-04-18 14:38:28 +0000 |
commit | e7f99dda8dbcbf45d22749c2961e31a3498bd162 (patch) | |
tree | 215d14181e9f5af0c99f368e1bf98cfcfc2b8af2 /net-mgmt/ipplan | |
parent | cfb09f297f45ac88377fd5208c2304261115ebd1 (diff) | |
download | ports-e7f99dda8dbcbf45d22749c2961e31a3498bd162.tar.gz ports-e7f99dda8dbcbf45d22749c2961e31a3498bd162.zip |
Notes
Diffstat (limited to 'net-mgmt/ipplan')
-rw-r--r-- | net-mgmt/ipplan/Makefile | 35 | ||||
-rw-r--r-- | net-mgmt/ipplan/distinfo | 6 | ||||
-rw-r--r-- | net-mgmt/ipplan/files/patch-config.php | 33 | ||||
-rw-r--r-- | net-mgmt/ipplan/pkg-plist | 1 |
4 files changed, 48 insertions, 27 deletions
diff --git a/net-mgmt/ipplan/Makefile b/net-mgmt/ipplan/Makefile index 2dfe51e6a5c8..57d278c982bb 100644 --- a/net-mgmt/ipplan/Makefile +++ b/net-mgmt/ipplan/Makefile @@ -6,24 +6,26 @@ # PORTNAME= ipplan -PORTVERSION= 4.51 +PORTVERSION= 4.55 CATEGORIES= net-mgmt MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= iptrack -DISTNAME= ${PORTNAME}-4.51 +DISTNAME= ${PORTNAME}-4.55 MAINTAINER= mt@primats.org.ua COMMENT= IP address management and tracking -USE_REINPLACE= yes +RUN_DEPENDS= nmap:${PORTSDIR}/security/nmap + +USE_PERL5_RUN= yes +USE_PHP= gettext pcre xml zlib + NO_BUILD= yes WRKSRC= ${WRKDIR}/${PORTNAME} IPPLANDIR?= share/${PORTNAME} PKGMESSAGE= ${WRKDIR}/pkg-message PLIST_SUB= IPPLANDIR=${IPPLANDIR} -USE_PHP= gettext pcre xml zlib - .if !defined(WITHOUT_MYSQL) USE_PHP+= mysql .endif @@ -36,21 +38,30 @@ USE_PHP+= pgsql USE_PHP+= snmp .endif +.include <bsd.port.pre.mk> + post-patch: - @${SED} -e 's|%IPPLANDIR%|${PREFIX}/${IPPLANDIR}|g' ${MASTERDIR}/pkg-message > ${PKGMESSAGE} -.if defined(WITH_PGSQL) - @${REINPLACE_CMD} -e 's|INSTALL|INSTALL-POSTGRESQL|g' ${PKGMESSAGE} -.endif + @${REINPLACE_CMD} -e "s|/usr/bin/perl|${PERL}|" \ + -e "s|/usr/bin/xsltproc|${LOCALBASE}/bin/xsltproc|" \ + ${WRKSRC}/contrib/process-exports.pl + @${REINPLACE_CMD} -e "s|/usr/local/bin/php|${LOCALBASE}/bin/php|" \ + ${WRKSRC}/contrib/ipplan-poller.php + @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|" \ + ${WRKSRC}/config.php + @${FIND} ${WRKSRC} -name '*.orig' -delete -o -name '*.bak' -delete do-install: @${MKDIR} ${PREFIX}/${IPPLANDIR} @${CP} -R ${WRKSRC}/* ${PREFIX}/${IPPLANDIR} - @${FIND} ${PREFIX}/${IPPLANDIR} -name '*.orig' -delete - @${CAT} ${PKGMESSAGE} post-install: @${MKDIR} -m 700 /var/spool/ipplan/uploads \ /var/spool/ipplan/exportdns @${CHOWN} -R www:www /var/spool/ipplan + @${SED} -e 's|%IPPLANDIR%|${PREFIX}/${IPPLANDIR}|g' ${MASTERDIR}/pkg-message > ${PKGMESSAGE} +.if defined(WITH_PGSQL) + @${REINPLACE_CMD} -e 's|INSTALL|INSTALL-POSTGRESQL|g' ${PKGMESSAGE} +.endif + @${CAT} ${PKGMESSAGE} -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/net-mgmt/ipplan/distinfo b/net-mgmt/ipplan/distinfo index 80a780be409b..56df660f98c7 100644 --- a/net-mgmt/ipplan/distinfo +++ b/net-mgmt/ipplan/distinfo @@ -1,3 +1,3 @@ -MD5 (ipplan-4.51.tar.gz) = 9d45303d7dd85f4bb560f43d891b4b56 -SHA256 (ipplan-4.51.tar.gz) = 3cbea32b656a6cc561abd81aed9279a1ada7859d2e66a1df0c9fd172aa00c650 -SIZE (ipplan-4.51.tar.gz) = 1307160 +MD5 (ipplan-4.55.tar.gz) = 3e8d140584bf908c0be53ca03bf6f5b0 +SHA256 (ipplan-4.55.tar.gz) = e8c8d391b6ddcf0e6f48e972500f9f05f17ace20111f1966ac9c804e95d7a644 +SIZE (ipplan-4.55.tar.gz) = 1333149 diff --git a/net-mgmt/ipplan/files/patch-config.php b/net-mgmt/ipplan/files/patch-config.php index 972c4304d7ad..bf25786fceec 100644 --- a/net-mgmt/ipplan/files/patch-config.php +++ b/net-mgmt/ipplan/files/patch-config.php @@ -1,29 +1,38 @@ ---- config.php.orig Sun Jun 5 09:53:19 2005 -+++ config.php Fri Jun 10 15:28:16 2005 +--- config.php.orig Thu Mar 16 22:16:54 2006 ++++ config.php Tue Apr 18 03:56:19 2006 @@ -96,7 +96,7 @@ // see either httpd.conf User directive or ps -ef to see which user // apache runs under, then set mode 700 on directory and change owner // to this user --define("UPLOADDIRECTORY", "/var/spool/ipplanuploads"); -+define("UPLOADDIRECTORY", "/var/spool/ipplan/uploads"); +-define("UPLOADDIRECTORY", '/var/spool/ipplanuploads'); ++define("UPLOADDIRECTORY", '/var/spool/ipplan/uploads'); // default country code ("" for none) define("DEFAULTCOUNTRY", "US"); @@ -109,7 +109,7 @@ // not work if php is running in safemode. probing and scanning may // also be against policy for your site! - //define("NMAP", ""); --define("NMAP", "/usr/bin/nmap"); -+define("NMAP", "/usr/local/bin/nmap"); + //define("NMAP", ''); +-define("NMAP", '/usr/bin/nmap'); ++define("NMAP", '%%LOCALBASE%%/bin/nmap'); - //-------------------------START OF REGISTRAR--------------------------- - -@@ -152,7 +152,7 @@ + // helpdesk email address + define("HELPDESKEMAIL", "helpdesk@mydomain.com"); +@@ -186,7 +186,7 @@ // this will usually be the user under which Apache runs. If the // permissions are not correct, the files will be created in the // system temp directory, usually /tmp --define("DNSEXPORTPATH", "/tmp/dns/"); -+define("DNSEXPORTPATH", "/var/spool/ipplan/exportdns/"); +-define("DNSEXPORTPATH", '/tmp/dns/'); ++define("DNSEXPORTPATH", '/var/spool/ipplan/dnsexport/'); // dnsslaveonly is the default setting for when creating new zones. If your // dns server only serves as a slave for most of your zones, it's helpful +@@ -202,7 +202,7 @@ + + // export path where DHCP files in XML format will be output ready for + // transformation into DHCP file for various DHCP servers +-define("DHCPEXPORTPATH", '/tmp/dhcp/'); ++define("DHCPEXPORTPATH", '/var/spool/ipplan/dncpexport/'); + + // This string identifies ip addresses that belong in the DHCP pool + define("DHCPRESERVED", "Reserved - DHCP pool"); diff --git a/net-mgmt/ipplan/pkg-plist b/net-mgmt/ipplan/pkg-plist index 8fa3329a94e4..0aa70ffa6a74 100644 --- a/net-mgmt/ipplan/pkg-plist +++ b/net-mgmt/ipplan/pkg-plist @@ -529,6 +529,7 @@ %%IPPLANDIR%%/user/searchallform.php %%IPPLANDIR%%/user/swiplib.php %%IPPLANDIR%%/user/traceroute.php +%%IPPLANDIR%%/user/treeview.php %%IPPLANDIR%%/user/whois.php %%IPPLANDIR%%/xmllib.php @dirrm %%IPPLANDIR%%/user/Net/DNS/RR |