Re: Umpacken eines rpm in deb mit alien

Olaf Jaehrling <[email protected]>
Newsgroups spline.fli4l.geschnatter
Organization spline
Message-ID <[email protected]>
Hallo Marcus,

Marcus Röckrath schrieb am 07.01.26 um 09:06:
> Hallo,
> 

> 
> Jemand mit dem Paketbau auf Debian vertraut, der mir hier helfen kann.

Ich gehe da einen wenig anderen Weg, aber vllt hilft es dir.
Ich konvertiere mein Eisfairpaket in ein deb mit Hilfe dieses keinen 
Scriptes.
====================================================================
#!/usr/bin/bash
#------------------------------------------------------------------------------
# Copyright (c) 2025-2026 Olaf Jaehrling <eisfair(at)ojaehrling.(dot)de>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License
#------------------------------------------------------------------------------

paket=$1
if [ ! -f /test/$paket.tar.bz2 ]
then
     echo "/test/$paket.tar.bz2 nicht da."
     exit 0
fi

if [ "$1" = "" ]
then
     echo Syntax: $0 paket
     exit 0
fi
cd /test
if [ -f /test/$paket.deb ]
then
     rm /test/$paket.deb
fi
tar xfj $paket.tar.bz2
rm $paket.tar.bz2
VERSION=`grep version var/install/packages/$paket |awk -F">" {'print 
$2}' |awk -F"<" {'print $1}'|awk -F"svn" {'print $1}'`
sed -i "/^Version: /s/:.*/: $VERSION/" DEBIAN/control
rm -fr var/install/
mv tmp/install.sh DEBIAN/postinst
mv tmp/preinstall.sh DEBIAN/preinst
rm -fr tmp
rm -fr etc
rm -f /test/$paket.deb
cd -
dpkg-deb -Zgzip --build  /test/ $paket.deb
echo "`pwd`/$paket.deb erstellt"
====================================================================


VG

Olaf
> 

-- 
Paketserver: https://ojaehrling.de/eis/index.txt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.