diff options
-rw-r--r-- | comms/mgetty+sendfax/Makefile | 4 | ||||
-rw-r--r-- | comms/mgetty+sendfax/pkg-plist | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/comms/mgetty+sendfax/Makefile b/comms/mgetty+sendfax/Makefile index 0544c0f6e684..78a32eb279b8 100644 --- a/comms/mgetty+sendfax/Makefile +++ b/comms/mgetty+sendfax/Makefile @@ -7,7 +7,7 @@ PORTNAME= mgetty PORTVERSION= 1.1.30.12.16 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= comms MASTER_SITES= ftp://alpha.greenie.net/pub/mgetty/source/1.1/ DISTNAME= mgetty1.1.30-Dec16 @@ -86,6 +86,8 @@ post-install: ${PREFIX}/etc/mgetty+sendfax/faxrunq.config.dist @${CP} ${PREFIX}/etc/mgetty+sendfax/login.config \ ${PREFIX}/etc/mgetty+sendfax/login.config.dist + ${INSTALL_DATA} -m 600 ${WRKSRC}/voice/voice.conf-dist \ + ${PREFIX}/etc/mgetty+sendfax/voice.conf.dist @${TAR} -cf - -C ${WRKSRC} samples | ${TAR} -xf - -C ${PREFIX}/lib/mgetty+sendfax/ @install-info ${PREFIX}/info/mgetty.info ${PREFIX}/info/dir .if !defined(BATCH) diff --git a/comms/mgetty+sendfax/pkg-plist b/comms/mgetty+sendfax/pkg-plist index b1f8bb339b8b..f9491f892f7b 100644 --- a/comms/mgetty+sendfax/pkg-plist +++ b/comms/mgetty+sendfax/pkg-plist @@ -48,6 +48,9 @@ etc/mgetty+sendfax/faxspool.rules.sample @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 if cmp -s %D/etc/mgetty+sendfax/voice.conf %D/etc/mgetty+sendfax/voice.conf.dist; then rm -f %D/etc/mgetty+sendfax/voice.conf; fi +etc/mgetty+sendfax/voice.conf.dist +@exec if [ ! -f %D/etc/mgetty+sendfax/voice.conf ]; then cp %B/%f %D/etc/mgetty+sendfax/voice.conf; 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 |