svn commit: r320953 - head/sysutils/penv
Boris Samorodov
bsam at FreeBSD.org
Fri Jun 14 16:50:08 UTC 2013
Author: bsam
Date: Fri Jun 14 16:50:07 2013
New Revision: 320953
URL: http://svnweb.freebsd.org/changeset/ports/320953
Log:
. add LICENSE=BSD;
. bump PORTREVISION;
. remove unneeded DISTNAME;
. NOPORTDOCS -> PORT_OPTIONS:MDOCS;
. trim Makefile headers;
. pet portlint: use @dirrmtry instead of @unexec rmdir.
Modified:
head/sysutils/penv/Makefile
head/sysutils/penv/pkg-plist
Modified: head/sysutils/penv/Makefile
==============================================================================
--- head/sysutils/penv/Makefile Fri Jun 14 16:37:09 2013 (r320952)
+++ head/sysutils/penv/Makefile Fri Jun 14 16:50:07 2013 (r320953)
@@ -1,19 +1,17 @@
-# New ports collection makefile for: penv
-# Date created: 5 August 2001
-# Whom: roam at FreeBSD.org
-#
+# Created by: roam at FreeBSD.org
# $FreeBSD$
-#
PORTNAME= penv
PORTVERSION= 1.2p1
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://devel.ringlet.net/sysutils/penv/
-DISTNAME= ${PORTNAME}-${PORTVERSION:S/.b/pre/}
MAINTAINER= ports at FreeBSD.org
COMMENT= Set the environment according to the current working directory
+LICENSE= BSD
+
RUN_DEPENDS= envdir:${PORTSDIR}/sysutils/daemontools
MAN1= penv.1
@@ -32,16 +30,20 @@ PLIST_SUB+= DBDIR=${DBDIR}
DOCS= html txt
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
post-install:
- ${MKDIR} ${PREFIX}/etc
- ${MKDIR} ${DBDIR}
+ @${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}
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/doc && ${TAR} -cpf - ${DOCS} | ${TAR} -xpf - -C ${DOCSDIR}
.endif
Modified: head/sysutils/penv/pkg-plist
==============================================================================
--- head/sysutils/penv/pkg-plist Fri Jun 14 16:37:09 2013 (r320952)
+++ head/sysutils/penv/pkg-plist Fri Jun 14 16:50:07 2013 (r320953)
@@ -30,4 +30,4 @@ etc/penv.conf.default
%%PORTDOCS%%@dirrm %%DOCSDIR%%/txt
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@exec mkdir -p %%DBDIR%%
- at unexec rmdir %%DBDIR%% 2>/dev/null || true
+ at dirrmtry %%DBDIR%% 2>/dev/null || true
More information about the svn-ports-head
mailing list