Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 May 2014 10:00:29 +0200 (CEST)
From:      Krzysztof Stryjek <ports@bsdserwis.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/190249: Modify chown to pass staging of self-service-password
Message-ID:  <20140526080029.BB7D72CA2AB5@mx1.bsdserwis.com>
Resent-Message-ID: <201405260810.s4Q8A0MY064038@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         190249
>Category:       ports
>Synopsis:       Modify chown to pass staging of self-service-password
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 26 08:10:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Krzysztof Stryjek
>Release:        FreeBSD 9.1-STABLE amd64
>Organization:
private
>Environment:
System: FreeBSD pp.wtp3.local 9.1-STABLE FreeBSD 9.1-STABLE #0: Mon May 20 11:38:42 CEST 2013 toor@pp.wtp3.local:/usr/obj/usr/src/sys/PP amd64

>Description:
	When making SSP port as non-root there is message: Common mistake - can't install as non-root

>How-To-Repeat:

>Fix:

----------------------------------- snip -----------------------------------
diff -ruN self-service-password/Makefile self-service-password.new/Makefile
--- self-service-password/Makefile	2014-05-24 17:11:55.000000000 +0200
+++ self-service-password.new/Makefile	2014-05-26 09:59:29.000000000 +0200
@@ -3,6 +3,8 @@
 
 PORTNAME=	self-service-password
 PORTVERSION=	0.8
+PORTREVISION=	1
+
 CATEGORIES=	net www
 MASTER_SITES=	http://tools.ltb-project.org/attachments/download/497/
 DISTNAME=	ltb-project-${PORTNAME}-${PORTVERSION}
@@ -22,6 +24,9 @@
 CFGDIR=		conf
 CFGFILE=	config.inc.php
 
+PLIST_SUB+=	SSP_OWN=${WWWOWN}
+PLIST_SUB+=	SSP_GRP=${WWWGRP}
+
 SUB_LIST+=	PKGNAME=${PKGNAME}
 SUB_FILES=	pkg-message
 
@@ -30,6 +35,5 @@
 
 do-install:
 	@cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/
-	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}/
 
 .include <bsd.port.mk>
diff -ruN self-service-password/pkg-plist self-service-password.new/pkg-plist
--- self-service-password/pkg-plist	2014-05-24 17:11:55.000000000 +0200
+++ self-service-password.new/pkg-plist	2014-05-26 09:59:29.000000000 +0200
@@ -1,3 +1,5 @@
+@owner %%SSP_OWN%%
+@group %%SSP_GRP%%
 @sample %%WWWDIR%%/conf/config.inc.php.sample
 %%WWWDIR%%/index.php
 %%WWWDIR%%/lang/ca.inc.php
----------------------------------- snip -----------------------------------

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140526080029.BB7D72CA2AB5>