/srv/irclogs.ubuntu.com/2012/07/18/#ubuntu-motu.txt

=== Quintasan_ is now known as Quintasan
=== nigelb_ is now known as nigelb
v0lksmantrying to learn by updating an existing package. I'm a little lost with a package.postinst script where it says if [$1=configure] where is this triggered?  how do I know if configure is being passed in or not?  is this run with dpkg-reconfigure?17:19
v0lksmanwhat I'd really like to do is this:  a package gets installed, then it checks some things on the system (IP, Hostname) and sets the config file for that package automatically17:20
Lasallyou want probably debconf17:21
v0lksmanbit more detail in the paste:  http://dpaste.com/772243/17:22
v0lksmanLasall: I think I am using debconf17:23
Lasallyes you do17:23
Lasallsee for possible ways of calling maintainer scripts: http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#s-mscriptsinstact v0lksman17:25
Lasallyou should also look at sed -e17:27
Lasallv0lksman: do you have a debian/config file?17:27
v0lksmandoesn't appear to no17:28
v0lksmanthere is a debian/conf dir17:29
Lasallin your debian/config file you do the debconf requests17:29
Lasalland in debian/postinst file you work with those values17:29
v0lksmanhrm...that doesn't seem to be the case with this package at all17:30
v0lksman(again this is someone else package that I've just grabbed the source and want to tweak)17:30
Lasalldebconf templates exist?17:31
v0lksmanthere is a templates folder with some templates in there17:31
Lasallis the package available somewhere?17:32
v0lksmanhttps://launchpad.net/~h.tims/+archive/upstream-experimental17:32
v0lksmanand specifically I want to customize the zabbix-agent pacakge17:33
Lasallit takes long to build... v0lksman: what exactly is the problem?17:42
Lasalldoes the debconf question not appear?17:42
Lasallits priority is medium17:42
Lasallso check it with: debconf-show debconf17:42
Lasallv0lksman: which value has debconf/priority key?17:43
v0lksmanLasall: wow..yeah wasn't expecting you to build it.17:46
v0lksmanespecially not that ppa as that one works (sorta)17:46
v0lksmanit doesn't ask the server question though17:47
Lasallthe system debconf priority level is important17:48
LasallI suppose yours is "high"17:48
v0lksmanno I haven't modified that at all17:50
LasallI don't know what the standard value is. it is 'medium' ?17:50
v0lksmanwhere do you run debconf-show from?17:50
Lasallshell17:50
v0lksmanyeah but from a particular dir or something?17:51
Lasallno17:51
Lasallsry17:51
v0lksmanahh...so it tells me that debconf/priority: high17:51
Lasallyeah17:51
Lasallthats it17:51
v0lksmanright?  meaning that I need to set my question to high in order for it to be asked?17:51
Lasallyou can run dpkg-reconfigure --priority medium PACKAGE17:52
v0lksmangotcha!17:52
v0lksmanok.  so when I run dpkg-reconfigure without it does ask me the one question about server IP17:52
Lasallor you can set system level lower by reconfigure debconf itself17:52
v0lksmanok...so all this is good info...17:53
v0lksmanso back to postinst.  it runs when either --install or --configure are called.  in my testing it seems that on install --configure is not sent as an arg as the if condition in the postinst is never run. Is this acurate?18:00
v0lksmanhttp://dpaste.com/772243/ <- top script18:01
v0lksmanline 1118:01
v0lksmanis there a way to test to see how the debconf stuff will behave before building?18:05
Lasallv0lksman: yes: try: DEBCONF_DEBUG=developer dpkg-command18:21
Lasallv0lksman: parameters passed to config file are not '--param', it's 'param' only. e.g. 'configure'18:23
=== roaksoax_ is now known as roak
=== roak is now known as andreserl
=== andreserl is now known as roaksoax_
=== barry` is now known as barry
=== roaksoax_ is now known as roaksoax
=== LordOfTime is now known as TheLordOfTime
=== RainCT_ is now known as RainCT
=== pipedrea1 is now known as pipedream
=== cjwatson_ is now known as cjwatson
=== ral_ is now known as ral
=== TheMuso` is now known as TheMuso
TeesterHi. I wish to submit a new package for inclusion in Ubuntu 12.10.  I've read https://wiki.ubuntu.com/UbuntuDevelopment/NewPackages, which suggests inquiring here.  The package is a Help Lens, being worked on at https://launchpad.net/askubuntu-lens22:22
ajmitchTeester: it was on my todo list, along with about 150 other things22:34
ajmitchit's not entirely accurate having them listed as scopes when each data source appears to have its own lens, is it?22:34
Teesterajmitch: What do you mean?22:35
ajmitcheach scope seems to have its own daemon & registers as a lens on dbus22:36
TeesterIsn't that the way it's supposed to be? Each scope is a separate daemon, providing results to be displayed in the same lens?22:39
ajmitchI'm probably just misreading what you had, I only looked at it really briefly22:40
ajmitchok, nevermind my comments, I'm just not reading things right22:42
TeesterThe branch  builds several subpackages - one for yelp results, one for askubuntu, one for manpages etc, so that they can be installed or uninstalled separately if you want.22:42
TeesterIs there anything else I need to do to help progress with this?22:42
ajmitchwait for me or someone else to look over & test it?22:43
TeesterOk.  Do you need a bug files or anything to track that?22:44
ajmitchnot really22:44
ajmitchit's not feature freeze yet, unless someone forgot to tell me22:44
TeesterOk.  I'll wait to hear what happens, so. :-)22:45
ajmitchI know jcastro will probably be pinging me soon to make sure I get it in :P22:46
=== wgrant_ is now known as wgrant

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!