freebsd-ports/net/pacemaker1/Makefile.common
Tobias C. Berner 48318794ca cleanup: remove 'Created by' lines
A big Thank You to the original contributors of these ports:

 *  Alex Trull <freebsd.alex@trull.org>
 *  Alonso Cardenas <acm@FreeBSD.org>
 *  Boris Samorodov <bsam@FreeBSD.org>
 *  David Shane Holden <dpejesh@yahoo.com>
 *  Felix Palmen <felix@palmen-it.de>
 *  Hirohisa Yamaguchi <umq@ueo.co.jp>
 *  Kevin Bowling <kbowling@FreeBSD.org>
 *  Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
 *  Markus Mann, CTS - FreeBSD Team <de-freebsd@ctseuro.com>
 *  Matthias Andree
 *  Matthias Fechner <mfechner@FreeBSD.org>
 *  Oleg Sidorkin <osidorkin@gmail.com>
 *  Oliver Lehmann
 *  Radim Kolar <hsn@sendmail.cz>
 *  Timothy Beyer <beyert@cs.ucr.edu>
 *  hq@FreeBSD.org
 *  johalun0@gmail.com
 *  lev@FreeBSD.org
 *  rooneg@electricjellyfish.net

With hat:	portmgr
2022-07-20 16:55:49 +02:00

91 lines
2.4 KiB
Text

PORTNAME= pacemaker
DISTVERSIONPREFIX= Pacemaker-
CATEGORIES= net
MAINTAINER= egypcio@FreeBSD.org
COMMENT= Scalable High-Availability cluster resource manager
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= bash:shells/bash \
getopt>=0:misc/getopt
LIB_DEPENDS= libgnutls.so:security/gnutls \
libltdl.so:devel/libltdl \
libqb.so:devel/libqb \
libuuid.so:misc/e2fsprogs-libuuid \
libxml2.so:textproc/libxml2 \
libxslt.so:textproc/libxslt
RUN_DEPENDS= bash:shells/bash \
getopt>=0:misc/getopt \
ocf-tester:net-mgmt/resource-agents
CONFLICTS= heartbeat
USERS= hacluster
GROUPS= haclient
USE_GITHUB= yes
GH_ACCOUNT= ClusterLabs
GH_PROJECT= pacemaker
USES= autoreconf:2.69 corosync cpe gmake gnome libtool \
ncurses pathfix pkgconfig python:3.6+ shebangfix
CPE_VENDOR= clusterlabs
USE_BINUTILS= yes
USE_GNOME= glib20
USE_LDCONFIG= yes
USE_PYTHON= py3kplist
USE_RC_SUBR= ${PORTNAME}
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-fatal-warnings \
--disable-hardening \
--with-corosync \
--without-heartbeat
CONFIGURE_ENV= BASH_PATH=${LOCALBASE}/bin/bash
LDFLAGS+= -B${LOCALBASE}/bin
INSTALL_TARGET= install-strip
TEST_TARGET= check
PATHFIX_MAKEFILEIN= Makefile.am
SHEBANG_LANG= sh
sh_OLD_CMD= ${SH}
sh_CMD= ${LOCALBASE}/bin/bash
SHEBANG_FILES= extra/resources/*
OPTIONS_DEFINE= DBUS DOCS MANPAGES SNMP
OPTIONS_DEFAULT= MANPAGES
OPTIONS_SUB= yes
DBUS_LIB_DEPENDS= libdbus-1.so:devel/dbus
DBUS_VARS_OFF= REPLACE_ARGS_DBUS="-e 's/HAVE_dbus=1/HAVE_dbus=0/'"
DOCS_BUILD_DEPENDS= asciidoc:textproc/asciidoc
MANPAGES_BUILD_DEPENDS= docbook-xsl>0:textproc/docbook-xsl \
help2man:misc/help2man \
xsltproc:textproc/libxslt
SNMP_LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp
SNMP_CONFIGURE_WITH= snmp
SNMP_USES= ssl
REPLACE_CMD_ARGS= -e 's,/usr/lib/ocf,${PREFIX}/lib/ocf,' \
${REPLACE_ARGS_DBUS}
# python default version must be set to 2.7 to generate a
# correct pkg-plist
maintainer-plist: stage
@${MAKE} makeplist \
| ${SED} -e '/^\/you/d' \
-e '/^etc\/rc.d\/pacemaker/d' \
-e 's,^man,%%MANPAGES%%man,g' \
-e 's,%%PYTHON_VER%%,2.7,g' \
-e 's,^@dir \/var\/lib\/pacemaker\/\(.*\),@dir(\,haclient\,770) \/var\/lib\/pacemaker\/\1,g' \
-e 's,^@dir \/var\/log\/pacemaker\(.*\),@dir(\,haclient\,770) \/var\/log\/pacemaker\1,g' \
> pkg-plist
post-patch-common:
@${REINPLACE_CMD} ${REPLACE_CMD_ARGS} ${WRKSRC}/configure.ac