aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/jailadmin/Makefile
blob: 07654a018f6211697ab5766300e778ab22874b85 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# New ports collection makefile for:    jailadmin
# Date created:             02 Apr 2004
# Whom:                 Kirk Strauser <kirk@strauser.com>
#
# $FreeBSD$
#

PORTNAME=   jailadmin
PORTVERSION=    1.8
PORTREVISION=   3
CATEGORIES= sysutils
MASTER_SITES=   http://subwiki.honeypot.net/pub/Freebsd/JailAdmin/
DISTNAME=   jailadmin-${PORTVERSION}

MAINTAINER= kirk@strauser.com
COMMENT=    A system for managing a set of named jails

USE_PERL5=  yes

PORTDOCS=   INSTALL README

.include <bsd.port.pre.mk>

.if defined(WITH_SNMP)
.if exists(${LOCALBASE}/lib/libsnmp.so.4) || defined(WITH_SNMP4)
LIB_DEPENDS+=   snmp.4:${PORTSDIR}/net-mgmt/net-snmp4
.else
LIB_DEPENDS+=   netsnmp.10:${PORTSDIR}/net-mgmt/net-snmp
.endif
PLIST_SUB+= SNMP=""
.else
INSTALL_TARGET= installbase
PLIST_SUB+= SNMP="@comment "
.endif

pre-everything::
    @${ECHO}
    @${ECHO} "You can build ${PKGNAME} with the following options:"
    @${ECHO} "WITH_SNMP     install the additional SNMP management components"
    @${ECHO}

post-patch:
    @${REINPLACE_CMD} -e "s#^SITEPERLDIR=.*#SITEPERLDIR= ${SITE_PERL}#" ${WRKSRC}/Makefile
.ifdef NOPORTDOCS
    @${REINPLACE_CMD} -e '/share\/doc/s/^[[:blank:]]/#&/' ${WRKSRC}/Makefile
.endif

.include <bsd.port.post.mk>