1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/sysutils/penv/Makefile
Peter Pentchev 2d54a0b8b1 Create the database directory during install and remove it, if empty,
on uninstall.
penv.conf.default/penv.conf handling a'la Apache.
Bump PORTREVISION.

Submitted by:	olgeni
2001-09-12 08:11:34 +00:00

47 lines
998 B
Makefile

# New ports collection makefile for: penv
# Date created: 5 August 2001
# Whom: roam@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= penv
PORTVERSION= 1.0
PORTREVISION= 1
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}
PLIST_SUB+= DBDIR=${DBDIR}
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 !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}/html
${INSTALL_DATA} ${WRKSRC}/doc/html/* ${DOCSDIR}/html
.endif
.include <bsd.port.mk>