aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2014-08-05 22:40:25 +0800
committervanilla <vanilla@FreeBSD.org>2014-08-05 22:40:25 +0800
commit0ffc471b059ecb3b576ec880c0d56e50906a1bc2 (patch)
tree53769f598548dbb0480d7ed7cdeff7a266db7fa7
parentab53eb9d5d55fcf7d1c408a119f0179824deff78 (diff)
downloadfreebsd-ports-gnome-0ffc471b059ecb3b576ec880c0d56e50906a1bc2.tar.gz
freebsd-ports-gnome-0ffc471b059ecb3b576ec880c0d56e50906a1bc2.tar.zst
freebsd-ports-gnome-0ffc471b059ecb3b576ec880c0d56e50906a1bc2.zip
1: Stagify.
2: use @sample, bump version.
-rw-r--r--sysutils/raincoat/Makefile33
-rw-r--r--sysutils/raincoat/pkg-plist4
2 files changed, 14 insertions, 23 deletions
diff --git a/sysutils/raincoat/Makefile b/sysutils/raincoat/Makefile
index 354c35051262..685296b33307 100644
--- a/sysutils/raincoat/Makefile
+++ b/sysutils/raincoat/Makefile
@@ -1,23 +1,22 @@
# Created by: Ed Schouten <ed@fxq.nl>
# $FreeBSD$
-PORTNAME= raincoat
-PORTVERSION= 0.11
-CATEGORIES= sysutils
-MASTER_SITES= SF/xbox-linux/Other/Raincoat
-EXTRACT_SUFX= .tbz2
+PORTNAME= raincoat
+PORTVERSION= 0.11
+PORTREVISION= 1
+CATEGORIES= sysutils
+MASTER_SITES= SF/xbox-linux/Other/Raincoat
+EXTRACT_SUFX= .tbz2
MAINTAINER= ports@FreeBSD.org
-COMMENT= BIOS flash utility for the Microsoft Xbox
+COMMENT= BIOS flash utility for the Microsoft Xbox
# Xbox is i386
ONLY_FOR_ARCHS= i386
-
USES= tar:bzip2
+PORTDOCS= README
+OPTIONS_DEFINE= DOCS
-PORTDOCS= README
-
-NO_STAGE= yes
post-patch:
.for f in docs/README src/${PORTNAME}.c
@${REINPLACE_CMD} -e 's|/etc/raincoat\.conf|${PREFIX}&|g' \
@@ -28,15 +27,9 @@ do-build:
${CC} ${CFLAGS} -o ${WRKSRC}/${PORTNAME} ${WRKSRC}/src/${PORTNAME}.c ${WRKSRC}/src/BootFlash.c
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin
- ${INSTALL_DATA} ${WRKSRC}/etc/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf.default
-.if !exists(${PREFIX}/etc/${PORTNAME}.conf)
- ${INSTALL_DATA} ${WRKSRC}/etc/${PORTNAME}.conf ${PREFIX}/etc
-.endif
-
-.if !defined (NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/docs/${PORTDOCS} ${DOCSDIR}
-.endif
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin
+ ${INSTALL_DATA} ${WRKSRC}/etc/${PORTNAME}.conf ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/sysutils/raincoat/pkg-plist b/sysutils/raincoat/pkg-plist
index 9fedfc8ed484..991b15770668 100644
--- a/sysutils/raincoat/pkg-plist
+++ b/sysutils/raincoat/pkg-plist
@@ -1,4 +1,2 @@
sbin/raincoat
-@unexec if cmp -s %D/etc/raincoat.conf %D/etc/raincoat.conf.default; then rm -f %D/etc/raincoat.conf; fi
-etc/raincoat.conf.default
-@exec [ -f %B/raincoat.conf ] || cp %B/%f %B/raincoat.conf
+@sample etc/raincoat.conf.sample