mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
f935a609c5
supports them. This is determined by running ``configure --help'' in do-configure target and set the shell variable _LATE_CONFIGURE_ARGS which is then passed to CONFIGURE_ARGS. - Remove --mandir and --infodir in ports' Makefile where applicable Few ports use REINPLACE_CMD to achieve the same effect, remove them too. - Correct some manual pages location from PREFIX/man to MANPREFIX/man - Define INFO_PATH where necessary - Document that .info files are installed in a subdirectory relative to PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and subdirectory detection. PR: ports/111470 Approved by: portmgr Discussed with: stas (Mk/*), gerald (info related stuffs) Tested by: pointyhat exp run
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
# New ports collection makefile for: keepalived
|
|
# Date created: Aug 25 2005
|
|
# Whom: clement@FreeBSD.org
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= keepalived
|
|
PORTVERSION= 1.1.11
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://www.cultdeadsheep.org/~clement/FreeBSD/ipvs/
|
|
DISTNAME= ${PORTNAME}-FreeBSD-${PORTVERSION}
|
|
|
|
MAINTAINER= clement@FreeBSD.org
|
|
COMMENT= A monitoring daemon for ipvs clusters
|
|
|
|
LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libipvs.a:${PORTSDIR}/net/ipvs
|
|
|
|
USE_GMAKE= YES
|
|
GNU_CONFIGURE= YES
|
|
USE_OPENSSL= YES
|
|
USE_RC_SUBR= keepalived.sh
|
|
|
|
LDFLAGS+= -lipvs -L${LOCALBASE}/lib
|
|
|
|
CONFIGURE_ARGS+= --with-kernel-dir=${LOCALBASE}
|
|
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
|
|
|
|
MAN1= genhash.1
|
|
MAN5= keepalived.conf.5
|
|
MAN8= keepalived.8
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} 's,\(#define CONF\).*,\
|
|
\1 "${PREFIX}/etc/keepalived/keepalived.conf",' \
|
|
${WRKSRC}/lib/parser.h
|
|
|
|
post-install:
|
|
@${MKDIR} ${PREFIX}/etc/${PORTNAME}
|
|
@if [ ! -e ${PREFIX}/etc/${PORTNAME}/keepalived.conf ] ; then \
|
|
${INSTALL_DATA} ${EXAMPLESDIR}/keepalived.conf \
|
|
${PREFIX}/etc/${PORTNAME}/keepalived.conf; fi
|
|
|
|
.include <bsd.port.mk>
|