2000-09-04 21:01:36 +02:00
|
|
|
# $NetBSD: Makefile,v 1.11 2000/09/04 19:01:36 skrll Exp $
|
1998-07-24 15:36:52 +02:00
|
|
|
#
|
|
|
|
|
2000-08-31 20:02:22 +02:00
|
|
|
DISTNAME= nocol-4.3.1
|
|
|
|
PKGNAME= nocol-4.3.1nb1
|
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= http://www.netplex-tech.com/software/nocol/downloads/
|
1998-07-24 15:36:52 +02:00
|
|
|
|
2000-08-31 20:02:22 +02:00
|
|
|
MAINTAINER= packages@netbsd.org
|
|
|
|
HOMEPAGE= http://www.netplex-tech.com/software/nocol/
|
1998-07-24 15:36:52 +02:00
|
|
|
|
2000-08-31 20:02:22 +02:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_SCRIPT= ./Configure
|
2000-09-04 21:01:36 +02:00
|
|
|
CONFIGURE_ARGS+= < ${WRKSRC}/answers
|
1998-07-24 15:36:52 +02:00
|
|
|
|
2000-08-31 20:02:22 +02:00
|
|
|
USE_PERL5= yes
|
|
|
|
USE_LIBTOOL= yes
|
|
|
|
LTCONFIG_OVERRIDE= ${WRKSRC}/cmu-snmp/snmp/ltconfig \
|
|
|
|
${WRKSRC}/cmu-snmp/snmpapps/ltconfig
|
|
|
|
|
|
|
|
INSTALL_TARGET= install root
|
1998-07-24 15:36:52 +02:00
|
|
|
|
|
|
|
post-patch:
|
1998-08-04 16:48:19 +02:00
|
|
|
@(hostname=`/bin/hostname`; \
|
1999-10-27 11:18:29 +02:00
|
|
|
dir=""; \
|
2000-01-10 01:57:13 +01:00
|
|
|
for d in /usr/bin /usr/sbin `${ECHO} $$PATH | ${TR} ':' ' '`; do \
|
1999-10-27 11:18:29 +02:00
|
|
|
if [ -x $$d/host ]; then \
|
|
|
|
dir=$$d; \
|
|
|
|
break; \
|
|
|
|
fi \
|
|
|
|
done; \
|
|
|
|
if [ "X$$dir" = "X" ]; then \
|
|
|
|
${ECHO} "host program not found"; \
|
|
|
|
exit 1; \
|
|
|
|
fi; \
|
|
|
|
fqdn=`$$dir/host $$hostname | ${AWK} '{ print $$1; exit }'`; \
|
1998-08-04 16:48:19 +02:00
|
|
|
${SED} -e 's|@prefix@|${PREFIX}|g' -e "s|@FQDN@|$$fqdn|g" \
|
|
|
|
${FILESDIR}/answers > ${WRKSRC}/answers)
|
1998-07-24 15:36:52 +02:00
|
|
|
|
2000-07-13 17:34:10 +02:00
|
|
|
post-install:
|
|
|
|
# Ensure webnocol audio and images files are available if needed
|
|
|
|
#
|
|
|
|
${MKDIR} ${PREFIX}/share/nocol/gifs
|
|
|
|
|
|
|
|
for f in critical.wav error.wav warning.wav ; do \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/webnocol/$$f ${PREFIX}/share/nocol; \
|
|
|
|
done
|
|
|
|
|
|
|
|
for f in bluesq.gif critical.jpg empty.gif error.jpg \
|
|
|
|
greensq.gif help.jpg info.jpg redsq.gif warning.jpg \
|
|
|
|
yellowsq.gif ; do \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/webnocol/gifs/$$f \
|
|
|
|
${PREFIX}/share/nocol/gifs; \
|
|
|
|
done
|
|
|
|
|
1998-07-24 15:36:52 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|