mirror of
https://git.freebsd.org/ports.git
synced 2025-06-03 20:06:29 -04:00
- Remove pkg-plist.x11 and use PLIST_SUB to manage NO_X files in pkg-plist
- PLIST now manages installation/removal of mtools.conf (pkg-install no longer required). mtools.conf will be removed only if it is equal to mtools.conf.sample. Submitted by: olgeni
This commit is contained in:
parent
ef240b2e69
commit
aec1a66fc9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=42017
4 changed files with 7 additions and 48 deletions
|
@ -22,9 +22,10 @@ GNU_CONFIGURE= yes
|
|||
.if !defined(NO_X)
|
||||
USE_XLIB= yes
|
||||
CONFIGURE_ARGS= --enable-xdf --enable-floppyd
|
||||
PLIST= pkg-plist.x11
|
||||
PLIST_SUB= WITH_X11=""
|
||||
.else
|
||||
CONFIGURE_ARGS= --enable-xdf
|
||||
PLIST_SUB= WITH_X11="@comment "
|
||||
.endif
|
||||
|
||||
USE_GMAKE= yes
|
||||
|
@ -49,7 +50,7 @@ post-patch:
|
|||
done
|
||||
|
||||
post-install:
|
||||
@# mwrite has been removed by author, but we'll keep it just a bit longer
|
||||
# mwrite has been removed by author, but we'll keep it just a bit longer
|
||||
@${LN} -sf ${PREFIX}/bin/mtools ${PREFIX}/bin/mwrite
|
||||
@${LN} -sf ${PREFIX}/man/man1/mcopy.1.gz ${PREFIX}/man/man1/mwrite.1.gz
|
||||
@${INSTALL_DATA} ${WRKSRC}/mtools.conf ${PREFIX}/etc/mtools.conf.sample
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/sh
|
||||
if [ $2 != "POST-INSTALL" ]; then
|
||||
exit 0
|
||||
fi
|
||||
if [ -e ${PKG_PREFIX}/etc/mtools.conf ]; then
|
||||
echo "Will not overwrite existing ${PKG_PREFIX}/etc/mtools.conf file."
|
||||
else
|
||||
cp -p ${PKG_PREFIX}/etc/mtools.conf.sample ${PKG_PREFIX}/etc/mtools.conf
|
||||
fi
|
|
@ -1,3 +1,5 @@
|
|||
%%WITH_X11%%bin/floppyd
|
||||
%%WITH_X11%%bin/floppyd_installtest
|
||||
bin/mattrib
|
||||
bin/mbadblocks
|
||||
bin/mcat
|
||||
|
@ -30,6 +32,8 @@ bin/mzip
|
|||
@unexec install-info --delete %D/info/mtools.info %D/info/dir
|
||||
info/mtools.info
|
||||
@exec install-info %D/info/mtools.info %D/info/dir
|
||||
@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
|
||||
@exec ln -fs %D/man/man1/mcopy.1.gz %D/man/man1/mwrite.1.gz
|
||||
@unexec rm %D/man/man1/mwrite.1.gz
|
||||
|
|
|
@ -1,37 +0,0 @@
|
|||
bin/floppyd
|
||||
bin/floppyd_installtest
|
||||
bin/mattrib
|
||||
bin/mbadblocks
|
||||
bin/mcat
|
||||
bin/mcd
|
||||
bin/mcheck
|
||||
bin/mcomp
|
||||
bin/mcopy
|
||||
bin/mdel
|
||||
bin/mdeltree
|
||||
bin/mdir
|
||||
bin/mdu
|
||||
bin/mformat
|
||||
bin/minfo
|
||||
bin/mkmanifest
|
||||
bin/mlabel
|
||||
bin/mmd
|
||||
bin/mmount
|
||||
bin/mmove
|
||||
bin/mpartition
|
||||
bin/mrd
|
||||
bin/mread
|
||||
bin/mren
|
||||
bin/mshowfat
|
||||
bin/mtools
|
||||
bin/mtoolstest
|
||||
bin/mtype
|
||||
bin/mwrite
|
||||
bin/mxtar
|
||||
bin/mzip
|
||||
@unexec install-info --delete %D/info/mtools.info %D/info/dir
|
||||
info/mtools.info
|
||||
@exec install-info %D/info/mtools.info %D/info/dir
|
||||
etc/mtools.conf.sample
|
||||
@exec ln -fs %D/man/man1/mcopy.1.gz %D/man/man1/mwrite.1.gz
|
||||
@unexec rm %D/man/man1/mwrite.1.gz
|
Loading…
Add table
Reference in a new issue