blob: a8814ab8166e0aba75d9ef5ce31a46df531dede7 (
plain)
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
49
50
51
|
# Created by: roam@FreeBSD.org
# $FreeBSD$
PORTNAME= penv
PORTVERSION= 1.2p1
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://devel.ringlet.net/sysutils/penv/
MAINTAINER= ports@FreeBSD.org
COMMENT= Set the environment according to the current working directory
LICENSE= BSD
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}
PLIST_SUB+= DBDIR=${DBDIR}
DOCS= html txt
OPTIONS_DEFINE= DOCS
NO_STAGE= yes
.include <bsd.port.options.mk>
post-install:
@${MKDIR} ${PREFIX}/etc
@${MKDIR} ${DBDIR}
${INSTALL_DATA} ${WRKSRC}/penv.conf.default ${PREFIX}/etc
if [ ! -e ${PREFIX}/etc/penv.conf ]; then \
${INSTALL_DATA} ${WRKSRC}/penv.conf.default \
${PREFIX}/etc/penv.conf; \
fi
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/doc && ${TAR} -cpf - ${DOCS} | ${TAR} -xpf - -C ${DOCSDIR}
.endif
.include <bsd.port.mk>
|