[csw-users] Re-cataloging a local repository - FAQ?

Jan Dreyer dreyerja at uni-paderborn.de
Mon Jul 17 02:40:17 CEST 2006


Hi,

Am 15.07.2006 um 20:07 schrieb Bill Gercken:
> I know I saw a link some where on the blastwave site as to how to re-
> create the catalog for a local repository but for the life of me can
> not find it now.
> Does anyone know where to find it? It looks simple enough, with the
> exception of naming the packages - when to remove the dash in a
> package name as in (CSWpmdbi) and when to make it a dash as in
> (CSWsudo-common).

Try instead to get the information from the inner-package.
Little excerpt of our own rep:
--- snipp ---
SW_VERSION = `gzip -cd $line | ggrep -a "^VERSION=" | cut -d= - 
f2,3,4,5 | head -1`
PKG_NAME   = `gzip -cd $line 2>/dev/null | head -2 | tail -1 | awk  
'{print $1}'`
[ $PKG_NAME ] || PKG_NAME=`cat $line 2>/dev/null | head -2 | tail -1  
| awk '{print $1}'`
FILE_NAME = `echo $line | cut -d'/' -f2`
PKG_MD5 = `gmd5sum $line | cut -d' ' -f1`
SW_SUMMARY = `gzip -cd $line | ggrep -a "^NAME=" | head -1 | cut -d= - 
f2`
SW_NAME = `echo ${SW_SUMMARY} | awk '{print $1}'`
SW_VENDOR = `gzip -cd $line | ggrep -a "^VENDOR=" | head -1 | cut -d=  
-f2`

echo "${SW_SUMMARY}" >> ${DESC_FILE}.unsigned
echo "${SW_NAME} ${SW_VERSION} ${PKG_NAME} ${FILE_NAME} ${PKG_MD5}"  
 >> ${CATALOG_FILE}.unsign
--- snapp ---

there is no way to fake the gpg-signature, of course ;-)

Greetings
Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 304 bytes
Desc: Signierter Teil der Nachricht
URL: <http://lists.opencsw.org/pipermail/users/attachments/20060717/d653cab7/attachment.sig>


More information about the users mailing list