From owner-svn-ports-all@FreeBSD.ORG Tue Oct 7 17:49:06 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4E77B2F6; Tue, 7 Oct 2014 17:49:06 +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 2FCF164D; Tue, 7 Oct 2014 17:49:06 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s97Hn6Hv017258; Tue, 7 Oct 2014 17:49:06 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s97Hn5nI017256; Tue, 7 Oct 2014 17:49:05 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <201410071749.s97Hn5nI017256@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Tue, 7 Oct 2014 17:49:05 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r370379 - head/net/pwhois X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Oct 2014 17:49:06 -0000 Author: bapt Date: Tue Oct 7 17:49:05 2014 New Revision: 370379 URL: https://svnweb.freebsd.org/changeset/ports/370379 QAT: https://qat.redports.org/buildarchive/r370379/ Log: Cleanup plist Allow packaging as a user Modified: head/net/pwhois/Makefile head/net/pwhois/pkg-plist Modified: head/net/pwhois/Makefile ============================================================================== --- head/net/pwhois/Makefile Tue Oct 7 17:46:13 2014 (r370378) +++ head/net/pwhois/Makefile Tue Oct 7 17:49:05 2014 (r370379) @@ -5,26 +5,28 @@ PORTNAME= pwhois PORTVERSION= 2.2.0.1 CATEGORIES= net MASTER_SITES= http://pwhois.org/get/ \ - http://mirrors.rit.edu/zi/ + http://mirrors.rit.edu/zi/ EXTRACT_SUFX= .tgz MAINTAINER= zi@FreeBSD.org COMMENT= Whois-compatible framework for disclosing routing data RUN_DEPENDS= p5-DBI>0:${PORTSDIR}/databases/p5-DBI \ - p5-Time-Format>0:${PORTSDIR}/devel/p5-Time-Format \ + p5-Time-Format>0:${PORTSDIR}/devel/p5-Time-Format \ p5-Log-Dispatch>0:${PORTSDIR}/devel/p5-Log-Dispatch \ p5-Net-DNS>0:${PORTSDIR}/dns/p5-Net-DNS \ p5-Net-Telnet>0:${PORTSDIR}/net/p5-Net-Telnet \ p5-Net-CIDR>0:${PORTSDIR}/net-mgmt/p5-Net-CIDR \ p5-RPSL-Parser>0:${PORTSDIR}/devel/p5-RPSL-Parser \ - p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql + p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql FETCH_ARGS= -p USERS= ${PORTNAME} GROUPS= ${PORTNAME} +USES= shebangfix tar:tgz +SHEBANG_FILES= pwhois-updatedb USE_MYSQL= client USE_RC_SUBR= ${PORTNAME}d SUB_FILES= pkg-message 512.pwhois-updatedb @@ -55,7 +57,5 @@ do-install: post-install: @${MKDIR} ${STAGEDIR}/var/db/pwhois ${STAGEDIR}/var/log/pwhois - @${CHOWN} 512:512 ${STAGEDIR}/var/db/pwhois ${STAGEDIR}/var/log/pwhois - #@${CHOWN} ${USERS}:${GROUPS} ${STAGEDIR}/var/db/pwhois ${STAGEDIR}/var/log/pwhois .include Modified: head/net/pwhois/pkg-plist ============================================================================== --- head/net/pwhois/pkg-plist Tue Oct 7 17:46:13 2014 (r370378) +++ head/net/pwhois/pkg-plist Tue Oct 7 17:49:05 2014 (r370379) @@ -1,20 +1,7 @@ etc/periodic/daily/512.pwhois-updatedb sbin/pwhois-updatedb sbin/pwhoisd -@group pwhois -@mode 640 -@unexec if cmp -s %D/etc/pwhois/pwhoisd.conf %D/etc/pwhois/pwhoisd.conf.sample ; then rm -f %D/etc/pwhois/pwhoisd.conf ; fi -%%ETCDIR%%/pwhoisd.conf.sample -@exec if [ ! -f %D/etc/pwhois/pwhoisd.conf ]; then cp -p %D/%F %B/pwhoisd.conf; fi -@group wheel -@mode +@sample(,pwhois,640) %%ETCDIR%%/pwhoisd.conf.sample %%DATADIR%%/createdb.sql -@dirrm %%DATADIR%% -@dirrmtry %%ETCDIR%% -@dirrmtry etc/periodic/daily -@dirrmtry etc/periodic -@cwd / -@dirrmtry var/db/pwhois -@dirrmtry var/log/pwhois -@unexec if [ -d var/db/pwhois ]; then echo "You should remove /var/db/pwhois if you don't need it any more."; fi -@unexec if [ -d var/log/pwhois ]; then echo "You should remove /var/log/pwhois if you don't need it any more."; fi +@dir(pwhois,pwhois,) /var/db/pwhois +@dir(pwhois,pwhois,) /var/log/pwhois