diff options
author | knu <knu@FreeBSD.org> | 2001-03-22 18:10:05 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2001-03-22 18:10:05 +0800 |
commit | 7d1f340df7351f37d37086a9ef0370a453c80813 (patch) | |
tree | 2be051b8f445994d92983c6e445db56d9ad93417 /net/jwhois | |
parent | d01553c1013ac82181c2a307e90d013f33e37934 (diff) | |
download | freebsd-ports-gnome-7d1f340df7351f37d37086a9ef0370a453c80813.tar.gz freebsd-ports-gnome-7d1f340df7351f37d37086a9ef0370a453c80813.tar.zst freebsd-ports-gnome-7d1f340df7351f37d37086a9ef0370a453c80813.zip |
Update to 2.4.2.
Preserve the configuration file when it looks different than the
sample.
Submitted by: Makoto MATSUSHITA <matusita@jp.FreeBSD.org> (MAINTAINER)
Diffstat (limited to 'net/jwhois')
-rw-r--r-- | net/jwhois/Makefile | 5 | ||||
-rw-r--r-- | net/jwhois/distinfo | 2 | ||||
-rw-r--r-- | net/jwhois/pkg-plist | 5 |
3 files changed, 8 insertions, 4 deletions
diff --git a/net/jwhois/Makefile b/net/jwhois/Makefile index 3762aa97c14a..a7c1edf332be 100644 --- a/net/jwhois/Makefile +++ b/net/jwhois/Makefile @@ -6,7 +6,7 @@ # PORTNAME= jwhois -PORTVERSION= 2.4.1 +PORTVERSION= 2.4.2 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR= jwhois @@ -28,6 +28,7 @@ post-install: ${MKDIR} ${PREFIX}/var/jwhois ${CHOWN} :nogroup ${PREFIX}/var/jwhois ${CHMOD} g+w ${PREFIX}/var/jwhois - ${INSTALL_DATA} ${WRKSRC}/example/jwhois.conf ${PREFIX}/etc + ${INSTALL_DATA} ${WRKSRC}/example/jwhois.conf ${PREFIX}/etc/jwhois.conf.sample + [ ! -f ${PREFIX}/etc/jwhois.conf ] && ${INSTALL_DATA} ${PREFIX}/etc/jwhois.conf.sample ${PREFIX}/etc/jwhois.conf .include <bsd.port.mk> diff --git a/net/jwhois/distinfo b/net/jwhois/distinfo index dd1543331b7e..7b39802339cd 100644 --- a/net/jwhois/distinfo +++ b/net/jwhois/distinfo @@ -1 +1 @@ -MD5 (jwhois-2.4.1.tar.gz) = ca4716c2a8eea8d1f11a61d928397637 +MD5 (jwhois-2.4.2.tar.gz) = 36811017535386f3c598d2bbfde638e1 diff --git a/net/jwhois/pkg-plist b/net/jwhois/pkg-plist index 5f69e9a7d830..880923741bba 100644 --- a/net/jwhois/pkg-plist +++ b/net/jwhois/pkg-plist @@ -1,8 +1,11 @@ bin/jwhois -etc/jwhois.conf +@unexec if cmp -s %D/etc/jwhois.conf %D/etc/jwhois.conf.sample; then rm -f %D/etc/jwhois.conf; fi +etc/jwhois.conf.sample +@exec [ ! -f %B/jwhois.conf ] && cp %B/%f %B/jwhois.conf @unexec install-info --delete %D/info/jwhois.info %D/info/dir info/jwhois.info @exec install-info %D/info/jwhois.info %D/info/dir +share/locale/ru/LC_MESSAGES/jwhois.mo share/locale/sv/LC_MESSAGES/jwhois.mo @unexec rmdir %D/share/locale/*/LC_MESSAGES 2>/dev/null || true @unexec rmdir %D/share/locale/* 2>/dev/null || true |