aboutsummaryrefslogtreecommitdiff
path: root/sysutils/penv/Makefile
blob: d6e6919330e7e2fa3af40347c972bc47de5f483d (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
# New ports collection makefile for:	penv
# Date created:		5 August 2001
# Whom:			roam@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=	penv
PORTVERSION=	1.0.b2
CATEGORIES=	sysutils
MASTER_SITES=	http://devel.ringlet.net/sysutils/penv/
DISTNAME=	${PORTNAME}-${PORTVERSION:S/.b/pre/}

MAINTAINER=	roam@FreeBSD.org

RUN_DEPENDS=	envdir:${PORTSDIR}/sysutils/daemontools

MAN1=		penv.1
MANCOMPRESSED=	yes

CFLAGS_COMPAT=	-DHAVE_STRLCPY -DHAVE_FGETLN
MAKE_ENV+=	CFLAGS_COMPAT="${CFLAGS_COMPAT}"

.if		!defined(NO_RELEASE)
MAKE_ENV+=	RELEASE=yes
.endif

DBDIR?=		/var/db/${PORTNAME}

PREFIXCONF=	penv.1 penv.conf.default
DBCONF=		pathnames.h penv.1 penv.conf.default

post-patch:
		${PERL} -pi.pfx -e "s,/usr/local,${PREFIX},g" \
			${PREFIXCONF:S,^,${WRKSRC}/,}
		${PERL} -pi.dbdir -e "s,/var/db/penv,${DBDIR},g" \
			${DBCONF:S,^,${WRKSRC}/,}

post-install:
		${MKDIR} ${PREFIX}/etc
		${INSTALL_DATA} ${WRKSRC}/penv.conf.default ${PREFIX}/etc
.if !defined(NOPORTDOCS)
		${MKDIR} ${DOCSDIR}/html
		${INSTALL_DATA} ${WRKSRC}/doc/html/* ${DOCSDIR}/html
.endif

.include <bsd.port.mk>