Skip site navigation (1)Skip section navigation (2)
Date:      10 May 2001 04:05:23 +0200
From:      Cyrille Lefevre <clefevre-lists@noos.fr>
To:        heckfordj@psi-domain.co.uk
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Running a shell script in a port
Message-ID:  <66faarh8.fsf@gits.dyndns.org>
In-Reply-To: <20010508182856.C1190@storm.psi-domain.co.uk>
References:  <20010508182856.C1190@storm.psi-domain.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Jamie Heckford <heckfordj@psi-domain.co.uk> 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




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