diff options
-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 b9d94da85d61..f85ce20ec503 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 303edce80e35..faa3d74a7aff 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 |