[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

How to register files as a part of a package?



Hi all,

How do I register a delivered file as belonging to a package in a
postinst/preinst script?

Also, what is the command to verify the MD5 sums of an installed
package?

perl -ne 'BEGIN{chdir"/";s{.*}{/var/lib/dpkg/info/$&.md5sums}foreach'\
'(@ARGV)};($m,$f)=/(\S*)\s+(.*)/;print"$f changed\n"if`md5sum $f`ne$_'

seems kind of, well, dirty.
--
   Sam Vilain, sam@vilain.net     WWW: http://sam.vilain.net/
    7D74 2A09 B2D3 C30F F78E      GPG: http://sam.vilain.net/sam.asc
    278A A425 30A9 05B5 2F13

  If everything would be permitted to me, I would feel lost in the
abyss of freedom
IGOR STRAVINSKY


-- 
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: