mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
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)
This commit is contained in:
parent
42b4feb8a8
commit
7c0d215faf
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=40203
@ -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>
|
||||
|
@ -1 +1 @@
|
||||
MD5 (jwhois-2.4.1.tar.gz) = ca4716c2a8eea8d1f11a61d928397637
|
||||
MD5 (jwhois-2.4.2.tar.gz) = 36811017535386f3c598d2bbfde638e1
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user