COMO criar um PACOTE META DEBIANO
$ mkdir -p ~/packages/<package-name>/DEBIAN
$ cd ~/packages/<package-name>/DEBIAN
$ touch postinst
$ touch control
exemplo de um arquivo de controle:
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
arquivo 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
próximos passos:
$ cd ~/packages/
$ chmod 555 forensic/DEBIAN/postinst
$ dpkg-deb -b forensic forensic.deb
instalação:
$ dpkg -i forensic.deb
$ apt-get -f install