diff options
author | wjv <wjv@FreeBSD.org> | 2001-09-05 14:36:53 +0000 |
---|---|---|
committer | wjv <wjv@FreeBSD.org> | 2001-09-05 14:36:53 +0000 |
commit | b751eaf969ed42324682cb3680268016cd4bd209 (patch) | |
tree | 5ed10b6e0a518b46df39ef0636b94a347c659970 /ftp | |
parent | 60fa5f2e4b45e2767abaf0ce584d09b771aa773b (diff) | |
download | FreeBSD-ports-b751eaf969ed42324682cb3680268016cd4bd209.zip FreeBSD-ports-b751eaf969ed42324682cb3680268016cd4bd209.tar.gz |
- Install some basic documentation in DOCSDIR
- Change the mode of SPOOLDIR if installed as package
- Bump PORTREVISION
Diffstat (limited to 'ftp')
-rw-r--r-- | ftp/ftpq/Makefile | 11 | ||||
-rw-r--r-- | ftp/ftpq/pkg-plist | 6 |
2 files changed, 15 insertions, 2 deletions
diff --git a/ftp/ftpq/Makefile b/ftp/ftpq/Makefile index b9d94da..f85ce20 100644 --- a/ftp/ftpq/Makefile +++ b/ftp/ftpq/Makefile @@ -7,6 +7,7 @@ PORTNAME= ftpq PORTVERSION= 1.05 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= ftp MASTER_SITES= http://www.tranchant.freeserve.co.uk/software/ @@ -16,14 +17,22 @@ MAINTAINER= ports@FreeBSD.org USE_GMAKE= yes GNU_CONFIGURE= yes MAN1= ftpq.1 -SPOOLDIR?= /var/spool/ftpq PLIST_SUB+= SPOOLDIR=${SPOOLDIR} +# This may be set interactively at install-time: +SPOOLDIR?= /var/spool/ftpq + post-patch: @ ${PERL} -pi -e 's#%%SPOOLDIR%%#${SPOOLDIR}#' \ ${WRKSRC}/Makefile.in ${WRKSRC}/src/ftpq.h post-install: @ ${MKDIR} ${SPOOLDIR} && ${CHMOD} 777 ${SPOOLDIR} +.if !defined(NOPORTDOCS) + @ ${MKDIR} ${DOCSDIR} +.for docfile in CHANGELOG README TODO + @ ${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR} +.endfor +.endif .include <bsd.port.mk> diff --git a/ftp/ftpq/pkg-plist b/ftp/ftpq/pkg-plist index 303edce..faa3d74 100644 --- a/ftp/ftpq/pkg-plist +++ b/ftp/ftpq/pkg-plist @@ -1,3 +1,7 @@ bin/ftpq -@exec mkdir -p %%SPOOLDIR%% +%%PORTDOCS%%share/doc/ftpq/CHANGELOG +%%PORTDOCS%%share/doc/ftpq/README +%%PORTDOCS%%share/doc/ftpq/TODO +%%PORTDOCS%%@dirrm share/doc/ftpq +@exec mkdir -p %%SPOOLDIR%% && chmod 777 %%SPOOLDIR%% @unexec rmdir %%SPOOLDIR%% 2>/dev/null || true |