diff options
Diffstat (limited to 'net/ucarp/Makefile')
-rw-r--r-- | net/ucarp/Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/net/ucarp/Makefile b/net/ucarp/Makefile index 56519f6bbe72..383f7643a57a 100644 --- a/net/ucarp/Makefile +++ b/net/ucarp/Makefile @@ -7,6 +7,7 @@ PORTNAME= ucarp PORTVERSION= 1.5.2 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= ftp://ftp.pureftpd.org/pub/pure-ftpd/misc/ucarp/ \ http://download.pureftpd.org/pub/ucarp/ @@ -15,6 +16,11 @@ MAINTAINER= alexey@renatasystems.org COMMENT= Userlevel Common Address Redundancy Protocol USE_BZIP2= yes + +OPTIONS= UCARP_SCRIPTS "Install scripts to manage virtual IP" on + +.include <bsd.port.pre.mk> + GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-nls @@ -22,4 +28,12 @@ USE_RC_SUBR= ucarp PLIST_FILES= sbin/ucarp -.include <bsd.port.mk> +.if defined(WITH_UCARP_SCRIPTS) +PLIST_FILES+= sbin/ucarp-up \ + sbin/ucarp-down +post-install: + ${INSTALL_SCRIPT} ${WRKSRC}/examples/bsd/vip-up.sh ${PREFIX}/sbin/ucarp-up + ${INSTALL_SCRIPT} ${WRKSRC}/examples/bsd/vip-down.sh ${PREFIX}/sbin/ucarp-down +.endif + +.include <bsd.port.post.mk> |