aboutsummaryrefslogtreecommitdiffstats
path: root/ftp
diff options
context:
space:
mode:
authorwjv <wjv@FreeBSD.org>2001-09-05 22:36:53 +0800
committerwjv <wjv@FreeBSD.org>2001-09-05 22:36:53 +0800
commitb751eaf969ed42324682cb3680268016cd4bd209 (patch)
tree5ed10b6e0a518b46df39ef0636b94a347c659970 /ftp
parent60fa5f2e4b45e2767abaf0ce584d09b771aa773b (diff)
downloadfreebsd-ports-gnome-b751eaf969ed42324682cb3680268016cd4bd209.tar.gz
freebsd-ports-gnome-b751eaf969ed42324682cb3680268016cd4bd209.tar.zst
freebsd-ports-gnome-b751eaf969ed42324682cb3680268016cd4bd209.zip
- 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/Makefile11
-rw-r--r--ftp/ftpq/pkg-plist6
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