aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2014-03-15 17:04:19 +0800
committerdanfe <danfe@FreeBSD.org>2014-03-15 17:04:19 +0800
commite5872b7bd32d87741a8bf4c4564894e5a269c4bf (patch)
tree277a90c3409efbf42bdedb612b63aee70a90c1b4 /sysutils
parentee718fcb38e5100c0fbf71ab366a6f33b74fda95 (diff)
downloadfreebsd-ports-gnome-e5872b7bd32d87741a8bf4c4564894e5a269c4bf.tar.gz
freebsd-ports-gnome-e5872b7bd32d87741a8bf4c4564894e5a269c4bf.tar.zst
freebsd-ports-gnome-e5872b7bd32d87741a8bf4c4564894e5a269c4bf.zip
- 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
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/afio/Makefile30
-rw-r--r--sysutils/afio/pkg-plist18
2 files changed, 12 insertions, 36 deletions
diff --git a/sysutils/afio/Makefile b/sysutils/afio/Makefile
index 8692655f0f6e..28631e673f9d 100644
--- a/sysutils/afio/Makefile
+++ b/sysutils/afio/Makefile
@@ -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}
-OPTIONS_DEFINE= DOCS EXAMPLES
-post-patch:
- @${REINPLACE_CMD} -e 's|^CC=.*$$|CC=${CC}|' \
- ${WRKSRC}/Makefile
+PLIST_FILES= bin/afio man/man1/afio.1.gz
+PORTDOCS= HISTORY README SCRIPTS
+PORTEXAMPLES= *
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE= DOCS EXAMPLES
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>
diff --git a/sysutils/afio/pkg-plist b/sysutils/afio/pkg-plist
deleted file mode 100644
index 3fbb4b5e2f19..000000000000
--- a/sysutils/afio/pkg-plist
+++ /dev/null
@@ -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%%