aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/powerman/Makefile
blob: 6913981781b94309fbba79bcbf32981dbb8b6013 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Created by: Greg Lewis <glewis@FreeBSD.org>
# $FreeBSD$

PORTNAME=   powerman
PORTVERSION=    2.3.20
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 # (or later)

LIB_DEPENDS=    libcurl.so:${PORTSDIR}/ftp/curl

USES=       libtool perl5
USE_PERL5=  build
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-httppower --localstatedir=/var \
        --with-pkgconfig-dir=${PREFIX}/libdata/pkgconfig
USE_LDCONFIG=   yes
INSTALL_TARGET= install-strip

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

.include <bsd.port.mk>