linux - Create multiple Debian packages for data files from one source -


i have bunch of dictionary files dictd dictionary program. there 2 files each dictionary (a dict.dz , .index file) , there 8 dictionaries in total.

the installation of dictionaries simple, have in script:

install -o root -g root -m 644 /path/to/dictd_dictionaries/* /usr/share/dictd /usr/sbin/dictdconfig --write service dictd restart 

now want package lot of files .deb packages, 1 .deb package per dictionary. i'd have 1 source .deb package creates separate packages, rather having create , maintain 8 individual packages (a number might grow on time).

however don't understand how debian/packagename.dirs files relate goes in debian/rules file. tried downloading , looking @ source package freedict, similar want do, rules file complex.

you use dh-make package , specifiy "multiple binary". it's bit wizard creating skeleton debian/ directory.

e.g.

# dh_make --packagename=skeleton_1.0 perl: warning: setting locale failed. perl: warning: please check locale settings:     language = "en_gb:en",     lc_all = (unset),     lang = "en_gb.utf-8"     supported , installed on system. perl: warning: falling standard locale ("c").  type of package: single binary, indep binary, multiple binary, library, kernel module, kernel patch or cdbs?  [s/i/m/l/k/n/b]  

typing "m" @ point set since source package builds several packages.

after dh_make wizard has set things need maintain debian/[packagename].dirs , debian/[packagename].install packager knows files go in .deb.

e.g.
skeleton.dirs

usr/bin 

skeleton.install

usr/bin/skeleton* 

Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -