From owner-svn-ports-head@FreeBSD.ORG Mon Jun 9 16:21:36 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 682FB545; Mon, 9 Jun 2014 16:21:36 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 54CB927DF; Mon, 9 Jun 2014 16:21:36 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s59GLaUE096682; Mon, 9 Jun 2014 16:21:36 GMT (envelope-from vanilla@svn.freebsd.org) Received: (from vanilla@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s59GLZFW096679; Mon, 9 Jun 2014 16:21:35 GMT (envelope-from vanilla@svn.freebsd.org) Message-Id: <201406091621.s59GLZFW096679@svn.freebsd.org> From: "Vanilla I. Shu" Date: Mon, 9 Jun 2014 16:21:35 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r357181 - in head/net/sntop: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2014 16:21:36 -0000 Author: vanilla Date: Mon Jun 9 16:21:35 2014 New Revision: 357181 URL: http://svnweb.freebsd.org/changeset/ports/357181 QAT: https://qat.redports.org/buildarchive/r357181/ Log: 1: Stagify. 2: use @sample on pkg-plist. 3: bump version. Modified: head/net/sntop/Makefile head/net/sntop/files/patch-aa head/net/sntop/pkg-plist Modified: head/net/sntop/Makefile ============================================================================== --- head/net/sntop/Makefile Mon Jun 9 16:16:20 2014 (r357180) +++ head/net/sntop/Makefile Mon Jun 9 16:21:35 2014 (r357181) @@ -3,6 +3,7 @@ PORTNAME= sntop PORTVERSION= 1.4.3 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= SF @@ -16,21 +17,17 @@ PORTDOCS= COPYING CREDITS ChangeLog INST EXAMPLES= alarm.sh sntoprc.EXAMPLE SUB_FILES= pkg-message -MAN1= sntop.1 - -NO_STAGE= yes post-install: - @${STRIP_CMD} ${PREFIX}/bin/sntop + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/sntop .if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} .for doc in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR} .endfor .endif - @${MKDIR} ${EXAMPLESDIR} + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} .for example in ${EXAMPLES} - ${INSTALL_DATA} ${WRKSRC}/${example} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/${example} ${STAGEDIR}${EXAMPLESDIR} .endfor - @${CAT} ${PKGMESSAGE} .include Modified: head/net/sntop/files/patch-aa ============================================================================== --- head/net/sntop/files/patch-aa Mon Jun 9 16:16:20 2014 (r357180) +++ head/net/sntop/files/patch-aa Mon Jun 9 16:21:35 2014 (r357181) @@ -1,6 +1,6 @@ ---- Makefile.in.orig Sun Nov 11 22:54:15 2001 -+++ Makefile.in Sat Apr 6 23:49:08 2002 -@@ -36,7 +36,7 @@ +--- Makefile.in.orig 2001-11-12 05:54:15.000000000 +0800 ++++ Makefile.in 2014-06-10 00:19:16.894102010 +0800 +@@ -36,7 +36,7 @@ DOWENEEDGETOPT = @LIBOBJS@ MANDIR = @mandir@/man1 SNTOPRC = $(ETCDIR)/sntoprc CC = @CC@ @@ -9,28 +9,50 @@ proper: clean sntop -@@ -65,12 +65,12 @@ +@@ -56,34 +56,33 @@ clean: + -rm getopt_long.o + + install: sntop +- @if [ -d $(INSTDIR) ]; \ ++ @if [ -d $(DESTDIR)$(INSTDIR) ]; \ + then \ +- cp sntop $(INSTDIR); \ +- chmod 755 $(INSTDIR)/sntop; \ ++ cp sntop $(DESTDIR)$(INSTDIR); \ ++ chmod 755 $(DESTDIR)$(INSTDIR)/sntop; \ + else \ + echo "sntop: $(INSTDIR) does not exist"; false; \ fi - @if [ -d $(ETCDIR) ]; \ +- @if [ -d $(ETCDIR) ]; \ ++ @if [ -d $(DESTDIR)$(ETCDIR) ]; \ then \ - if [ ! -f $(ETCDIR)/sntoprc ]; \ -+ if [ ! -f $(ETCDIR)/sntoprc.sample ]; \ ++ if [ ! -f $(DESTDIR)$(ETCDIR)/sntoprc.sample ]; \ then \ - cp sntoprc.EXAMPLE $(ETCDIR)/sntoprc; \ - chmod 644 $(ETCDIR)/sntoprc; \ -+ cp sntoprc.EXAMPLE $(ETCDIR)/sntoprc.sample; \ -+ chmod 644 $(ETCDIR)/sntoprc.sample; \ ++ cp sntoprc.EXAMPLE $(DESTDIR)$(ETCDIR)/sntoprc.sample; \ ++ chmod 644 $(DESTDIR)$(ETCDIR)/sntoprc.sample; \ fi; \ - echo "sntop: Sample config exists at $(ETCDIR)/sntoprc"; \ + echo "sntop: Sample config exists at $(ETCDIR)/sntoprc.sample"; \ else \ echo "sntop: $(ETCDIR) does not exist"; false; \ fi -@@ -78,7 +78,6 @@ +- @if [ -d $(MANDIR) ]; \ ++ @if [ -d $(DESTDIR)$(MANDIR) ]; \ then \ - cp sntop.1 $(MANDIR); \ - chmod 644 $(MANDIR)/sntop.1; \ +- cp sntop.1 $(MANDIR); \ +- chmod 644 $(MANDIR)/sntop.1; \ - gzip -9 $(MANDIR)/sntop.1; \ ++ cp sntop.1 $(DESTDIR)$(MANDIR); \ ++ chmod 644 $(DESTDIR)$(MANDIR)/sntop.1; \ echo "sntop: Man file installed in $(MANDIR)"; \ else \ echo "sntop: $(MANDIR) does not exist, not installing man file"; \ + fi +- @if [ -f $(INSTDIR)/sntop ]; \ ++ @if [ -f $(DESTDIR)$(INSTDIR)/sntop ]; \ + then \ + echo "sntop: Executable installed in $(INSTDIR)"; \ + else \ Modified: head/net/sntop/pkg-plist ============================================================================== --- head/net/sntop/pkg-plist Mon Jun 9 16:16:20 2014 (r357180) +++ head/net/sntop/pkg-plist Mon Jun 9 16:21:35 2014 (r357181) @@ -1,5 +1,6 @@ bin/sntop -etc/sntoprc.sample +@sample etc/sntoprc.sample +man/man1/sntop.1.gz %%EXAMPLESDIR%%/alarm.sh %%EXAMPLESDIR%%/sntoprc.EXAMPLE @dirrm %%EXAMPLESDIR%%