dfca1e1ce5
- removed packages p5-IO-Compress-Base, p5-IO-Compress-Zlib, p5-IO-Compress-Bzip2 and p5-Compress-Zlib because they are merged into p5-IO-Compress - Updated dependend packages to depend on p5-IO-Compress and bump PKGREVISION Upstream changes: 2.017 30 March 2009 * Merged IO-Compress-Base, IO-Compress-Bzip2, IO-Compress-Zlib & Compress-Zlib into IO-Compress. * The interface to Compress-Raw-Zlib now uses the new LimitOutput feature. This will make all of the zlib-related IO-Compress modules less greedy in their memory consumption. * Removed MAN3PODS from Makefile.PL * A few changes to get the test harness to work on VMS courtesy of Craig. A. Berry. * IO::Compress::Base & IO::Uncompress::Base Downgraded some croaks in the constructors to just set $! (by letting the code attempt to open a file and fail). This makes the behavior more consistent to a standard open. [RT #42657] * IO::Uncompress::Base Doing a seek with MultiStream could drop some of the uncompressed data. Fixed. * IO::Compress::Zip - Fixed problem with the uncompressed & uncompressed fields when zip64 is enabled. They were set to 0x0000FFFF instead of 0xFFFFFFFF. Also the ZIP64 extra field was 4 bytes short. Problem spotted by Dino Chiesa. * IO::Uncompress::Unzip - use POSIX::mktime instead of Time::Local::timelocal to convert the zip DOS time field into Unix time. * Compress::Zlib - Documented Compress::Zlib::zlib_version()
149 lines
5.5 KiB
Makefile
149 lines
5.5 KiB
Makefile
# $NetBSD: Makefile,v 1.22 2009/04/11 23:15:20 sno Exp $
|
|
#
|
|
|
|
DISTNAME= netdisco-0.95_with_mibs
|
|
PKGNAME= netdisco-0.95
|
|
PKGREVISION= 1
|
|
CATEGORIES= net
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=netdisco/}
|
|
|
|
MAINTAINER= bouyer@NetBSD.org
|
|
HOMEPAGE= http://www.netdisco.org/
|
|
COMMENT= Open Source web-based network management tool
|
|
|
|
DEPENDS+= p5-SNMP-Info-[0-9]*:../../net/p5-SNMP-Info
|
|
DEPENDS+= p5-Apache-DBI-[0-9]*:../../databases/p5-Apache-DBI
|
|
DEPENDS+= p5-Apache-Session-[0-9]*:../../www/p5-Apache-Session
|
|
DEPENDS+= p5-DBD-postgresql-[0-9]*:../../databases/p5-DBD-postgresql
|
|
DEPENDS+= p5-DB_File-[0-9]*:../../databases/p5-DB_File
|
|
DEPENDS+= p5-MasonX-Request-WithApacheSession-[0-9]*:../../www/p5-MasonX-Request-WithApacheSession
|
|
DEPENDS+= p5-HTML-Parser-[0-9]*:../../www/p5-HTML-Parser
|
|
DEPENDS+= p5-Graph-[0-9]*:../../devel/p5-Graph
|
|
DEPENDS+= p5-GraphViz-[0-9]*:../../graphics/p5-GraphViz
|
|
DEPENDS+= p5-IO-Compress-[0-9]*:../../devel/p5-IO-Compress
|
|
DEPENDS+= p5-Net-NBName-[0-9]*:../../net/p5-Net-NBName
|
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
EGDIR= ${PREFIX}/share/examples/${PKGNAME_NOREV}
|
|
|
|
USE_TOOLS+= pax perl:run
|
|
REPLACE_PERL+= bin/doc_munge
|
|
REPLACE_PERL+= bin/pod_arg_link_fix
|
|
REPLACE_PERL+= bin/test_cdp.pl
|
|
REPLACE_PERL+= bin/test_fwtable.pl
|
|
REPLACE_PERL+= bin/test_iproute.pl
|
|
REPLACE_PERL+= bin/parse_kismet_ap
|
|
REPLACE_PERL+= netdisco
|
|
REPLACE_PERL+= mibs/chk_dups
|
|
REPLACE_PERL+= mibs/diff_dir
|
|
REPLACE_PERL+= mibs/rm_cisco_dups
|
|
REPLACE_PERL+= mibs/chk_mibs
|
|
REPLACE_PERL+= mibs/snmpwalkmib
|
|
REPLACE_PERL+= sql/pg
|
|
|
|
SUBST_CLASSES+= installdir path varbase apachevers
|
|
SUBST_STAGE.installdir= pre-configure
|
|
SUBST_FILES.installdir= sql/pg
|
|
SUBST_FILES.installdir+= bin/netdisco_daemon
|
|
SUBST_FILES.installdir+= netdisco
|
|
SUBST_FILES.installdir+= netdisco.conf netdisco.crontab
|
|
SUBST_FILES.installdir+= netdisco_apache.conf netdisco_apache_dir.conf
|
|
SUBST_FILES.installdir+= bin/test_cache.pl bin/test_cdp.pl
|
|
SUBST_FILES.installdir+= bin/test_dev.pl bin/test_stats.pl
|
|
SUBST_FILES.installdir+= bin/debian_install.sh
|
|
SUBST_FILES.installdir+= bin/test_fwtable.pl bin/test_iproute.pl
|
|
SUBST_FILES.installdir+= doc/INSTALL.html doc/INSTALL.pod
|
|
SUBST_FILES.installdir+= doc/README.pod doc/README.html
|
|
SUBST_FILES.installdir+= doc/UPGRADE.html doc/UPGRADE.pod
|
|
SUBST_FILES.installdir+= INSTALL README UPGRADE
|
|
SUBST_FILES.installdir+= html/doc/INSTALL.html html/doc/README.html
|
|
SUBST_FILES.installdir+= html/doc/UPGRADE.html html/admin_reconfig.html
|
|
SUBST_FILES.installdir+= netdisco.crontab
|
|
SUBST_FILES.installdir+= mibs/snmp.conf
|
|
SUBST_SED.installdir= -e "s|/usr/local/netdisco|${PREFIX}/netdisco|g"
|
|
SUBST_MESSAGE.installdir= Fixing hardcoded install directory path.
|
|
|
|
SUBST_STAGE.path= pre-configure
|
|
SUBST_FILES.path= bin/catalyst_mac_vlan.pl bin/port_control
|
|
SUBST_FILES.path+= bin/test_cache.pl bin/test_dev.pl bin/test_stats.pl
|
|
SUBST_FILES.path+= bin/parse_mac
|
|
SUBST_FILES.path+= doc/INSTALL.html doc/INSTALL.pod html/doc/INSTALL.html
|
|
SUBST_FILES.path+= INSTALL netdisco.crontab
|
|
SUBST_SED.path= -e "s|/usr/local/bin|${PREFIX}/bin|g"
|
|
SUBST_MESSAGE.path= Fixing hardcoded path.
|
|
|
|
SUBST_STAGE.varbase= pre-configure
|
|
SUBST_FILES.varbase= netdisco.conf
|
|
SUBST_SED.varbase= -e "s|@VARBASE@|${VARBASE}|g"
|
|
SUBST_MESSAGE.varbase= Fixing data directory.
|
|
|
|
NETDISCOUSER?= netdisco
|
|
NETDISCOGROUP?= netdisco
|
|
|
|
PKG_GROUPS_VARS+= NETDISCOGROUP
|
|
PKG_USERS_VARS+= NETDISCOUSER
|
|
|
|
PKG_GROUPS= ${NETDISCOGROUP}
|
|
PKG_USERS= ${NETDISCOUSER:Q}:${NETDISCOGROUP:Q}
|
|
|
|
PKG_GECOS.${NETDISCOUSER}= Netdisco administrator
|
|
PKG_HOME.${NETDISCOUSER}= ${PREFIX}/netdisco
|
|
PKG_SHELL.${NETDISCOUSER}= ${SH}
|
|
|
|
PKG_SYSCONFVAR= netdisco
|
|
PKG_SYSCONFDIR.netdisco= ${PREFIX}/netdisco
|
|
EGDIR= ${PREFIX}/share/examples/netdisco
|
|
CONF_FILES= ${EGDIR:Q}/netdisco.conf ${PKG_SYSCONFDIR:Q}/netdisco.conf
|
|
CONF_FILES_PERMS+= ${EGDIR:Q}/netdisco.conf ${PKG_SYSCONFDIR:Q}/netdisco.conf \
|
|
${NETDISCOUSER} ${NETDISCOGROUP} 0660
|
|
CONF_FILES+= ${EGDIR:Q}/netdisco-topology.txt ${PKG_SYSCONFDIR:Q}/netdisco-topology.txt
|
|
|
|
REQD_DIRS+= ${PREFIX:Q}/netdisco ${EGDIR:Q}
|
|
OWN_DIRS_PERMS+= ${VARBASE:Q}/netdisco ${NETDISCOUSER} ${NETDISCOGROUP} 0775
|
|
RCD_SCRIPTS= netdisco
|
|
RCD_SCRIPT_SRC.netdisco= ${WRKSRC:Q}/bin/netdisco_daemon
|
|
|
|
.include "../../mk/apache.mk"
|
|
|
|
.if ${PKG_APACHE} == "apache13"
|
|
SUBST_STAGE.apachevers= pre-configure
|
|
SUBST_FILES.apachevers= netdisco_apache.conf
|
|
SUBST_SED.apachevers= -e "s|@APACHE2@|\#uncomment for apache2|g"
|
|
SUBST_MESSAGE.apachevers= Fixing config files for apache-1.3
|
|
.elif ${PKG_APACHE} == "apache2"
|
|
SUBST_STAGE.apachevers= pre-configure
|
|
SUBST_FILES.apachevers= netdisco_apache.conf
|
|
SUBST_SED.apachevers= -e "s|@APACHE2@||g"
|
|
SUBST_MESSAGE.apachevers= Fixing config files for apache-2
|
|
.endif
|
|
|
|
do-build:
|
|
${RM} -f ${WRKSRC:Q}/html/doc/ChangeLog.txt
|
|
${RM} -f ${WRKSRC:Q}/Makefile
|
|
set -e; \
|
|
for i in INSTALL README README-API-BACKEND README-API-SHARED \
|
|
UPGRADE ChangeLog; do \
|
|
${RM} -f ${WRKSRC:Q}/doc/"$$i"; \
|
|
${MV} ${WRKSRC:Q}/"$$i" ${WRKSRC:Q}/doc/; \
|
|
done
|
|
cd ${WRKSRC:Q} && \
|
|
${FIND} . \( -name '*.orig' -o -name '*.bak' \) -print | ${XARGS} ${RM} -f
|
|
|
|
do-install:
|
|
${RM} -f ${WRKSRC:Q}/bin/netdisco_daemon
|
|
cd ${WRKSRC:Q} && pax -rw -pp . ${PREFIX:Q}/netdisco
|
|
${CHOWN} -R ${NETDISCOUSER}:${NETDISCOGROUP} ${PREFIX:Q}/netdisco
|
|
${CHMOD} 775 ${PREFIX:Q}/netdisco/html
|
|
set -e; \
|
|
for i in netdisco.conf netdisco-topology.txt netdisco.crontab \
|
|
netdisco_apache.conf netdisco_apache_dir.conf; do \
|
|
${MV} ${PREFIX:Q}/netdisco/"$$i" ${EGDIR:Q}/ ;\
|
|
done
|
|
${MKDIR} ${PREFIX:Q}/netdisco/mason
|
|
${CHGRP} -R ${APACHE_GROUP} ${PREFIX:Q}/netdisco/mason
|
|
${CHMOD} -R 775 ${PREFIX:Q}/netdisco/mason
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|