default dirnames in /etc/pkgmk.conf

Han Boetes han at mijncomputer.nl
Wed Nov 15 19:38:48 UTC 2006


Of course it doesn't work at all like that.

But the idea is nice. And the solution is not too hard I think.

create a macro in pkgmk, it looks like this:

Configure()
{
	./configure \
             --prefix=/usr \
             --mandir=/usr/man \
             --infodir=/usr/info \
	     --disable-dns
}

Or something like that.

Now that we're creating macro's...

remove_perlcrap()
{
    # Remove perlcrap
    find $PKG \
        -name .packlist -or \
        -name '*.bs' -or \
        -name autosplit.ix -or \
        -name perllocal.pod | xargs rm
    # Remove empty directories, ignore returncode
    find $PKG -depth -type d -print0| xargs -0 rmdir > /dev/null 2>&1 || :
}



# Han
--
http://www.xs4all.nl/~hanb/software/crux/



More information about the CRUX mailing list