1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00
freebsd-ports/net-mgmt/netsaint-plugins/Makefile
Pete Fritchman 8b2eeb4eb1 Fix the path to some base utilities in plugin scripts.
PR:		57476
Submitted by:	Krzysztof Stryjek <wtpooh@acn.waw.pl>
2003-12-21 04:55:12 +00:00

51 lines
1.3 KiB
Makefile

# New ports collection makefile for: netsaint-plugins
# Date created: Wed 12 Jul 2000
# Whom: will
#
# $FreeBSD$
#
PORTNAME= netsaint-plugins
PORTVERSION= 1.2.9.4
PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= netsaintplug
DISTNAME= ${PORTNAME}-1.2.9-4
MAINTAINER= ports@FreeBSD.org
COMMENT= Plugins for netsaint
USE_SUBMAKE= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --sbindir=${PREFIX}/share/netsaint/sbin \
--libexecdir=${PREFIX}/libexec/netsaint \
--datadir=${PREFIX}/share/netsaint \
--sysconfdir=${PREFIX}/etc/netsaint \
--localstatedir=${PREFIX}/var/netsaint
CONFIGURE_ENV= LOCALBASE=${LOCALBASE}
SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
MKDIR="${MKDIR}"
USE_AUTOMAKE= yes
USE_GMAKE= yes
pre-fetch:
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
.endif
post-patch:
@${FIND} ${WRKSRC}/plugins-scripts/ -type f -perm -+x | ${XARGS} -n1 \
${REINPLACE_CMD} -e "s,/bin/diff,/usr/bin/diff,g" \
-e "s,/bin/sed,/usr/bin/sed,g" \
-e "s,/bin/tail,/usr/bin/tail,g" \
-e "s,/bin/grep,/usr/bin/grep,g"
post-clean:
@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
.include <bsd.port.mk>