aboutsummaryrefslogtreecommitdiff
path: root/emulators/mtools
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2014-02-21 01:55:20 +0000
committerMartin Wilke <miwi@FreeBSD.org>2014-02-21 01:55:20 +0000
commit1d4d2c796217b01ab367af5ef21b22fbc815e659 (patch)
tree61cc25e9449a38c75908d45d3359308cc357e7ca /emulators/mtools
parentcb121a637de46a52496cd670d9aaa91013c7ef76 (diff)
downloadports-1d4d2c796217b01ab367af5ef21b22fbc815e659.tar.gz
ports-1d4d2c796217b01ab367af5ef21b22fbc815e659.zip
- Stage support
Notes
Notes: svn path=/head/; revision=345292
Diffstat (limited to 'emulators/mtools')
-rw-r--r--emulators/mtools/Makefile15
-rw-r--r--emulators/mtools/pkg-plist28
2 files changed, 31 insertions, 12 deletions
diff --git a/emulators/mtools/Makefile b/emulators/mtools/Makefile
index 3822f6fc239c..b357be9dc53a 100644
--- a/emulators/mtools/Makefile
+++ b/emulators/mtools/Makefile
@@ -21,18 +21,11 @@ CONFIGURE_ARGS= --enable-xdf
SUB_FILES= pkg-message
-MAN1= mattrib.1 mbadblocks.1 mcat.1 mcd.1 mclasserase.1 mcopy.1 \
- mdel.1 mdeltree.1 mdir.1 mdu.1 mformat.1 mkmanifest.1 \
- minfo.1 mlabel.1 mmd.1 mmount.1 mmove.1 mpartition.1 \
- mrd.1 mren.1 mshowfat.1 mtoolstest.1 mtools.1 mtype.1 \
- mzip.1
-MAN5= mtools.5
INFO= mtools
OPTIONS_DEFINE= ICONV X11
OPTIONS_DEFAULT=ICONV X11
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MICONV}
@@ -46,7 +39,6 @@ CONFIGURE_ENV+= ac_cv_header_iconv_h=no
.if ${PORT_OPTIONS:MX11}
USE_XORG= x11 sm ice xau
PLIST_SUB= X11=""
-MAN1+= floppyd.1 floppyd_installtest.1
.else
CONFIGURE_ARGS+= --without-x
PLIST_SUB= X11="@comment "
@@ -65,10 +57,9 @@ post-patch:
.endfor
post-install:
- ${INSTALL_DATA} ${WRKSRC}/mtools.conf ${PREFIX}/etc/mtools.conf.sample
- @if [ ! -f ${PREFIX}/etc/mtools.conf ]; then \
- cd ${PREFIX}/etc && ${CP} -p mtools.conf.sample mtools.conf; \
+ ${INSTALL_DATA} ${WRKSRC}/mtools.conf ${STAGEDIR}${PREFIX}/etc/mtools.conf.sample
+ @if [ ! -f ${STAGEDIR}${PREFIX}/etc/mtools.conf ]; then \
+ cd ${STAGEDIR}${PREFIX}/etc && ${CP} -p mtools.conf.sample mtools.conf; \
fi
- @${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
diff --git a/emulators/mtools/pkg-plist b/emulators/mtools/pkg-plist
index 4424c02d9a6c..579ee6358c69 100644
--- a/emulators/mtools/pkg-plist
+++ b/emulators/mtools/pkg-plist
@@ -29,6 +29,34 @@ bin/mtoolstest
bin/mtype
bin/mxtar
bin/mzip
+man/man1/floppyd.1.gz
+man/man1/floppyd_installtest.1.gz
+man/man1/mattrib.1.gz
+man/man1/mbadblocks.1.gz
+man/man1/mcat.1.gz
+man/man1/mcd.1.gz
+man/man1/mclasserase.1.gz
+man/man1/mcopy.1.gz
+man/man1/mdel.1.gz
+man/man1/mdeltree.1.gz
+man/man1/mdir.1.gz
+man/man1/mdu.1.gz
+man/man1/mformat.1.gz
+man/man1/minfo.1.gz
+man/man1/mkmanifest.1.gz
+man/man1/mlabel.1.gz
+man/man1/mmd.1.gz
+man/man1/mmount.1.gz
+man/man1/mmove.1.gz
+man/man1/mpartition.1.gz
+man/man1/mrd.1.gz
+man/man1/mren.1.gz
+man/man1/mshowfat.1.gz
+man/man1/mtools.1.gz
+man/man1/mtoolstest.1.gz
+man/man1/mtype.1.gz
+man/man1/mzip.1.gz
+man/man5/mtools.5.gz
@unexec if cmp -s %D/etc/mtools.conf %D/etc/mtools.conf.sample; then rm -f %D/etc/mtools.conf; fi
etc/mtools.conf.sample
@exec if [ ! -f %D/etc/mtools.conf ]; then cp %B/%f %D/etc/mtools.conf; fi