aboutsummaryrefslogtreecommitdiff
path: root/textproc/diffutils
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2005-10-22 17:08:14 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2005-10-22 17:08:14 +0000
commita70bb3fe192d47037c1979aac340617d3fae8b5e (patch)
tree6b31f052edbd8404c3b588f721a63c8335aed40a /textproc/diffutils
parent89ab5127bc451b814d3b66b4305925f84c95d5dc (diff)
downloadports-a70bb3fe192d47037c1979aac340617d3fae8b5e.tar.gz
ports-a70bb3fe192d47037c1979aac340617d3fae8b5e.zip
- provide optional nano second timestamp precision
- bump PORTREVISION - nuke pkg-plist - add pkg-message (inform about vfs.timestamp_precision) PR: 87702 Submitted by: Byung-Hee HWANG <bh@izb.knu.ac.kr>
Notes
Notes: svn path=/head/; revision=146127
Diffstat (limited to 'textproc/diffutils')
-rw-r--r--textproc/diffutils/Makefile34
-rw-r--r--textproc/diffutils/distinfo2
-rw-r--r--textproc/diffutils/pkg-message13
-rw-r--r--textproc/diffutils/pkg-plist5
4 files changed, 32 insertions, 22 deletions
diff --git a/textproc/diffutils/Makefile b/textproc/diffutils/Makefile
index a41c36b69a0e..830e02be8672 100644
--- a/textproc/diffutils/Makefile
+++ b/textproc/diffutils/Makefile
@@ -7,6 +7,7 @@
PORTNAME= diffutils
PORTVERSION= 2.8.1
+PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= diffutils
@@ -19,23 +20,22 @@ GNU_CONFIGURE= yes
CONFIGURE_ARGS= --program-prefix=g
INFO= diff
-
MAN1= gcmp.1 gdiff.1 gdiff3.1 gsdiff.1
+PLIST_FILES= bin/gcmp bin/gdiff bin/gdiff3 bin/gsdiff
-#post-extract: remove-info-files
-#
-#remove-info-files:
-# @${RM} -f ${WRKSRC}/${PORTNAME:S/utils//}.info*
-#
-#post-patch: patch-makeinfo
-#
-#patch-makeinfo:
-# @${REINPLACE_CMD} -e 's|makeinfo|makeinfo --no-split|g' \
-# ${WRKSRC}/Makefile.in
-#
-#post-install: install-info
-#
-#install-info:
-# @${INSTALL_INFO} ${PREFIX}/info/${PORTNAME:S/utils//}.info ${PREFIX}/info/dir
+OPTIONS= TIMESTAMP_PRECISION "With nano second timestamp precision" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_TIMESTAMP_PRECISION)
+PATCH_SITES+= http://izb.knu.ac.kr/~bh/diffs/
+PATCHFILES+= diffutils-2.8.1-timestamp_precision.diff
+PATCH_DIST_STRIP+= -p1
+.endif
+
+.if defined(WITH_TIMESTAMP_PRECISION)
+post-install:
+ @${CAT} ${PKGMESSAGE}
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/textproc/diffutils/distinfo b/textproc/diffutils/distinfo
index 5d6c17a37717..1d21eea05c8b 100644
--- a/textproc/diffutils/distinfo
+++ b/textproc/diffutils/distinfo
@@ -1,2 +1,4 @@
MD5 (diffutils-2.8.1.tar.gz) = 71f9c5ae19b60608f6c7f162da86a428
SIZE (diffutils-2.8.1.tar.gz) = 780086
+MD5 (diffutils-2.8.1-timestamp_precision.diff) = 1ac049df51ef80fe9acaba123b2a4128
+SIZE (diffutils-2.8.1-timestamp_precision.diff) = 1989
diff --git a/textproc/diffutils/pkg-message b/textproc/diffutils/pkg-message
new file mode 100644
index 000000000000..1e09effe4efe
--- /dev/null
+++ b/textproc/diffutils/pkg-message
@@ -0,0 +1,13 @@
+================================================================================
+
+In order to make nano second timestamp precision work, run
+
+ $ sysctl vfs.timestamp_precision=1
+
+or put
+
+ vfs.timestamp_precision=1
+
+in /etc/sysctl.conf
+
+================================================================================
diff --git a/textproc/diffutils/pkg-plist b/textproc/diffutils/pkg-plist
deleted file mode 100644
index 3383894657d1..000000000000
--- a/textproc/diffutils/pkg-plist
+++ /dev/null
@@ -1,5 +0,0 @@
-@comment $FreeBSD$
-bin/gcmp
-bin/gdiff
-bin/gdiff3
-bin/gsdiff