diff options
author | Eitan Adler <eadler@FreeBSD.org> | 2013-03-25 04:30:31 +0000 |
---|---|---|
committer | Eitan Adler <eadler@FreeBSD.org> | 2013-03-25 04:30:31 +0000 |
commit | fd37d8821fdc48edb0c489017447cb8ee865c5b9 (patch) | |
tree | e9502ec9d580c1cb296d2b6e887c07a0737f2b7c /misc/mtail | |
parent | 48c429ec3a76441cc6a3dba681f911b9b7eccb7f (diff) |
Cleanup unmaintained ports in the misc category:
- Trim Header
- Convert to OptionsNG
- Prefer DISTNAME to DISTFILES
- Reorder variables
- Fix comments (don't include leading article)
- @unexec rm must not cause failure
- Tabs, not spaces
- Single space for WWW
- Pet portlint
- etc.
In a few cases the option DOCS was used to control installation into EXAMPLEDIR.
I opted to keep the existing logic of the port in these cases.
Reviewed by: koobs, ashish
Notes
Notes:
svn path=/head/; revision=315192
Diffstat (limited to 'misc/mtail')
-rw-r--r-- | misc/mtail/Makefile | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/misc/mtail/Makefile b/misc/mtail/Makefile index 030cdd5e71c6..ad8a246072db 100644 --- a/misc/mtail/Makefile +++ b/misc/mtail/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: mtail -# Date created: 9 August 2007 -# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org> -# +# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org> # $FreeBSD$ -# PORTNAME= mtail PORTVERSION= 1.1.1 @@ -20,16 +16,18 @@ PLIST_FILES= bin/${PORTNAME} PORTDOCS= CHANGES LICENSE README PORTEXAMPLES= mtailrc +.include <bsd.port.options.mk> + post-patch: @${REINPLACE_CMD} -e '1s|/.*|${PYTHON_CMD}|' ${WRKSRC}/${PORTNAME} do-install: @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/ -.ifndef NOPORTDOCS +.if ${PORT_OPTIONS:MDOCS} @${INSTALL} -d ${DOCSDIR}/ @cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/ .endif -.ifndef NOPORTEXAMPLES +.if ${PORT_OPTIONS:MEXAMPLES} @${INSTALL} -d ${EXAMPLESDIR}/ @${INSTALL_DATA} ${WRKSRC}/mtailrc.sample ${EXAMPLESDIR}/mtailrc .endif |