From owner-freebsd-ports@FreeBSD.ORG Thu Feb 17 21:44:11 2005 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8067D16A4CE for ; Thu, 17 Feb 2005 21:44:11 +0000 (GMT) Received: from 212.106.253.169.adsl.jazztel.es (212.106.254.61.adsl.jazztel.es [212.106.254.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB91043D3F for ; Thu, 17 Feb 2005 21:44:09 +0000 (GMT) (envelope-from josemi@freebsd.jazztel.es) Received: from redesjm.local (orion.redesjm.local [192.168.254.16]) j1HLi5C9006958; Thu, 17 Feb 2005 22:44:05 +0100 (CET) (envelope-from josemi@freebsd.jazztel.es) Received: from localhost (localhost [[UNIX: localhost]]) by redesjm.local (8.13.1/8.13.1/Submit) id j1HLiwiR000821; Thu, 17 Feb 2005 22:44:58 +0100 (CET) (envelope-from josemi@freebsd.jazztel.es) X-Authentication-Warning: orion.redesjm.local: freebsd set sender to josemi@freebsd.jazztel.es using -f From: Jose M Rodriguez To: freebsd-ports@freebsd.org, Scot Hetzel Date: Thu, 17 Feb 2005 22:44:57 +0100 User-Agent: KMail/1.7.2 References: <200502141009.30599.freebsd@redesjm.local> <200502171022.42723.josemi@freebsd.jazztel.es> <790a9fff0502171323433a2ae3@mail.gmail.com> In-Reply-To: <790a9fff0502171323433a2ae3@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200502172244.57879.josemi@freebsd.jazztel.es> X-AntiVirus: checked by AntiVir Milter (version: 1.1.0-3; AVE: 6.29.0.8; VDF: 6.29.0.100; host: antares.redesjm.local) Subject: Re: pkg.subr (was Re: About a browser hier-like module) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Feb 2005 21:44:11 -0000 El Jueves, 17 de Febrero de 2005 22:23, Scot Hetzel escribi=F3: > On Thu, 17 Feb 2005 10:22:42 +0100, Jose M Rodriguez > > wrote: > > ALso, I'm thinking in have something in the way of RC_SUBR to make > > very common pkg-scripts works as sh funtions > > (${LOCALBASE}/etc/pkg.subr, ${X11BASE}/etc/pkg.subr) to be sourced. > > > > But someone may find this open to exploits or break some rules > > about ports. Let me know > > I am also interested in creating a common set of pkg subroutines > (pkg.subr) that all of the ports could use for the > pkg-install/pkg-deinstall scripts. > > We could then define a common set of routines to do the following: > > User/group functions > - check for user/group > - add user/group > - remove user/group > > file functions: > - add/remove an entry to /etc/syslog.conf and /etc/newsyslog.conf > (see net/cvsup-mirror) > - add/remove an entry in /etc/crontab (see net/cvsup-mirror) > - add/modify/remove an entry in /etc/services (mail/cyrus-imapd* > requires "sieve" to be appended to the port 2000/tcp entry)" > > The only problem I see is how to handle old systems that don't have > the "pkg.subr" file (possible a sysutils/pkg_subr port) and where is > this file going to be placed (/var/db/pkg?). pkg.subr file must come from a port that must be added to RUN_DEPENDS. =20 I think that the correct place must be ${PREFIX}/etc/pkg.subr But from that on, I'm really open to comments. Note: I'm taking gnome@ out from this thread, this is really ports@=20 related. =2D- josemi