创建元包


0

在创建元包时遇到了一些问题

试图在ubuntu上创建一个包含取证工具包的meta包,我什至在创建.deb文件时遇到问题。dpkg-源:错误:无法以源格式“ 3.0(被子)”构建:未找到orig.tar文件dpkg-buildpackage:错误:dpkg-源-b forensics-0.1给出了错误退出状态255

后来我使用debian 5尝试了一下,创建了deb作品,但是在Depends中遇到了一些问题

debian:/home/matthias/Desktop/meta# dpkg --install *.deb
Wähle vormals abgewähltes Paket meta.
(Lese Datenbank ... 96897 Dateien und Verzeichnisse sind derzeit installiert.)
Entpacke meta (aus meta_0.1-1_i386.deb) ...
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von meta:
 meta hängt ab von python (>= 2.6.6-2); aber:
  Version von python auf dem System ist 2.5.2-3.
dpkg: Fehler beim Bearbeiten von meta (--install):
 Abhängigkeitsprobleme - lasse es unkonfiguriert
Fehler traten auf beim Bearbeiten von:
 meta

文件控件如下所示:

Source: meta
Section: unknown
Priority: extra
Maintainer: root <matthias@schrattenholzer.at>
Build-Depends: debhelper (>= 7)
Standards-Version: 3.7.3
Homepage: <insert the upstream URL, if relevant>
Package: meta
Architecture: any
Depends: python (>= 2.6.6-2)
Description: short description
 forensic toolkits

有任何想法吗?

亲切的问候


3
尽管我们大多数人都熟悉dpkg的输出,但我认为您可能会受益于在将Shell的摘要摘录之前将LC_ALL设置为en_US…
bubu

Answers:


0

在Debian上,Ubuntu上也应该有一个名为“ equivs”的软件包。Equivs的唯一目的是协助创建元软件包或空软件包,以满足您不想安装的依赖项。

要使用它,请运行equivs-control filename,它将创建一个名为filename的模板文件。编辑文件名以更改详细信息。最后,运行equivs-build filename创建软件包,然后安装它。


解决的安装:
olpanis 2011年

0

如何创建DEBIAN元数据包

$ mkdir -p ~/packages/<package-name>/DEBIAN 
$ cd ~/packages/<package-name>/DEBIAN
$ touch postinst
$ touch control

控制文件示例:

Package: forensic-tool-collection
Version: 0.1
Section: main
Priority: optional
Architecture: all
Depends: python-pyside, sleuthkit, dcfldd, python-elixir, python-urwid, python-imaging, libsvn-java, python-qt4, autopsy, xfce4-xkb-plugin, python-poppler, python-magic, libpoppler-qt4-dev, poppler-utils, python-mpmath, python-matplotlib, python-scitools, audacity, mediainfo, mediainfo-gui, octave, octave-image, qtoctave, octave-signal, pdftk, disktype, scalpel, uudeview, python-opencv, ewf-tools, xmount, testdisk, parted, outguess, avidemux, aimage, afflib-tools, icocom, wine, readpst, libimage-exiftool-perl, hexedit, steghide, fotoxx, serna, antiword, hdparm, python-setuptools, python-elixir, python-dev, python2.6-dev
Installed-Size:
Maintainer: 4en'sicks 
Description: collection of forensic-tools

postinst文件:

#!/bin/sh
# postinstall script for forensic toll collection
# 
# see: dh_installdeb(1)
set -e

case "$1" in 
configure)
## pherhaps something has to be changed in future 
echo "Congrats..."
;;

abort-upgrade|abort-remove|abort-deconfigure)
;;

*)
echo "postinst called with unknown argument `$1'" > &2
exit1
;;
esac

#DEBHELPER

exit 0

下一步:

$ cd ~/packages/
$ chmod 555 forensic/DEBIAN/postinst
$ dpkg-deb -b forensic forensic.deb

安装:

$ dpkg -i forensic.deb
$ apt-get -f install

这意味着,我们不能在meta包的depends列表中包括版本信息
Anwar
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.