🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #6946

Re: KYLIX.DEB

#6946
From: Jan
Date: Sun, 27 Apr 2003 17:40
56 lines
2497 bytes
Vale, ya he encontrado un procedimiento mejor:

se hace un tar.gz con 3 archivos:

install.sh --> ver abajo
uninstall.sh --> ver abajo
y la libreria libborqt-6.9.0-qt2.3.so

Este tar.gz ocupa 2.5 megas y te instala la libreria en cualquier linux,
dejandolo preparado para ejecutar cualquier apliacion hecha en kylix.
(�cualquiera? si algun programa usa alguna otra libreria kylix aparte de
esa habria que corregir el invento supongo, pero de momento a mi me van
todas las aplicaciones solo con esa libreria)

Despues se puede preparar paquetes deb o rpm de cada aplicacion concreta,
con el aviso de que antes hay que bajarse, instalarse ese tar.gz.

Si a alguien se le ocurrre algo mejor....



scrip install.sh
----------------------------------------
#! /bin/sh

install -d /usr/lib/kylix3/
install -m 755 libborqt-6.9.0-qt2.3.so /usr/lib/kylix3/libborqt-6.9.0-qt2.3.so

cd /usr/lib/kylix3/
cp -s libborqt-6.9.0-qt2.3.so libborqt-6.9-qt2.3.so

grep -q "^/usr/lib/kylix3\$" /etc/ld.so.conf
if [ $? == 1 ]; then
  echo /usr/lib/kylix3 >> /etc/ld.so.conf
fi

/sbin/ldconfig
-------------------------------------


scrip uninstall.sh
--------------------------------
#!/bin/sh

rm -f /usr/lib/kylix3/libborqt-6.9-qt2.3.so
rm -f /usr/lib/kylix3/libborqt-6.9.0-qt2.3.so

find /usr/lib/kylix3/* >/dev/null 2>&1
if [ $? == 1 ]; then
  mv /etc/ld.so.conf /etc/ld.so.conf.old
  grep -v "^/usr/lib/kylix3\$" /etc/ld.so.conf.old > /etc/ld.so.conf
fi
/sbin/ldconfig
rm -f /etc/ld.so.conf.old

---------------------------------
Technical Details
Message-ID: <b8h4df$9tb19$1@ID-103285.news.dfncis.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!eu18-155.clientes.euskaltel.ES!not-for-mail
References: <b8gpp4$9jhtr$1@ID-103285.news.dfncis.de>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,7e4a7a4a63b8cc17
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2003-04-27 10:35:45 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!eu18-155.clientes.euskaltel.ES!not-for-mail
From: Jan <Janlankan@mixmail.com>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: KYLIX.DEB
Date: Sun, 27 Apr 2003 19:40:01 +0200
Lines: 56
Message-ID: <b8h4df$9tb19$1@ID-103285.news.dfncis.de>
References: <b8gpp4$9jhtr$1@ID-103285.news.dfncis.de>
NNTP-Posting-Host: eu18-155.clientes.euskaltel.es (212.55.18.155)
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: fu-berlin.de 1051464943 10398761 212.55.18.155 (16 [103285])
X-Orig-Path: not-for-mail
User-Agent: Pan/0.11.2 (Unix)
X-Comment-To: "Jan" <Janlankan@mixmail.com>