From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jul 14 06:50:18 2005 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 2D11116A41C for ; Thu, 14 Jul 2005 06:50:18 +0000 (GMT) (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 E28A043D48 for ; Thu, 14 Jul 2005 06:50:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j6E6oH3r058465 for ; Thu, 14 Jul 2005 06:50:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j6E6oHAL058464; Thu, 14 Jul 2005 06:50:17 GMT (envelope-from gnats) Date: Thu, 14 Jul 2005 06:50:17 GMT Message-Id: <200507140650.j6E6oHAL058464@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Sergey Matveychuk Cc: Subject: Re: ports/77690: new port submission - security/sguil-server X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Sergey Matveychuk List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2005 06:50:18 -0000 The following reply was made to PR ports/77690; it has been noted by GNATS. From: Sergey Matveychuk To: bug-followup@FreeBSD.org, pauls@utdallas.edu Cc: Subject: Re: ports/77690: new port submission - security/sguil-server Date: Thu, 14 Jul 2005 10:49:10 +0400 There is a few flows in the port. 1) Use MASTER_SITE_SUBDIR instead of addition you did in MASTER_SITES. 2) You can ommit ${LOCALBASE}/bin in RUN_DEPENDS macro. 3) Wrong logic with WITHOUT_X11 and WITH_MYSQL variables you use. The first: WITH_ and WITHOUT_ variables is for user options, you should never set them in Makefile. Second: instead of RUN_DEPENDS+= ${LOCALBASE}/lib/mysql/libmysqlclient.so:${PORTSDIR}/databases/mysql41-client you should use USE_MYSQL macro which do all magic. Anyway a construction like that is bad looking: WITHOUT_X11= yes .if defined(WITHOUT_X11) ... 4) Don't hard code PREFIX=/usr/local in pkg-install instead of change it on PREFIX=%%PREFIX%%, move the file in files/pkg-install.in and add next lines in Makefile: PKGINSTALL=${WRKDIR}/pkg-install SUB_FILES=pkg-install 5) Don't use a random UID/GID. Select them from reserved numbers that you can in The Porters Handbook and ask a committer (me?) to register them there (you should give full lines like other in The Porters Handbook). And create user and group with these UID/GID. 6) Most bad thing. $Id$ tags should never been in patches. CVS will change them after commit and patches will not be applied. BTW, tclX is broken and I can't check the port install. -- Sem.