mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
net/pacemaker1: fix DBUS config option, and its REINPLACE_ARGS
- 'post-patch-common' never used was DBUS_VARS_OFF really set; - REPLACE_ARGS renamed to REPLACE_CMD_ARGS; - REPLACE_ARGS_OCF and REPLACE_ARGS_DBUS append into REPLACE_ARGS. while here, * mark port as broken if OSVERSION>=1300000 PR: 254653 Reported by: masamory7 % gmail.com
This commit is contained in:
parent
f043e2bdfd
commit
73059f063e
@ -1,6 +1,7 @@
|
||||
# Created by: David Shane Holden <dpejesh@yahoo.com>
|
||||
|
||||
PORTVERSION= 1.1.24
|
||||
PORTREVISION= 1
|
||||
PKGNAMESUFFIX= 1
|
||||
|
||||
.include "${.CURDIR}/Makefile.common"
|
||||
@ -23,6 +24,10 @@ REPLACE_ARGS_GETOPT= -e 's,getopt,${LOCALBASE}/bin/getopt,'
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} >= 1300000
|
||||
BROKEN= "includes <sys/timeb.h> which is deprecated"
|
||||
.endif
|
||||
|
||||
.if ${PYTHON_SUFFIX} > 36
|
||||
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-cts_remote.py \
|
||||
${PATCHDIR}/extra-patch-cts_watcher.py
|
||||
|
@ -56,15 +56,12 @@ sh_OLD_CMD= ${SH}
|
||||
sh_CMD= ${LOCALBASE}/bin/bash
|
||||
SHEBANG_FILES= extra/resources/*
|
||||
|
||||
REPLACE_ARGS_OCF= -e 's,/usr/lib/ocf,${PREFIX}/lib/ocf,'
|
||||
|
||||
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+="-e 's/HAVE_dbus=1/HAVE_dbus=0/'"
|
||||
DBUS_VARS_OFF= REPLACE_ARGS_DBUS="-e 's/HAVE_dbus=1/HAVE_dbus=0/'"
|
||||
|
||||
DOCS_BUILD_DEPENDS= asciidoc:textproc/asciidoc
|
||||
|
||||
@ -76,6 +73,9 @@ 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
|
||||
@ -89,4 +89,4 @@ maintainer-plist: stage
|
||||
> pkg-plist
|
||||
|
||||
post-patch-common:
|
||||
@${REINPLACE_CMD} ${REPLACE_ARGS_OCF} ${WRKSRC}/configure.ac
|
||||
@${REINPLACE_CMD} ${REPLACE_CMD_ARGS} ${WRKSRC}/configure.ac
|
||||
|
Loading…
Reference in New Issue
Block a user