Date: Fri, 26 Feb 2010 16:22:21 -0600 From: Stephen Montgomery-Smith <stephen@missouri.edu> To: "xorquewasp@googlemail.com" <xorquewasp@googlemail.com> Cc: "freebsd-hackers@FreeBSD.org" <freebsd-hackers@freebsd.org> Subject: Re: package building failure irritation Message-ID: <4B88499D.1010604@missouri.edu> In-Reply-To: <20100226181511.GC15162@logik.internal.network> References: <20100226163227.GA15162@logik.internal.network> <4B88074E.7050007@FreeBSD.org> <20100226181511.GC15162@logik.internal.network>
next in thread | previous in thread | raw e-mail | index | archive | help
I also build my ports in a "jail" environment (only its not a really a jail, just a chroot). After I have built the ports I want, I create the packages using the following little script. (My mail client will have mangled the script, so take care when you copy and paste it, e.g. it needs to be tabs not spaces and the beginning of lines.) #!/usr/bin/make -f PACKAGES?=/usr/home/stephen/packages-8-amd PKG_DBDIR?=/var/db/pkg PORTSDIR?=/usr/ports PKG_LIST!=ls ${PKG_DBDIR} all: ${PKG_LIST:C+(.*)+${PACKAGES}/All/\1.tbz+} .for target in ${PKG_LIST} ${PACKAGES}/All/${target}.tbz: ${PKG_DBDIR}/${target}/+CONTENTS @origin=${PORTSDIR}/`sed -n 's/@comment ORIGIN://p' \ ${PKG_DBDIR}/${target}/+CONTENTS`; \ if [ $$origin != ${PORTSDIR}/ ] && [ -e $$origin ] && (! [ -e $$origin/work ] || [ -e $$origin/work/.install_done* ]); then \ echo creating package ${target}; \ make -C $$origin PACKAGES=${PACKAGES} package-links; \ pkg_create -GjY -b ${target} $@ || (rm -f $@ && false); \ fi .endfor .BEGIN: @mkdir -p ${PACKAGES}/All
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B88499D.1010604>