From owner-freebsd-ports Wed May 9 19: 5:31 2001 Delivered-To: freebsd-ports@freebsd.org Received: from mail.noos.fr (descartes.noos.net [212.198.2.74]) by hub.freebsd.org (Postfix) with ESMTP id 804F837B422 for ; Wed, 9 May 2001 19:05:28 -0700 (PDT) (envelope-from clefevre@poboxes.com) Received: (qmail 26692855 invoked by uid 0); 10 May 2001 02:05:26 -0000 Received: from d165.dhcp212-198-231.noos.fr (HELO gits.dyndns.org) ([212.198.231.165]) (envelope-sender ) by descartes.noos.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 10 May 2001 02:05:26 -0000 Received: (from root@localhost) by gits.dyndns.org (8.11.3/8.11.3) id f4A25Pr18968; Thu, 10 May 2001 04:05:25 +0200 (CEST) (envelope-from clefevre@poboxes.com) To: heckfordj@psi-domain.co.uk Cc: freebsd-ports@freebsd.org Subject: Re: Running a shell script in a port References: <20010508182856.C1190@storm.psi-domain.co.uk> X-Face: V|+c;4!|B?E%BE^{E6);aI.[<97Zd*>^#%Y5Cxv;%Y[PT-LW3;A:fRrJ8+^k"e7@+30g0YD0*^^3jgyShN7o?a]C la*Zv'5NA,=963bM%J^o]C Reply-To: Cyrille Lefevre In-Reply-To: <20010508182856.C1190@storm.psi-domain.co.uk> Mail-Copies-To: never From: Cyrille Lefevre Date: 10 May 2001 04:05:23 +0200 Message-ID: <66faarh8.fsf@gits.dyndns.org> Lines: 33 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Jamie Heckford writes: > I am writing a port that does not install an application/binary/script > anywhere, instead I need it to run a shell script to update different > system files to add functionality (for example, /etc/aliases). > > How do I do this, execute a file as the installation process instead > of installing something? put your stuff in a file named pkg-install and this in your Makefile : PKGDEINSTALL= ${PKGINSTALL} fetch extract patch build: # not tested, but sould suffice. post-install: @${SETENV} PKG_PREFIX=${PREFIX} ${SH} \ ${PKGINSTALL} ${PKGNAME} POST-INSTALL a sample pkg-install file may be found in /usr/ports/security/op. it should not me a problem to provide en empty pkg-plist file ? don't forget to run portlint (in ports) before to submit anything. > I have read the porters handbook but can't find any obvious reference > to this... bad eyes, change eyes :) Cyrille. -- home: mailto:clefevre@poboxes.com UNIX is user-friendly; it's just particular work: mailto:Cyrille.Lefevre@edf.fr about who it chooses to be friends with. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message