aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archivers/gtar/Makefile7
-rw-r--r--archivers/gtar/pkg-plist3
-rw-r--r--sysutils/gtar/Makefile7
-rw-r--r--sysutils/gtar/pkg-plist3
4 files changed, 18 insertions, 2 deletions
diff --git a/archivers/gtar/Makefile b/archivers/gtar/Makefile
index a409819ef9cf..ffa31db5c27b 100644
--- a/archivers/gtar/Makefile
+++ b/archivers/gtar/Makefile
@@ -3,7 +3,7 @@
# Date created: Sa 6 Jun 1998 10:24:51 CEST
# Whom: Andreas Klemm <andreas@klemm.gtn.com>
#
-# $Id: Makefile,v 1.1.1.1 1998/06/06 10:34:24 andreas Exp $
+# $Id: Makefile,v 1.2 1998/06/08 05:48:58 asami Exp $
#
DISTNAME= tar-1.12
@@ -15,4 +15,9 @@ MAINTAINER= andreas@FreeBSD.ORG
GNU_CONFIGURE= yes
CONFIGURE_ARGS=--program-prefix=g
+pre-install:
+ if [ ! -f ${PREFIX}/info/dir ]; then \
+ ${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \
+ fi
+
.include <bsd.port.mk>
diff --git a/archivers/gtar/pkg-plist b/archivers/gtar/pkg-plist
index 239f047ac863..e0e7c37bbc6c 100644
--- a/archivers/gtar/pkg-plist
+++ b/archivers/gtar/pkg-plist
@@ -11,6 +11,7 @@ share/locale/pl/LC_MESSAGES/tar.mo
share/locale/pt/LC_MESSAGES/tar.mo
share/locale/sl/LC_MESSAGES/tar.mo
share/locale/sv/LC_MESSAGES/tar.mo
+@unexec install-info --delete %D/info/tar.info %D/info/dir
info/tar.info
info/tar.info-1
info/tar.info-2
@@ -19,3 +20,5 @@ info/tar.info-4
info/tar.info-5
info/tar.info-6
info/tar.info-7
+@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir
+@exec install-info %D/info/tar.info %D/info/dir
diff --git a/sysutils/gtar/Makefile b/sysutils/gtar/Makefile
index a409819ef9cf..ffa31db5c27b 100644
--- a/sysutils/gtar/Makefile
+++ b/sysutils/gtar/Makefile
@@ -3,7 +3,7 @@
# Date created: Sa 6 Jun 1998 10:24:51 CEST
# Whom: Andreas Klemm <andreas@klemm.gtn.com>
#
-# $Id: Makefile,v 1.1.1.1 1998/06/06 10:34:24 andreas Exp $
+# $Id: Makefile,v 1.2 1998/06/08 05:48:58 asami Exp $
#
DISTNAME= tar-1.12
@@ -15,4 +15,9 @@ MAINTAINER= andreas@FreeBSD.ORG
GNU_CONFIGURE= yes
CONFIGURE_ARGS=--program-prefix=g
+pre-install:
+ if [ ! -f ${PREFIX}/info/dir ]; then \
+ ${SED} -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir; \
+ fi
+
.include <bsd.port.mk>
diff --git a/sysutils/gtar/pkg-plist b/sysutils/gtar/pkg-plist
index 239f047ac863..e0e7c37bbc6c 100644
--- a/sysutils/gtar/pkg-plist
+++ b/sysutils/gtar/pkg-plist
@@ -11,6 +11,7 @@ share/locale/pl/LC_MESSAGES/tar.mo
share/locale/pt/LC_MESSAGES/tar.mo
share/locale/sl/LC_MESSAGES/tar.mo
share/locale/sv/LC_MESSAGES/tar.mo
+@unexec install-info --delete %D/info/tar.info %D/info/dir
info/tar.info
info/tar.info-1
info/tar.info-2
@@ -19,3 +20,5 @@ info/tar.info-4
info/tar.info-5
info/tar.info-6
info/tar.info-7
+@exec [ -f %D/info/dir ] || sed -ne '1,/Menu:/p' /usr/share/info/dir > %D/info/dir
+@exec install-info %D/info/tar.info %D/info/dir