1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00

Some port related improvements, no functional changes in mgetty itself.

* Preserve configuration files in etc/mgetty+sendfax. Remove the
  pkg-deinstall file that used to warn about potential loss of
  configuration files at deinstall time.

* Patch file mtools.info so that it can be installed with install-info in
  the info index (the stock file lacks a proper directory entry).

* Make pkg-install exit without asking anything, if BATCH is defined. And
  fix a banner length :o)

Reviewed by:	jmz
This commit is contained in:
Jimmy Olgeni 2001-05-03 22:56:14 +00:00
parent 885dda7e86
commit e447d6a0d5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=42232
6 changed files with 43 additions and 32 deletions

View File

@ -36,8 +36,17 @@ MAN8= callback.8 \
pre-install:
@(cd ${WRKSRC}/doc; ${MAKE} manpages)
.if !defined(BATCH)
post-install:
@${CP} ${PREFIX}/etc/mgetty+sendfax/dialin.config \
${PREFIX}/etc/mgetty+sendfax/dialin.config.dist
@${CP} ${PREFIX}/etc/mgetty+sendfax/faxheader \
${PREFIX}/etc/mgetty+sendfax/faxheader.dist
@${CP} ${PREFIX}/etc/mgetty+sendfax/faxrunq.config \
${PREFIX}/etc/mgetty+sendfax/faxrunq.config.dist
@${CP} ${PREFIX}/etc/mgetty+sendfax/login.config \
${PREFIX}/etc/mgetty+sendfax/login.config.dist
@install-info ${PREFIX}/info/mgetty.info ${PREFIX}/info/dir
.if !defined(BATCH)
@(cd ${PKGDIR}; export PKG_PREFIX=${PREFIX}; ${PERL5} ${PKGINSTALL} _ POST-INSTALL)
.endif

View File

@ -1,8 +1,9 @@
#!/usr/bin/perl
exit 0 if $ARGV[1] ne "POST-INSTALL";
exit 0 if $ENV{'BATCH'};
print STDERR "\n\n\n =========== mgetty+sendfax configuration ================\n\n";
print STDERR "\n\n\n =========== mgetty+sendfax configuration ===========\n\n";
$prefix = $ENV{'PKG_PREFIX'};
$sep = "~";

View File

@ -0,0 +1,14 @@
--- doc/mgetty.texi-in.orig Sat Apr 28 12:57:00 2001
+++ doc/mgetty.texi-in Sat Apr 28 13:03:46 2001
@@ -11,6 +11,11 @@
package.
Copyright @copyright{} 1993-2000 Gert Doering
+@format
+START-INFO-DIR-ENTRY
+* Mgetty: (mgetty). Mgetty: an advanced getty that can manage faxes.
+END-INFO-DIR-ENTRY
+@end format
@end ifinfo
@titlepage

View File

@ -1,23 +0,0 @@
#!/bin/sh
prefix=/usr/local
cat << END
Deinstalling mgetty+sendfax will remove your configuration files (usually
mgetty.config and sendfax.config in $prefix/etc/mgetty+sendfax/). If you
want to reinstall the port later, you must make a backup of those files
now.
END
if [ -z "${PACKAGE_BUILDING}" ]; then
echo -n "do you want to deinstall the package ? [y] "
read answ; if [ "$answ" = "" ]; then answ=y; fi
else
answ=y
fi
case $answ in
y*|Y*) exit 0;;
*) exit 1;;
esac

View File

@ -1,8 +1,9 @@
#!/usr/bin/perl
exit 0 if $ARGV[1] ne "POST-INSTALL";
exit 0 if $ENV{'BATCH'};
print STDERR "\n\n\n =========== mgetty+sendfax configuration ================\n\n";
print STDERR "\n\n\n =========== mgetty+sendfax configuration ===========\n\n";
$prefix = $ENV{'PKG_PREFIX'};
$sep = "~";

View File

@ -33,12 +33,21 @@ bin/rmdtopvf
bin/vm
bin/voctopvf
bin/wavtopvf
etc/mgetty+sendfax/dialin.config
etc/mgetty+sendfax/faxheader
etc/mgetty+sendfax/faxrunq.config
@unexec if cmp -s %D/etc/mgetty+sendfax/dialin.config %D/etc/mgetty+sendfax/dialin.config.dist; then rm -f %D/etc/mgetty+sendfax/dialin.config; fi
etc/mgetty+sendfax/dialin.config.dist
@exec if [ ! -f %D/etc/mgetty+sendfax/dialin.config ]; then cp %B/%f %D/etc/mgetty+sendfax/dialin.config; fi
@unexec if cmp -s %D/etc/mgetty+sendfax/faxheader %D/etc/mgetty+sendfax/faxheader.dist; then rm -f %D/etc/mgetty+sendfax/faxheader; fi
etc/mgetty+sendfax/faxheader.dist
@exec if [ ! -f %D/etc/mgetty+sendfax/faxheader ]; then cp %B/%f %D/etc/mgetty+sendfax/faxheader; fi
@unexec if cmp -s %D/etc/mgetty+sendfax/faxrunq.config %D/etc/mgetty+sendfax/faxrunq.config.dist; then rm -f %D/etc/mgetty+sendfax/faxrunq.config; fi
etc/mgetty+sendfax/faxrunq.config.dist
@exec if [ ! -f %D/etc/mgetty+sendfax/faxrunq.config ]; then cp %B/%f %D/etc/mgetty+sendfax/faxrunq.config; fi
@unexec if cmp -s %D/etc/mgetty+sendfax/faxspool.rules %D/etc/mgetty+sendfax/faxspool.rules.sample; then rm -f %D/etc/mgetty+sendfax/faxspool.rules; fi
etc/mgetty+sendfax/faxspool.rules.sample
etc/mgetty+sendfax/login.config
@unexec rm -f %D/etc/mgetty+sendfax/faxheader %D/etc/mgetty+sendfax/mgetty.config* %D/etc/mgetty+sendfax/sendfax.config*
@exec if [ ! -f %D/etc/mgetty+sendfax/faxspool.rules ]; then cp %B/%f %D/etc/mgetty+sendfax/faxspool.rules; fi
@unexec if cmp -s %D/etc/mgetty+sendfax/login.config %D/etc/mgetty+sendfax/login.config.dist; then rm -f %D/etc/mgetty+sendfax/login.config; fi
etc/mgetty+sendfax/login.config.dist
@exec if [ ! -f %D/etc/mgetty+sendfax/login.config ]; then cp %B/%f %D/etc/mgetty+sendfax/login.config; fi
@unexec install-info --delete %D/info/mgetty.info %D/info/dir
info/mgetty.info
@exec install-info %D/info/mgetty.info %D/info/dir
@ -48,5 +57,5 @@ sbin/faxrunqd
sbin/mgetty
sbin/sendfax
sbin/vgetty
@dirrm etc/mgetty+sendfax
@unexec rmdir %D/etc/mgetty+sendfax 2>/dev/null || true
@dirrm lib/mgetty+sendfax