diff options
author | bsam <bsam@FreeBSD.org> | 2013-06-15 00:50:07 +0800 |
---|---|---|
committer | bsam <bsam@FreeBSD.org> | 2013-06-15 00:50:07 +0800 |
commit | 87470c755620fe823c0451b857f296fb15c343f8 (patch) | |
tree | 09d49458c93e585ad8258c23fdfb63d486e93b4c | |
parent | 0540359055b0899c67fc8a0764892f986028aeb2 (diff) | |
download | freebsd-ports-gnome-87470c755620fe823c0451b857f296fb15c343f8.tar.gz freebsd-ports-gnome-87470c755620fe823c0451b857f296fb15c343f8.tar.zst freebsd-ports-gnome-87470c755620fe823c0451b857f296fb15c343f8.zip |
. add LICENSE=BSD;
. bump PORTREVISION;
. remove unneeded DISTNAME;
. NOPORTDOCS -> PORT_OPTIONS:MDOCS;
. trim Makefile headers;
. pet portlint: use @dirrmtry instead of @unexec rmdir.
-rw-r--r-- | sysutils/penv/Makefile | 22 | ||||
-rw-r--r-- | sysutils/penv/pkg-plist | 2 |
2 files changed, 13 insertions, 11 deletions
diff --git a/sysutils/penv/Makefile b/sysutils/penv/Makefile index 9b16519832b2..2338d6119b0e 100644 --- a/sysutils/penv/Makefile +++ b/sysutils/penv/Makefile @@ -1,19 +1,17 @@ -# New ports collection makefile for: penv -# Date created: 5 August 2001 -# Whom: roam@FreeBSD.org -# +# Created by: roam@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@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 diff --git a/sysutils/penv/pkg-plist b/sysutils/penv/pkg-plist index c6b36856e8ec..4bb8d3afdf8d 100644 --- a/sysutils/penv/pkg-plist +++ b/sysutils/penv/pkg-plist @@ -30,4 +30,4 @@ etc/penv.conf.default %%PORTDOCS%%@dirrm %%DOCSDIR%%/txt %%PORTDOCS%%@dirrm %%DOCSDIR%% @exec mkdir -p %%DBDIR%% -@unexec rmdir %%DBDIR%% 2>/dev/null || true +@dirrmtry %%DBDIR%% 2>/dev/null || true |