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:
parent
8714a6eaa6
commit
f17b5bf719
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=348300
@ -4,34 +4,28 @@
|
||||
PORTNAME= afio
|
||||
PORTVERSION= 2.5
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= ${MASTER_SITE_SUNSITE}
|
||||
MASTER_SITE_SUBDIR= system/backup
|
||||
EXTRACT_SUFX= .tgz
|
||||
MASTER_SITES= SUNSITE/system/backup
|
||||
|
||||
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}
|
||||
|
||||
PLIST_FILES= bin/afio man/man1/afio.1.gz
|
||||
PORTDOCS= HISTORY README SCRIPTS
|
||||
PORTEXAMPLES= *
|
||||
|
||||
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|^CC=.*$$|CC=${CC}|' \
|
||||
${WRKSRC}/Makefile
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
post-install:
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_MAN} ${WRKSRC}/README ${WRKSRC}/SCRIPTS ${STAGEDIR}${DOCSDIR}
|
||||
.endif
|
||||
.if ${PORT_OPTIONS:MEXAMPLES}
|
||||
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/afiodump.example ${STAGEDIR}${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/script1/DONTDUMP ${STAGEDIR}${EXAMPLESDIR}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/script2/* ${STAGEDIR}${EXAMPLESDIR}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/script3/* ${STAGEDIR}${EXAMPLESDIR}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/script4/* ${STAGEDIR}${EXAMPLESDIR}
|
||||
.endif
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/afiodump.example \
|
||||
${WRKSRC}/script2/* ${WRKSRC}/script3/* \
|
||||
${WRKSRC}/script4/* ${STAGEDIR}${EXAMPLESDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -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%%
|
Loading…
Reference in New Issue
Block a user