Index: head/sysutils/powerman/Makefile =================================================================== --- head/sysutils/powerman/Makefile (revision 515727) +++ head/sysutils/powerman/Makefile (revision 515728) @@ -1,36 +1,40 @@ # Created by: Greg Lewis # $FreeBSD$ PORTNAME= powerman PORTVERSION= 2.3.20 PORTREVISION= 2 CATEGORIES= sysutils parallel MASTER_SITES= https://github.com/chaos/powerman/releases/download/${PORTVERSION}/ MAINTAINER= ports@FreeBSD.org COMMENT= Tool for doing remote power control LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libcurl.so:ftp/curl -USES= libtool perl5 shebangfix -SHEBANG_FILES= heartbeat/powerman +USES= fakeroot libtool localbase:ldflags perl5 shebangfix +USE_LDCONFIG= yes USE_PERL5= build +USE_RC_SUBR= powerman +SHEBANG_FILES= heartbeat/powerman + GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-httppower --localstatedir=/var \ --with-pkgconfig-dir=${PREFIX}/libdata/pkgconfig -USE_LDCONFIG= yes + INSTALL_TARGET= install-strip +TEST_TARGET= check -USE_RC_SUBR= powerman - -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib - post-patch: @${REINPLACE_CMD} -e \ '/^install-data-am/s|:.*|:|' ${WRKSRC}/scripts/Makefile.in + # Disable failing tests. +.for test_case in t50 t53 t56 t57 t58 t59 + @${REINPLACE_CMD} -E -e 's/${test_case}(.conf)?//' \ + ${WRKSRC}/test/Makefile.in +.endfor .include Index: head/sysutils/powerman/files/patch-man-powermand.8 =================================================================== --- head/sysutils/powerman/files/patch-man-powermand.8 (revision 515727) +++ head/sysutils/powerman/files/patch-man-powermand.8 (nonexistent) @@ -1,11 +0,0 @@ ---- man/powermand.8.in.orig 2009-02-13 18:33:44.000000000 +0100 -+++ man/powermand.8.in 2009-02-13 18:34:09.000000000 +0100 -@@ -12,7 +12,7 @@ - .TP - .I "-c, --conf filename" - Override the default location of the powerman configuration file --.I /etc/powerman/powerman.conf. -+.I @X_SYSCONFDIR@/powerman/powerman.conf. - .TP - .I "-f, --foreground" - Do not daemonize, and send debugging/error messages to stderr instead of syslog. Property changes on: head/sysutils/powerman/files/patch-man-powermand.8 ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/sysutils/powerman/files/patch-man-powerman.conf.5 =================================================================== --- head/sysutils/powerman/files/patch-man-powerman.conf.5 (revision 515727) +++ head/sysutils/powerman/files/patch-man-powerman.conf.5 (nonexistent) @@ -1,20 +0,0 @@ ---- man/powerman.conf.5.in.orig 2009-02-13 18:31:28.000000000 +0100 -+++ man/powerman.conf.5.in 2009-02-13 18:34:28.000000000 +0100 -@@ -5,7 +5,7 @@ - - .SH DESCRIPTION - The powerman.conf file typically includes one or more of the remote power --controller (RPC) device files provided in the /etc/powerman directory; -+controller (RPC) device files provided in the @X_SYSCONFDIR@/powerman directory; - sets a few global options; - instantiates RPC devices with unique names, hostnames, and ports; - and maps node names to RPC's and plug numbers. -@@ -32,7 +32,7 @@ - Baytech RPC-3 remote power controllers. - .LP - .nf --include "/etc/powerman/baytech.dev" # include def for "baytech" RPC -+include "@X_SYSCONFDIR@/powerman/baytech.dev" # include def for "baytech" RPC - - tcpwrappers yes # enable TCP wrappers - Property changes on: head/sysutils/powerman/files/patch-man-powerman.conf.5 ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/sysutils/powerman/files/patch-man_powerman.conf.5.in =================================================================== --- head/sysutils/powerman/files/patch-man_powerman.conf.5.in (nonexistent) +++ head/sysutils/powerman/files/patch-man_powerman.conf.5.in (revision 515728) @@ -0,0 +1,20 @@ +--- man/powerman.conf.5.in.orig 2012-01-13 23:01:47 UTC ++++ man/powerman.conf.5.in +@@ -5,7 +5,7 @@ powerman.conf \- configuration file for PowerMan + + .SH DESCRIPTION + The powerman.conf file typically includes one or more of the remote power +-controller (RPC) device files provided in the /etc/powerman directory; ++controller (RPC) device files provided in the @X_SYSCONFDIR@/powerman directory; + sets a few global options; + instantiates RPC devices with unique names, hostnames, and ports; + and maps node names to RPC's and plug numbers. +@@ -32,7 +32,7 @@ The following example is a 16-node cluster that uses t + Baytech RPC-3 remote power controllers. + .LP + .nf +-include "/etc/powerman/baytech.dev" # include def for "baytech" RPC ++include "@X_SYSCONFDIR@/powerman/baytech.dev" # include def for "baytech" RPC + + tcpwrappers yes # enable TCP wrappers + Property changes on: head/sysutils/powerman/files/patch-man_powerman.conf.5.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/sysutils/powerman/files/patch-man_powermand.8.in =================================================================== --- head/sysutils/powerman/files/patch-man_powermand.8.in (nonexistent) +++ head/sysutils/powerman/files/patch-man_powermand.8.in (revision 515728) @@ -0,0 +1,11 @@ +--- man/powermand.8.in.orig 2012-01-13 23:01:52 UTC ++++ man/powermand.8.in +@@ -12,7 +12,7 @@ provides power management in a data center or compute + .TP + .I "-c, --conf filename" + Override the default location of the powerman configuration file +-.I /etc/powerman/powerman.conf. ++.I @X_SYSCONFDIR@/powerman/powerman.conf. + .TP + .I "-f, --foreground" + Do not daemonize, and send debugging/error messages to stderr instead of syslog. Property changes on: head/sysutils/powerman/files/patch-man_powermand.8.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property