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