- Install some basic documentation in DOCSDIR

- Change the mode of SPOOLDIR if installed as package
- Bump PORTREVISION
This commit is contained in:
Johann Visagie 2001-09-05 14:36:53 +00:00
parent 6b86500903
commit 5d72c36234
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=47454
2 changed files with 15 additions and 2 deletions

View file

@ -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>

View file

@ -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