Date: Thu, 17 Feb 2005 15:23:03 -0600 From: Scot Hetzel <swhetzel@gmail.com> To: Jose M Rodriguez <josemi@freebsd.jazztel.es> Cc: FreeBSD GNOME Users <gnome@freebsd.org> Subject: pkg.subr (was Re: About a browser hier-like module) Message-ID: <790a9fff0502171323433a2ae3@mail.gmail.com> In-Reply-To: <200502171022.42723.josemi@freebsd.jazztel.es> References: <200502141009.30599.freebsd@redesjm.local> <1108601165.48333.1.camel@shumai.marcuscom.com> <200502171022.42723.josemi@freebsd.jazztel.es>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 17 Feb 2005 10:22:42 +0100, Jose M Rodriguez <josemi@freebsd.jazztel.es> 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?).
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0502171323433a2ae3>