mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
4e7785c79d
- Use DOCSDIR in pkg-plist PR: ports/63183 [1] Submitted by: Hendrik Scholz <hendrik@scholz.net> [1]
58 lines
1.4 KiB
Makefile
58 lines
1.4 KiB
Makefile
# New ports collection makefile for: lmd
|
|
# Date created: Thu May 2 11:20:06 CET 2002
|
|
# Whom: Alex Dupre <sysadmin@alexdupre.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= lmd
|
|
PORTVERSION= 0.8
|
|
CATEGORIES= net sysutils
|
|
MASTER_SITES= http://www.bsdshell.net/download/
|
|
|
|
MAINTAINER= ale@FreeBSD.org
|
|
COMMENT= A Load Monitor Daemon
|
|
|
|
USE_REINPLACE= YES
|
|
REINPLACE_ARGS= #empty
|
|
|
|
MODULES= ldd_http_module.so
|
|
DOCS= INSTALL LICENSE README
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -i.bak -e 's|varargs.h|stdarg.h|' \
|
|
${WRKSRC}/chkmodules.h \
|
|
${WRKSRC}/main.h \
|
|
${WRKSRC}/modules_check/ldd_http_module.h
|
|
|
|
post-build:
|
|
@${REINPLACE_CMD} -e 's,%PREFIX%,${PREFIX},g' \
|
|
${.CURDIR}/pkg-message.in > ${WRKDIR}/pkg-message
|
|
|
|
do-install:
|
|
@${ECHO_CMD} "Installing files..."
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/lmd ${PREFIX}/sbin/lmd
|
|
@${INSTALL_SCRIPT} ${FILESDIR}/lmd.sh ${PREFIX}/etc/rc.d/lmd.sh
|
|
@${INSTALL_DATA} ${WRKSRC}/lmd.conf ${PREFIX}/etc/lmd.conf.sample
|
|
.for f in ${MODULES}
|
|
@${INSTALL_DATA} ${WRKSRC}/modules_check/${f} ${PREFIX}/lib/
|
|
.endfor
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
post-install:
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for f in ${DOCS}
|
|
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
.if ${ARCH} == "amd64"
|
|
MAKE_ENV+= CPPFLAGS="-DPREFIX=\\\"${PREFIX}\\\" -fPIC"
|
|
.else
|
|
MAKE_ENV+= CPPFLAGS="-DPREFIX=\\\"${PREFIX}\\\""
|
|
.endif
|
|
.include <bsd.port.post.mk>
|