From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Nov 10 09:10:19 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C103B16A403 for ; Fri, 10 Nov 2006 09:10:19 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B5D3843D49 for ; Fri, 10 Nov 2006 09:10:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kAA9AIxT056350 for ; Fri, 10 Nov 2006 09:10:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kAA9AIM3056349; Fri, 10 Nov 2006 09:10:18 GMT (envelope-from gnats) Resent-Date: Fri, 10 Nov 2006 09:10:18 GMT Resent-Message-Id: <200611100910.kAA9AIM3056349@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, TAOKA Fumiyoshi Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6BD4A16A407 for ; Fri, 10 Nov 2006 09:02:49 +0000 (UTC) (envelope-from fmysh@quad.dyndns.org) Received: from xeon.quad.dyndns.org (228.142.138.210.bn.2iij.net [210.138.142.228]) by mx1.FreeBSD.org (Postfix) with ESMTP id 127FD43D46 for ; Fri, 10 Nov 2006 09:02:49 +0000 (GMT) (envelope-from fmysh@quad.dyndns.org) Received: from localhost (localhost [127.0.0.1]) by xeon.quad.dyndns.org (Postfix) with ESMTP id 4982E15344D; Fri, 10 Nov 2006 18:02:48 +0900 (JST) Received: from xeon.quad.dyndns.org ([127.0.0.1]) by localhost (xeon.quad.dyndns.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id M7WfgJ6zBvcb; Fri, 10 Nov 2006 18:02:37 +0900 (JST) Received: by xeon.quad.dyndns.org (Postfix, from userid 1001) id 6E78A15344C; Fri, 10 Nov 2006 18:02:37 +0900 (JST) Message-Id: <20061110090237.6E78A15344C@xeon.quad.dyndns.org> Date: Fri, 10 Nov 2006 18:02:37 +0900 (JST) From: TAOKA Fumiyoshi To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: TAOKA Fumiyoshi Subject: ports/105364: [patch] dns/checkdns: conform to ports conventions X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: TAOKA Fumiyoshi List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Nov 2006 09:10:19 -0000 >Number: 105364 >Category: ports >Synopsis: [patch] dns/checkdns: conform to ports conventions >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Nov 10 09:10:17 GMT 2006 >Closed-Date: >Last-Modified: >Originator: TAOKA Fumiyoshi >Release: >Organization: >Environment: >Description: - Save user's checkdns.conf and install checkdns.conf-dist. - Respect NOPORTDOCS and install docs to DOCSDIR. - Install missing checkdns.css. - Don't install uninstall.sh. >How-To-Repeat: >Fix: Index: Makefile =================================================================== RCS file: /home/ncvs/ports/dns/checkdns/Makefile,v retrieving revision 1.5 diff -u -r1.5 Makefile --- Makefile 4 May 2006 21:41:11 -0000 1.5 +++ Makefile 10 Nov 2006 08:29:53 -0000 @@ -7,6 +7,7 @@ PORTNAME= checkdns PORTVERSION= 0.5 +PORTREVISION= 1 CATEGORIES= dns MASTER_SITES= http://www.enderunix.org/checkdns/ \ http://www.trunix.org/projeler/checkdns/ @@ -16,11 +17,24 @@ SUB_FILES= pkg-message +PORTDOCS= AUTHORS COPYING ChangeLog INSTALL README THANKS TODO + post-patch: @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/main.c \ ${WRKSRC}/INSTALL ${WRKSRC}/README ${WRKSRC}/checkdns.conf-dist post-install: + @if [ ! -f ${PREFIX}/etc/checkdns.conf ]; then \ + ${CP} -p ${PREFIX}/etc/checkdns.conf-dist ${PREFIX}/etc/checkdns.conf ; \ + fi + +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} +.for f in ${PORTDOCS} + ${INSTALL_MAN} ${WRKSRC}/$f ${DOCSDIR} +.endfor +.endif + @${CAT} ${PKGMESSAGE} .include Index: pkg-plist =================================================================== RCS file: /home/ncvs/ports/dns/checkdns/pkg-plist,v retrieving revision 1.1 diff -u -r1.1 pkg-plist --- pkg-plist 20 May 2005 21:19:10 -0000 1.1 +++ pkg-plist 9 Nov 2006 15:54:44 -0000 @@ -1,13 +1,8 @@ bin/checkdns -etc/checkdns.conf -%%DATADIR%%/README -%%DATADIR%%/THANKS -%%DATADIR%%/TODO -%%DATADIR%%/AUTHORS -%%DATADIR%%/COPYING -%%DATADIR%%/INSTALL -%%DATADIR%%/ChangeLog -%%DATADIR%%/uninstall.sh +@unexec if cmp -s %D/etc/checkdns.conf-dist %D/etc/checkdns.conf; then rm -f %D/etc/checkdns.conf; fi +etc/checkdns.conf-dist +@exec if [ ! -f %D/etc/checkdns.conf ] ; then cp -p %D/%F %B/checkdns.conf; fi +%%DATADIR%%/checkdns.css %%DATADIR%%/lang/english %%DATADIR%%/lang/spanish %%DATADIR%%/lang/turkish Index: files/patch-Makefile =================================================================== RCS file: /home/ncvs/ports/dns/checkdns/files/patch-Makefile,v retrieving revision 1.1 diff -u -r1.1 patch-Makefile --- files/patch-Makefile 20 May 2005 21:19:10 -0000 1.1 +++ files/patch-Makefile 9 Nov 2006 15:43:09 -0000 @@ -1,5 +1,5 @@ ---- Makefile.orig Sat Jan 15 21:40:27 2005 -+++ Makefile Fri May 20 23:12:20 2005 +--- Makefile.orig Fri Nov 10 00:41:08 2006 ++++ Makefile Fri Nov 10 00:41:25 2006 @@ -9,7 +9,15 @@ $(CC) -o checkdns $(OBJS) @@ -8,9 +8,9 @@ + cp checkdns ${PREFIX}/bin/checkdns + chown root ${PREFIX}/bin/checkdns + chmod 700 ${PREFIX}/bin/checkdns -+ cp -pf checkdns.conf-dist ${PREFIX}/etc/checkdns.conf ++ cp -pf checkdns.conf-dist ${PREFIX}/etc/ + mkdir -p ${PREFIX}/share/checkdns/lang -+ cp -f README THANKS TODO AUTHORS COPYING INSTALL ChangeLog uninstall.sh ${PREFIX}/share/checkdns ++ cp -f checkdns.css ${PREFIX}/share/checkdns + cp -f lang/* ${PREFIX}/share/checkdns/lang + + >Release-Note: >Audit-Trail: >Unformatted: