[17:19] <v0lksman> trying 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:20] <v0lksman> what 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 automatically
[17:21] <Lasall> you want probably debconf
[17:22] <v0lksman> bit more detail in the paste:  http://dpaste.com/772243/
[17:23] <v0lksman> Lasall: I think I am using debconf
[17:23] <Lasall> yes you do
[17:25] <Lasall> see for possible ways of calling maintainer scripts: http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#s-mscriptsinstact v0lksman
[17:27] <Lasall> you should also look at sed -e
[17:27] <Lasall> v0lksman: do you have a debian/config file?
[17:28] <v0lksman> doesn't appear to no
[17:29] <v0lksman> there is a debian/conf dir
[17:29] <Lasall> in your debian/config file you do the debconf requests
[17:29] <Lasall> and in debian/postinst file you work with those values
[17:30] <v0lksman> hrm...that doesn't seem to be the case with this package at all
[17:30] <v0lksman> (again this is someone else package that I've just grabbed the source and want to tweak)
[17:31] <Lasall> debconf templates exist?
[17:31] <v0lksman> there is a templates folder with some templates in there
[17:32] <Lasall> is the package available somewhere?
[17:32] <v0lksman> https://launchpad.net/~h.tims/+archive/upstream-experimental
[17:33] <v0lksman> and specifically I want to customize the zabbix-agent pacakge
[17:42] <Lasall> it takes long to build... v0lksman: what exactly is the problem?
[17:42] <Lasall> does the debconf question not appear?
[17:42] <Lasall> its priority is medium
[17:42] <Lasall> so check it with: debconf-show debconf
[17:43] <Lasall> v0lksman: which value has debconf/priority key?
[17:46] <v0lksman> Lasall: wow..yeah wasn't expecting you to build it.
[17:46] <v0lksman> especially not that ppa as that one works (sorta)
[17:47] <v0lksman> it doesn't ask the server question though
[17:48] <Lasall> the system debconf priority level is important
[17:48] <Lasall> I suppose yours is "high"
[17:50] <v0lksman> no I haven't modified that at all
[17:50] <Lasall> I don't know what the standard value is. it is 'medium' ?
[17:50] <v0lksman> where do you run debconf-show from?
[17:50] <Lasall> shell
[17:51] <v0lksman> yeah but from a particular dir or something?
[17:51] <Lasall> no
[17:51] <Lasall> sry
[17:51] <v0lksman> ahh...so it tells me that debconf/priority: high
[17:51] <Lasall> yeah
[17:51] <Lasall> thats it
[17:51] <v0lksman> right?  meaning that I need to set my question to high in order for it to be asked?
[17:52] <Lasall> you can run dpkg-reconfigure --priority medium PACKAGE
[17:52] <v0lksman> gotcha!
[17:52] <v0lksman> ok.  so when I run dpkg-reconfigure without it does ask me the one question about server IP
[17:52] <Lasall> or you can set system level lower by reconfigure debconf itself
[17:53] <v0lksman> ok...so all this is good info...
[18:00] <v0lksman> so 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:01] <v0lksman> http://dpaste.com/772243/ <- top script
[18:01] <v0lksman> line 11
[18:05] <v0lksman> is there a way to test to see how the debconf stuff will behave before building?
[18:21] <Lasall> v0lksman: yes: try: DEBCONF_DEBUG=developer dpkg-command
[18:23] <Lasall> v0lksman: parameters passed to config file are not '--param', it's 'param' only. e.g. 'configure'
[22:22] <Teester> Hi. 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-lens
[22:34] <ajmitch> Teester: it was on my todo list, along with about 150 other things
[22:34] <ajmitch> it's not entirely accurate having them listed as scopes when each data source appears to have its own lens, is it?
[22:35] <Teester> ajmitch: What do you mean?
[22:36] <ajmitch> each scope seems to have its own daemon & registers as a lens on dbus
[22:39] <Teester> Isn'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:40] <ajmitch> I'm probably just misreading what you had, I only looked at it really briefly
[22:42] <ajmitch> ok, nevermind my comments, I'm just not reading things right
[22:42] <Teester> The 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] <Teester> Is there anything else I need to do to help progress with this?
[22:43] <ajmitch> wait for me or someone else to look over & test it?
[22:44] <Teester> Ok.  Do you need a bug files or anything to track that?
[22:44] <ajmitch> not really
[22:44] <ajmitch> it's not feature freeze yet, unless someone forgot to tell me
[22:45] <Teester> Ok.  I'll wait to hear what happens, so. :-)
[22:46] <ajmitch> I know jcastro will probably be pinging me soon to make sure I get it in :P