* [gentoo-dev] Quickpkg - Where to get?
@ 2001-12-16 16:09 Sebastian Werner
2001-12-16 17:31 ` Terry Chan
0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Werner @ 2001-12-16 16:09 UTC (permalink / raw
To: gentoo-dev
Hey,
uupps, i have deleted the nice script quickpkg to create bin-packages
from installed ebuilds. While i setup a new system i have deleted it.
Where could i get this file?
Thanks
Sebastian Werner
sebastian@werner-productions.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-dev] Quickpkg - Where to get?
2001-12-16 16:09 [gentoo-dev] Quickpkg - Where to get? Sebastian Werner
@ 2001-12-16 17:31 ` Terry Chan
2001-12-16 18:53 ` Sebastian Werner
0 siblings, 1 reply; 3+ messages in thread
From: Terry Chan @ 2001-12-16 17:31 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 498 bytes --]
Sebastian,
The mailing list is archived and quickpkg was posted to gentoo-dev.
Here it is again.
Terry Chan
-----------------------------------------------------------------
On Sun, Dec 16, 2001 at 05:09:22PM +0100, Sebastian Werner wrote:
> Hey,
>
> uupps, i have deleted the nice script quickpkg to create bin-packages
> from installed ebuilds. While i setup a new system i have deleted it.
> Where could i get this file?
>
> Thanks
>
> Sebastian Werner
> sebastian@werner-productions.de
>
[-- Attachment #2: quickpkg --]
[-- Type: text/plain, Size: 1010 bytes --]
#!/bin/bash
# This script tries to quickly create a gentoo binary package using the
#
# /var/db/pkg/class-app/app/* files
#
# Resulting tbz2 file will be created in /usr/portage/packages/All/
#
# Run this script as ROOT
#
# Comments or questions to tchan@enteract.com
# Copyright (C) 2001 - Terry Chan. GNU GPL
#
if [ -z $1 ]; then
echo "QUICKPKG ver 1.0"
echo "Example Usage: quickpkg /var/db/pkg/net-www/prozilla-1.3.6/"
exit 1
fi
PF=`cat $1/PF`
MYDIR="/tmp/portage/${PF}"
rm -r ${MYDIR}/temp
mkdir -p ${MYDIR}/temp
cp $1/* ${MYDIR}/temp
cut -f 2 -d " " $1/CONTENTS >${MYDIR}/filelist
tar cjvf ${MYDIR}/bin.tar.bz2 --files-from=${MYDIR}/filelist --no-recursion
rm ${MYDIR}/temp/CONTENTS
xpak ${MYDIR}/temp ${MYDIR}/inf.xpak
tbz2tool join ${MYDIR}/bin.tar.bz2 ${MYDIR}/inf.xpak ${MYDIR}/${PF}.tbz2
[ -d /usr/portage/packages/All ] || mkdir -p /usr/portage/packages/All
mv ${MYDIR}/${PF}.tbz2 /usr/portage/packages/All
rm ${MYDIR}/temp/*
rm ${MYDIR}/bin.tar.bz2 ${MYDIR}/inf.xpak ${MYDIR}/filelist
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-dev] Quickpkg - Where to get?
2001-12-16 17:31 ` Terry Chan
@ 2001-12-16 18:53 ` Sebastian Werner
0 siblings, 0 replies; 3+ messages in thread
From: Sebastian Werner @ 2001-12-16 18:53 UTC (permalink / raw
To: gentoo-dev
Thanks,
i don't know that the archives saves attachments, too.
Sebastian Werner
On Son, 2001-12-16 at 18:31, Terry Chan wrote:
> Sebastian,
>
> The mailing list is archived and quickpkg was posted to gentoo-dev.
> Here it is again.
>
> Terry Chan
> -----------------------------------------------------------------
> On Sun, Dec 16, 2001 at 05:09:22PM +0100, Sebastian Werner wrote:
> > Hey,
> >
> > uupps, i have deleted the nice script quickpkg to create bin-packages
> > from installed ebuilds. While i setup a new system i have deleted it.
> > Where could i get this file?
> >
> > Thanks
> >
> > Sebastian Werner
> > sebastian@werner-productions.de
> >
> ----
>
> #!/bin/bash
> # This script tries to quickly create a gentoo binary package using the
> #
> # /var/db/pkg/class-app/app/* files
> #
> # Resulting tbz2 file will be created in /usr/portage/packages/All/
> #
> # Run this script as ROOT
> #
> # Comments or questions to tchan@enteract.com
> # Copyright (C) 2001 - Terry Chan. GNU GPL
> #
> if [ -z $1 ]; then
> echo "QUICKPKG ver 1.0"
> echo "Example Usage: quickpkg /var/db/pkg/net-www/prozilla-1.3.6/"
> exit 1
> fi
> PF=`cat $1/PF`
> MYDIR="/tmp/portage/${PF}"
> rm -r ${MYDIR}/temp
> mkdir -p ${MYDIR}/temp
> cp $1/* ${MYDIR}/temp
> cut -f 2 -d " " $1/CONTENTS >${MYDIR}/filelist
> tar cjvf ${MYDIR}/bin.tar.bz2 --files-from=${MYDIR}/filelist --no-recursion
> rm ${MYDIR}/temp/CONTENTS
> xpak ${MYDIR}/temp ${MYDIR}/inf.xpak
> tbz2tool join ${MYDIR}/bin.tar.bz2 ${MYDIR}/inf.xpak ${MYDIR}/${PF}.tbz2
> [ -d /usr/portage/packages/All ] || mkdir -p /usr/portage/packages/All
> mv ${MYDIR}/${PF}.tbz2 /usr/portage/packages/All
> rm ${MYDIR}/temp/*
> rm ${MYDIR}/bin.tar.bz2 ${MYDIR}/inf.xpak ${MYDIR}/filelist
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-12-16 18:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-16 16:09 [gentoo-dev] Quickpkg - Where to get? Sebastian Werner
2001-12-16 17:31 ` Terry Chan
2001-12-16 18:53 ` Sebastian Werner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox