{"action":"created","issue":{"url":"https://api.github.com/repos/firehol/netdata/issues/439","repository_url":"https://api.github.com/repos/firehol/netdata","labels_url":"https://api.github.com/repos/firehol/netdata/issues/439/labels{/name}","comments_url":"https://api.github.com/repos/firehol/netdata/issues/439/comments","events_url":"https://api.github.com/repos/firehol/netdata/issues/439/events","html_url":"https://github.com/firehol/netdata/issues/439","id":156171567,"number":439,"title":"Build packages for Ubuntu 14.04 LTS","user":{"login":"n0guest","id":5829393,"avatar_url":"https://avatars.githubusercontent.com/u/5829393?v=3","gravatar_id":"","url":"https://api.github.com/users/n0guest","html_url":"https://github.com/n0guest","followers_url":"https://api.github.com/users/n0guest/followers","following_url":"https://api.github.com/users/n0guest/following{/other_user}","gists_url":"https://api.github.com/users/n0guest/gists{/gist_id}","starred_url":"https://api.github.com/users/n0guest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n0guest/subscriptions","organizations_url":"https://api.github.com/users/n0guest/orgs","repos_url":"https://api.github.com/users/n0guest/repos","events_url":"https://api.github.com/users/n0guest/events{/privacy}","received_events_url":"https://api.github.com/users/n0guest/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/firehol/netdata/labels/packaging","name":"packaging","color":"f9d0c4"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2016-05-22T20:40:43Z","updated_at":"2016-06-22T13:50:22Z","closed_at":null,"body":"Hi, guys.\r\n\r\nI've used an information from #42 and some files from contrib/debian to build a deb package of v1.2.0 for Ubuntu 14.04.x. Will you accept this small improvement to upstream? I guess, having clear instruction for building deb packages for Ubuntu will be useful for someone else.\r\n\r\nFor a start, you need to install all packages, mentioned in \"Install guide\" and this additional packages:\r\n\r\n- debhelper\r\n- dh-autoreconf\r\n- dpkg-dev\r\n\r\nHere is upstart configuration file, that you should put in contrib/debian as netdata.upstart:\r\n\r\n```\r\n#  netdata - Real-time charts for system monitoring\r\n#\r\n#  Netdata is a daemon that collects data in realtime (per second)\r\n#  and presents a web site to view and analyze them. The presentation\r\n#  is also real-time and full of interactive charts that precisely\r\n#  render all collected values.\r\n\r\ndescription  \"realtime system monitoring daemon\"\r\n\r\nstart on filesystem and net-device-up\r\nstop on runlevel [!2345]\r\n\r\nexpect daemon\r\nrespawn\r\n\r\nexec /usr/sbin/netdata\r\n```\r\n\r\nAnd because Ubuntu 14.04 uses upstart instead of systemd, you need to delete mention of systemd from debian/rules near  line 11. All other steps same as for debian - just create a symlink and use dpkg-buildpackage as described in contrib/Readme.md.\r\n\r\nPS: Heh, after writing all of these, i've found #69 and existing PPA from @gslin. I hope at least upstart config will be useful? ;)\r\n"},"comment":{"url":"https://api.github.com/repos/firehol/netdata/issues/comments/227749446","html_url":"https://github.com/firehol/netdata/issues/439#issuecomment-227749446","issue_url":"https://api.github.com/repos/firehol/netdata/issues/439","id":227749446,"user":{"login":"mcnewton","id":1319836,"avatar_url":"https://avatars.githubusercontent.com/u/1319836?v=3","gravatar_id":"","url":"https://api.github.com/users/mcnewton","html_url":"https://github.com/mcnewton","followers_url":"https://api.github.com/users/mcnewton/followers","following_url":"https://api.github.com/users/mcnewton/following{/other_user}","gists_url":"https://api.github.com/users/mcnewton/gists{/gist_id}","starred_url":"https://api.github.com/users/mcnewton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcnewton/subscriptions","organizations_url":"https://api.github.com/users/mcnewton/orgs","repos_url":"https://api.github.com/users/mcnewton/repos","events_url":"https://api.github.com/users/mcnewton/events{/privacy}","received_events_url":"https://api.github.com/users/mcnewton/received_events","type":"User","site_admin":false},"created_at":"2016-06-22T13:50:21Z","updated_at":"2016-06-22T13:50:21Z","body":"I'm pretty busy right now but if I get a chance I'll see if I can take a look.\r\n\r\nMultiple directories is probably clean, but leads to a lot of duplication, which is the downside. Especially when one common file needs to be updated, and is then forgotten in other distros. Then you end up maintaining multiple debian/ directories that have all diverged slightly.\r\n\r\nMaybe there is a better way, but I'm not currently aware of one, so if anyone has any suggestions they would be welcome :-). Maybe symlinks (or a makefile to make the correct symlinks) for files that are different? TBH I don't think many files will differ between distros, but it may be some of the core ones which cause problems (such as `debian/control` or `debian/rules`).\r\n\r\nMatthew\r\n"}}
{"actor":{"display_login":"mcnewton"}}