public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Terry Chan <tchan@enteract.com>
To: gentoo-dev@gentoo.org
Subject: Re: [gentoo-dev] Quickpkg - Where to get?
Date: Sun, 16 Dec 2001 11:31:31 -0600	[thread overview]
Message-ID: <20011216113130.A3702@enteract.com> (raw)
In-Reply-To: <1008518963.18350.0.camel@wp.smile>; from sebastian@werner-productions.de on Sun, Dec 16, 2001 at 05:09:22PM +0100

[-- 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

  reply	other threads:[~2001-12-16 17:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-16 16:09 [gentoo-dev] Quickpkg - Where to get? Sebastian Werner
2001-12-16 17:31 ` Terry Chan [this message]
2001-12-16 18:53   ` Sebastian Werner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011216113130.A3702@enteract.com \
    --to=tchan@enteract.com \
    --cc=gentoo-dev@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox