From owner-svn-ports-head@freebsd.org Tue Oct 6 21:04:07 2015 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D78849D0D1E; Tue, 6 Oct 2015 21:04:07 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::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 B1399EFA; Tue, 6 Oct 2015 21:04:07 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t96L460p034555; Tue, 6 Oct 2015 21:04:06 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t96L46vt034552; Tue, 6 Oct 2015 21:04:06 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201510062104.t96L46vt034552@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Tue, 6 Oct 2015 21:04:06 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r398720 - in head/mail/vqadmin: . 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.20 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: Tue, 06 Oct 2015 21:04:08 -0000 Author: amdmi3 Date: Tue Oct 6 21:04:06 2015 New Revision: 398720 URL: https://svnweb.freebsd.org/changeset/ports/398720 Log: - Move owner/group/perm handling into plist, fixing packaging from non-root PR: 203566 Submitted by: amdmi3 Approved by: oliver (maintainer) Modified: head/mail/vqadmin/Makefile head/mail/vqadmin/files/patch-Makefile.in head/mail/vqadmin/pkg-plist Modified: head/mail/vqadmin/Makefile ============================================================================== --- head/mail/vqadmin/Makefile Tue Oct 6 20:38:32 2015 (r398719) +++ head/mail/vqadmin/Makefile Tue Oct 6 21:04:06 2015 (r398720) @@ -24,12 +24,10 @@ CONFIGURE_ARGS= --enable-cgibindir=${STA --enable-htmldir=${STAGEDIR}${PREFIX}/${WEBDATADIR} \ --enable-qmaildir=${QMAIL_PREFIX} -.include - PLIST_SUB+= CGIBINDIR=${CGIBINDIR} WEBDATADIR=${WEBDATADIR} post-patch: @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \ ${WRKSRC}/Makefile.in -.include +.include Modified: head/mail/vqadmin/files/patch-Makefile.in ============================================================================== --- head/mail/vqadmin/files/patch-Makefile.in Tue Oct 6 20:38:32 2015 (r398719) +++ head/mail/vqadmin/files/patch-Makefile.in Tue Oct 6 21:04:06 2015 (r398720) @@ -1,7 +1,7 @@ ---- Makefile.in.orig Sat Jan 18 12:25:01 2003 -+++ Makefile.in Sat Jan 18 12:26:45 2003 -@@ -120,7 +120,7 @@ - DEFAULT_INCLUDES = -I. -I$(srcdir) -I. +--- Makefile.in.orig 2003-09-17 21:21:38 UTC ++++ Makefile.in +@@ -120,7 +120,7 @@ vqadmin_LDFLAGS = + DEFAULT_INCLUDES = -I. -I$(srcdir) -I. CPPFLAGS = @CPPFLAGS@ LDFLAGS = @LDFLAGS@ -LIBS = @LIBS@ @@ -9,3 +9,36 @@ depcomp = am__depfiles_maybe = COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ +@@ -527,32 +527,12 @@ install-data-local: + cp vqadmin.acl @cgibindir@/vqadmin ; \ + fi + +- chown @vpopuser@ @cgibindir@/vqadmin +- chgrp @vpopgroup@ @cgibindir@/vqadmin +- chown -R @vpopuser@ @cgibindir@/vqadmin/* +- chgrp -R @vpopgroup@ @cgibindir@/vqadmin/* +- chown root @cgibindir@/vqadmin/vqadmin.cgi +- chgrp `id -g root` @cgibindir@/vqadmin/vqadmin.cgi +- chmod u+s,g+s @cgibindir@/vqadmin/vqadmin.cgi +- chmod 755 @cgibindir@/vqadmin +- chmod 755 @cgibindir@/vqadmin/html +- +- chown @vpopuser@ @wwwroot@/images/vqadmin +- chgrp @vpopgroup@ @wwwroot@/images/vqadmin +- chown -R @vpopuser@ @wwwroot@/images/vqadmin/* +- chgrp -R @vpopgroup@ @wwwroot@/images/vqadmin/* +- chmod 755 @wwwroot@/images/vqadmin +- + if test -f @cgibindir@/vqadmin/.htaccess ; then \ + echo ".htaccess file already in place" ; \ + else \ + cp htaccess @cgibindir@/vqadmin/.htaccess ; \ + fi + +- chown nobody @cgibindir@/vqadmin/.htaccess +- chmod u+rw @cgibindir@/vqadmin/.htaccess +- chmod go+r @cgibindir@/vqadmin/.htaccess +- + acl.o: config.h + cedit.o: config.h + cgi.o: config.h Modified: head/mail/vqadmin/pkg-plist ============================================================================== --- head/mail/vqadmin/pkg-plist Tue Oct 6 20:38:32 2015 (r398719) +++ head/mail/vqadmin/pkg-plist Tue Oct 6 21:04:06 2015 (r398720) @@ -1,5 +1,7 @@ bin/vqadmin -%%CGIBINDIR%%/vqadmin/.htaccess +@owner vpopmail +@group vchkpw +@(nobody,,644) %%CGIBINDIR%%/vqadmin/.htaccess %%CGIBINDIR%%/vqadmin/html/add_alias_domain.html %%CGIBINDIR%%/vqadmin/html/add_domain.html %%CGIBINDIR%%/vqadmin/html/add_domain_body.html @@ -37,5 +39,10 @@ bin/vqadmin %%CGIBINDIR%%/vqadmin/html/view_domain.html %%CGIBINDIR%%/vqadmin/html/view_user.html %%CGIBINDIR%%/vqadmin/vqadmin.acl -%%CGIBINDIR%%/vqadmin/vqadmin.cgi +@(root,wheel,6755) %%CGIBINDIR%%/vqadmin/vqadmin.cgi %%WEBDATADIR%%/images/vqadmin/vqadmin.css +@dir(,,755) %%WEBDATADIR%%/images/vqadmin +@dir(,,755) %%CGIBINDIR%%/vqadmin/html +@dir(,,755) %%CGIBINDIR%%/vqadmin +@owner +@group