1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00

- Shrink MASTER_SITES, convert EXTRACT_SUFX to USES=tar:tgz, improve COMMENT

- Install portdocs and examples unconditionally since the port is staged now
- Convert pkg-plist into PLIST_FILES, PORTDOCS, and PORTEXAMPLES knobs
- Drop no-op (cf. files/patch-Makefile) `post-patch' target while I'm here
This commit is contained in:
Alexey Dokuchaev 2014-03-15 09:04:19 +00:00
parent 8714a6eaa6
commit f17b5bf719
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=348300
2 changed files with 13 additions and 37 deletions

View File

@ -4,34 +4,28 @@
PORTNAME= afio PORTNAME= afio
PORTVERSION= 2.5 PORTVERSION= 2.5
CATEGORIES= sysutils CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SUNSITE} MASTER_SITES= SUNSITE/system/backup
MASTER_SITE_SUBDIR= system/backup
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org MAINTAINER= ports@FreeBSD.org
COMMENT= Archiver & backup program w/ builtin compression COMMENT= Archiver and backup program with builtin compression
USES= tar:tgz
ALL_TARGET= ${PORTNAME} ALL_TARGET= ${PORTNAME}
PLIST_FILES= bin/afio man/man1/afio.1.gz
PORTDOCS= HISTORY README SCRIPTS
PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EXAMPLES OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} -e 's|^CC=.*$$|CC=${CC}|' \
${WRKSRC}/Makefile
.include <bsd.port.options.mk>
post-install: post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR} @${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/README ${WRKSRC}/SCRIPTS ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_SCRIPT} ${FILESDIR}/afiodump.example ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/script1/DONTDUMP ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/script1/DONTDUMP ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/script2/* ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_SCRIPT} ${FILESDIR}/afiodump.example \
${INSTALL_SCRIPT} ${WRKSRC}/script3/* ${STAGEDIR}${EXAMPLESDIR} ${WRKSRC}/script2/* ${WRKSRC}/script3/* \
${INSTALL_SCRIPT} ${WRKSRC}/script4/* ${STAGEDIR}${EXAMPLESDIR} ${WRKSRC}/script4/* ${STAGEDIR}${EXAMPLESDIR}
.endif
.include <bsd.port.mk> .include <bsd.port.mk>

View File

@ -1,18 +0,0 @@
bin/afio
man/man1/afio.1.gz
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/SCRIPTS
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/DONTDUMP
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/README
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/afiodump.example
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/backup
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gnupg_read
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gnupg_write
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pgp_read
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pgp_write
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/restore
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tapechange
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/x.dot
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/x.home
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%